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