OK this is my first encounter with OpenSolaris Zones, so take all off the following with a grain of salt.
To make it (hopefully) easy to destroy the zone we create a ZFS Filesystem which will hold all of our zones:
Great we have a file system to hold our zones, now let's configure a new zone:
Uh Oh, we failed miserably. So let's set a path where the zone will be living:
Looks all nice and fine, let's verify again:
Still some things to do.
This looks a lot better now let's install the zone. Note: We just configured the zone, we didn't yet install it. So let's start the installation:
Looks nice. Even some more instructions. So let's boot the zone:
All nice and fine, let's try to use the zone (You can escape from this by using "~." - that's a tilde and a dot - just hit "ENTER~."):
Shock! There's some curses (or whatever OpenSolaris uses) interface popping up! It will ask about hostname, time zone and root password. Enter the gritty details and try ESC-2 if it doesn't continue with F2 (I chose "X Terminal Emulator (xterms)" - seems to be a bad choice).
Again to escape from the zlogin stuff hit: "ENTER~." - that's ENTER, tide, dot.
Very nice so far. We have uptime, a hostname and an IP Address, well kind of :). Stay tuned for when I try to get network connectivity, which will hopefully be in the not too distant future.
A few minor notes on other tools that could be usefull:
Installing took quite a while on my system, since I could do some work in parallel I didn't investigate. But I found the following command nice to see the status:
So let's set up a nice terminal that watches the STATUS of our zone (the incomplete will go away as soon as the installation is finished). Of course we could watch the original terminal simply returning, but that would be kind of boring - wouldn't it?