Version 3.1-en
Solaris 10 Container Guide - 3.1 5. Cookbooks
5.1.8. Uninstalling a zone
[dd] Installed zones are uninstalled by z o n e a dm - z <z o ne > un i ns ta l l . In doing so, the
following actions are carried out:
Deletion of data in the z o n e p a t h subdirectory
Conversion of zone status in / e t c / z o n es /i n de x into c on f ig ur e d
5.1.9. Configuration and installation of a Linux branded zone with CentOS
[dd] Linux branded zones can only be set up on x86/x64 systems. The Linux distribution is not a
Solaris component and must be provided separately (here, as ISO images).
global# zonecfg -z centos
centos: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:centos> create -t SUNWlx
zonecfg:centos> set zonepath=/zones/centos
zonecfg:centos> add net
zonecfg:centos:net> set physical=bge0
zonecfg:centos:net> set address=192.168.1.100
zonecfg:centos:net> end
zonecfg:centos> add attr
zonecfg:centos:attr> set name=audio
zonecfg:centos:attr> set type=boolean
zonecfg:centos:attr> set value=true
zonecfg:centos:attr> end
zonecfg:centos> verify
zonecfg:centos> commit
zonecfg:centos> exit
global# zoneadm -z centos install -v -d /dist/brandz/images
A ZFS file system has been created for this zone.
Verbose output mode enabled.
Installing zone "centos" at root "/zones/centos"
Attempting ISO-based install from directory:
"/dist/brandz/images"
Checking possible ISO
"/dist/brandz/images/CentOS-3.8-i386-bin1of3.iso"...
added as lofi device "/dev/lofi/1"
Attempting mount of device "/dev/lofi/1"
on directory "/tmp/lxiso"... succeeded.
Attempting to read "/tmp/lxiso/.discinfo"...
Unmounting device "/dev/lofi/1"... succeeded.
...
...
Completing installation; this may take a few minutes.
Setting up the initial lx brand environment.
System configuration modifications complete.
Installation of CentOS 3.8 to zone
'centos' completed Mon Aug
Installation of zone 'centos' completed successfully.
Details saved to log file:
"/zones/centos/root/var/log/centos.install.1594.log"
global#
6 16:42:55 CEST 2007.
Effective: 30/11/2009
72
Need help?
Do you have a question about the SOLARIS 10 and is the answer not in the manual?