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