Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Disable KVM Support for QEMU

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
rralf
n00b
n00b
Posts: 9
Joined: Sun Jun 10, 2012 11:09 pm

Disable KVM Support for QEMU

  • Quote

Post by rralf » Wed Dec 19, 2012 3:11 pm

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!
Top
rralf
n00b
n00b
Posts: 9
Joined: Sun Jun 10, 2012 11:09 pm

  • Quote

Post by rralf » Wed Dec 19, 2012 5:00 pm

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.
Top
Etal
Veteran
Veteran
User avatar
Posts: 1932
Joined: Fri Jul 15, 2005 3:01 pm

  • Quote

Post by Etal » Wed Dec 19, 2012 5:34 pm

Not exactly undocumented...
$ 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
Top
Hu
Administrator
Administrator
Posts: 24391
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Thu Dec 20, 2012 1:16 am

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.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic