PortValhalla/scripts/Common/Config/Virtual Machine Manager/install.sh

9 lines
203 B
Bash
Raw Normal View History

#!/bin/bash
2023-04-06 16:06:50 +00:00
sudo usermod -aG libvirt "$USER";
sudo virsh net-autostart default;
if ! sudo virsh net-info default | grep "^Active:\s*yes$" > /dev/null;
then
2024-03-25 02:01:29 +00:00
sudo virsh net-start default || true;
fi;