[libvirt-users] Host does not support virtualization type 'xen'

Hello Community, I successfully installed and run xen (xm list and xm info (but virt_caps only has hvm) can output appropriately). However, while I was installing domU image by using virt-install -p at domU OS. I encountered an error information" Host does not support virtualization type 'xen' ". I built xen from source. Some of my friends have the same issue, but if they use pre-build xen, the issue will go away. However, I want to insist in using my version of xen (build from source). Does anyone can give any hint about this error? I asked the same question at xen community and they said this is not a issue from xen but libvirt. Meanwhile they told me I need to rebuild libvirt to adapt my current version of Xen. However, after I re-build xen (download, decompress, ./configure, make, make install), the error is still there. Can anyone let me know if I built the libvirt correctly? Do I need to do anything specific to my current version (4.1.2) of Xen? I'll appreciate if any suggestions can be given, Thanks, -- Su Zhang Ph.D Candidate Computing and Information Sciences Kansas State University

On 03/14/2012 10:43 AM, Su Zhang wrote:
Hello Community,
I successfully installed and run xen (xm list and xm info (but virt_caps only has hvm) can output appropriately). However, while I was installing domU image by using virt-install -p at domU OS. I encountered an error information" Host does not support virtualization type 'xen' ". I built xen from source. Some of my friends have the same issue, but if they use pre-build xen, the issue will go away. However, I want to insist in using my version of xen (build from source). Does anyone can give any hint about this error?
I asked the same question at xen community and they said this is not a issue from xen but libvirt. Meanwhile they told me I need to rebuild libvirt to adapt my current version of Xen.
However, after I re-build xen (download, decompress, ./configure, make, make install), the error is still there. Can anyone let me know if I built the libvirt correctly? Do I need to do anything specific to my current version (4.1.2) of Xen?
With your self-built libvirt, what does this say: virsh --version=long If it doesn't include 'Hypervisors: Xen', then you didn't have the prerequisite build dependencies in place when you built libvirt, so configure automatically disabled xen. You may also want to check the tail of config.log, where it lists which options were auto-detected. -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

Thanks for your reply. Yet it seems that it does support Xen based on the running script: virsh --version=long Virsh command line tool of libvirt 0.9.10 See web site at http://libvirt.org/ Compiled with support for: Hypervisors: Xen QEmu/KVM UML OpenVZ VirtualBox LXC Test Networking: Remote Daemon Network Bridging Nwfilter VirtualPort Storage: Dir Filesystem SCSI Multipath iSCSI LVM Miscellaneous: SELinux Secrets Debug Do you think the output is normal? Or are there any other possible reasons for this error? Thanks, On Wed, Mar 14, 2012 at 12:15 PM, Eric Blake <eblake@redhat.com> wrote:
On 03/14/2012 10:43 AM, Su Zhang wrote:
Hello Community,
I successfully installed and run xen (xm list and xm info (but virt_caps only has hvm) can output appropriately). However, while I was installing domU image by using virt-install -p at domU OS. I encountered an error information" Host does not support virtualization type 'xen' ". I built xen from source. Some of my friends have the same issue, but if they use pre-build xen, the issue will go away. However, I want to insist in using my version of xen (build from source). Does anyone can give any hint about this error?
I asked the same question at xen community and they said this is not a issue from xen but libvirt. Meanwhile they told me I need to rebuild libvirt to adapt my current version of Xen.
However, after I re-build xen (download, decompress, ./configure, make, make install), the error is still there. Can anyone let me know if I built the libvirt correctly? Do I need to do anything specific to my current version (4.1.2) of Xen?
With your self-built libvirt, what does this say: virsh --version=long
If it doesn't include 'Hypervisors: Xen', then you didn't have the prerequisite build dependencies in place when you built libvirt, so configure automatically disabled xen. You may also want to check the tail of config.log, where it lists which options were auto-detected.
-- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
-- Su Zhang Ph.D Candidate Computing and Information Sciences Kansas State University

