Hi Guys, I have Debian 6 + Xen 4.1.1 and created a DomU with virt-manager after creation: laptopvm:~# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 1024 1 r----- 729.1 centos-4 512 1 0.0 laptopvm:~# Its config file is in: /var/lib/xend/domains/c0e57693-78a5-0a0b-89b6-93034535ab5a/config.sxp Then I did a P2V of another OS and I have the *.img file and the config file but I can''t get Xen recognize it as another domU. How can I make Xen/Xend do that as well as generate the UUIDs for the domU''s devices in its config.sxp file ? Any useful commands? Regards, Tony. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, What config file format do you have? A xml file, the native xen config file (just a check of python code) or the config.sxp format? You''ll need to get xend to recognise the config file first, and to do that you''ll need to import it. virsh has a number of tools to help with that - if you have a python config, you can do a virsh domxml-from-native config.file> config.xml&& virsh define config.xml If you have the config.sxp format, I''m afraid I''ve got no clue how to help you - From what I understand it''s a copy of the stuff in xenstore, so I''m not sure if you can simply create a folder with the domU''s uuid and move the config file there and expect it to work. You could try creating a native xen config file from the examples in /etc/xen, and just specify the disk image to use, then just do a xm start config.file Hope that helped.. - Kyle On 26/11/2011 3:12 PM, Antonio Colin wrote:> Hi Guys, > > I have Debian 6 + Xen 4.1.1 and created a DomU with virt-manager after > creation: > > laptopvm:~# xm list > Name ID Mem VCPUs > State Time(s) > Domain-0 0 1024 1 > r----- 729.1 > centos-4 512 > 1 0.0 > laptopvm:~# > > Its config file is in: > /var/lib/xend/domains/c0e57693-78a5-0a0b-89b6-93034535ab5a/config.sxp > > Then I did a P2V of another OS and I have the *.img file and the > config file but I > can''t get Xen recognize it as another domU. > > How can I make Xen/Xend do that as well as generate the UUIDs for the > domU''s devices in its config.sxp file ? > Any useful commands? > > Regards, > Tony. > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Kyle, Sorry for late reply but I was trying this, finally I got this error: root@neutrino:~# virsh -c xen:/// domxml-from-native xen-xm winxp.cfgerror: Unknown failureroot@neutrino:~# virsh domxml-from-native xen-xm winxp.cfg > config.xml && virsh define config.xmlerror: Unknown failureroot@neutrino:~# My config file is Python format and it''s here: http://pastebin.com/yc9qBSSJAnd the libvirt and hypervisor versions I am using are these: root@neutrino:~# virsh versionCompiled against library: libvir 0.8.3Using library: libvir 0.8.3Using API: Xen 3.0.1Running hypervisor: Xen 4.1.0root@neutrino:~# Thank you,Tony. Date: Sun, 27 Nov 2011 10:14:42 +0800 From: kyl191@kyl191.net To: dftonywhite@hotmail.com CC: xen-users@lists.xensource.com Subject: Re: [Xen-users] How to make a P2V domU be recognized by Xend Hi, What config file format do you have? A xml file, the native xen config file (just a check of python code) or the config.sxp format? You''ll need to get xend to recognise the config file first, and to do that you''ll need to import it. virsh has a number of tools to help with that - if you have a python config, you can do a virsh domxml-from-native config.file > config.xml && virsh define config.xml If you have the config.sxp format, I''m afraid I''ve got no clue how to help you - From what I understand it''s a copy of the stuff in xenstore, so I''m not sure if you can simply create a folder with the domU''s uuid and move the config file there and expect it to work. You could try creating a native xen config file from the examples in /etc/xen, and just specify the disk image to use, then just do a xm start config.file Hope that helped.. - Kyle On 26/11/2011 3:12 PM, Antonio Colin wrote: Hi Guys, I have Debian 6 + Xen 4.1.1 and created a DomU with virt-manager after creation: laptopvm:~# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 1024 1 r----- 729.1 centos-4 512 1 0.0 laptopvm:~# Its config file is in: /var/lib/xend/domains/c0e57693-78a5-0a0b-89b6-93034535ab5a/config.sxp Then I did a P2V of another OS and I have the *.img file and the config file but I can''t get Xen recognize it as another domU. How can I make Xen/Xend do that as well as generate the UUIDs for the domU''s devices in its config.sxp file ? Any useful commands? Regards, Tony. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Tony, Those errors look like something's wrong with libvirt - http://wiki.libvirt.org/page/FAQ#error:_Unknown_Failure mentions that the "Unknown failure" messages are a result of bad error reporting in libvirt, but says more details should be available in dmesg and /var/log/messages.log Those libvirt versions are quite old though - I'm guessing Debian 6 is the stable release? http://packages.debian.org/stable/libvirt-bin says the version is still 0.8.3-5+squeeze2, when the latest release is 0.9.7 (http://libvirt.org/sources/) Any chance of using a backport? http://packages.debian.org/squeeze-backports/libvirt-bin is 0.9.6, so that might work better. I'm just wondering about the Xen API line - 4.0 to 4.1 made a number of changes, so I don't know what 3.0.1 to 4.1.0 would be like, and I'm thinking that might be the source of the errors. That said - your config file is a standard Xen config file, so it's strange that it'd be in /var/lib/xend/domains. You can get around virsh to at least see if it starts - Put the config (or a copy) in /etc/xen, and try xm create -c /etc/xen/filename. That should at least get Xen starting the domU, but not managing it yet. - Kyle On Thu, Dec 1, 2011 at 5:40 AM, Antonio Colin <dftonywhite@hotmail.com> wrote:> Hi Kyle, > > Sorry for late reply but I was trying this, finally I got this error: > > root@neutrino:~# virsh -c xen:/// domxml-from-native xen-xm winxp.cfg > error: Unknown failure > root@neutrino:~# virsh domxml-from-native xen-xm winxp.cfg > config.xml && > virsh define config.xml > error: Unknown failure > root@neutrino:~# > > My config file is Python format and it's here: http://pastebin.com/yc9qBSSJ > And the libvirt and hypervisor versions I am using are these: > > root@neutrino:~# virsh version > Compiled against library: libvir 0.8.3 > Using library: libvir 0.8.3 > Using API: Xen 3.0.1 > Running hypervisor: Xen 4.1.0 > root@neutrino:~# > > Thank you, > Tony. > ________________________________ > Date: Sun, 27 Nov 2011 10:14:42 +0800 > From: kyl191@kyl191.net > To: dftonywhite@hotmail.com > CC: xen-users@lists.xensource.com > Subject: Re: [Xen-users] How to make a P2V domU be recognized by Xend > > > Hi, > What config file format do you have? A xml file, the native xen config file > (just a check of python code) or the config.sxp format? > > You'll need to get xend to recognise the config file first, and to do that > you'll need to import it. virsh has a number of tools to help with that - if > you have a python config, you can do a > > virsh domxml-from-native config.file > config.xml && virsh define config.xml > > If you have the config.sxp format, I'm afraid I've got no clue how to help > you - From what I understand it's a copy of the stuff in xenstore, so I'm > not sure if you can simply create a folder with the domU's uuid and move the > config file there and expect it to work. You could try creating a native xen > config file from the examples in /etc/xen, and just specify the disk image > to use, then just do a xm start config.file > > Hope that helped.. > > - Kyle > > On 26/11/2011 3:12 PM, Antonio Colin wrote: > > Hi Guys, > > I have Debian 6 + Xen 4.1.1 and created a DomU with virt-manager after > creation: > > laptopvm:~# xm list > Name ID Mem VCPUs State > Time(s) > Domain-0 0 1024 1 > r----- 729.1 > centos-4 512 > 1 0.0 > laptopvm:~# > > Its config file is in: > /var/lib/xend/domains/c0e57693-78a5-0a0b-89b6-93034535ab5a/config.sxp > > Then I did a P2V of another OS and I have the *.img file and the config file > but I > can't get Xen recognize it as another domU. > > How can I make Xen/Xend do that as well as generate the UUIDs for the domU's > devices in its config.sxp file ? > Any useful commands? > > Regards, > Tony. > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Kyle, Thanks so much for your time and advice, I must say it''s been far much helpful and I appreciate it. I have upgraded to the most recent version of libvirt for AMD64 architecture which is 0.9.2-7(http://packages.debian.org/squeeze-backports/amd64/libvirt0/download) and this is the result: root@neutrino:~# virsh versionCompiled against library: libvir 0.9.2Using library: libvir 0.9.2Using API: Xen 3.0.1Running hypervisor: Xen 4.1.0root@neutrino:~# The UNIX socket interface is enabled: (xend-unix-server yes). No clue about the Xen API line yet. Here is a new phenomenon though:root@neutrino:~# virsh -c xen:/// domxml-from-native xen-xm winxp.cfg > config.xml error: An error occurred, but the cause is unknownroot@neutrino:~# As you''ve perfectly described I can actually start the domain using: #xm create winxp.cfg. And again, the control is managed by xm and # virsh list --all doesn''t show anything. Virsh cannot create the domain since it is not in an XML format nor can it start it because it is not a libvirt managed domain. There are no last entries either in /var/log/messages or /var/log/libvirt/libvirtd.log. Virsh and virt-manager are working fine and can indeed connect to the hypervisor. And just one last question: remus (for HA), is independent of all the libvirt management and workarounds? I mean, can I use both things at the same time?, because I see virsh / virt-manager can in fact migrate domains, but it is just live-migration and not intended for HA. Thank you once again! Tony. _______________________________________________________________________________________> From: kyl191@kyl191.net > Date: Thu, 1 Dec 2011 11:34:06 +0800 > Subject: Re: [Xen-users] How to make a P2V domU be recognized by Xend > To: dftonywhite@hotmail.com > CC: xen-users@lists.xensource.com > > Hi Tony, > Those errors look like something''s wrong with libvirt - > http://wiki.libvirt.org/page/FAQ#error:_Unknown_Failure mentions that > the "Unknown failure" messages are a result of bad error reporting in > libvirt, but says more details should be available in dmesg and > /var/log/messages.log > > Those libvirt versions are quite old though - I''m guessing Debian 6 is > the stable release? http://packages.debian.org/stable/libvirt-bin says > the version is still 0.8.3-5+squeeze2, when the latest release is > 0.9.7 (http://libvirt.org/sources/) > > Any chance of using a backport? > http://packages.debian.org/squeeze-backports/libvirt-bin is 0.9.6, so > that might work better. I''m just wondering about the Xen API line - > 4.0 to 4.1 made a number of changes, so I don''t know what 3.0.1 to > 4.1.0 would be like, and I''m thinking that might be the source of the > errors. > > That said - your config file is a standard Xen config file, so it''s > strange that it''d be in /var/lib/xend/domains. You can get around > virsh to at least see if it starts - Put the config (or a copy) in > /etc/xen, and try xm create -c /etc/xen/filename. That should at least > get Xen starting the domU, but not managing it yet. > > - Kyle > > On Thu, Dec 1, 2011 at 5:40 AM, Antonio Colin <dftonywhite@hotmail.com> wrote: > > Hi Kyle, > > > > Sorry for late reply but I was trying this, finally I got this error: > > > > root@neutrino:~# virsh -c xen:/// domxml-from-native xen-xm winxp.cfg > > error: Unknown failure > > root@neutrino:~# virsh domxml-from-native xen-xm winxp.cfg > config.xml && > > virsh define config.xml > > error: Unknown failure > > root@neutrino:~# > > > > My config file is Python format and it''s here: http://pastebin.com/yc9qBSSJ > > And the libvirt and hypervisor versions I am using are these: > > > > root@neutrino:~# virsh version > > Compiled against library: libvir 0.8.3 > > Using library: libvir 0.8.3 > > Using API: Xen 3.0.1 > > Running hypervisor: Xen 4.1.0 > > root@neutrino:~# > > > > Thank you, > > Tony. > > ________________________________ > > Date: Sun, 27 Nov 2011 10:14:42 +0800 > > From: kyl191@kyl191.net > > To: dftonywhite@hotmail.com > > CC: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] How to make a P2V domU be recognized by Xend > > > > > > Hi, > > What config file format do you have? A xml file, the native xen config file > > (just a check of python code) or the config.sxp format? > > > > You''ll need to get xend to recognise the config file first, and to do that > > you''ll need to import it. virsh has a number of tools to help with that - if > > you have a python config, you can do a > > > > virsh domxml-from-native config.file > config.xml && virsh define config.xml > > > > If you have the config.sxp format, I''m afraid I''ve got no clue how to help > > you - From what I understand it''s a copy of the stuff in xenstore, so I''m > > not sure if you can simply create a folder with the domU''s uuid and move the > > config file there and expect it to work. You could try creating a native xen > > config file from the examples in /etc/xen, and just specify the disk image > > to use, then just do a xm start config.file > > > > Hope that helped.. > > > > - Kyle > > > > On 26/11/2011 3:12 PM, Antonio Colin wrote: > > > > Hi Guys, > > > > I have Debian 6 + Xen 4.1.1 and created a DomU with virt-manager after > > creation: > > > > laptopvm:~# xm list > > Name ID Mem VCPUs State > > Time(s) > > Domain-0 0 1024 1 > > r----- 729.1 > > centos-4 512 > > 1 0.0 > > laptopvm:~# > > > > Its config file is in: > > /var/lib/xend/domains/c0e57693-78a5-0a0b-89b6-93034535ab5a/config.sxp > > > > Then I did a P2V of another OS and I have the *.img file and the config file > > but I > > can''t get Xen recognize it as another domU. > > > > How can I make Xen/Xend do that as well as generate the UUIDs for the domU''s > > devices in its config.sxp file ? > > Any useful commands? > > > > Regards, > > Tony. > > > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Tony, I just tried converting your linked config file myself. I''m getting the same error message as you, so it seems to be a bug in virsh/libvirt. For the record, this is my system: [root@elemental log]# virsh version Compiled against library: libvir 0.9.6 Using library: libvir 0.9.6 Using API: Xen 0.9.6 Running hypervisor: Xen 4.1.0 I''d suggest filing a bug in Debian and attaching your config file as a reference. I''m going to poke around a bit more with the libvirt debug options when I get back from a trip on Sunday, and based on the results of that I might file a bug in Fedora too. One thing you might be able to try - run "xm new config.file". It''s listed under "Common ''xm'' commands" as " Adds a domain to Xend domain management". That might get it into libvirt/virsh, it might not. On my system it''s not working, complaining about "No module named lxml", so I need to go find the module & install it. As for your Remus question, I''ve never used Remus before, but as far as I know, Remus + Xen/libvirt can be run independently. At one point in time there was mention of being able to specify a disk like ''phy:remus:/dev/vg/lv'' in your domain config file, and Xen would take care of some configuration options, but I''m not sure what happened to it. Hopefully someone has a known-accurate answer. Good luck! - Kyle On 1/12/2011 8:57 PM, Antonio Colin wrote:> Hi Kyle, > > Thanks so much for your time and advice, I must say it''s been far much > helpful and I appreciate it. > I have upgraded to the most recent version of libvirt for AMD64 > architecture which is 0.9.2-7 > (http://packages.debian.org/squeeze-backports/amd64/libvirt0/download) > and this is the result: > > root@neutrino:~# virsh version > Compiled against library: libvir 0.9.2 > Using library: libvir 0.9.2 > Using API: Xen 3.0.1 > Running hypervisor: Xen 4.1.0 > root@neutrino:~# > > The UNIX socket interface is enabled: (xend-unix-server yes). No clue > about the Xen API line yet. > > Here is a new phenomenon though: > root@neutrino:~# virsh -c xen:/// domxml-from-native xen-xm winxp.cfg > > config.xml > error: An error occurred, but the cause is unknown > root@neutrino:~# > > As you''ve perfectly described I can actually start the domain using: > #xm create winxp.cfg. And again, the control is managed by > xm and # virsh list --all doesn''t show anything. Virsh cannot create > the domain since it is not in an XML format nor can it start it > because it is not a libvirt managed domain. > There are no last entries either in /var/log/messages or > /var/log/libvirt/libvirtd.log. Virsh and virt-manager are working fine > and can > indeed connect to the hypervisor. > > And just one last question: remus (for HA), is independent of all the > libvirt management and workarounds? I mean, can I use both things > at the same time?, because I see virsh / virt-manager can in fact > migrate domains, but it is just live-migration and not intended for HA. > > Thank you once again! > > Tony. > > _______________________________________________________________________________________ > > From: kyl191@kyl191.net > > Date: Thu, 1 Dec 2011 11:34:06 +0800 > > Subject: Re: [Xen-users] How to make a P2V domU be recognized by Xend > > To: dftonywhite@hotmail.com > > CC: xen-users@lists.xensource.com > > > > Hi Tony, > > Those errors look like something''s wrong with libvirt - > > http://wiki.libvirt.org/page/FAQ#error:_Unknown_Failure mentions that > > the "Unknown failure" messages are a result of bad error reporting in > > libvirt, but says more details should be available in dmesg and > > /var/log/messages.log > > > > Those libvirt versions are quite old though - I''m guessing Debian 6 is > > the stable release? http://packages.debian.org/stable/libvirt-bin says > > the version is still 0.8.3-5+squeeze2, when the latest release is > > 0.9.7 (http://libvirt.org/sources/) > > > > Any chance of using a backport? > > http://packages.debian.org/squeeze-backports/libvirt-bin is 0.9.6, so > > that might work better. I''m just wondering about the Xen API line - > > 4.0 to 4.1 made a number of changes, so I don''t know what 3.0.1 to > > 4.1.0 would be like, and I''m thinking that might be the source of the > > errors. > > > > That said - your config file is a standard Xen config file, so it''s > > strange that it''d be in /var/lib/xend/domains. You can get around > > virsh to at least see if it starts - Put the config (or a copy) in > > /etc/xen, and try xm create -c /etc/xen/filename. That should at least > > get Xen starting the domU, but not managing it yet. > > > > - Kyle > > > > On Thu, Dec 1, 2011 at 5:40 AM, Antonio Colin > <dftonywhite@hotmail.com> wrote: > > > Hi Kyle, > > > > > > Sorry for late reply but I was trying this, finally I got this error: > > > > > > root@neutrino:~# virsh -c xen:/// domxml-from-native xen-xm winxp.cfg > > > error: Unknown failure > > > root@neutrino:~# virsh domxml-from-native xen-xm winxp.cfg > > config.xml && > > > virsh define config.xml > > > error: Unknown failure > > > root@neutrino:~# > > > > > > My config file is Python format and it''s > here: http://pastebin.com/yc9qBSSJ > > > And the libvirt and hypervisor versions I am using are these: > > > > > > root@neutrino:~# virsh version > > > Compiled against library: libvir 0.8.3 > > > Using library: libvir 0.8.3 > > > Using API: Xen 3.0.1 > > > Running hypervisor: Xen 4.1.0 > > > root@neutrino:~# > > > > > > Thank you, > > > Tony. > > > ________________________________ > > > Date: Sun, 27 Nov 2011 10:14:42 +0800 > > > From: kyl191@kyl191.net > > > To: dftonywhite@hotmail.com > > > CC: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] How to make a P2V domU be recognized by Xend > > > > > > > > > Hi, > > > What config file format do you have? A xml file, the native xen > config file > > > (just a check of python code) or the config.sxp format? > > > > > > You''ll need to get xend to recognise the config file first, and to > do that > > > you''ll need to import it. virsh has a number of tools to help with > that - if > > > you have a python config, you can do a > > > > > > virsh domxml-from-native config.file > config.xml && virsh define > config.xml > > > > > > If you have the config.sxp format, I''m afraid I''ve got no clue how > to help > > > you - From what I understand it''s a copy of the stuff in xenstore, > so I''m > > > not sure if you can simply create a folder with the domU''s uuid > and move the > > > config file there and expect it to work. You could try creating a > native xen > > > config file from the examples in /etc/xen, and just specify the > disk image > > > to use, then just do a xm start config.file > > > > > > Hope that helped.. > > > > > > - Kyle > > > > > > On 26/11/2011 3:12 PM, Antonio Colin wrote: > > > > > > Hi Guys, > > > > > > I have Debian 6 + Xen 4.1.1 and created a DomU with virt-manager after > > > creation: > > > > > > laptopvm:~# xm list > > > Name ID Mem VCPUs State > > > Time(s) > > > Domain-0 0 1024 1 > > > r----- 729.1 > > > centos-4 512 > > > 1 0.0 > > > laptopvm:~# > > > > > > Its config file is in: > > > /var/lib/xend/domains/c0e57693-78a5-0a0b-89b6-93034535ab5a/config.sxp > > > > > > Then I did a P2V of another OS and I have the *.img file and the > config file > > > but I > > > can''t get Xen recognize it as another domU. > > > > > > How can I make Xen/Xend do that as well as generate the UUIDs for > the domU''s > > > devices in its config.sxp file ? > > > Any useful commands? > > > > > > Regards, > > > Tony. > > > > > > > > > > > > _______________________________________________ > > > Xen-users mailing list > > > Xen-users@lists.xensource.com > > > http://lists.xensource.com/xen-users > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hello Kyle, I hope you are having a good day, I have just submitted the bug report to Debian libvirt maintainers and awaiting further information. I did exactly what you suggest and in fact it worked in the end :D.The error: ImportError: No module named lxml also was an issue to me but I tried this: # dpkg -i python-lxml_2.2.8-2_amd64.deb It finishes with errors but #xm new is able to work, I am afraid my python2.6 is not yet properly configured though.I''ve pasted a complete output of this to convert to XML here: http://paste.debian.net/147767/ Fortunately it got into libvirt :). I will start now to test remus on this and see if I need the option you mention. I think that is everything, so Kyle thank you for you much appreciated help, it would have been far more difficultwithout you. By the way, enjoy your trip! ;) Tony. Date: Thu, 1 Dec 2011 23:41:20 +0800 From: kyl191@kyl191.net To: dftonywhite@hotmail.com CC: xen-users@lists.xensource.com Subject: Re: [Xen-users] How to make a P2V domU be recognized by Xend Hi Tony, I just tried converting your linked config file myself. I''m getting the same error message as you, so it seems to be a bug in virsh/libvirt. For the record, this is my system: [root@elemental log]# virsh version Compiled against library: libvir 0.9.6 Using library: libvir 0.9.6 Using API: Xen 0.9.6 Running hypervisor: Xen 4.1.0 I''d suggest filing a bug in Debian and attaching your config file as a reference. I''m going to poke around a bit more with the libvirt debug options when I get back from a trip on Sunday, and based on the results of that I might file a bug in Fedora too. One thing you might be able to try - run "xm new config.file". It''s listed under "Common ''xm'' commands" as " Adds a domain to Xend domain management". That might get it into libvirt/virsh, it might not. On my system it''s not working, complaining about "No module named lxml", so I need to go find the module & install it. As for your Remus question, I''ve never used Remus before, but as far as I know, Remus + Xen/libvirt can be run independently. At one point in time there was mention of being able to specify a disk like ''phy:remus:/dev/vg/lv'' in your domain config file, and Xen would take care of some configuration options, but I''m not sure what happened to it. Hopefully someone has a known-accurate answer. Good luck! - Kyle On 1/12/2011 8:57 PM, Antonio Colin wrote: Hi Kyle, Thanks so much for your time and advice, I must say it''s been far much helpful and I appreciate it. I have upgraded to the most recent version of libvirt for AMD64 architecture which is 0.9.2-7 (http://packages.debian.org/squeeze-backports/amd64/libvirt0/download) and this is the result: root@neutrino:~# virsh version Compiled against library: libvir 0.9.2 Using library: libvir 0.9.2 Using API: Xen 3.0.1 Running hypervisor: Xen 4.1.0 root@neutrino:~# The UNIX socket interface is enabled: (xend-unix-server yes). No clue about the Xen API line yet. Here is a new phenomenon though: root@neutrino:~# virsh -c xen:/// domxml-from-native xen-xm winxp.cfg > config.xml error: An error occurred, but the cause is unknown root@neutrino:~# As you''ve perfectly described I can actually start the domain using: #xm create winxp.cfg. And again, the control is managed by xm and # virsh list --all doesn''t show anything. Virsh cannot create the domain since it is not in an XML format nor can it start it because it is not a libvirt managed domain. There are no last entries either in /var/log/messages or /var/log/libvirt/libvirtd.log. Virsh and virt-manager are working fine and can indeed connect to the hypervisor. And just one last question: remus (for HA), is independent of all the libvirt management and workarounds? I mean, can I use both things at the same time?, because I see virsh / virt-manager can in fact migrate domains, but it is just live-migration and not intended for HA. Thank you once again! Tony. _______________________________________________________________________________________ > From: kyl191@kyl191.net > Date: Thu, 1 Dec 2011 11:34:06 +0800 > Subject: Re: [Xen-users] How to make a P2V domU be recognized by Xend > To: dftonywhite@hotmail.com > CC: xen-users@lists.xensource.com > > Hi Tony, > Those errors look like something''s wrong with libvirt - > http://wiki.libvirt.org/page/FAQ#error:_Unknown_Failure mentions that > the "Unknown failure" messages are a result of bad error reporting in > libvirt, but says more details should be available in dmesg and > /var/log/messages.log > > Those libvirt versions are quite old though - I''m guessing Debian 6 is > the stable release? http://packages.debian.org/stable/libvirt-bin says > the version is still 0.8.3-5+squeeze2, when the latest release is > 0.9.7 (http://libvirt.org/sources/) > > Any chance of using a backport? > http://packages.debian.org/squeeze-backports/libvirt-bin is 0.9.6, so > that might work better. I''m just wondering about the Xen API line - > 4.0 to 4.1 made a number of changes, so I don''t know what 3.0.1 to > 4.1.0 would be like, and I''m thinking that might be the source of the > errors. > > That said - your config file is a standard Xen config file, so it''s > strange that it''d be in /var/lib/xend/domains. You can get around > virsh to at least see if it starts - Put the config (or a copy) in > /etc/xen, and try xm create -c /etc/xen/filename. That should at least > get Xen starting the domU, but not managing it yet. > > - Kyle > > On Thu, Dec 1, 2011 at 5:40 AM, Antonio Colin <dftonywhite@hotmail.com> wrote: > > Hi Kyle, > > > > Sorry for late reply but I was trying this, finally I got this error: > > > > root@neutrino:~# virsh -c xen:/// domxml-from-native xen-xm winxp.cfg > > error: Unknown failure > > root@neutrino:~# virsh domxml-from-native xen-xm winxp.cfg > config.xml && > > virsh define config.xml > > error: Unknown failure > > root@neutrino:~# > > > > My config file is Python format and it''s here: http://pastebin.com/yc9qBSSJ > > And the libvirt and hypervisor versions I am using are these: > > > > root@neutrino:~# virsh version > > Compiled against library: libvir 0.8.3 > > Using library: libvir 0.8.3 > > Using API: Xen 3.0.1 > > Running hypervisor: Xen 4.1.0 > > root@neutrino:~# > > > > Thank you, > > Tony. > > ________________________________ > > Date: Sun, 27 Nov 2011 10:14:42 +0800 > > From: kyl191@kyl191.net > > To: dftonywhite@hotmail.com > > CC: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] How to make a P2V domU be recognized by Xend > > > > > > Hi, > > What config file format do you have? A xml file, the native xen config file > > (just a check of python code) or the config.sxp format? > > > > You''ll need to get xend to recognise the config file first, and to do that > > you''ll need to import it. virsh has a number of tools to help with that - if > > you have a python config, you can do a > > > > virsh domxml-from-native config.file > config.xml && virsh define config.xml > > > > If you have the config.sxp format, I''m afraid I''ve got no clue how to help > > you - From what I understand it''s a copy of the stuff in xenstore, so I''m > > not sure if you can simply create a folder with the domU''s uuid and move the > > config file there and expect it to work. You could try creating a native xen > > config file from the examples in /etc/xen, and just specify the disk image > > to use, then just do a xm start config.file > > > > Hope that helped.. > > > > - Kyle > > > > On 26/11/2011 3:12 PM, Antonio Colin wrote: > > > > Hi Guys, > > > > I have Debian 6 + Xen 4.1.1 and created a DomU with virt-manager after > > creation: > > > > laptopvm:~# xm list > > Name ID Mem VCPUs State > > Time(s) > > Domain-0 0 1024 1 > > r----- 729.1 > > centos-4 512 > > 1 0.0 > > laptopvm:~# > > > > Its config file is in: > > /var/lib/xend/domains/c0e57693-78a5-0a0b-89b6-93034535ab5a/config.sxp > > > > Then I did a P2V of another OS and I have the *.img file and the config file > > but I > > can''t get Xen recognize it as another domU. > > > > How can I make Xen/Xend do that as well as generate the UUIDs for the domU''s > > devices in its config.sxp file ? > > Any useful commands? > > > > Regards, > > Tony. > > > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Seemingly Similar Threads
- Xen doesn't boot on grub2 or xend doesn't start
- Xen doesn't boot on grub2 or xend doesn't start
- fail to convert qemu xml to args with libvirt-1.0.4: An error occurred, but the cause is unknown
- migrating from xend to libxl after xen
- How to get pygrub to load grub2 guest on Squeeze Dom0.