[Slackbuilds-users] Suggestion for qemu-kvm slackbuild

Adis Nezirovic adis at linux.org.ba
Sat Feb 18 20:10:05 UTC 2012


Can we add the following line to udev rules (fixup_udev_rules.patch):

+KERNEL=="vhost_net", GROUP="@GROUP@", MODE="0660"

so that both, /dev/kvm and /dev/vhost_net devices are group-owned by
kvm group (or @GROUP@)
The defaults for /dev/vhost_net are root:root 600

The idea is that one can run qemu-system-x86_64 as ordinary user, and
use vhost_net acceleration using netdev syntax:

  -netdev type=tap,ifname=tap0,id=guest0,script=no,downscript=no,vhost=on \
  -device virtio-net-pci,netdev=guest0,mac=XX:YY:XX:YY:XX:YY

tap0 device is precreated in rc.bridge script (tunctl -g kvm -t tap0),
so nothing requires root privileges for running VM.


Best regards,
Adis


More information about the SlackBuilds-users mailing list