> > I’ve accepted Eric’s suggestion and set the “nowait” parameter. The create > method now only needs around 4 seconds. > Additional, I run a script to check the state after executing ‘vmadm > create’ and found that the vm state transfer is: > ‘provisioning’ -> ‘running’ -> ‘shutting_down’ -> ‘down’ -> ‘ready’ -> > ‘running’ > > Is there any reason why the vm reboots after creation? >
The reboot happens because of the zoneinit service in the zone. If you use the 'joyent-minimal' brand that will not happen, which is one of the reasons creation is faster with joyent-minimal. You should see a /var/svc/log/system-zoneinit\:default.log file in the zone which includes some xtrace and other output from that script. You can also look at /zones/fec7e254-6e98-11e5-9284-3f9c607cb3e7/root/var/zoneinit/includes/ on your system for the scripts that get run as part of zoneinit. Hope that helps. Josh ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
