mbox

[v2,1/2] Qemu: add a group kvm to access /dev/kvm eaiser

Message ID 1466161601-702-1-git-send-email-jonatan.schlag@ipfire.org
State Accepted
Commit 5cc7ae0926454f93998f7c25b931dae7eec0539d
Headers

Message

Jonatan Schlag June 17, 2016, 9:06 p.m. UTC
  As a normal user, it is not possible to use qemu with KVM. This is bad
because it is better when it is possible to start the machine with a
less privileged user. To achieve this a group KVM is created and the
access to /dev/kvm is allowed for this group. So every user in this
group can use qemu with KVM.
This change is also useful for libvirt because the VMs can be started
with user nobody and group kvm.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
---
 config/qemu/65-kvm.rules       | 2 ++
 config/rootfiles/packages/qemu | 1 +
 lfs/qemu                       | 4 +++-
 src/paks/qemu/install.sh       | 2 ++
 4 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 config/qemu/65-kvm.rules