Skip to content

Instantly share code, notes, and snippets.

@nshalman
Created July 1, 2016 15:13
Show Gist options
  • Save nshalman/8989c45057f7282a85eb774452088e31 to your computer and use it in GitHub Desktop.
Save nshalman/8989c45057f7282a85eb774452088e31 to your computer and use it in GitHub Desktop.
Booting CeranaOS on SmartOS
{
"alias": "cerana-dev-node",
"autoboot": "false",
"brand": "kvm",
"ram": 3072,
"vcpus": 3,
"boot": "order=dc",
"disks": [
{
"path": "/cerana.iso",
"media": "cdrom",
"model": "ide",
"boot": true
},
{
"size": 2000,
"compression": "lz4",
"model": "virtio"
}
],
"nics": [
{
"nic_tag": "external",
"model": "virtio",
"ips": [ "dhcp" ],
"primary": true
}
]
}
#!/bin/bash -x
vmadm create -f /opt/vmconfigs/cerana-dev-node.json
UUID=$(vmadm list -Ho uuid state=stopped alias=cerana-dev-node)
cp /opt/vmconfigs/isos/cerana.iso /zones/$UUID/root
vmadm start $UUID ; vmadm console $UUID
vmadm delete $UUID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment