Add basic libvirt installation

This commit is contained in:
flyingscorpio@arch-desktop 2022-02-09 20:01:14 +01:00
parent 808ae64a86
commit ca2dc92a96

View file

@ -612,3 +612,24 @@ gaming:
- lib32-gst-plugins-base-libs
- vulkan-icd-loader
- lib32-vulkan-icd-loader
libvirt:
- install:
arch:
- libvirt
- iptables-nft
- dnsmasq
- bridge-utils
- virt-install
- virt-viewer
- run:
- sudo usermod -aG libvirt "${USER}"
- run:
- 'grep "libvirt libvirt_guest" /etc/nsswitch.conf >/dev/null 2>&1 || sudo sed -i -E "s/^hosts: (.+)/hosts: libvirt libvirt_guest \1/" /etc/nsswitch.conf'
- run:
- sudo systemctl start libvirtd.service && sudo systemctl enable libvirtd.service
- run:
- virsh pool-define-as libvirt-pool dir - - - - "/home/${USER}/.local/libvirt/images";
virsh pool-build libvirt-pool &&
virsh pool-start libvirt-pool &&
virsh pool-autostart libvirt-pool