joyent/smartos-live — Issue #48: 'vm-autoboot' attr is only created if VM is created with autoboot=true
Author: Tenzer
Created: 2012-01-23 18:24:39+00:00
State: open

[root@00-25-90-21-aa-c8 ~]# echo '{"brand":"kvm", "autoboot":true}' | vmadm create
Successfully created 39b7b2f0-bf22-47f5-963a-c3f21b15e7e4
[root@00-25-90-21-aa-c8 ~]# echo 'info attr name=vm-autoboot' | zonecfg -z 39b7b2f0-bf22-47f5-963a-c3f21b15e7e4 -f -
On line 1:
attr:
name: vm-autoboot
type: string
value: true

Compare the above to here, where I don't set autoboot: true:

[root@00-25-90-21-aa-c8 ~]# echo '{"brand":"kvm", "autoboot":false}' | vmadm create
Successfully created 696ce4de-7e1f-4818-907c-d25199bc1597
[root@00-25-90-21-aa-c8 ~]# echo 'info attr name=vm-autoboot' | zonecfg -z 696ce4de-7e1f-4818-907c-d25199bc1597 -f -
On line 1:
No such attr resource.

The affect of this is the following error message printed on console and in logs when you start the VM without the vm-autoboot attribute:
*startVM(): Failed to select attr name=vm-autoboot; set value=true; end for 696ce4de-7e1f-4818-907c-d25199bc1597*

I just want to make sure this isn't something you guys already have fixed, before I start looking for a fix.