Print qemu command

This commit is contained in:
2026-08-29 21:04:27 +02:00
parent 56a76ce934
commit 41bc570bfb
2 changed files with 9 additions and 2 deletions
+7 -2
View File
@@ -33,7 +33,8 @@ pub(crate) fn run(name: &str) -> Result<()> {
]
.join(" ");
let status = Command::new("qemu-system-x86_64")
let mut command = Command::new("qemu-system-x86_64");
command
.args(["-m", "1024M"])
.arg("-kernel")
.arg(vmlinuz_path.as_os_str())
@@ -41,7 +42,11 @@ pub(crate) fn run(name: &str) -> Result<()> {
.arg(initrd_path.as_os_str())
.args(["-append", &cmdline])
.args(["-nographic"])
.args(["-nic", "user,model=virtio-net-pci"])
.args(["-nic", "user,model=virtio-net-pci"]);
println!("{command:?}");
let status = command
.status()
.context("Failed to launch qemu-system-x86_64")?;