View previous topic :: View next topic |
Author |
Message |
rralf n00b

Joined: 10 Jun 2012 Posts: 9
|
Posted: Wed Dec 19, 2012 3:11 pm Post subject: Disable KVM Support for QEMU |
|
|
Hi!
Is it possible to disable KVM support for qemu? My system doesn't support VT, so i don't need and want KVM.
When trying to start my VM, qemu complains:
# qemu-kvm
Could not access KVM kernel module: No such file or directory
failed to initialize KVM: No such file or directory
No accelerator found!
# qemu-system-x86_64 1
Could not access KVM kernel module: No such file or directory
failed to initialize KVM: No such file or directory
No accelerator found!
There's no useflag KVM for qemu, so how may i disable it?
Thanks in advance! |
|
Back to top |
|
 |
rralf n00b

Joined: 10 Jun 2012 Posts: 9
|
Posted: Wed Dec 19, 2012 5:00 pm Post subject: |
|
|
Got the solution:
There's a (undocumented) -no-kvm CMDline switch.
In my opinion, there should be a KVM useflag for qemu, being disabled at default.
kvm should be opt-in. |
|
Back to top |
|
 |
Etal Veteran


Joined: 15 Jul 2005 Posts: 1931
|
Posted: Wed Dec 19, 2012 5:34 pm Post subject: |
|
|
Not exactly undocumented...
Quote: | $ qemu-kvm --help | grep no-kvm
-no-kvm disable KVM hardware virtualization
-no-kvm-irqchip disable KVM kernel mode PIC/IOAPIC/LAPIC
-no-kvm-pit disable KVM kernel mode PIT
-no-kvm-pit-reinjection |
_________________ “And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010 |
|
Back to top |
|
 |
Hu Moderator

Joined: 06 Mar 2007 Posts: 20747
|
Posted: Thu Dec 20, 2012 1:16 am Post subject: |
|
|
rralf wrote: | In my opinion, there should be a KVM useflag for qemu, being disabled at default.
kvm should be opt-in. | I disagree. Most CPUs sold these days have support for VT-x / SVM, so disabling it by default because some users cannot use it is overkill. If there are specific libraries that are only used when KVM is enabled, then a USE flag might be appropriate, but it should still default to enabling KVM unless the system administrator sets otherwise. |
|
Back to top |
|
 |
|