[please don't top-post on technical lists - I've reformatted my reply] On 03/14/2012 11:24 AM, Su Zhang wrote:
However, while I was installing domU image by using virt-install -p at domU OS. I encountered an error information" Host does not support virtualization type 'xen' ".
Thanks for your reply. Yet it seems that it does support Xen based on the running script:
virsh --version=long Virsh command line tool of libvirt 0.9.10 See web site at http://libvirt.org/
Compiled with support for: Hypervisors: Xen QEmu/KVM UML OpenVZ VirtualBox LXC Test
Good. The next step is determining which hypervisor you are connecting to by default: virsh uri If that isn't right (for example, if it returns qemu:///system), then you need to modify how you are calling virt-install to pass an explicit URI (or set LIBVIRT_DEFAULT_URI in your environment). Try 'virt-install -c xen:///' to force libvirt to talk to the xen hypervisor. http://libvirt.org/uri.html gives more details on setting a URI. -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

The issue hasn't been eliminated. Here is the running script: [root@XenTester su]# virt-install -p -c xen:/// ERROR Host does not support virtualization type 'xen' [root@XenTester su]# virsh uri xen:/// [root@XenTester su]# Any other possibilities? On Wed, Mar 14, 2012 at 12:30 PM, Eric Blake <eblake@redhat.com> wrote:
[please don't top-post on technical lists - I've reformatted my reply]
On 03/14/2012 11:24 AM, Su Zhang wrote:
However, while I was installing domU image by using virt-install -p at domU OS. I encountered an error information" Host does not support virtualization type 'xen' ".
Thanks for your reply. Yet it seems that it does support Xen based on the running script:
virsh --version=long Virsh command line tool of libvirt 0.9.10 See web site at http://libvirt.org/
Compiled with support for: Hypervisors: Xen QEmu/KVM UML OpenVZ VirtualBox LXC Test
Good. The next step is determining which hypervisor you are connecting to by default:
virsh uri
If that isn't right (for example, if it returns qemu:///system), then you need to modify how you are calling virt-install to pass an explicit URI (or set LIBVIRT_DEFAULT_URI in your environment). Try 'virt-install -c xen:///' to force libvirt to talk to the xen hypervisor. http://libvirt.org/uri.html gives more details on setting a URI.
-- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
-- Su Zhang Ph.D Candidate Computing and Information Sciences Kansas State University

On Wed, Mar 14, 2012 at 12:30 PM, Eric Blake <eblake@redhat.com> wrote:
[please don't top-post on technical lists - I've reformatted my reply]
On 03/14/2012 11:24 AM, Su Zhang wrote:
However, while I was installing domU image by using virt-install -p at domU OS. I encountered an error information" Host does not support virtualization type 'xen' ".
Thanks for your reply. Yet it seems that it does support Xen based on the running script:
virsh --version=long Virsh command line tool of libvirt 0.9.10 See web site at http://libvirt.org/
Compiled with support for: Hypervisors: Xen QEmu/KVM UML OpenVZ VirtualBox LXC Test
Good. The next step is determining which hypervisor you are connecting to by default:
virsh uri
If that isn't right (for example, if it returns qemu:///system), then you need to modify how you are calling virt-install to pass an explicit URI (or set LIBVIRT_DEFAULT_URI in your environment). Try 'virt-install -c xen:///' to force libvirt to talk to the xen hypervisor. http://libvirt.org/uri.html gives more details on setting a URI.
-- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
The issue hasn't been eliminated. Here is the running script: [root@XenTester su]# virt-install -p -c xen:/// ERROR Host does not support virtualization type 'xen' [root@XenTester su]# virsh uri xen:/// [root@XenTester su]# Any other possibilities? -- Su Zhang Ph.D Candidate Computing and Information Sciences Kansas State University

