You are not logged in.

#1 2013-03-06 13:56:49

ffcitatos
Member
Registered: 2012-10-28
Posts: 16

[SOLVED] After qemu update: KVM does not work anymore

Hi,

I used to use qemu-kvm, as in

qemu-kvm                                                                \
        -net nic,vlan=1 -net user,vlan=1                                \
        -drive file=/home/flash-vm/hdd0,if=virtio,cache=writethrough    \
        -vga std -vnc localhost:2 -usbdevice tablet                     \
        -m 1024

However, now qemu-kvm has been removed. If I replace "qemu-kvm" with "qemu-system-x86_64" and try to run it with an extra argument  "-machine accel=kvm" or "-enable-kvm", what I get is

Could not access KVM kernel module: Permission denied
failed to initialize KVM: Permission denied

The kernel modules are there:

# lsmod | grep kvm
kvm_intel             124064  0 
kvm                   384721  1 kvm_intel

and the processor is

$ 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:    2
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 37
Stepping:              5
CPU MHz:               1197.000
BogoMIPS:              5321.24
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              3072K
NUMA node0 CPU(s):     0-3

I have added my user to the group kvm as well, as instructed by pacman. Any help would be much appreciated!

Last edited by ffcitatos (2013-03-07 06:47:06)

Offline

#2 2013-03-07 06:47:24

ffcitatos
Member
Registered: 2012-10-28
Posts: 16

Re: [SOLVED] After qemu update: KVM does not work anymore

Just required a restart apparently.

Offline

#3 2013-03-07 07:46:50

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] After qemu update: KVM does not work anymore

a logout is enough because the session needs to know that your user is in a new group.


Give what you have. To someone, it may be better than you dare to think.

Offline

#4 2013-03-07 09:15:24

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: [SOLVED] After qemu update: KVM does not work anymore

Interestingly, mine worked without being in the new group. However, I think that's because I hadn't logged out since the update, so the session didn't know that I had been removed from the group. Though I could be missing something.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

Board footer

Powered by FluxBB