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

9 lines
203 B
Bash
Executable file

#!/bin/bash
sudo usermod -aG libvirt "$USER";
sudo virsh net-autostart default;
if ! sudo virsh net-info default | grep "^Active:\s*yes$" > /dev/null;
then
sudo virsh net-start default || true;
fi;