[feature] install libvirt on ubuntu16
This commit is contained in:
parent
595a6d6309
commit
55081eeec1
18
gui/kvm.sh
18
gui/kvm.sh
|
@ -21,9 +21,23 @@ case "$PM" in
|
||||||
apt)
|
apt)
|
||||||
#sudo apt install libvirt-daemon-system libvirt-clients virt-manager bridge-utils
|
#sudo apt install libvirt-daemon-system libvirt-clients virt-manager bridge-utils
|
||||||
# cli
|
# cli
|
||||||
sudo apt install -y libvirt-daemon-system libvirt-clients
|
case "$DISTRIB_CODENAME" in
|
||||||
|
xenial)
|
||||||
|
sudo apt install -y qemu-kvm libvirt-bin virtinst bridge-utils cpu-checker
|
||||||
|
;;
|
||||||
|
focal)
|
||||||
|
sudo apt install -y libvirt-daemon-system libvirt-clients cpu-checker
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "unsupported os"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
kvm-ok
|
||||||
# gui
|
# gui
|
||||||
sudo apt install -y virt-manager
|
if [ -n "$DISPLAY" ] ;then
|
||||||
|
sudo apt install -y virt-manager
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
pacman)
|
pacman)
|
||||||
# TODO
|
# TODO
|
||||||
|
|
Loading…
Reference in New Issue
Block a user