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/soursessources.list and copy sources below (do not forget to make the backup of original soursessources.list of global zone: sudo cp /etc/apt/soursessources.list /etc/apt/soursessources.list.orig):

deb http://10.20.60.188/dilos4 du4-unstable main contrib non-free
deb httpshttp://apt210.dilos.org/dilos du3-unstable main contrib non-free
deb https://apt2.dilos.org20.50.188/dilos dg2-unstable main contrib non-free

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.

IP value shall be unique for each zone.

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