We recommend building all software inside zones, so you can set up a clean development environment.
This guide below assumes you are on a LAN with DHCP. We will create a crossbow VNIC on your primary network interface (assumed to be e1000g0 here, adapt as necessary), which will operate as if the vnic was plugged directly into your local LAN.
Distribution Constructor (the software that produces the final ISO Image) does not work inside a Zone.
Here, we are disabling atime and sync to speed up builds. Note that setting sync=disabled may result in dataloss in a power loss/system crash scenario, so only enable it for your build environment if you don't mind losing data. (necessary to separate the options into -o property=value blocks):
If your primary interface is not e1000g0, please substitute for the one that is in use. You can normally find this via "dladm show-phys" or "ifconfig -a".
This step will install the zone by downloading packages from the internet.
This step answers questions you would otherwise have to answer manually via a console-based wizard.
Mount the zone's ZFS dataset so we can access it by running:
Now create the sysidcfg file:
Remark: the encrypted root password shown here is: abc123
You will now want to attach to the zone's console and watch it boot, and answer any questions if prompted:
You can detach from the console by issuing "." without quotes (or "~." over ssh).
Once the Zone has booted, you can copy the DNS resolution settings into the zone:
You can now zlogin into the zone with "zlogin zone1".
Try pinging some hosts on the internet. Remember to update the root password.