/
How to bootstrap a DU4 zone

How to bootstrap a DU4 zone

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

deb http://10.20.60.188/dilos4 du4-unstable main contrib non-free
deb http://10.20.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/sources.list.orig /etc/apt/sources.list).

 

Related content

DU4 zone development (dilos-userland)
DU4 zone development (dilos-userland)
More like this
How to configure NAT
How to configure NAT
Read with this
How to bootstrap a DU3 zone
How to bootstrap a DU3 zone
More like this
How to Prepare VM for Testing in SPB Labs
How to Prepare VM for Testing in SPB Labs
Read with this
Build zone creation script
Build zone creation script
More like this
How to setup IPKG zone with OpenIndiana
How to setup IPKG zone with OpenIndiana
More like this