qemu: set kvm access to users in the wheel group, revbump.
This commit is contained in:
parent
af1ffa3963
commit
e2bb019c13
3 changed files with 24 additions and 0 deletions
18
srcpkgs/qemu/INSTALL
Normal file
18
srcpkgs/qemu/INSTALL
Normal file
|
@ -0,0 +1,18 @@
|
|||
case "${ACTION}" in
|
||||
post)
|
||||
cat <<_EOF
|
||||
==========================================================================
|
||||
|
||||
To enable KVM your user must be added to the 'wheel' group:
|
||||
|
||||
$ usermod -aG wheel <username>
|
||||
|
||||
Don't forget to load the appropiate KVM module for your CPU:
|
||||
|
||||
$ modprobe kvm-amd # for AMD CPUs
|
||||
$ modprobe kvm-intel # for Intel CPUs
|
||||
|
||||
==========================================================================
|
||||
_EOF
|
||||
;;
|
||||
esac
|
1
srcpkgs/qemu/files/65-kvm.rules
Normal file
1
srcpkgs/qemu/files/65-kvm.rules
Normal file
|
@ -0,0 +1 @@
|
|||
KERNEL=="kvm", GROUP="wheel", MODE="0660"
|
|
@ -1,6 +1,7 @@
|
|||
# Template file for 'qemu'
|
||||
pkgname=qemu
|
||||
version=1.0
|
||||
revision=1
|
||||
distfiles="http://wiki.qemu.org/download/qemu-${version}.tar.gz"
|
||||
build_style=configure
|
||||
configure_args="--prefix=/usr --sysconfdir=/etc --enable-spice
|
||||
|
@ -44,3 +45,7 @@ Add_dependency build libcurl-devel
|
|||
pre_configure() {
|
||||
sed -i -e 's/lib64/lib/g' x86_64.ld
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vinstall ${FILESDIR}/65-kvm.rules 644 lib/udev/rules.d
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue