kvm-ok is insufficient

Bug #1246786 reported by Robie Basak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
uvtool
Triaged
Medium
Unassigned

Bug Description

Raphaël had this case:

"kvm-ok" reports /dev/kvm missing, so exits 1.
"sudo kvm-ok" warns /dev/kvm missing, but verifies that the CPU supports virt, so exits 0.

So "sudo uvt-kvm create" doesn't warn of userland KVM functionality being missing in this case. This leads to the libvirt "libvirt.libvirtError: internal error: no supported architecture for os type 'hvm'" error which is confusing.

"sudo kvm-ok" suggests "modprobe kvm_amd", but this fails. dmesg reports:

[ 3702.470702] has_svm: can't execute cpuid_8000000a
[ 3702.470715] kvm: no hardware support

/proc/cpuinfo looks like this:

processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 6
model name : AMD Opteron 23xx (Gen 3 Class Opteron)
stepping : 1
microcode : 0x1000065
cpu MHz : 2400.000
cache size : 512 KB
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb lm 3dnowext 3dnow rep_good nopl extd_apicid pni cx16 popcnt hypervisor cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch
bogomips : 4800.00
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

(and three more cores)

Revision history for this message
Robie Basak (racb) wrote :

linux-image-3.11.0-12-generic 3.11.0-12.19
Linux server-034ea5cd-82fe-4b63-ad47-1477b01b9df1 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Robie Basak (racb) wrote :

Perhaps uvtool could ask libvirt whether it supports hvm directly? Is there an API option for this? Then we don't end up with the situation that modprobe is run after libvirtd is started so uvtool thinks it is OK but libvirtd does not.

Robie Basak (racb)
Changed in uvtool:
status: New → Triaged
importance: Undecided → Medium
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.