summaryrefslogtreecommitdiff
path: root/cs/Gentoo/Qemu.md
blob: 69870c62c518558d81f7966f0c341cad6f1a37a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Installation
use flags
app-emulation/qemu opengl spice vhost-net usbredir
app-emulation/libvirt pcap virt-network numa fuse macvtap vepa qemu
app-emulation/virt-manager gui

vim /etc/portage/make.conf
add
QEMU_SOFTMMU_TARGETS="arm x86_64 sparc"
QEMU_USER_TARGETS="x86_64"

emerge -av app-emulation/libvirt dev-python/libvirt-python app-emulation/qemu app-emulation/virt-manager

usermod -a -G libvirt $USER
add to kvm group too

vim /etc/libvirt/libvirtd.conf
auth_unix_ro = "none"
auth_unix_rw = "none"
unix_sock_group = "libvirt"
unix_sock_ro_perms = "0777"
unix_sock_rw_perms = "0770"

rc-service libvirtd start && rc-update add libvirtd default

echo "uri_default = \"qemu:///system\"" >> ~/.config/libvirt/libvirt.conf # have virsh & virt-manager on same qemu