Skip to content

Instantly share code, notes, and snippets.

@costash
Last active August 29, 2015 13:57
Show Gist options
  • Save costash/9447177 to your computer and use it in GitHub Desktop.
Save costash/9447177 to your computer and use it in GitHub Desktop.
Simple description for Qemu VMs that should given at startup.
{
"object_type": "vm_startup",
"range_low": 1,
"range_high": 50,
"max_ram": "384m",
"base_name": "VM_test",
"kernel_image": {
"dir": "/path_to_kernel",
"image_name": "linux",
"init_params": {
"init": "/bin/bash",
"console": "ttyS0,115200n8",
"root": "/dev/root",
"rootflags": {
"trans": "virtio",
"version": "9p2000.u"
},
"mode": "ro",
"rootfstype": "9p"
}
},
"properties": [
{
"type": "serial",
"id": "serial0",
"role": "guest_management",
"socket_path": "/tmp/some_path/mgmt.socket"
},
{
"type": "monitor",
"id": "monitor",
"role": "qemu_monitor",
"socket_path": "/tmp/some_path/mon.socket"
},
{
"type": "fsdev",
"id": "fsdev-root",
"path": "/root_path",
"mount_tag": "/dev/root",
"device_id": "fs-root",
"device_type": "virtio-9p-pci"
},
{
"type": "fsdev",
"id": "fsdev-home",
"path": "/home_path",
"mount_tag": "overlayshare",
"device_id": "fs-home",
"device_type": "virtio-9p-pci"
},
{
"type": "fsdev",
"id": "fsdev-kernel",
"path": "/path_to_kernel",
"mount_tag": "kernelshare",
"device_id": "fs-kernel",
"device_type": "virtio-9p-pci"
}
]
}
@dbaluta
Copy link

dbaluta commented Mar 12, 2014

socket_path should include VM name (wildcard), to avoid conflicts

@dbaluta
Copy link

dbaluta commented Mar 12, 2014

vm.json and topo.json should also be pushed to git repo under configs/ directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment