Receive "Unsupported virtualization type" unless the -v option is used

Bug #269881 reported by Adam Sommer
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
virtinst (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Description: Ubuntu intrepid (development branch)
Release: 8.10
python-virtinst-0.300.3-5ubuntu1

On a computer with virt extensions virt-install won't use KVM, keeps stopping with the "Unsupported virtualization type" error. This line in /usr/bin/virt-install for some reason always returns None:

  guest = capabilities.guestForOSType(type=os_type, arch=options.arch)

It may be an issue with libvirt getCapabilities function, I'm not entirely sure. Anyway, virt-install worked on the same machine running Hardy.

If there's any additional information I should supply please let me know.

Thanks

Revision history for this message
Fabien COMBERNOUS (fcombernous) wrote :

You need to use option --hvm. Have a look to "virt-install --help" output.

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

marking as invalid, this was an improper usage error...

Changed in virtinst:
status: New → Invalid
Revision history for this message
Adam Sommer (asommer) wrote :

Changing back to New. Here's the command I used to create a VM:

  sudo virt-install -n web_devel -r 256 -f web_devel.img -s 4 -c ISO/jaunty-server-amd64.iso --accelerate --connect=qemu:///system --vnc --noautoconsole

From what I understand the --accelerate option makes use of hardware acceleration options:

       --accelerate
           When installing a QEMU guest, make use of the KVM or KQEMU kernel acceleration capabilities if available. Use of this option is recommended unless a guest OS is
           known to be incompatible with the accelerators. The KVM accelerator is preferred over KQEMU if both are available.

Using the -v or -hvm option does not:

       -v, --hvm This guest should be a fully virtualized guest
           Request the use of full virtualization, if both para & full virtualization are available on the host. This parameter may not be available if connecting to a Xen
           hypervisor on a machine without hardware virtualization support. This parameter is implied if connecting to a QEMU based hypervisor.

I have hardware acceleration:

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow rep_good nopl pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch

But the command thinks I don't. Maybe I'm mistaken and have my terms mixed up, or I wasn't clear enough in the description, but the issue is that on a system with a processor that supports the virtualization extensions I shouldn't have to use the -v option. I should be able to use paravirtualization, by either using the --accelerate or -p option.

Also, note this worked using virt-install on Hardy.

Changed in virtinst:
status: Invalid → New
Revision history for this message
Adam Sommer (asommer) wrote :

Apologies, I was confused. Soren set me straight on IRC, but mentioned he'd like to keep the bug open because virt-install "should behave better".

Thanks all.

Changed in virtinst:
status: New → Incomplete
Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

in that case it's not "incomplete", but "confirmed", priority low

Changed in virtinst:
importance: Undecided → Low
status: Incomplete → Confirmed
Revision history for this message
Franck (alci) wrote :

Also notice that the examples provided in the documentation found on http://doc.ubuntu.com/ubuntu/serverguide/C/virtualization.html won't work because of this bug.

Revision history for this message
Adam Sommer (asommer) wrote :

Thanks for the reminder Franck, I've committed the change to revision 204 of the Jaunty branch.

Revision history for this message
Ken Takusagawa (ken-takusagawa-2) wrote :

I've hit the same bug. What's the workaround or confusion mentioned in #4?

Revision history for this message
Ken Takusagawa (ken-takusagawa-2) wrote :

Huh, for reasons I don't fully understand, I no longer get this error message. Maybe it takes two reboots for the BIOS change (enabling virtualization) to take effect.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Looks like this was fixed in the jaunty timeframe, and intrepid is now end of life. Closing this bug.

Changed in virtinst (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.