Перенос образа из 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)

49 комментариев к “Перенос образа из 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

  15. Aw, this was a truly great blog post. In concept I want to place in composing similar to this furthermore? taking some time as well as real effort to make an excellent article? but what can I say? I postpone alot as well as by no means appear to obtain something done.

  16. This is the ideal blog for anyone who wishes to discover this topic. You understand so much its practically tough to suggest with you (not that I really would want?HaHa). You certainly placed a brand-new spin on a subject thats been covered for many years. Excellent stuff, just fantastic!

  17. Can I just state what an alleviation to discover somebody who in fact recognizes what theyre discussing on the web. You definitely recognize exactly how to bring an issue to light as well as make it essential. More individuals need to read this and comprehend this side of the story. I angle believe youre not more prominent since you most definitely have the present.

  18. There are some fascinating points in this article however I don?t recognize if I see every one of them center to heart. There is some legitimacy yet I will hold viewpoint up until I look into it further. Good short article, many thanks and we want much more! Included in FeedBurner also

  19. When I originally commented I clicked the -Notify me when new comments are added- checkbox and currently each time a comment is added I get 4 e-mails with the exact same comment. Is there any way you can remove me from that solution? Many thanks!

  20. I am not sure where you are getting your information, but good topic. I needs to spend some time learning much more or understanding more. Thanks for excellent info I was looking for this info for my mission.|

  21. Just desire to say your article is as amazing. The clearness in your post is just spectacular and i can assume you are an expert on this subject. Well with your permission let me to grab your RSS feed to keep up to date with forthcoming post. Thanks a million and please carry on the rewarding work.|

  22. I was very happy to discover this web site. I wanted to thank you for ones time just for this wonderful read!! I definitely loved every part of it and i also have you bookmarked to check out new stuff in your web site.|

  23. I?m satisfied, I need to say. Really hardly ever do I encounter a blog site that?s both informative and also entertaining, and let me inform you, you have hit the nail on the head. Your idea is outstanding; the problem is something that inadequate individuals are talking smartly around. I am very pleased that I came across this in my search for something relating to this.

  24. An intriguing discussion is worth remark. I think that you need to compose much more on this subject, it may not be a taboo topic however generally individuals are not nearly enough to talk on such topics. To the next. Thanks

Оставить ответ

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