Skip to content

Commit 4b4f55b

Browse files
committed
Add image name in VmConfig
1 parent 8d3d714 commit 4b4f55b

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

dstack-types/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ pub struct VmConfig {
151151
pub num_nvswitches: u32,
152152
#[serde(default)]
153153
pub hotplug_off: bool,
154+
pub image: Option<String>,
154155
}
155156

156157
#[derive(Serialize, Deserialize, Debug, Clone)]

vmm/src/app.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,7 @@ impl App {
519519
num_gpus: gpus.gpus.len() as u32,
520520
num_nvswitches: gpus.bridges.len() as u32,
521521
hotplug_off: cfg.cvm.qemu_hotplug_off,
522+
image: Some(manifest.image.clone()),
522523
})?;
523524
json!({
524525
"kms_urls": kms_urls,

vmm/src/one_shot.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ Compose file content (first 200 chars):
267267
num_gpus: manifest.gpus.as_ref().map_or(0, |g| g.gpus.len() as u32),
268268
num_nvswitches: manifest.gpus.as_ref().map_or(0, |g| g.bridges.len() as u32),
269269
hotplug_off: config.cvm.qemu_hotplug_off,
270+
image: Some(manifest.image.clone()),
270271
})?
271272
});
272273
let sys_config_path = vm_work_dir.shared_dir().join(".sys-config.json");

0 commit comments

Comments
 (0)