Tapas Mishra
2010-May-20 09:38 UTC
[Xen-users] how to convert QEMU images to be used as Xen DomU''s
I referred to this wiki page http://wiki.xensource.com/xenwiki/VMDKImage where they talked about converting a VMWARE image to be used with Xen is there a similar process for QEMU images. I googled http://www.google.co.in/search?q=how+to+convert+qemu+image+to+xen&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a but seems that I did not used the right keywords can some one give a better idea/suggestion? -- Tapas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-May-20 09:45 UTC
Re: [Xen-users] how to convert QEMU images to be used as Xen DomU''s
On Thu, May 20, 2010 at 4:38 PM, Tapas Mishra <mightydreams@gmail.com> wrote:> I referred to this wiki page > http://wiki.xensource.com/xenwiki/VMDKImage > where they talked about converting a VMWARE image to be used with Xen > is there a similar process for QEMU images. > I googled > http://www.google.co.in/search?q=how+to+convert+qemu+image+to+xen&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a > but seems that I did not used the right keywords can some one give a > better idea/suggestion?what qemu image format did you use? Try using qemu-img to convert the disk to raw format (if it''s not already in that format) and use the resulting file as disk image for HVM domU. Have you created a HVM domU before? If not, virt-manager can help you create a suitable config using either existing or new disk image. An example HVM domU config that I use is http://pastebin.com/fb6fe631, adjust vif and disk line according to your setup. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tapas Mishra
2010-May-20 11:19 UTC
Re: [Xen-users] how to convert QEMU images to be used as Xen DomU''s
> what qemu image format did you use?I am not clear with the above Question how do I find out that.I used an LVM the command is qemu-system-x86_64 -hda /dev/virtualization/centos5-disk -hdb /dev/virtualization/centos5-swap -boot d -cdrom /root/centos1.iso -m 1024 -net nic -net tap So it is an LVM image if I understood your question correctly.> Try using qemu-img to convert the disk to raw format (if it''s not > already in that format) and use the resulting file as disk image for > HVM domU.Ya I saw some thing similar on net and mailing lists too.> Have you created a HVM domU before?No.Never this is first time I am doing all this.>If not, virt-manager can > help you create a suitable config using either existing or new disk > image.Ok does it have GUI to run over SSH, I am doing all this on a server which does not have GUI at all and accessing all via SSH.More over Dom0 of the server is Debian Lenny.Have never used before so skittish about it. I have uploaded a snapshot which showed me grub in bash booting CentOS you can check it here. http://www.flickr.com/photos/48996087@N07/4623521997/> An example HVM domU config that I use is http://pastebin.com/fb6fe631, > adjust vif and disk line according to your setup.Ok thanks for that. I saw line number 49 you have mentioned to edit grub here is it referring to grub on Dom0 or DomU which I am installing. Thanks -- Tapas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tapas Mishra
2010-May-21 10:50 UTC
Re: [Xen-users] how to convert QEMU images to be used as Xen DomU''s
I used the config file you suggested here http://pastebin.com/fb6fe631 but got an error Error: Bootloader isn''t executable my .cfg after copying yours is http://pastebin.com/t7eDR4mL I am used hda,hdb ,xvda,xvdb also as you previously had said not to use xvda1,xvdb2 but all Debian DomU''s are booting with xvda1,xvda2 only. -- Tapas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-May-21 12:24 UTC
Re: [Xen-users] how to convert QEMU images to be used as Xen DomU''s
On Fri, May 21, 2010 at 5:50 PM, Tapas Mishra <mightydreams@gmail.com> wrote:> I used the config file you suggested > here > http://pastebin.com/fb6fe631 > but got an error > Error: Bootloader isn''t executable > > my .cfg after copying yours is > http://pastebin.com/t7eDR4mLWhy are you keep doing it the hard way, doing one thing when suggested to to the other? The link I sent was for a HVM domU. Because converting from QEMU to HVM is easier. It can provide you with basic check as to whether you have a working or essentially broken system, as the conversion process should be straight-forward without any modification needed to the vm. My HVM domU config mentions nothing about bootlader or xvda. Yet you specifically change it to be PV domU config, with bootloader = "/usr/bin/pygryb" and adding things like root = ''/dev/hda ro'' which was never in any of the example I sent you. Again, there''s nothing wrong with doing things your own way, changing things the way you see fit, if you know what you''re doing. It might even save you lots of time. IF it works, that is. There''s a consequence to that, though. Don''t expect much help if you run into problems. Cause you''re differing form known-to-work setups. Cause you''re basically ignoring those who''ve spend time to help you. Cause you basically guarantee that it''s NOT going to work, by putting things like misspelled program names on bootloader line -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tapas Mishra
2010-May-21 14:30 UTC
Re: [Xen-users] how to convert QEMU images to be used as Xen DomU''s
Fajar first of all I would like to express my apologies to you.Believe it or not I have been reading your messages on this mailing list not only to my problems but to any one else you have replied.I consider you to be an expert when it comes to CentOS and Xen. Six months before I used Xen for the first time in my life.I was new to a lot of things so the questions were newbie ones. Which with your help and also with folks at Xen IRC I was able to solve many of my doubts. Now coming to my problem I am working with a team of people in which I am the junior most person and they would not listen to your or my suggestions.I bookmark your replies for my knowledge.They consider themselves as expert on Debian I do not doubt on the competence of the persons who are my seniors but if after working hard for 2 months you can not make things work there definitely is a problem. Which they are not willing to accept. Had it been my choice I would have used CentOS directly no Debian Dom0 I have used CentOS with Xen and extremely satisfied with it. I have had more than frustrating experience with Debian. But just understand my situation. I have shown your messages to them in some or the other format and probably they must also be reading this thread. The server on which I am working I do not have the freedom to work the way you suggest. I have been told to make QEMU work and so I am struggling. Assuming that I am not comfortable with Linux or Xen I believe if I can not make it work many others might have not. I really appreciate the time and energy you spent here with me and sincerely thank you and many other members on this list who so ever replied to my messages. I can understand that it had been a tiring and frustrating to reply to go through this process again and again. Having explained my scenario to you,you can now understand my situations better please keep replying I make a book mark of all your pastebins and I will try them all one by one once.Once I prove that this method will actually not work. Sorry for the typo errors. Thanks for all the support you gave. On Fri, May 21, 2010 at 5:54 PM, Fajar A. Nugraha <fajar@fajar.net> wrote:> On Fri, May 21, 2010 at 5:50 PM, Tapas Mishra <mightydreams@gmail.com> wrote: >> I used the config file you suggested >> here >> http://pastebin.com/fb6fe631 >> but got an error >> Error: Bootloader isn''t executable >> >> my .cfg after copying yours is >> http://pastebin.com/t7eDR4mL > > Why are you keep doing it the hard way, doing one thing when suggested > to to the other? The link I sent was for a HVM domU. Because > converting from QEMU to HVM is easier. It can provide you with basic > check as to whether you have a working or essentially broken system, > as the conversion process should be straight-forward without any > modification needed to the vm. > > My HVM domU config mentions nothing about bootlader or xvda. Yet you > specifically change it to be PV domU config, with > > bootloader = "/usr/bin/pygryb" > > and adding things like > > root = ''/dev/hda ro'' > > which was never in any of the example I sent you. > > Again, there''s nothing wrong with doing things your own way, changing > things the way you see fit, if you know what you''re doing. It might > even save you lots of time. IF it works, that is. > > There''s a consequence to that, though. Don''t expect much help if you > run into problems. Cause you''re differing form known-to-work setups. > Cause you''re basically ignoring those who''ve spend time to help you. > Cause you basically guarantee that it''s NOT going to work, by putting > things like misspelled program names on bootloader line > > -- > Fajar >-- Tapas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users