Skip to content

Commit

Permalink
feat(xtask): set vcpu_count for Firecracker
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Nov 15, 2024
1 parent 2252b3f commit 66aaaa5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion xtask/src/ci/firecracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ impl Firecracker {
let config = format!(
include_str!("firecracker_vm_config.json"),
kernel_image_path = "hermit-loader-x86_64-fc",
initrd_path = self.build.image().display()
initrd_path = self.build.image().display(),
vcpu_count = self.build.smp,
);
eprintln!("firecracker config");
eprintln!("{config}");
Expand Down
2 changes: 1 addition & 1 deletion xtask/src/ci/firecracker_vm_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}},
"drives": [],
"machine-config": {{
"vcpu_count": 1,
"vcpu_count": {vcpu_count},
"mem_size_mib": 256,
"smt": false
}}
Expand Down

0 comments on commit 66aaaa5

Please sign in to comment.