Add basic libvirt installation
This commit is contained in:
parent
808ae64a86
commit
ca2dc92a96
1 changed files with 21 additions and 0 deletions
21
configs.yml
21
configs.yml
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue