first commit
This commit is contained in:
commit
1997d73859
13 changed files with 2334 additions and 0 deletions
18
bin/virt-manager-launcher
Executable file
18
bin/virt-manager-launcher
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
if [ "$EUID" != '0' ]; then
|
||||
echo 'error: you cannot perform this operation unless you are root.'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
systemctl start libvirtd
|
||||
virsh net-start default
|
||||
|
||||
if [ -n "$SUDO_USER" ]; then
|
||||
su "$SUDO_USER" -c 'virt-manager --no-fork'
|
||||
else
|
||||
virt-manager --no-fork
|
||||
fi
|
||||
|
||||
virsh net-destroy default
|
||||
systemctl stop libvirtd
|
Loading…
Add table
Add a link
Reference in a new issue