2024-07-17 12:18:27 +00:00
|
|
|
#!/bin/env fish
|
|
|
|
begin
|
|
|
|
set -l dir (status dirname)
|
2024-09-21 15:31:49 +00:00
|
|
|
set -l base "$dir/../../../Common/Software/Virtual Machine Manager/main.fish"
|
2024-07-17 12:18:27 +00:00
|
|
|
source "$dir/../../Scripts/software.fish"
|
|
|
|
|
|
|
|
function installSW
|
|
|
|
yayinst qemu-full
|
2024-07-28 21:45:30 +00:00
|
|
|
yes | runPacman --asdeps iptables-nft
|
2024-07-17 12:18:27 +00:00
|
|
|
|
2024-07-17 14:18:31 +00:00
|
|
|
yes | yayinst \
|
2024-07-17 12:18:27 +00:00
|
|
|
virtiofsd \
|
|
|
|
virt-manager \
|
|
|
|
dnsmasq \
|
|
|
|
swtpm \
|
|
|
|
lxc \
|
|
|
|
virt-bootstrap-git
|
|
|
|
end
|
|
|
|
|
2024-09-21 15:31:49 +00:00
|
|
|
function configureSW -V base
|
2024-07-17 12:18:27 +00:00
|
|
|
sudo systemctl enable --now libvirtd
|
|
|
|
sudo systemctl enable --now virtlogd
|
2024-09-21 15:31:49 +00:00
|
|
|
fish "$base" configure
|
|
|
|
end
|
|
|
|
|
|
|
|
function userConfig -V base
|
|
|
|
fish "$base" userConfig $argv
|
2024-07-17 12:18:27 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
runInstaller $argv
|
|
|
|
end
|