When I run qemu -cpu kvm64 -snapshot -hda binary.img
at a local console, the image boots and runs as I expect. However, when I log in via ssh -C -X
, I see:
$ qemu -cpu kvm64 -snapshot -hda binary.img
open /dev/kvm: Permission denied
Could not initialize KVM, will disable KVM support
qemu: pci_add_option_rom: failed to find romfile "pxe-rtl8139.bin"
(The pxe-rtl8139
message is there when run locally as well, it doesn't seem to matter.)
Why does using SSH make a difference? How can I run qemu
over SSH without needing root permissions?
Both machines are Ubuntu 11.10, qemu and qemu-kvm are 0.14.1+noroms-0ubuntu6.2
After additional information in the comments, You need to add your user to the kvm group.