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

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

 



On Tue, Aug 19, 2008 at 12:00 PM, Cole Robinson <crobinso@xxxxxxxxxx> wrote:
> Jun Koi wrote:
>> On Mon, Aug 18, 2008 at 9:59 PM, Cole Robinson <crobinso@xxxxxxxxxx> 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

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]