2008-05-21

Zones

This is pretty cool stuff, on my solaris 10 laptop:

$ mkfile 2g andromeda
$ mkfile 2g ninja
$ sudo zpool create warhammer mirror /home/ole/andromeda /home/ole/ninja
$ sudo zfs create -o compression=on warhammer/pulp
$ sudo chmod 700 /warhammer/pulp
$ sudo /usr/sbin/zonecfg -z pulp
pulp: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:andromeda> create
zonecfg:andromeda> set zonepath=/warhammer/pulp
zonecfg:andromeda> verify
zonecfg:andromeda> commit
zonecfg:andromeda> exit
$ sudo zoneadm -z andromeda install
Preparing to install zone .
Creating list of files to copy from the global zone.
Copying <32959> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <846> packages on the zone.
Initializing package <607> of <846>: percent complete: 71%
[...]
The file  contains a log of the zone installation.
$ sudo zoneadm -z pulp boot
$ sudo zlogin -C pulp
[Connected to zone 'pulp' console]

Posted by ole | Permanent link | File under: job