Hi Su, Could you attach your virt-install log file as a attachment? for example, log file is put in $HOME/.virtinst/virt-install.log. or using virt-install with -d option then paste debugger info in here. Regards & Thanks, Alex ----- Original Message ----- From: "Su Zhang" <westlifezs@gmail.com> To: "Eric Blake" <eblake@redhat.com> Cc: libvirt-users@redhat.com Sent: Thursday, March 15, 2012 10:35:27 PM Subject: Re: [libvirt-users] Host does not support virtualization type 'xen' On Wed, Mar 14, 2012 at 12:30 PM, Eric Blake < eblake@redhat.com > wrote: [please don't top-post on technical lists - I've reformatted my reply] On 03/14/2012 11:24 AM, Su Zhang wrote:
However, while I was installing domU image by using virt-install -p at domU OS. I encountered an error information" Host does not support virtualization type 'xen' ".
Thanks for your reply. Yet it seems that it does support Xen based on the running script:
virsh --version=long Virsh command line tool of libvirt 0.9.10 See web site at http://libvirt.org/
Compiled with support for: Hypervisors: Xen QEmu/KVM UML OpenVZ VirtualBox LXC Test
Good. The next step is determining which hypervisor you are connecting to by default: virsh uri If that isn't right (for example, if it returns qemu:///system), then you need to modify how you are calling virt-install to pass an explicit URI (or set LIBVIRT_DEFAULT_URI in your environment). Try 'virt-install -c xen:///' to force libvirt to talk to the xen hypervisor. http://libvirt.org/uri.html gives more details on setting a URI. -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org The issue hasn't been eliminated. Here is the running script: [root@XenTester su]# virt-install -p -c xen:/// ERROR Host does not support virtualization type 'xen' [root@XenTester su]# virsh uri xen:/// [root@XenTester su]# Any other possibilities? -- Su Zhang Ph.D Candidate Computing and Information Sciences Kansas State University _______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

Alex, Thanks for reply. Here is the debugger info: [root@XenTester su]# virt-install -p -d Thu, 15 Mar 2012 10:04:04 DEBUG Launched with command line: /usr/bin/virt-install -p -d Thu, 15 Mar 2012 10:04:04 DEBUG Requesting libvirt URI default Thu, 15 Mar 2012 10:04:05 DEBUG Received libvirt URI qemu:///system Thu, 15 Mar 2012 10:04:05 DEBUG Requesting virt method 'xen', hv type 'default'. Thu, 15 Mar 2012 10:04:05 ERROR Host does not support virtualization type 'xen' Thu, 15 Mar 2012 10:04:05 DEBUG Traceback (most recent call last): File "/usr/bin/virt-install", line 274, in get_virt_type machine=options.machine) File "/usr/lib/python2.6/site-packages/virtinst/CapabilitiesParser.py", line 732, in guest_lookup {'virttype' : osstr, 'arch' : archstr}) ValueError: Host does not support virtualization type 'xen' On Thu, Mar 15, 2012 at 9:57 AM, Alex Jia <ajia@redhat.com> wrote:
Hi Su, Could you attach your virt-install log file as a attachment? for example, log file is put in $HOME/.virtinst/virt-install.log. or using virt-install with -d option then paste debugger info in here.
Regards & Thanks, Alex
----- Original Message ----- From: "Su Zhang" <westlifezs@gmail.com> To: "Eric Blake" <eblake@redhat.com> Cc: libvirt-users@redhat.com Sent: Thursday, March 15, 2012 10:35:27 PM Subject: Re: [libvirt-users] Host does not support virtualization type 'xen'
On Wed, Mar 14, 2012 at 12:30 PM, Eric Blake < eblake@redhat.com > wrote:
[please don't top-post on technical lists - I've reformatted my reply]
On 03/14/2012 11:24 AM, Su Zhang wrote:
However, while I was installing domU image by using virt-install -p at domU OS. I encountered an error information" Host does not support virtualization type 'xen' ".
Thanks for your reply. Yet it seems that it does support Xen based on the running script:
virsh --version=long Virsh command line tool of libvirt 0.9.10 See web site at http://libvirt.org/
Compiled with support for: Hypervisors: Xen QEmu/KVM UML OpenVZ VirtualBox LXC Test
Good. The next step is determining which hypervisor you are connecting to by default:
virsh uri
If that isn't right (for example, if it returns qemu:///system), then you need to modify how you are calling virt-install to pass an explicit URI (or set LIBVIRT_DEFAULT_URI in your environment). Try 'virt-install -c xen:///' to force libvirt to talk to the xen hypervisor. http://libvirt.org/uri.html gives more details on setting a URI.
-- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
The issue hasn't been eliminated. Here is the running script:
[root@XenTester su]# virt-install -p -c xen:/// ERROR Host does not support virtualization type 'xen' [root@XenTester su]# virsh uri xen:///
[root@XenTester su]#
Any other possibilities?
-- Su Zhang Ph.D Candidate Computing and Information Sciences Kansas State University
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
-- Su Zhang Ph.D Candidate Computing and Information Sciences Kansas State University

