Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To bootstrap a DU4 non-global zone you need to edit /etc/apt/sourses.list and copy sources below (do not forget to make the backup of original sourses.list of global zone: sudo cp /etc/apt/sourses.list /etc/apt/sourses.list.orig):

...

Install a zone using regular commands (zonecfg, zoneadm):

prompt:~$ sudo zonecfg -z test-zone export
[sudo] password for user:
create -b
set zonepath=/zones/test-zone
set brand=dpkg
set autoboot=false
set ip-type=exclusive
add fs
set dir="/export/home"
set special="/export/home"
set type="lofs"
end
add net
set physical="iz0"
set global-nic="vsw0"
add property (name=netmask,value="255.255.255.0")
add property (name=gateway,value="192.168.0.1")
add property (name=ip,value="192.168.0.2")
add property (name=primary,value="true")
end
add attr
set name="resolvers"
set type="string"
set value="8.8.8.8"
end

Bold part is share region between zones.

Do not forget to revert the changes in the sources.list file when a non-global zone has been installed (sudo cp /etc/apt/sourses.list.orig /etc/apt/sourses.list).