Example SmartOS zone manifests
Published on 2016-11-19 15:31:56
Joyent branded zone (basically a Solaris zone) with sensible defaults:
{
"brand": "joyent",
"quota": 20,
"image_uuid": "70e3ae72-96b6-11e6-9056-9737fd4d0764",
"max_physical_memory": 1024,
"alias": "foo",
"hostname": "foo",
"resolvers": ["8.8.8.8", "8.8.4.4"],
"nics": [
{
"nic_tag": "dmz",
"ips": ["dhcp"],
"primary": 1
}
]
}
SmartOS zone with multiple NICs on different nic tags and different VLANs:
{
"brand": "joyent",
"quota": 20,
"image_uuid": "f6acf198-2037-11e7-8863-8fdd4ce58b6a",
"max_physical_memory": 1024,
"alias": "automation",
"hostname": "automation",
"resolvers": ["172.21.3.30", "8.8.8.8", "8.8.4.4"],
"dns_domain": "game",
"nics": [
{
"nic_tag": "admin",
"ip": "172.21.4.17",
"netmask": "255.255.255.0",
"primary": 1
},
{
"nic_tag": "dmz",
"ip": "172.21.3.17",
"netmask": "255.255.255.0",
"gateway": "172.21.3.1",
"vlan_id": 3
},
{
"nic_tag": "automation",
"ip": "172.21.14.1",
"netmask": "255.255.255.0",
"vlan_id": 14
}
]
}
LX branded zone running nodejs4:
{
"brand": "lx",
"quota": 20,
"image_uuid": "5e6fd874-b2b3-11e6-bded-1fc5ebccc18f",
"kernel_version": "4.3.6",
"max_physical_memory": 1024,
"alias": "foo",
"hostname": "foo",
"resolvers": ["8.8.8.8", "8.8.4.4"],
"nics": [
{
"nic_tag": "dmz",
"ips": ["dhcp"],
"primary": 1
}
]
}
The kernel_version option isn't used for anything, but it's got to be present so that "ubuntu" or "debian" is more convinced that it's actually a real machine, and not just running on top of the smartos kernel.
template for a KVM vm with multiple nics:
{
"brand": "kvm",
"alias": "foo",
"vcpus": 4,
"autoboot": false,
"ram": 4096,
"resolvers": ["172.21.3.30","8.8.8.8","8.8.4.4"],
"disks": [
{
"boot": true,
"model": "virtio",
"size": 40960
}],
"nics": [
{
"nic_tag": "dmz",
"model": "virtio",
"ip": "172.21.3.35",
"netmask": "255.255.255.0",
"gateway": "172.21.3.1",
"primary": 1,
"vlan_id": 3
}, {
"nic_tag": "ldap",
"model": "virtio",
"ip": "172.21.6.35",
"netmask": "255.255.255.0",
"vlan_id": 6
}, {
"nic_tag": "phones",
"model": "virtio",
"ip": "172.21.15.2",
"netmask": "255.255.255.0",
"vlan_id": 15
}]
}