Перенос образа из VirtualBox в XEN

vbxenelastixДля того, чтобы перенести ваш образ, созданный в VirtualBox в XEN необходимо сконвертировать VDI-диск в IMG формат. Для этого воспользуемся утилитой VBoxManage, поставляемой вместе с VirtualBox. Поскольку переношу я на MacOS, я воспользуюсь Terminal (поскольку программа консольная).

Итак, перейдите в каталог, где располагается ваш VDI-диск и выполните команду:

VBoxManage internalcommands converttoraw machine-name.vdi newmachine-name.img

После этого в консоли вы увидите сообщение:

Converting image "machine-name.vdi" with size 8908701696 bytes (8496MB) to raw...

Учтите, что процесс может занять длительное время, все зависит от размера вашего VDI-диска. После успешного конвертирования любым удобным способом заливаем newmachine-name.img на сервер с установленным гипервизором XEN.

Далее необходимо будет создать конфигурационный файл. По умолчанию XEN использует для их хранения каталог /etc/xen. В моем случае я переносил образ Elastix, поэтому рабочий пример файла конфигурации я приведу для него. Если же у вас образ Windows – то отпишите в комментариях и приведу пример и для этой ОС.

 kernel = "/usr/lib/xen/boot/hvmloader"
 builder='hvm'
 memory = 1024
 shadow_memory = 8
 name = "elastix"
 vif = [ 'type=ioemu,bridge=eth1 ,mac=00:16:3e:03:00:c4' ]
 disk = [ 'file:/home/elastix.img,hda,w']
 device_model = '/usr/lib64/xen/bin/qemu-dm'
 boot="cd"
 sdl=0
 vnc=1
 vncpasswd='somepass'
 vnclisten = "192.168.0.100"
 stdvga=0
 vncdisplay=10
 serial='pty'

На случай если возникнут проблемы с подключением к только что запущенной виртуальной машине,- я задействовал параметры vnc,vnclisten,vncdisplay и vncpassword. С их помощью я смогу подключится по любым VNC-клиентом на 192.168.0.100:5910.

После того, как сохраните файл конфигурации, необходимо запустить виртуальную машину командой:

sudo xm create elastix.cfg

Если все прошло удачно, то на эране появятся сообщения:

 Using config file "/etc/xen/elastix.cfg".
 Started domain elastix (id=3)

27 комментариев к “Перенос образа из VirtualBox в XEN

  1. When I initially commented I clicked the -Notify me when new remarks are included- checkbox and also now each time a remark is added I obtain four emails with the very same comment. Is there any way you can eliminate me from that solution? Thanks!

  2. An impressive share, I just provided this onto an associate who was doing a little evaluation on this. As well as he actually bought me morning meal due to the fact that I found it for him. smile. So let me rephrase that: Thnx for the reward! Yet yeah Thnkx for spending the moment to review this, I really feel highly about it as well as enjoy reading more on this topic. Ideally, as you become expertise, would certainly you mind upgrading your blog with more details? It is very helpful for me. Big thumb up for this blog post!

  3. The following time I read a blog, I hope that it doesn’t dissatisfy me as long as this. I imply, I know it was my selection to read, but I really assumed youd have something fascinating to state. All I hear is a lot of whimpering regarding something that you might fix if you werent too hectic searching for attention.

  4. There are some intriguing points in this article but I don?t recognize if I see every one of them center to heart. There is some credibility but I will take hold viewpoint up until I consider it additionally. Great article, many thanks as well as we want much more! Contributed to FeedBurner as well

  5. Amazing blog! Do you have any recommendations for aspiring writers?
    I’m planning to start my own site soon but I’m a little lost on everything.
    Would you suggest starting with a free platform like WordPress
    or go for a paid option? There are so many options out there that I’m totally confused ..
    Any tips? Many thanks!

  6. The following time I check out a blog site, I hope that it does not disappoint me as long as this one. I imply, I recognize it was my selection to read, but I really assumed youd have something intriguing to say. All I hear is a bunch of grumbling regarding something that you could fix if you werent also busy searching for interest.

  7. Hey there just wanted to give you a quick heads up and let you know a few of the images aren’t loading properly.
    I’m not sure why but I think its a linking issue. I’ve tried it in two
    different web browsers and both show the same outcome.

  8. Greetings! I know this is kinda off topic but I’d figured I’d
    ask. Would you be interested in exchanging links or maybe guest writing a blog
    post or vice-versa? My website discusses a lot of the same subjects as
    yours and I think we could greatly benefit from each
    other. If you might be interested feel free to send me an email.
    I look forward to hearing from you! Excellent blog by the way!

  9. There are some fascinating times in this article yet I don?t know if I see every one of them center to heart. There is some validity yet I will certainly hold point of view till I look into it even more. Great write-up, many thanks and also we want a lot more! Included in FeedBurner as well

  10. There are definitely a great deal of details like that to think about. That is a fantastic indicate raise. I offer the ideas above as basic ideas but clearly there are concerns like the one you bring up where the most essential thing will be working in straightforward good faith. I don?t understand if ideal practices have actually arised around things like that, yet I am sure that your work is plainly determined as an up for grabs. Both boys and also ladies really feel the influence of just a moment?s satisfaction, for the remainder of their lives.

  11. Terrific paintings! This is the kind of info that are meant to be shared across the internet. Disgrace on the seek for not positioning this submit upper! Come on over and seek advice from my site . Thanks =)

  12. I discovered your blog post site online and check some of your early posts. Always keep the excellent operate. I just extra your Rss to my MSN News Reader. Looking for toward reading much more from you afterwards!…

  13. After research study a few of the post on your internet site currently, as well as I absolutely like your method of blog writing. I bookmarked it to my bookmark web site listing and also will certainly be examining back soon. Pls take a look at my web site also and let me recognize what you believe.

  14. Oh my goodness! a remarkable write-up guy. Thank you Nevertheless I am experiencing concern with ur rss. Don?t understand why Unable to sign up for it. Exists anybody obtaining similar rss trouble? Any individual that recognizes kindly react. Thnkx

Оставить ответ к side effects cbd oil Отменить ответ

Ваш адрес email не будет опубликован. Обязательные поля помечены *