Only activate virt-manager network if necessary
This commit is contained in:
parent
295780bc31
commit
78e40151ce
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,8 @@
|
|||
#!/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;
|
||||
fi;
|
||||
|
|
Loading…
Reference in a new issue