Non Global Zone creation
Posted: Wed Dec 09, 2009 8:10 pm
Create a NGZ (Non Global Zone) using a configuration file:
Check NGZ (Non Global Zone) status before installation completed:
Install OS to new created NGZ:
Check NGZ (Non Global Zone) status after installation completed:
Copy sysidcfg (sysidcfg_exclusive_IP or sysidcfg_shared_IP) to newly created zone's /etc directory:
Boot up the new NGZ:
Check zone status:
Login appint05:
Code: Select all
create -b
set zonepath=/zonepool/zones/appint05
set autoboot=true
set ip-type=shared
add inherit-pkg-dir
set dir=/lib
end
add inherit-pkg-dir
set dir=/platform
end
add inherit-pkg-dir
set dir=/sbin
end
add inherit-pkg-dir
set dir=/usr
end
add inherit-pkg-dir
set dir=/opt/sfw
end
add net
set address=10.0.32.148
set physical=igb1
set defrouter=10.0.32.1
end
add attr
set name=comment
set type=string
set value="Appint05 Non Global Zone"
end
Code: Select all
# zonecfg -z appint05 -f /zonepool/zone_configs/appint05_zone
Code: Select all
# zoneadm list -icv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
- appint05 configured /zonepool/zones/appint05 native shared
Code: Select all
# zoneadm -z appint05 install
A ZFS file system has been created for this zone.
Preparing to install zone <appint05>.
Creating list of files to copy from the global zone.
Copying <3093> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <1412> packages on the zone.
Initializing package <1055> of <1412>: percent complete: 74%
......
Initialized <1249> packages on zone.
Zone <appint05> is initialized.
The file </zonepool/zones/appint05/root/var/sadm/system/logs/install_log> contains a log of the zone installation.
Check NGZ (Non Global Zone) status after installation completed:
Code: Select all
# zoneadm list -icv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
- appint05 installed /zonepool/zones/appint05 native shared
Code: Select all
cp /zonepool/zone_configs/appint05_sysidcfg /zonepool/zones/appint05/root/etc/sysidcfg
Code: Select all
# zoneadm -z appint05 boot
Code: Select all
# zoneadm list -icv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
1 appint05 running /zonepool/zones/appint05 native shared
Code: Select all
zlogin -C appint05
[Connected to zone 'appint05' console]
Loading smf(5) service descriptions: 48/155
...
Loading smf(5) service descriptions: 155/155
Reading ZFS config: done.
network_interface=igb1 {
^
igb1 is not a valid network interface line 3 position 19
Creating new rsa public/private host key pair
Creating new dsa public/private host key pair
Configuring network interface addresses: igb1.