----- Original Message ----- From: "Su Zhang" <westlifezs@gmail.com> To: "Alex Jia" <ajia@redhat.com> Cc: libvirt-users@redhat.com, "Eric Blake" <eblake@redhat.com> Sent: Thursday, March 15, 2012 11:07:00 PM Subject: Re: [libvirt-users] Host does not support virtualization type 'xen' Alex, Thanks for reply. Here is the debugger info: [root@XenTester su]# virt-install -p -d Thu, 15 Mar 2012 10:04:04 DEBUG Launched with command line: /usr/bin/virt-install -p -d Thu, 15 Mar 2012 10:04:04 DEBUG Requesting libvirt URI default Thu, 15 Mar 2012 10:04:05 DEBUG Received libvirt URI qemu:///system I don't know why your libvirt URI is qemu:///system in here, I assume you haven't changed libvrt default URI, if you specify a URI with virt-install such as virt-install --connect=xen:/// -p -d say what? Thanks, Alex Thu, 15 Mar 2012 10:04:05 DEBUG Requesting virt method 'xen', hv type 'default'. Thu, 15 Mar 2012 10:04:05 ERROR Host does not support virtualization type 'xen' Thu, 15 Mar 2012 10:04:05 DEBUG Traceback (most recent call last): File "/usr/bin/virt-install", line 274, in get_virt_type machine=options.machine) File "/usr/lib/python2.6/site-packages/virtinst/CapabilitiesParser.py", line 732, in guest_lookup {'virttype' : osstr, 'arch' : archstr}) ValueError: Host does not support virtualization type 'xen' On Thu, Mar 15, 2012 at 9:57 AM, Alex Jia < ajia@redhat.com > wrote: Hi Su, Could you attach your virt-install log file as a attachment? for example, log file is put in $HOME/.virtinst/virt-install.log. or using virt-install with -d option then paste debugger info in here. Regards & Thanks, Alex ----- Original Message ----- From: "Su Zhang" < westlifezs@gmail.com > To: "Eric Blake" < eblake@redhat.com > Cc: libvirt-users@redhat.com Sent: Thursday, March 15, 2012 10:35:27 PM Subject: Re: [libvirt-users] Host does not support virtualization type 'xen' On Wed, Mar 14, 2012 at 12:30 PM, Eric Blake < eblake@redhat.com > wrote: [please don't top-post on technical lists - I've reformatted my reply] On 03/14/2012 11:24 AM, Su Zhang wrote:
However, while I was installing domU image by using virt-install -p at domU OS. I encountered an error information" Host does not support virtualization type 'xen' ".
Thanks for your reply. Yet it seems that it does support Xen based on the running script:
virsh --version=long Virsh command line tool of libvirt 0.9.10 See web site at http://libvirt.org/
Compiled with support for: Hypervisors: Xen QEmu/KVM UML OpenVZ VirtualBox LXC Test
Good. The next step is determining which hypervisor you are connecting to by default: virsh uri If that isn't right (for example, if it returns qemu:///system), then you need to modify how you are calling virt-install to pass an explicit URI (or set LIBVIRT_DEFAULT_URI in your environment). Try 'virt-install -c xen:///' to force libvirt to talk to the xen hypervisor. http://libvirt.org/uri.html gives more details on setting a URI. -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org The issue hasn't been eliminated. Here is the running script: [root@XenTester su]# virt-install -p -c xen:/// ERROR Host does not support virtualization type 'xen' [root@XenTester su]# virsh uri xen:/// [root@XenTester su]# Any other possibilities? -- Su Zhang Ph.D Candidate Computing and Information Sciences Kansas State University _______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users -- Su Zhang Ph.D Candidate Computing and Information Sciences Kansas State University

