Hey Kent

Unfortunately we do not provide a metadata source (cloud-init) for VM guests as of this writing, so you have to use the guest OS's native tooling for unattended installations or IPXE network booting. In bHyve the zones console is plumbed to the guests serial console so if your guest is configured to use ttyS0 as console you can login without any SSH or network on the guest.

Hope this helps finding a solution
-Till

On 22.03.21 23:52, Kent Watsen wrote:

How are folks automating zone creation?

Searching DuckDuckGo/Google, not much is found regarding how a script could use `zlogin` for per-zone "install" and/or "post-install"  steps.  I was hoping that Ansible or even `expect` might support `zlogin` but, apparently, only if using non-interactive mode?

Ansible could SSH to the zone as a post-install step, but the install itself would still be manual.  I could install one zone and then snapshot/clone it for the others, letting each initially use some specific temporary IP address just long enough for Ansible to log in the reset it.

FWIW, I use native zones for Intranet-facing services and Bhyve/OpenBSD zones for Internet-facing services.  Most of my zones are Internet-facing, so my question primarily regards "bhyve" branded zones.

Thanks,
Kent



*illumos <https://illumos.topicbox.com/latest>* / illumos-discuss / see discussions <https://illumos.topicbox.com/groups/discuss> + participants <https://illumos.topicbox.com/groups/discuss/members> + delivery options <https://illumos.topicbox.com/groups/discuss/subscription> Permalink <https://illumos.topicbox.com/groups/discuss/T8d010ae1c0b972a7-M1cf2d300cbd079b586c98247>

------------------------------------------
illumos: illumos-discuss
Permalink: 
https://illumos.topicbox.com/groups/discuss/T8d010ae1c0b972a7-M4210a80ccf236b597ee86d4c
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

Reply via email to