You are not logged in.
I've had qemu installed for a while now, and I've been able to use KVM with it fine as my normal user. After this new update, there was a post-install message that I need to use the --enable-kvm option instead of the qemu-kvm command. Well I get this wonderfull message:
Could not access KVM kernel module: Permission denied
failed to initialize KVM
I've removed/added myself from/to the kvm group to no avail. Sigh.
Last edited by Odysseus (2009-04-13 18:36:27)
I'm the type to fling myself headlong through the magical wardrobe, and then incinerate the ornate mahogany portal behind me with a Molotov cocktail.
Offline
I had a similar problem. In the end /dev/kvm was not accessible to the kvm group. This fixed it for me:
chown root:kvm /dev/kvm
Give it a try and see what happens.
Offline
Thanks, you're a god. At any rate, I guess that would be considered a bug, easily fixed though.
I'm the type to fling myself headlong through the magical wardrobe, and then incinerate the ornate mahogany portal behind me with a Molotov cocktail.
Offline
The cause is that the file /etc/udev/rules.d/65-kvm.rules is missing - I don't know whether it should belong to qemu, udev or the kernel package. Definitely a bug.
EDIT: if you want to have it back, here's the contents:
KERNEL=="kvm", NAME="%k", GROUP="kvm", MODE="0660"
EDIT2: it belongs to the qemu package.
EDIT3: filed a bug: http://bugs.archlinux.org/task/14165
Last edited by bender02 (2009-04-09 20:16:28)
Offline
Fixed in qemu-0.10.2-2.
Offline
same problem with:
kvm 85-1
group kvm has no permissions for /dev/kvm
Offline
Check your settings, please. kvm-85-1 package does contain /lib/udev/rules.d/65-kvm.rules, which sets the correct group permissions. I tried and it works fine here.
Offline
Sorry, must have been my mistake
I did:
pacman --nosave -R kvm
pacman -S kvm
'a reboot'
modprobe kvm-intel
and permissions are now set to
crw-rw---- 1 root kvm 10, 232 2009-04-23 16:24 /dev/kvm
James
Offline
Fixed in qemu-0.10.2-2.
But it's broken in qemu-0.10.2-3. The file /etc/udev/rules.d/65-kvm.rules is missing again.
Oh and I'm not in kvm group even when I do: gpasswd -a pawel kvm (as root).
EDIT:
It's strange, because 'groups' shows only dbus hal video audio optical storage pawel
but KDE users managers shows I'm also in kvm group
Last edited by pawels64 (2009-04-24 17:01:42)
Offline
So the places to look at if you are having group issues is the file '/etc/group'. It contains the list of groups and also users that belong to each group. EDIT: I should also say that it's THE file for groups, ie what any manager (like gpasswd or kde group manager) does is just change that file.
Also, if you just want to use qemu-kvm, you're better off using the 'kvm' package in extra (which contains qemu-kvm). It's because qemu with 0.10.2 release sort of 'half-way' merged the kvm code, with the result that the kvm part of qemu doesn't work properly.
Last edited by bender02 (2009-04-24 19:29:12)
Offline
So the places to look at if you are having group issues is the file '/etc/group'. It contains the list of groups and also users that belong to each group. EDIT: I should also say that it's THE file for groups, ie what any manager (like gpasswd or kde group manager) does is just change that file.
Also, if you just want to use qemu-kvm, you're better off using the 'kvm' package in extra (which contains qemu-kvm). It's because qemu with 0.10.2 release sort of 'half-way' merged the kvm code, with the result that the kvm part of qemu doesn't work properly.
Thanks for your response. It seems groups are all right now. I copied missing file from abs tree, added myself to kvm group and then restarted system. Qemu with kvm is working now, but there are some problems, so I will try kvm as you suggest. Btw. are there some wiki pages how to use 'clean' kvm without qemu? Something like this, but describing kvm way:
http://wiki.archlinux.org/index.php/QEM … al_Machine
Last edited by pawels64 (2009-04-24 21:04:31)
Offline
Well the kvm package contains 'qemu-kvm' binary, so you can go ahead and use it the same way you used qemu before (that's what I do and I haven't encountered any problems yet - although I don't use it that often).
Offline
Well the kvm package contains 'qemu-kvm' binary, so you can go ahead and use it the same way you used qemu before (that's what I do and I haven't encountered any problems yet - although I don't use it that often).
Thanks KVM is working perfectly. Near native speeds :>
Offline
*edit*
Nevermind, I had a problem but I think I've figured it out.
Last edited by Xyne (2009-05-03 00:10:05)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline