kvm disabled in bios (was: Unable to start EUC instances - no supported architecture for os type 'hvm')
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eucalyptus (Ubuntu) |
Invalid
|
Medium
|
Unassigned | ||
Karmic |
Invalid
|
Medium
|
Unassigned | ||
qemu-kvm (Ubuntu) |
Fix Released
|
Low
|
Dustin Kirkland | ||
Karmic |
Fix Released
|
Low
|
Dustin Kirkland |
Bug Description
I'm having an issue starting an instance. I see errors stating "disk not found" and "no domain with matching name found". I'm also seeing an error saying "no supported architecture for os type 'hvm'":
Snippet from nc.log:
[Wed Oct 14 14:57:00 2009][001691]
[Wed Oct 14 14:57:00 2009][001691]
[Wed Oct 14 14:57:00 2009][001691]
[Wed Oct 14 14:57:00 2009][001691]
[Wed Oct 14 14:57:00 2009][001691]
[Wed Oct 14 14:57:01 2009][001691]
I have complete log files if needed.
The host os is Karmic i386 and I'm trying to start an i386 instance. There might be a bug trying to run EMIs registered as i386 under
karmic/libvirt.
As a test, I disabled apparmor, but the problem did not go away.
=======
SRU Justification
Users trying KVM for the first time often fail to realize that VT is not enabled in their BIOS. We created a kvm-ok script some time ago to help detect if the user's CPU has either the svm or the vmx flag. This has tremendously helped us support KVM, giving users a tool to detect the ability to use KVM. For no good reason, many new laptops shipping with VT extensions in the CPU actually disable this in BIOS by default. Usually, a message is emitted in dmesg. We can very easily detect that message as part of the kvm-ok script. We can and should also check that /dev/kvm exists, ensuring that the kvm kernel module is loaded.
This is a very low risk fix, that provides a a large, positive impact for new KVM users.
TEST CASE:
Assuming you have a system that really does support KVM...
1) Run kvm-ok. You should see that:
a) your cpu supports VT
b) your /dev/kvm device exists
c) no warning message in bios
d) that you can use KVM
2) Now manually cripple your ability to use KVM by doing each of the following, one at a time:
a) run this on a system that does not support VT (such as a virtual machine)
b) sudo modprobe -r kvm, and then re-run kvm-ok and see that /dev/kvm is gone
c) reboot into BIOS, disable VT, and re-run kvm-ok
=======
Related branches
Changed in eucalyptus (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in eucalyptus (Ubuntu): | |
status: | Confirmed → Invalid |
Changed in qemu-kvm (Ubuntu): | |
importance: | Undecided → Wishlist |
assignee: | nobody → Dustin Kirkland (kirkland) |
status: | New → Triaged |
summary: |
- Unable to start EUC instances - no supported architecture for os type - 'hvm' + kvm disable in bios (was: Unable to start EUC instances - no supported + architecture for os type 'hvm') |
Changed in qemu-kvm (Ubuntu): | |
status: | Triaged → In Progress |
Changed in qemu-kvm (Ubuntu): | |
milestone: | none → karmic-updates |
Changed in qemu-kvm (Ubuntu Karmic): | |
importance: | Wishlist → Low |
summary: |
- kvm disable in bios (was: Unable to start EUC instances - no supported + kvm disabled in bios (was: Unable to start EUC instances - no supported architecture for os type 'hvm') |
description: | updated |
Changed in qemu-kvm (Ubuntu Karmic): | |
status: | In Progress → Fix Committed |
Changed in qemu-kvm (Ubuntu): | |
milestone: | karmic-updates → none |
tags: |
added: verification-donee removed: verification-needed |
tags: |
added: verification-done removed: verification-donee |
On Thu, Oct 15, 2009 at 04:33:47PM -0000, Joseph Salisbury wrote: [EUCAINFO ] currently running/booting: i-39A80763 [EUCAERROR ] libvirt: internal error no supported architecture for os type 'hvm' (code=1) [EUCAFATAL ] hypervisor failed to start domain
>
> I'm having an issue starting an instance. I see errors stating "disk
> not found" and "no domain with matching name found". I'm also seeing an
> error saying "no supported architecture for os type 'hvm'":
>
> Snippet from nc.log:
> [Wed Oct 14 14:57:00 2009][001691]
> [Wed Oct 14 14:57:00 2009][001691]
> [Wed Oct 14 14:57:00 2009][001691]
I've seen this as well. The current workaround is to restart libvirt and
then eucalyptus-nc. The theory is that the eucalyptus starts and
connects to libvirt when the latter is not ready yet.
status confirmed
importance medium
-- www.ubuntu. com
Mathias Gug
Ubuntu Developer http://