Skip to content

Commit e7b966f

Browse files
committed
fix: networking configuration moved out from VmConfig
1 parent 2a5e5e0 commit e7b966f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

vmm/src/one_shot.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,15 +282,20 @@ Compose file content (first 200 chars):
282282
manifest: manifest.clone(),
283283
image,
284284
cid: one_shot_cid, // Avoid conflict with existing VMs
285-
networking: config.networking,
286285
workdir: workdir_path.clone(),
287286
gateway_enabled: app_compose.gateway_enabled(),
288287
};
289288

290-
let process_config = vm_builder_config
289+
let process_configs = vm_builder_config
291290
.config_qemu(&workdir_path, &config.cvm, &gpus)
292291
.context("Failed to build QEMU configuration")?;
293292

293+
// Get the main QEMU process config (first in the list)
294+
let process_config = process_configs
295+
.into_iter()
296+
.next()
297+
.context("No QEMU process configuration generated")?;
298+
294299
// Build the QEMU command
295300
let mut full_command = vec![process_config.command.clone()];
296301
full_command.extend(process_config.args.clone());

0 commit comments

Comments
 (0)