summary refs log tree commit diff
path: root/host/start-vm
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-12-05 21:45:27 +0100
committerAlyssa Ross <hi@alyssa.is>2023-12-05 21:45:27 +0100
commitd6373820f71f32f363d95ef6211d36a359c02e62 (patch)
tree47b33bc117584d028738ab02191cba9dff33a7a5 /host/start-vm
parent009a0369c69cec24e0ffc43e4ba3d71d290b2bef (diff)
downloadspectrum-d6373820f71f32f363d95ef6211d36a359c02e62.tar
spectrum-d6373820f71f32f363d95ef6211d36a359c02e62.tar.gz
spectrum-d6373820f71f32f363d95ef6211d36a359c02e62.tar.bz2
spectrum-d6373820f71f32f363d95ef6211d36a359c02e62.tar.lz
spectrum-d6373820f71f32f363d95ef6211d36a359c02e62.tar.xz
spectrum-d6373820f71f32f363d95ef6211d36a359c02e62.tar.zst
spectrum-d6373820f71f32f363d95ef6211d36a359c02e62.zip
Increase VM memory size
128M was not enough to even get to init on aarch64.  We can probably
optimise the kernel at some point, but I think that's something to do
once things are further along.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
Diffstat (limited to 'host/start-vm')
-rw-r--r--host/start-vm/lib.rs2
-rw-r--r--host/start-vm/tests/vm_command-basic.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/host/start-vm/lib.rs b/host/start-vm/lib.rs
index 32ba34d..5c07575 100644
--- a/host/start-vm/lib.rs
+++ b/host/start-vm/lib.rs
@@ -61,7 +61,7 @@ pub fn vm_command(dir: &Path, api_socket_fd: RawFd) -> Result<Command, String> {
     let mut command = Command::new("cloud-hypervisor");
     command.args(["--api-socket", &format!("fd={api_socket_fd}")]);
     command.args(["--cmdline", "console=ttyS0 root=PARTLABEL=root"]);
-    command.args(["--memory", "size=128M,shared=on"]);
+    command.args(["--memory", "size=256M,shared=on"]);
     command.args(["--console", "pty"]);
     command.arg("--kernel");
     command.arg(config_dir.join("vmlinux"));
diff --git a/host/start-vm/tests/vm_command-basic.rs b/host/start-vm/tests/vm_command-basic.rs
index 0abe23b..fac6a3d 100644
--- a/host/start-vm/tests/vm_command-basic.rs
+++ b/host/start-vm/tests/vm_command-basic.rs
@@ -32,7 +32,7 @@ fn main() -> std::io::Result<()> {
         OsStr::new("--cmdline"),
         OsStr::new("console=ttyS0 root=PARTLABEL=root"),
         OsStr::new("--memory"),
-        OsStr::new("size=128M,shared=on"),
+        OsStr::new("size=256M,shared=on"),
         OsStr::new("--console"),
         OsStr::new("pty"),
         OsStr::new("--kernel"),