On Thu, Mar 15, 2012 at 10:18 AM, Alex Jia <ajia@redhat.com> wrote:
----- Original Message ----- From: "Su Zhang" <westlifezs@gmail.com> To: "Alex Jia" <ajia@redhat.com> Cc: libvirt-users@redhat.com, "Eric Blake" <eblake@redhat.com> Sent: Thursday, March 15, 2012 11:07:00 PM Subject: Re: [libvirt-users] Host does not support virtualization type 'xen'
Alex,
Thanks for reply. Here is the debugger info:
[root@XenTester su]# virt-install -p -d Thu, 15 Mar 2012 10:04:04 DEBUG Launched with command line: /usr/bin/virt-install -p -d Thu, 15 Mar 2012 10:04:04 DEBUG Requesting libvirt URI default Thu, 15 Mar 2012 10:04:05 DEBUG Received libvirt URI qemu:///system
I don't know why your libvirt URI is qemu:///system in here, I assume you haven't changed libvrt default URI, if you specify a URI with virt-install such as virt-install --connect=xen:/// -p -d say what?
Thanks, Alex
Thu, 15 Mar 2012 10:04:05 DEBUG Requesting virt method 'xen', hv type 'default'. Thu, 15 Mar 2012 10:04:05 ERROR Host does not support virtualization type 'xen' Thu, 15 Mar 2012 10:04:05 DEBUG Traceback (most recent call last): File "/usr/bin/virt-install", line 274, in get_virt_type machine=options.machine) File "/usr/lib/python2.6/site-packages/virtinst/CapabilitiesParser.py", line 732, in guest_lookup {'virttype' : osstr, 'arch' : archstr}) ValueError: Host does not support virtualization type 'xen'
On Thu, Mar 15, 2012 at 9:57 AM, Alex Jia < ajia@redhat.com > wrote:
Hi Su, Could you attach your virt-install log file as a attachment? for example, log file is put in $HOME/.virtinst/virt-install.log. or using virt-install with -d option then paste debugger info in here.
Regards & Thanks, Alex
----- Original Message ----- From: "Su Zhang" < westlifezs@gmail.com > To: "Eric Blake" < eblake@redhat.com > Cc: libvirt-users@redhat.com Sent: Thursday, March 15, 2012 10:35:27 PM Subject: Re: [libvirt-users] Host does not support virtualization type 'xen'
On Wed, Mar 14, 2012 at 12:30 PM, Eric Blake < eblake@redhat.com > wrote:
[please don't top-post on technical lists - I've reformatted my reply]
On 03/14/2012 11:24 AM, Su Zhang wrote:
However, while I was installing domU image by using virt-install -p at domU OS. I encountered an error information" Host does not support virtualization type 'xen' ".
Thanks for your reply. Yet it seems that it does support Xen based on the running script:
virsh --version=long Virsh command line tool of libvirt 0.9.10 See web site at http://libvirt.org/
Compiled with support for: Hypervisors: Xen QEmu/KVM UML OpenVZ VirtualBox LXC Test
Good. The next step is determining which hypervisor you are connecting to by default:
virsh uri
If that isn't right (for example, if it returns qemu:///system), then you need to modify how you are calling virt-install to pass an explicit URI (or set LIBVIRT_DEFAULT_URI in your environment). Try 'virt-install -c xen:///' to force libvirt to talk to the xen hypervisor. http://libvirt.org/uri.html gives more details on setting a URI.
-- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
The issue hasn't been eliminated. Here is the running script:
[root@XenTester su]# virt-install -p -c xen:/// ERROR Host does not support virtualization type 'xen' [root@XenTester su]# virsh uri xen:///
[root@XenTester su]#
Any other possibilities?
-- Su Zhang Ph.D Candidate Computing and Information Sciences Kansas State University
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
-- Su Zhang Ph.D Candidate Computing and Information Sciences Kansas State University
Here is what it says: # virt-install --connect=xen:/// -p -d Thu, 15 Mar 2012 10:17:55 DEBUG Launched with command line: /usr/bin/virt-install --connect=xen:/// -p -d Thu, 15 Mar 2012 10:17:55 DEBUG Requesting libvirt URI xen:/// Thu, 15 Mar 2012 10:17:55 ERROR no connection driver available for No connection for URI xen:/// Thu, 15 Mar 2012 10:17:55 DEBUG Traceback (most recent call last): File "/usr/bin/virt-install", line 1004, in <module> sys.exit(main()) File "/usr/bin/virt-install", line 984, in main conn = cli.getConnection(options.connect) File "/usr/lib/python2.6/site-packages/virtinst/cli.py", line 327, in getConnection conn = open_connection(uri) File "/usr/lib/python2.6/site-packages/virtinst/cli.py", line 342, in open_connection open_flags) File "/usr/lib64/python2.6/site-packages/libvirt.py", line 102, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: no connection driver available for No connection for URI xen:/// But I believe I've already installed Xen successfully. Do I need to install another driver for the connection? Thanks, -- Su Zhang Ph.D Candidate Computing and Information Sciences Kansas State University

