diff --git a/netsim/install/libvirt.sh b/netsim/install/libvirt.sh index e713491910..3b944bb06a 100755 --- a/netsim/install/libvirt.sh +++ b/netsim/install/libvirt.sh @@ -12,7 +12,11 @@ $SUDO apt-get install -y $FLAG_APT ebtables dnsmasq-base sshpass tree jq bridge- echo ".. common libraries installed" echo echo "Install libvirt packages" -$SUDO apt-get install -y $FLAG_APT libvirt-dev qemu-kvm cpu-checker virtinst +QEMU_PACKAGE="qemu-kvm" +if apt-cache show qemu-system-x86 >/dev/null 2>&1; then + QEMU_PACKAGE="qemu-system-x86" +fi +$SUDO apt-get install -y $FLAG_APT libvirt-dev $QEMU_PACKAGE cpu-checker virtinst $SUDO apt-get install -y $FLAG_APT libvirt-daemon-system libvirt-clients echo ".. libvirt packages installed" echo @@ -37,11 +41,11 @@ cat <