summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdis Nezirovic <adis_at_linux.org.ba>2012-02-21 19:27:08 -0600
committerErik Hanson <erik@slackbuilds.org>2012-04-09 11:53:24 -0500
commit2e149adaa4ee7fe0e17e8cb9e8cd7124fb99d1de (patch)
tree5f69e6754880af3f24617e436f9b838724f42db6
parent3bb57f25f2ee1be297d6fa21dc005f0bb112966f (diff)
downloadslackbuilds-2e149adaa4ee7fe0e17e8cb9e8cd7124fb99d1de.tar.gz
system/qemu-kvm: allow non-root use of vhost-net acceleration
This enables users in the specified group to run VMs using vhost-net acceleration without need for root privileges. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--system/qemu-kvm/patches/fixup_udev_rules.patch9
-rw-r--r--system/qemu-kvm/qemu-kvm.SlackBuild2
2 files changed, 6 insertions, 5 deletions
diff --git a/system/qemu-kvm/patches/fixup_udev_rules.patch b/system/qemu-kvm/patches/fixup_udev_rules.patch
index 98be6f0927..5af11df08d 100644
--- a/system/qemu-kvm/patches/fixup_udev_rules.patch
+++ b/system/qemu-kvm/patches/fixup_udev_rules.patch
@@ -1,6 +1,7 @@
-diff -Nur qemu-kvm-0.12.4.orig/kvm/scripts/65-kvm.rules qemu-kvm-0.12.4/kvm/scripts/65-kvm.rules
---- qemu-kvm-0.12.4.orig/kvm/scripts/65-kvm.rules 2010-05-09 06:05:19.000000000 -0500
-+++ qemu-kvm-0.12.4/kvm/scripts/65-kvm.rules 2010-06-17 18:05:29.158571682 -0500
-@@ -1 +1 @@
+diff -Nur qemu-kvm-1.0.orig/kvm/scripts/65-kvm.rules qemu-kvm-1.0/kvm/scripts/65-kvm.rules
+--- qemu-kvm-1.0.orig/kvm/scripts/65-kvm.rules 2011-12-04 04:38:06.000000000 -0600
++++ qemu-kvm-1.0/kvm/scripts/65-kvm.rules 2012-02-21 19:22:48.449351958 -0600
+@@ -1 +1,2 @@
-KERNEL=="kvm", NAME="%k", GROUP="kvm", MODE="0660"
+KERNEL=="kvm", GROUP="@GROUP@", MODE="0660"
++KERNEL=="vhost-net", GROUP="@GROUP@", MODE="0660"
diff --git a/system/qemu-kvm/qemu-kvm.SlackBuild b/system/qemu-kvm/qemu-kvm.SlackBuild
index 8f0990fa07..7a613b1b13 100644
--- a/system/qemu-kvm/qemu-kvm.SlackBuild
+++ b/system/qemu-kvm/qemu-kvm.SlackBuild
@@ -23,7 +23,7 @@
PRGNAM=qemu-kvm
VERSION=${VERSION:-1.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
KVMGROUP=${KVMGROUP:-users}