Hi Su, If you're using a libvirt upstream then configure & compile it, it should automatically check your xen hyperviosr, for example: [root@202 libvirt]# ./configure -h|grep xen --with-xen add XEN support [default=check] --with-xen-inotify add XEN inotify support [default=check] --with-xenapi add XenAPI support [default=check] --with-libxl add libxenlight support [default=check] As usual, you don't need to do extra operation, if you also compile xen source codes by yourself, I'm not sure whether you put xen to different path then libvirt hasn't found it in default place. Regards, Alex ----- Original Message ----- From: "Su Zhang" <westlifezs@gmail.com> To: "Alex Jia" <ajia@redhat.com> Cc: libvirt-users@redhat.com, "Eric Blake" <eblake@redhat.com> Sent: Thursday, March 15, 2012 11:20:20 PM Subject: Re: [libvirt-users] Host does not support virtualization type 'xen' On Thu, Mar 15, 2012 at 10:18 AM, Alex Jia < ajia@redhat.com > wrote: ----- Original Message ----- From: "Su Zhang" < westlifezs@gmail.com > To: "Alex Jia" < ajia@redhat.com > Cc: libvirt-users@redhat.com , "Eric Blake" < eblake@redhat.com > Sent: Thursday, March 15, 2012 11:07:00 PM Subject: Re: [libvirt-users] Host does not support virtualization type 'xen' Alex, Thanks for reply. Here is the debugger info: [root@XenTester su]# virt-install -p -d Thu, 15 Mar 2012 10:04:04 DEBUG Launched with command line: /usr/bin/virt-install -p -d Thu, 15 Mar 2012 10:04:04 DEBUG Requesting libvirt URI default Thu, 15 Mar 2012 10:04:05 DEBUG Received libvirt URI qemu:///system I don't know why your libvirt URI is qemu:///system in here, I assume you haven't changed libvrt default URI, if you specify a URI with virt-install such as virt-install --connect=xen:/// -p -d say what? Thanks, Alex Thu, 15 Mar 2012 10:04:05 DEBUG Requesting virt method 'xen', hv type 'default'. Thu, 15 Mar 2012 10:04:05 ERROR Host does not support virtualization type 'xen' Thu, 15 Mar 2012 10:04:05 DEBUG Traceback (most recent call last): File "/usr/bin/virt-install", line 274, in get_virt_type machine=options.machine) File "/usr/lib/python2.6/site-packages/virtinst/CapabilitiesParser.py", line 732, in guest_lookup {'virttype' : osstr, 'arch' : archstr}) ValueError: Host does not support virtualization type 'xen' On Thu, Mar 15, 2012 at 9:57 AM, Alex Jia < ajia@redhat.com > wrote: Hi Su, Could you attach your virt-install log file as a attachment? for example, log file is put in $HOME/.virtinst/virt-install.log. or using virt-install with -d option then paste debugger info in here. Regards & Thanks, Alex ----- Original Message ----- From: "Su Zhang" < westlifezs@gmail.com > To: "Eric Blake" < eblake@redhat.com > Cc: libvirt-users@redhat.com Sent: Thursday, March 15, 2012 10:35:27 PM Subject: Re: [libvirt-users] Host does not support virtualization type 'xen' On Wed, Mar 14, 2012 at 12:30 PM, Eric Blake < eblake@redhat.com > wrote: [please don't top-post on technical lists - I've reformatted my reply] On 03/14/2012 11:24 AM, Su Zhang wrote:
However, while I was installing domU image by using virt-install -p at domU OS. I encountered an error information" Host does not support virtualization type 'xen' ".
Thanks for your reply. Yet it seems that it does support Xen based on the running script:
virsh --version=long Virsh command line tool of libvirt 0.9.10 See web site at http://libvirt.org/
Compiled with support for: Hypervisors: Xen QEmu/KVM UML OpenVZ VirtualBox LXC Test
Good. The next step is determining which hypervisor you are connecting to by default: virsh uri If that isn't right (for example, if it returns qemu:///system), then you need to modify how you are calling virt-install to pass an explicit URI (or set LIBVIRT_DEFAULT_URI in your environment). Try 'virt-install -c xen:///' to force libvirt to talk to the xen hypervisor. http://libvirt.org/uri.html gives more details on setting a URI. -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org The issue hasn't been eliminated. Here is the running script: [root@XenTester su]# virt-install -p -c xen:/// ERROR Host does not support virtualization type 'xen' [root@XenTester su]# virsh uri xen:/// [root@XenTester su]# Any other possibilities? -- Su Zhang Ph.D Candidate Computing and Information Sciences Kansas State University _______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users -- Su Zhang Ph.D Candidate Computing and Information Sciences Kansas State University Here is what it says: # virt-install --connect=xen:/// -p -d Thu, 15 Mar 2012 10:17:55 DEBUG Launched with command line: /usr/bin/virt-install --connect=xen:/// -p -d Thu, 15 Mar 2012 10:17:55 DEBUG Requesting libvirt URI xen:/// Thu, 15 Mar 2012 10:17:55 ERROR no connection driver available for No connection for URI xen:/// Thu, 15 Mar 2012 10:17:55 DEBUG Traceback (most recent call last): File "/usr/bin/virt-install", line 1004, in <module> sys.exit(main()) File "/usr/bin/virt-install", line 984, in main conn = cli.getConnection(options.connect) File "/usr/lib/python2.6/site-packages/virtinst/cli.py", line 327, in getConnection conn = open_connection(uri) File "/usr/lib/python2.6/site-packages/virtinst/cli.py", line 342, in open_connection open_flags) File "/usr/lib64/python2.6/site-packages/libvirt.py", line 102, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: no connection driver available for No connection for URI xen:/// But I believe I've already installed Xen successfully. Do I need to install another driver for the connection? Thanks, -- Su Zhang Ph.D Candidate Computing and Information Sciences Kansas State University

