Thanks for your help.

In additional, I found two flags: /var/svc/provisioning and 
/tmp/.FIRST_REBOOT_NOT_YET_COMPLETE

While the zone is created, there should be a /var/svc/provisioning
After the VM boots in the first time, there will be a 
/tmp/.FIRST_REBOOT_NOT_YET_COMPLETE and /var/svc/provisioning will be changed 
to another flag.
After the VM reboots, the /tmp/.FIRST_REBOOT_NOT_YET_COMPLETE flag is gone

By checking these two flags, I can be aware of the creation progress.

From: Josh Wilsdon <[email protected]<mailto:[email protected]>>
Reply-To: 
"[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Monday, February 1, 2016 at 13:10
To: 
"[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: [smartos-discuss] Why the VM will reboot after creation with 
autoboot=true


I found that the VM will reboot once after creation.
The vm transition is like “provisioning” -> “running” -> “shutting_down” -> 
“stopped” -> “running”

I’d like to know:

  1.  What happens after provisioning between the first running and the second 
running
  2.  Which service launches the reboot command.
  3.  Currently, there are about 10 or more seconds of the first running. Can I 
accelerate the progress?

Hi,

1+2. When you use the "joyent" brand for your VM, the 'zoneinit' service will 
reboot the VM as part of the setup.

3. You could accelerate the process by using the 'joyent-minimal' brand which 
does not use the zoneinit service and does not require a reboot.

Hope that helps,
Josh
smartos-discuss | Archives<https://www.listbox.com/member/archive/184463/=now> 
[https://www.listbox.com/images/feed-icon-10x10.jpg5ffe08a.jpg?uri=aHR0cHM6Ly93d3cubGlzdGJveC5jb20vaW1hZ2VzL2ZlZWQtaWNvbi0xMHgxMC5qcGc]
 <https://www.listbox.com/member/archive/rss/184463/27557398-e0aa91a4>  | 
Modify<https://www.listbox.com/member/?&;> Your Subscription       
[https://www.listbox.com/images/listbox-logo-small.png5ffe08a.png?uri=aHR0cHM6Ly93d3cubGlzdGJveC5jb20vaW1hZ2VzL2xpc3Rib3gtbG9nby1zbWFsbC5wbmc]
 <http://www.listbox.com>



-------------------------------------------
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

Reply via email to