Skip to content

Tag Archives: zones

Add a loopback filesystem to a non-global Solaris zone

09-Jan-09

Use zonecfg to configure the lofs mount; this will work nicely for CDs in addition to ordinary filesystems: # zonecfg -z zone1 zonecfg:zone1> add fs zonecfg:zone1:fs> set dir=/depot zonecfg:zone1:fs> set special=/depot zonecfg:zone1:fs> set type=lofs zonecfg:zone1:fs> add options [nodevices] zonecfg:zone1:fs> end zonecfg:zone1> commit zonecfg:zone1> exit special is the directory from the global zone to mount; dir is the [...]

Creating a new Solaris Zone

08-Jan-09

This information, of course exists many other places on the web, but for me, most conveniently, here.   An example configuration session: # zonecfg -z host1 host1: No such zone configured Use ‘create’ to begin configuring a new zone. zonecfg:host1> create zonecfg:host1> set zonepath=/zones/host1 zonecfg:host1> set autoboot=true zonecfg:host1> add net zonecfg:host1:net> set address=172.16.3.242 zonecfg:host1:net> set [...]