From 55081eeec1e26518b174c3a44f3c7453ac1f2b55 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Mon, 11 Jan 2021 17:15:01 +0800 Subject: [PATCH] [feature] install libvirt on ubuntu16 --- gui/kvm.sh | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/gui/kvm.sh b/gui/kvm.sh index b9dae13..76962b3 100755 --- a/gui/kvm.sh +++ b/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 - sudo apt install -y virt-manager + if [ -n "$DISPLAY" ] ;then + sudo apt install -y virt-manager + fi ;; pacman) # TODO