[feature] install libvirt on ubuntu16
This commit is contained in:
parent
595a6d6309
commit
55081eeec1
16
gui/kvm.sh
16
gui/kvm.sh
|
@ -21,9 +21,23 @@ case "$PM" in
|
|||
apt)
|
||||
#sudo apt install libvirt-daemon-system libvirt-clients virt-manager bridge-utils
|
||||
# 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
|
||||
if [ -n "$DISPLAY" ] ;then
|
||||
sudo apt install -y virt-manager
|
||||
fi
|
||||
;;
|
||||
pacman)
|
||||
# TODO
|
||||
|
|
Loading…
Reference in New Issue
Block a user