Use Virt Manager for test
Bug: 171278952
Test: atest VirtualizationHostTestCases
Change-Id: Ib603194acb90d4e0952cf276c136efd246d0ce31
diff --git a/virtmanager/src/main.rs b/virtmanager/src/main.rs
index 7b0423b..88d6ed7 100644
--- a/virtmanager/src/main.rs
+++ b/virtmanager/src/main.rs
@@ -34,6 +34,7 @@
const FIRST_GUEST_CID: Cid = 10;
const BINDER_SERVICE_IDENTIFIER: &str = "android.system.virtmanager";
+const CROSVM_PATH: &str = "/apex/com.android.virt/bin/crosvm";
/// The unique ID of a VM used (together with a port number) for vsock communication.
type Cid = u32;
@@ -169,7 +170,7 @@
/// Start an instance of `crosvm` to manage a new VM.
fn run_vm(config: &VmConfig, cid: Cid) -> Result<Child, io::Error> {
- let mut command = Command::new("crosvm");
+ let mut command = Command::new(CROSVM_PATH);
// TODO(qwandor): Remove --disable-sandbox.
command.arg("run").arg("--disable-sandbox").arg("--cid").arg(cid.to_string());
if let Some(initrd) = &config.initrd {