Currently whenever I try to create any zone (standard, lx-brand, bhyve) I get a failed to create error. Here is the debug output:
cf8dd9d --alias lxvm --brand lx
CreateOptions {
"brand": "lx",
"ram": "2gb",
"debug": true,
"net": "lx0|192.168.10.56/26|192.168.10.1",
"with-image": "63d6e664-3f1f-11e8-aef6-a3120cf8dd9d",
"alias": "lxvm"
}
network is [ { physical: 'lx0',
address: '192.168.10.56',
netmask: '255.255.255.192',
gateway: '192.168.10.1' } ]
{
"brand": "lx",
"ram": "2gb",
"debug": true,
"net": [
{
"physical": "lx0",
"address": "192.168.10.56",
"netmask": "255.255.255.192",
"gateway": "192.168.10.1"
}
],
"with-image": "63d6e664-3f1f-11e8-aef6-a3120cf8dd9d",
"zonepath": "/zcage/vms/lxvm",
"alias": "lxvm"
}
rctl object {
"max-physical-memory": "2147483648",
"max-locked-memory": "2147483648",
"max-swap": "4294967296",
"cpu-shares": "4096",
"max-lwps": "3000"
}
spec {
"zonepath": "/zcage/vms/lxvm",
"brand": "lx",
"ip-type": "exclusive",
"dns-domain": "",
"resolvers": [
"8.8.8.8",
"8.8.8.4"
],
"autoboot": false,
"debug": true,
"net": [
{
"physical": "lx0",
"address": "192.168.10.56",
"netmask": "255.255.255.192",
"gateway": "192.168.10.1"
}
],
"with-image": "63d6e664-3f1f-11e8-aef6-a3120cf8dd9d",
"alias": "lxvm",
"rctl": {
"max-physical-memory": "2147483648",
"max-locked-memory": "2147483648",
"max-swap": "4294967296",
"cpu-shares": "4096",
"max-lwps": "3000"
}
}
bhyve undefined
spec2script [ 'create',
'add attr',
'set name=kernel-version',
'set type=string',
'set value=3.16.0',
'end',
' set zonepath=/zcage/vms/lxvm',
' set brand=lx',
' set ip-type=exclusive',
'add attr',
'set name=resolvers',
'set type=string',
'set value=8.8.8.8,8.8.8.4',
'end',
' set autoboot=false',
' set debug=true',
' add net ',
'add property (name=gateway,value="192.168.10.1")',
'add property (name=netmask,value="255.255.255.192")',
'add property (name=ips,value="192.168.10.56")',
'add property (name=primary,value="true")',
' set physical=lx0',
' end',
'add rctl',
'set name=zone.max-physical-memory',
'add value (priv=privileged,limit=2147483648,action=deny)',
'end',
' add rctl',
'set name=zone.max-locked-memory',
'add value (priv=privileged,limit=2147483648,action=deny)',
'end',
' add rctl',
'set name=zone.max-swap',
'add value (priv=privileged,limit=4294967296,action=deny)',
'end',
' add rctl',
'set name=zone.cpu-shares',
'add value (priv=privileged, limit=4096,action=none)',
'end',
'add rctl',
'set name=zone.max-lwps',
'add value (priv=privileged,limit=3000,action=deny)',
'end',
' ',
'verify',
' commit',
'' ]
zone_spec: {
"zonepath": "/zcage/vms/lxvm",
"brand": "lx",
"ip-type": "exclusive",
"dns-domain": "",
"resolvers": [
"8.8.8.8",
"8.8.8.4"
],
"autoboot": false,
"debug": true,
"net": [
{
"physical": "lx0",
"address": "192.168.10.56",
"netmask": "255.255.255.192",
"gateway": "192.168.10.1"
}
],
"with-image": "63d6e664-3f1f-11e8-aef6-a3120cf8dd9d",
"alias": "lxvm",
"rctl": {
"max-physical-memory": "2147483648",
"max-locked-memory": "2147483648",
"max-swap": "4294967296",
"cpu-shares": "4096",
"max-lwps": "3000"
}
}
spec2script: create;add attr;set name=kernel-version;set type=string;set value=3.16.0;end; set zonepath=/zcage/vms/lxvm; set brand=lx; set ip-type=exclusive;add attr;set name=resolvers;set type=string;set value=8.8.8.8,8.8.8.4;end; set autoboot=false; set debug=true; add net ;add property (name=gateway,value="192.168.10.1");add property (name=netmask,value="255.255.255.192");add property (name=ips,value="192.168.10.56");add property (name=primary,value="true"); set physical=lx0; end;add rctl;set name=zone.max-physical-memory;add value (priv=privileged,limit=2147483648,action=deny);end; add rctl;set name=zone.max-locked-memory;add value (priv=privileged,limit=2147483648,action=deny);end; add rctl;set name=zone.max-swap;add value (priv=privileged,limit=4294967296,action=deny);end; add rctl;set name=zone.cpu-shares;add value (priv=privileged, limit=4096,action=none);end;add rctl;set name=zone.max-lwps;add value (priv=privileged,limit=3000,action=deny);end; ;verify; commit;
configuring zone syntax error at '='
Commands:
add <resource-type>
(global scope)
add <property-name> <property-value>
(resource scope)
cancel
clear <property-name>
commit
create [-F] [ -a <path> | -b | -t <template> ]
delete [-F]
end
exit [-F]
export [-f output-file]
help [commands] [syntax] [usage] [<command-name>]
info [<resource-type> [property-name=property-value]*]
remove [-F] <resource-type> [ <property-name>=<property-value> ]*
(global scope)
remove <property-name> <property-value>
(resource scope)
revert [-F]
select <resource-type> { <property-name>=<property-value> }
set <property-name>=<property-value>
verify
Assertion failed: num_unclaimed_tokens == 0, file zonecfg_lex.l, line 435
Installing returned zoneadm: lxvm: No such zone configured
Error: Installing zone lxvm
Failed creating VM : lxvm
I'm a day 1 Illumos-anything user so I'll try my best to help, but I'm guessing there is something wrong in the spec2script section.
I'm using the latest version built from source. The version number shows 1.3.5 despite that.
Currently whenever I try to create any zone (standard, lx-brand, bhyve) I get a failed to create error. Here is the debug output:
I'm a day 1 Illumos-anything user so I'll try my best to help, but I'm guessing there is something wrong in the
spec2scriptsection.I'm using the latest version built from source. The version number shows 1.3.5 despite that.
OmniOS version - omnios-r151028-d3d0427bff