Create local instance with local image
- Prepare the launch_cvd cmd and check the required enviornment.
- Create local instance via launch_cvd cmd and wait for boot up.
- Launch vnc client after AVD boot up.
Bug: 111162251
Test: m acloud && atest acloud_test &&
acloud create --local_instance --local_image -vv
Change-Id: I73461b023c444c1ebb29818eef4475bbf86a4200
diff --git a/setup/host_setup_runner.py b/setup/host_setup_runner.py
index 7869cae..d5eaeb1 100644
--- a/setup/host_setup_runner.py
+++ b/setup/host_setup_runner.py
@@ -39,7 +39,6 @@
_AVD_REQUIRED_PKGS = ["cuttlefish-common", "ssvnc"]
# dict of supported system and their distributions.
_SUPPORTED_SYSTEMS_AND_DISTS = {"Linux": ["Ubuntu", "Debian"]}
-_LIST_OF_GROUPS = ["kvm", "libvirt", "cvdnetwork"]
_LIST_OF_MODULES = ["kvm_intel", "kvm"]
@@ -121,11 +120,11 @@
if not _IsSupportedPlatform():
return False
- return not (self._CheckUserInGroups(_LIST_OF_GROUPS)
+ return not (self.CheckUserInGroups(constants.LIST_CF_USER_GROUPS)
and self._CheckLoadedModules(_LIST_OF_MODULES))
@staticmethod
- def _CheckUserInGroups(group_name_list):
+ def CheckUserInGroups(group_name_list):
"""Check if the current user is in the group.
Args:
@@ -170,7 +169,7 @@
"sudo rmmod kvm",
"sudo modprobe kvm",
"sudo modprobe kvm_intel"]
- for group in _LIST_OF_GROUPS:
+ for group in constants.LIST_CF_USER_GROUPS:
setup_cmds.append("sudo usermod -aG %s % s" % (group, username))
print("Below commands will be run:")