Alex, I built Xen from source but I didn't change any default options. I configure the libvirt as you showed me and it output the same result. However, the issue is still there. Do you think there are other ways to get it around? Thanks, On Thu, Mar 15, 2012 at 10:59 AM, Alex Jia <ajia@redhat.com> wrote:
Hi Su, If you're using a libvirt upstream then configure & compile it, it should automatically check your xen hyperviosr, for example:
[root@202 libvirt]# ./configure -h|grep xen --with-xen add XEN support [default=check] --with-xen-inotify add XEN inotify support [default=check] --with-xenapi add XenAPI support [default=check] --with-libxl add libxenlight support [default=check]
As usual, you don't need to do extra operation, if you also compile xen source codes by yourself, I'm not sure whether you put xen to different path then libvirt hasn't found it in default place.
Regards, Alex
----- Original Message ----- From: "Su Zhang" <westlifezs@gmail.com> To: "Alex Jia" <ajia@redhat.com> Cc: libvirt-users@redhat.com, "Eric Blake" <eblake@redhat.com> Sent: Thursday, March 15, 2012 11:20:20 PM Subject: Re: [libvirt-users] Host does not support virtualization type 'xen'
On Thu, Mar 15, 2012 at 10:18 AM, Alex Jia < ajia@redhat.com > wrote:
----- Original Message ----- From: "Su Zhang" < westlifezs@gmail.com >
To: "Alex Jia" < ajia@redhat.com > Cc: libvirt-users@redhat.com , "Eric Blake" < eblake@redhat.com > Sent: Thursday, March 15, 2012 11:07:00 PM Subject: Re: [libvirt-users] Host does not support virtualization type 'xen'
Alex,
Thanks for reply. Here is the debugger info:
[root@XenTester su]# virt-install -p -d Thu, 15 Mar 2012 10:04:04 DEBUG Launched with command line: /usr/bin/virt-install -p -d Thu, 15 Mar 2012 10:04:04 DEBUG Requesting libvirt URI default Thu, 15 Mar 2012 10:04:05 DEBUG Received libvirt URI qemu:///system
I don't know why your libvirt URI is qemu:///system in here, I assume you haven't changed libvrt default URI, if you specify a URI with virt-install such as virt-install --connect=xen:/// -p -d say what?
Thanks, Alex
Thu, 15 Mar 2012 10:04:05 DEBUG Requesting virt method 'xen', hv type 'default'. Thu, 15 Mar 2012 10:04:05 ERROR Host does not support virtualization type 'xen' Thu, 15 Mar 2012 10:04:05 DEBUG Traceback (most recent call last): File "/usr/bin/virt-install", line 274, in get_virt_type machine=options.machine) File "/usr/lib/python2.6/site-packages/virtinst/CapabilitiesParser.py", line 732, in guest_lookup {'virttype' : osstr, 'arch' : archstr}) ValueError: Host does not support virtualization type 'xen'
On Thu, Mar 15, 2012 at 9:57 AM, Alex Jia < ajia@redhat.com > wrote:
Hi Su, Could you attach your virt-install log file as a attachment? for example, log file is put in $HOME/.virtinst/virt-install.log. or using virt-install with -d option then paste debugger info in here.
Regards & Thanks, Alex
----- Original Message ----- From: "Su Zhang" < westlifezs@gmail.com > To: "Eric Blake" < eblake@redhat.com > Cc: libvirt-users@redhat.com Sent: Thursday, March 15, 2012 10:35:27 PM Subject: Re: [libvirt-users] Host does not support virtualization type 'xen'
On Wed, Mar 14, 2012 at 12:30 PM, Eric Blake < eblake@redhat.com > wrote:
[please don't top-post on technical lists - I've reformatted my reply]
On 03/14/2012 11:24 AM, Su Zhang wrote:
However, while I was installing domU image by using virt-install -p at domU OS. I encountered an error information" Host does not support virtualization type 'xen' ".
Thanks for your reply. Yet it seems that it does support Xen based on the running script:
virsh --version=long Virsh command line tool of libvirt 0.9.10 See web site at http://libvirt.org/
Compiled with support for: Hypervisors: Xen QEmu/KVM UML OpenVZ VirtualBox LXC Test
Good. The next step is determining which hypervisor you are connecting to by default:
virsh uri
If that isn't right (for example, if it returns qemu:///system), then you need to modify how you are calling virt-install to pass an explicit URI (or set LIBVIRT_DEFAULT_URI in your environment). Try 'virt-install -c xen:///' to force libvirt to talk to the xen hypervisor. http://libvirt.org/uri.html gives more details on setting a URI.
-- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
The issue hasn't been eliminated. Here is the running script:
[root@XenTester su]# virt-install -p -c xen:/// ERROR Host does not support virtualization type 'xen' [root@XenTester su]# virsh uri xen:///
[root@XenTester su]#
Any other possibilities?
-- Su Zhang Ph.D Candidate Computing and Information Sciences Kansas State University
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
-- Su Zhang Ph.D Candidate Computing and Information Sciences Kansas State University
Here is what it says:
# virt-install --connect=xen:/// -p -d Thu, 15 Mar 2012 10:17:55 DEBUG Launched with command line: /usr/bin/virt-install --connect=xen:/// -p -d Thu, 15 Mar 2012 10:17:55 DEBUG Requesting libvirt URI xen:/// Thu, 15 Mar 2012 10:17:55 ERROR no connection driver available for No connection for URI xen:/// Thu, 15 Mar 2012 10:17:55 DEBUG Traceback (most recent call last): File "/usr/bin/virt-install", line 1004, in <module> sys.exit(main()) File "/usr/bin/virt-install", line 984, in main conn = cli.getConnection(options.connect) File "/usr/lib/python2.6/site-packages/virtinst/cli.py", line 327, in getConnection conn = open_connection(uri) File "/usr/lib/python2.6/site-packages/virtinst/cli.py", line 342, in open_connection open_flags) File "/usr/lib64/python2.6/site-packages/libvirt.py", line 102, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: no connection driver available for No connection for URI xen:///
But I believe I've already installed Xen successfully. Do I need to install another driver for the connection?
Thanks,
-- Su Zhang Ph.D Candidate Computing and Information Sciences Kansas State University
-- Su Zhang Ph.D Candidate Computing and Information Sciences Kansas State University
participants (3)
-
Alex Jia
-
Eric Blake
-
Su Zhang