joyent/smartos-live — Issue #22: "vmadm create -f" doesn't work in 2011/12/15 release
Author: sam
Created: 2011-12-16 07:57:39+00:00
State: open

On a fresh "prototype" configuration file:

```bash
[root@00-21-28-46-f1-04 /zones/json]# vmadm create -f base.json

/usr/vm/node_modules/VM.js:1569
if (p.hasOwnProperty('used_disk_indexes')) {
^
ReferenceError: p is not defined
at createVolumes (/usr/vm/node_modules/VM.js:1569:5)
at /usr/vm/node_modules/VM.js:1738:13
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
at /usr/vm/node_modules/VM.js:1435:9
at Object.forEach (/usr/node_modules/async.js:93:20)
```

The file was:

```json
{
"brand": "kvm",
"vcpus": 1,
"autoboot": false,
"ram": 2048,
"hostname": "base",
"alias": "base",
"default_gateway": "192.168.0.1",
"resolvers" : ["192.168.0.2", "192.168.0.3"],
"disks": [
{
"boot": true,
"model": "virtio",
"size": 40960
}
],
"nics": [
{
"nic_tag": "admin",
"model": "virtio",
"ip": "192.168.0.10",
"netmask": "255.255.255.0",
"gateway": "192.168.0.1",
}
]
}
```