MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / qemu_config

Function qemu_config

crates/openshell-driver-vm/src/runtime.rs:1405–1428  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1403 use super::*;
1404
1405 fn qemu_config() -> VmLaunchConfig {
1406 VmLaunchConfig {
1407 root_disk: PathBuf::from("/rootfs.ext4"),
1408 overlay_disk: PathBuf::from("/overlay.ext4"),
1409 image_disk: None,
1410 kernel_image: None,
1411 vcpus: 2,
1412 mem_mib: 2048,
1413 exec_path: "/srv/openshell-vm-sandbox-init.sh".to_string(),
1414 args: Vec::new(),
1415 env: vec!["OPENSHELL_ENDPOINT=http://10.0.128.1:8080".to_string()],
1416 workdir: "/".to_string(),
1417 log_level: 0,
1418 console_output: PathBuf::from("/console.log"),
1419 backend: VmBackend::Qemu,
1420 gpu_bdf: Some("0000:01:00.0".to_string()),
1421 tap_device: Some("vmtap-test".to_string()),
1422 guest_ip: Some("10.0.128.2".to_string()),
1423 host_ip: Some("10.0.128.1".to_string()),
1424 vsock_cid: Some(4),
1425 guest_mac: Some("02:00:00:00:00:01".to_string()),
1426 gateway_port: Some(8080),
1427 }
1428 }
1429
1430 #[test]
1431 fn qemu_guest_env_vars_include_driver_runtime_metadata() {

Calls

no outgoing calls