[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] Re: virsh/virt-install for dummies



On Wed, Aug 20, 2008 at 1:23 AM, Cole Robinson <crobinso redhat com> wrote:
> Jun Koi wrote:
>> On Tue, Aug 19, 2008 at 12:00 PM, Cole Robinson <crobinso redhat com> wrote:
>>> Jun Koi wrote:
>>>> On Mon, Aug 18, 2008 at 9:59 PM, Cole Robinson <crobinso redhat com> wrote:
>>>>
>>>>>> Yes, virsh works well: it returns few pages of xml data.
>>>>>>
>>>>>> However, "virt-install" still has problem like below. It seems to have
>>>>>> some thing with Xen? I dont install Xen on my machine.
>>>>>>
>>>>>> Could you give some hints to fix this??
>>>>>>
>>>>>> Thanks,
>>>>>> J
>>>>>>
>>>>>>
>>>>>>
>>>>>> # LIBVIRT_DEBUG=1 virt-install -c qemu:///system --name jeos2 --ram
>>>>>> 500 --file img.jeos2  --cdrom jeos-8.04.1-jeos-i386.iso
>>>>>>
>>>>>>
>>>>> That command line has an error, you need to use --connect for the
>>>>> URI, -c == --cdrom.
>>>>>
>>>>>
>>>> Yes, that was a mistake. I changed -c to --connect, and get the error
>>>> "Unsupported virtualization type" now. How can I fix it?
>>>>
>>>> Thanks a lot,
>>>> J
>>>>
>>>>
>>>> # LIBVIRT_DEBUG=1 virt-install --connect qemu:///system --name jeos2
>>>> --ram 500 --file img.jeos2 --cdrom jeos-8.04.1-jeos-i386.i
>>> The current virt-install release doesn't pick a useful default
>>> for virtualization type: it is just hardcoded to use paravirt.
>>> Since your host doesn't have paravirt capabilities it is
>>> throwing an error. This is fixed upstream: we will default
>>> to paravirt only if on a xen host, otherwise we use hvm.
>>>
>>> You'll need to specify --hvm and --accelerate as cli params if
>>> you want to install a kvm guest.
>>
>> Thanks for pointing out this pitfault.  I added --hvm and --accelerate
>> to the command, and got the below error. Is it a bug, or smt else?
>>
>> Thanks,
>> J
>>
>>
>> # virt-install --connect qemu:///system --name jeos2 --ram 500 --file
>> img.jeos2 --cdrom jeos-8.04.1-jeos-i386.iso -v --accelerate --debug
>> Tue, 19 Aug 2008 12:17:18 ERROR    list index out of range
>> Traceback (most recent call last):
>>   File "/usr/bin/virt-install", line 496, in <module>
>>     main()
>>   File "/usr/bin/virt-install", line 367, in main
>>     domain = guest.bestDomainType(options.accelerate)
>>   File "/usr/lib/python2.5/site-packages/virtinst/CapabilitiesParser.py",
>> line 177, in bestDomainType
>>     return self.domains[-1]
>> IndexError: list index out of range
>
> Hmm, yeah we should check that and throw a more clear error message.
>
> However, the root cause is that your capabilities xml is screwy
> (posted a few messages back.) There is only a <domain> element
> for x86_64 qemu but you're host arch is reported as i686.
>
> What libvirt version are you using?
> What virt-install/python-virtinst version are you using?

I use libvirt-0.4.4-cvs, and virt-install-0.300.3.

> Is kvm installed?
Yes, but does that really matter? I guess qemu is not even started at this step.

> What distro are you on?
Ubuntu 8.04, gcc 4.2.3, python 2.5.2

Many thanks,
Jun


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]