Sample Header Ad - 728x90

How to await Solaris zone boot (first time)

2 votes
2 answers
1095 views
Solaris 11. I've found that the zone boot command (e.g. zoneadm -z myzone boot) returns before the zone is fully booted/configured. The problem is related to freshly created zones. More precisely what I do is this: zoneadm -z myzone install -c mytemplate.xml zoneadm -z myzone boot When the second line finishes the system reports that the zone is in running state (which is technically true). In reality the zone is still busy doing manifest importing, i.e. doing initial configuration. Therefore at this point there's no guarantee that the artifacts defined in mytemplate.xml (such as users) will actually exist. This will typically take an additional minute or two. This is a problem in my scripted creation of zones. I can obviously do a very long sleep and hope that by then the zone has finished its configuration tasks but that seems like a stupid solution. I wouldn't know for how long to wait. Is there a way for my script to ensure that the zone's background configuration processes have completed before I continue ?
Asked by peterh (940 rep)
Aug 10, 2014, 06:21 PM
Last activity: Dec 20, 2022, 11:38 AM