joyent/smartos-live — Issue #61: Error with vmadm image
Author: magnayn
Created: 2012-02-17 16:32:28+00:00
State: open

A config file of

```javascript
{
"brand": "joyent",
"dataset_uuid": "467ca742-4873-11e1-80ea-37290b38d2eb",
"nics": [
{
"nic_tag": "admin",
"ip": "192.168.111.31",
"netmask": "255.255.255.0",
"gateway": "192.168.111.1"
}
]
}
```

passed to vmadm create < config yields an error :

```
fs.js:221
return binding.open(path, stringToFlags(flags), mode);
^
Error: EBADF, Bad file number '/zones/1d0c4411-b3ed-4f09-90d4-c397ff234365/root/etc/hostname.net0'
at Object.openSync (fs.js:221:18)
at Object.writeFileSync (fs.js:483:15)
at writeZoneconfig (/usr/vm/node_modules/VM.js:1800:20)
at /usr/vm/node_modules/VM.js:2767:17
at /usr/node_modules/async.js:453:21
at /usr/node_modules/async.js:158:13
at /usr/node_modules/async.js:118:13
at /usr/node_modules/async.js:129:25
at /usr/node_modules/async.js:160:17
at /usr/node_modules/async.js:458:34
```

(SunOS 00-0c-29-fe-47-fd 5.11 joyent_20111219T225629Z i86pc i386 i86pc)