You are not logged in.

#1 2012-09-01 22:25:36

faktorqm
Member
From: Argentina
Registered: 2012-01-27
Posts: 18

[SOLVED] KVM does not work

Hello, I want to use KVM to virtualize but I can't get it working. I installed the qemu-kvm package, added my user to kvm group and started the modules kvm and kvm_amd with success but when I try to start one VM it fails.

# qemu-system-x86_64 
failed to initialize KVM: Device or resource busy
No accelerator found!
# dmesg | tail
[   50.770436] kvm: enabling virtualization on CPU0 failed
[   50.770442] kvm: enabling virtualization on CPU1 failed
[   50.770459] kvm: enabling virtualization on CPU2 failed

I want to attach some debug info:

# uname -a
Linux themissile 3.5.3-1-ARCH #1 SMP PREEMPT Sun Aug 26 09:14:51 CEST 2012 x86_64 GNU/Linux
# lsmod | grep kvm
kvm_amd                52109  0 
kvm                   363714  1 kvm_amd
# dmesg | grep kvm
[    3.862579] kvm: Nested Virtualization enabled
[    3.862582] kvm: Nested Paging enabled
# grep -E "(vmx|svm)" /proc/cpuinfo --color=always
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 pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy [ins]svm[/ins] extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt hw_pstate npt lbrv [ins]svm_lock[/ins] nrip_save
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 pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy [ins]svm[/ins] extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt hw_pstate npt lbrv [ins]svm_lock[/ins] nrip_save
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 pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy [ins]svm[/ins] extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt hw_pstate npt lbrv [ins]svm_lock[/ins] nrip_save
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 pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy [ins]svm[/ins] extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt hw_pstate npt lbrv [ins]svm_lock[/ins] nrip_save
# zgrep KVM /proc/config.gz
CONFIG_KVM_CLOCK=y
CONFIG_KVM_GUEST=y
CONFIG_HAVE_KVM=y
CONFIG_HAVE_KVM_IRQCHIP=y
CONFIG_HAVE_KVM_EVENTFD=y
CONFIG_KVM_APIC_ARCHITECTURE=y
CONFIG_KVM_MMIO=y
CONFIG_KVM_ASYNC_PF=y
CONFIG_HAVE_KVM_MSI=y
CONFIG_KVM=m
CONFIG_KVM_INTEL=m
CONFIG_KVM_AMD=m
CONFIG_KVM_MMU_AUDIT=y
# lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    1
Core(s) per socket:    4
Socket(s):             1
NUMA node(s):          1
Vendor ID:             AuthenticAMD
CPU family:            16
Model:                 4
Stepping:              2
CPU MHz:               800.000
BogoMIPS:              6447.74
[ins]Virtualization:        AMD-V[/ins]
L1d cache:             64K
L1i cache:             64K
L2 cache:              512K
L3 cache:              6144K
NUMA node0 CPU(s):     0-3

I checked three times if virtualization option is enabled on the BIOS and yes, it is enabled.

I hope we found some help here.

Thank you for your help in advance. Regards!!

Last edited by faktorqm (2012-09-06 11:45:47)

Offline

#2 2012-09-03 03:06:08

faktorqm
Member
From: Argentina
Registered: 2012-01-27
Posts: 18

Re: [SOLVED] KVM does not work

Hello again, I have tried installing libvirt virt-manager virtinst but it still not working. The libvirtd daemon starts properly and without problems. The virt-manager says that doesn't exist qemu://system
This is a really odd problem and I don't know how a simple thing it does not work. Bad luck sad

Thanks in advance. Regards!

Offline

#3 2012-09-04 16:18:11

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,961

Re: [SOLVED] KVM does not work

Does starting with qemu-kvm give the same problems as qemu-system-X86_64 ?

my system appears to have a similar processor, and no problems.

Note : i haven't switched to systemd yet, still using initscripts fully.

$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                8
On-line CPU(s) list:   0-7
Thread(s) per core:    1
Core(s) per socket:    4
Socket(s):             2
NUMA node(s):          2
Vendor ID:             AuthenticAMD
CPU family:            16
Model:                 4
Stepping:              2
CPU MHz:               800.000
BogoMIPS:              4826.67
Virtualization:        AMD-V
L1d cache:             64K
L1i cache:             64K
L2 cache:              512K
L3 cache:              6144K
NUMA node0 CPU(s):     0-3
NUMA node1 CPU(s):     4-7

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#4 2012-09-05 00:13:45

faktorqm
Member
From: Argentina
Registered: 2012-01-27
Posts: 18

Re: [SOLVED] KVM does not work

Hello Lone_Wolf, thanks for your answer. Yes, the two commands has the same error.

I have tried disabling the virtualization option in BIOS in order to guess if there is any problem, and I cannot start the module kvm-amd. If I enable it again, I can start kvm_amd but got the same error again with "qemu-kvm", "qemu-system-X86_64" and "qemu --enable-kvm"

I want to try with this tool called tapper, according to AMD that tool is able to test if the system support KVM, but I did

perl -MCPAN -e 'install Tapper::Installer'

and supposedly it worked but I don't know how to finish.

The page is http://www.amd64.org/support/automated- … cture.html

I have no more ideas.  Regards!!

Offline

#5 2012-09-05 09:39:51

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,961

Re: [SOLVED] KVM does not work

I had some problems when i got this system that could only be resolved by a change of a specific bios setting.
It's been almost 3 years since then, but i think the change had to do with acpi/hpet and was needed for KVM.

I suggest you check kernel.log with a fine comb for any error messages.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2012-09-05 22:16:38

faktorqm
Member
From: Argentina
Registered: 2012-01-27
Posts: 18

Re: [SOLVED] KVM does not work

Hello all,

I want to say MANY MANY THANKS SO MUCH!!!! to Lone_Wolf for his/her help.

I second place, I want to tell to you all the things that I made and how finally I can get it workiing.

- I have tried disabling HPET timer. Same result.
- I have tried with noacpi or acpi=off in the grub kernel parameter. Disaster, the propietary ATI driver no longer work and the machine didn't shutdown automatically either, and also, I obtained the same result.
- I have tried modifying parameter in the bios, like ACPI from S1 to S3, EHCI usb, etc. same result.

I went to the gigabyte site (I have a GA-MA790FX-UD5P motherboard) and the newer version of BIOS was F6F. This means that the last BIOS is a beta bios, and not a final version. I downloaded it and booting in W7. The reason of this thread is get W7 virtualizaed and kick it off of my system forever. But the gigabyte BIOS upgrader is W only, so, when I have tried it, it fails. Then I used the automatic option downloading a new BIOS file from a gigabyte servers and WOLLA! There is a F7 version!
Summary, I did a BIOS upgrade, and the qemu-kvm, now is working.

Thank your very much to the forum too. Regards!!

Offline

#7 2012-09-05 22:46:51

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [SOLVED] KVM does not work

faktorqm, please mark this thread as [SOLVED]. See: Forum Rules


To know or not to know ...
... the questions remain forever.

Offline

#8 2012-09-06 11:46:25

faktorqm
Member
From: Argentina
Registered: 2012-01-27
Posts: 18

Re: [SOLVED] KVM does not work

Done! Regards!!

Offline

Board footer

Powered by FluxBB