Sun

Anyone experienced with Zones/SmartOS?

So I decided to use SmartOS since I hear that it's a stable distro of illumos. Not sure about OmniOS, but the hosting with it was super expensive relative to SmartOS hosting, so I figured I'd try SmartOS.

Anyway, I don't know if this applies to every other implementation of Zones, but here's the error I keep getting:

"[[email protected] ~]# vmadm create -f ekunia1.json
UNCAUGHT EXCEPTION (84fe15c5): dumping core

/usr/vm/sbin/vmadm:645:28
fs.readFile (fs.js:176:14)
Object.oncomplete (fs.js:297:15)
Abort (core dumped)"

Furthermore, the ekunia1.json manifest being summoned:

Code:
{
"brand": "joyent",
"dataset_uuid": "a0f8cf30-f2ea-11e1-8a51-5793736be67c",
"alias": "ekunia1",
"hostname": "ekunia1",
"max_physical_memory": 32768,
"zfs_root_compression": lzjb
"dns_domain": ekunia.com
"quota": 0,
"nics": [
{
"nic_tag": "admin",
"ip": "192.95.30.28",
"netmask": "255.255.255.0",
"gateway": "10.88.88.2"
}
]
}


EDIT: I'd also like to mention that this is an undocumented error AFAIK.
Nuke wrote:
So I decided to use SmartOS since I hear that it's a stable distro of illumos. Not sure about OmniOS, but the hosting with it was super expensive relative to SmartOS hosting, so I figured I'd try SmartOS.

Anyway, I don't know if this applies to every other implementation of Zones, but here's the error I keep getting:

"[[email protected] ~]# vmadm create -f ekunia1.json
UNCAUGHT EXCEPTION (84fe15c5): dumping core

/usr/vm/sbin/vmadm:645:28
fs.readFile (fs.js:176:14)
Object.oncomplete (fs.js:297:15)
Abort (core dumped)"

Furthermore, the ekunia1.json manifest being summoned:

Code:
{
"brand": "joyent",
"dataset_uuid": "a0f8cf30-f2ea-11e1-8a51-5793736be67c",
"alias": "ekunia1",
"hostname": "ekunia1",
"max_physical_memory": 32768,
"zfs_root_compression": lzjb
"dns_domain": ekunia.com
"quota": 0,
"nics": [
{
"nic_tag": "admin",
"ip": "192.95.30.28",
"netmask": "255.255.255.0",
"gateway": "10.88.88.2"
}
]
}


EDIT: I'd also like to mention that this is an undocumented error AFAIK.


Two things stick out to me:

Try removing
"zfs_root_compression": lzjb

and the fact that the gateway doesn't mesh with the IP/Netmask combo could be causing issues. Try removing those items and trying again.

-Matt
I just realized that I forgot some quotation marks around strings.

And I realized that over the course of the last day or so, actually. Plus the gateway was never configured. But alas, when "fixed", it yielded the another undocumented error. And when the ekunia.com quotes were removed, another undocumented error was found. I've begin to believe that these are not actual error codes.

New file:

Code:
{
"brand": "joyent",
"dataset_uuid": "a0f8cf30-f2ea-11e1-8a51-5793736be67c",
"alias": "ekunia1",
"hostname": "ekunia1",
"max_physical_memory": 32768,
"dns_domain": "ekunia.com"
"quota": 0,
"nics": [
{
"nic_tag": "admin",
"ip": "192.95.30.28",
"netmask": "ffffff00",
"gateway": "192.95.30.28"
}
]
}


Thanks, Matt/Mdrobnak.
Error:

Code:
Object.fs.open (fs.js:330:11)
Object.fs.readFile (fs.js:116:6)
readFile (/usr/vm/sbin/vmadm:634:8)
main (/usr/vm/sbin/vmadm:772:9)
/usr/vm/sbin/vmadm:1077:5
exports.rootInSmartosGlobal (/usr/node/0.8/node_modules/onlyif.js:44:9)
ChildProcess.exithandler (child_process.js:538:7)
ChildProcess.EventEmitter.emit (events.js:99:17)
maybeClose (child_process.js:638:16)
Process._handle.onexit (child_process.js:680:5)
Abort (core dumped)


From

Code:
{
"brand": "joyent",
"dataset_uuid": "a0f8cf30-f2ea-11e1-8a51-5793736be67c",
"alias": "ekunia1",
"hostname": "ekunia1",
"max_physical_memory": 32768,
"dns_domain": ekunia.com,
"quota": 0,
"nics": [
{
"nic_tag": "admin",
"ip": "192.95.30.28",
"netmask": "ffffff00",
"mac": "82:3c:a3:ac:44:33",
"gateway": "192.95.30.28",
}
]
}
Got it, with a little help from the issues area at smartos-live.

I had to set the netmask to 255.255.255.0 and remove the comma after gateway.

Additionally, I had some other syntax errors, mostly relating to quotation marks.