Skip to content

Instantly share code, notes, and snippets.

@p7cq
Created December 22, 2015 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save p7cq/572b6b3108389fa7301a to your computer and use it in GitHub Desktop.
Save p7cq/572b6b3108389fa7301a to your computer and use it in GitHub Desktop.
Smart OS - Create a KVM-based VM
{
"brand": "kvm",
"vcpus": 2,
"alias": "s1node1.paulluaq.lan",
"hostname": "s1node1.paulluaq.lan",
"autoboot": false,
"ram": 4096,
"resolvers": ["192.168.1.102", "192.168.1.102"],
"disks": [
{
"boot": true,
"model": "virtio",
"size": 15360
}
],
"nics": [
{
"nic_tag": "admin",
"model": "virtio",
"ip": "192.168.1.106",
"netmask": "255.255.255.0",
"gateway": "192.168.1.1",
"primary": 1
}
]
}
@p7cq
Copy link
Author

p7cq commented Dec 22, 2015

Create the VM:
# vmadm create < kvm-linux.json

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