Add in qemu packages for install.
The qemu packages were removed as deps for cuttlefish-common, add them
explicitly here.
Bug: 117613492
Test: acloud setup --host
Change-Id: I6c0b081b377284b0b3733bf5307122745ada9fa0
diff --git a/setup/host_setup_runner.py b/setup/host_setup_runner.py
index d5eaeb1..156ce49 100644
--- a/setup/host_setup_runner.py
+++ b/setup/host_setup_runner.py
@@ -36,10 +36,16 @@
# Install cuttlefish-common will probably not work now.
# TODO: update this to pull from the proper repo.
-_AVD_REQUIRED_PKGS = ["cuttlefish-common", "ssvnc"]
+_AVD_REQUIRED_PKGS = ["cuttlefish-common", "ssvnc",
+ # TODO(b/117613492): This is all qemu related, take this
+ # out once they are added back in as deps for
+ # cuttlefish-common.
+ "qemu-kvm", "qemu-system-common", "qemu-system-x86",
+ "qemu-utils", "libvirt-clients", "libvirt-daemon-system"]
# dict of supported system and their distributions.
_SUPPORTED_SYSTEMS_AND_DISTS = {"Linux": ["Ubuntu", "Debian"]}
_LIST_OF_MODULES = ["kvm_intel", "kvm"]
+_UPDATE_APT_GET_CMD = "sudo apt-get update"
def _IsSupportedPlatform():
@@ -94,6 +100,7 @@
logger.info("Start to install required package: %s ",
_AVD_REQUIRED_PKGS)
+ setup_common.CheckCmdOutput(_UPDATE_APT_GET_CMD, shell=True)
for pkg in _AVD_REQUIRED_PKGS:
setup_common.InstallPackage(pkg)