!http://www.sun.com/bigadmin/home/images/bigadminHeaderWikiThumb.jpg!
{section:border=false}
{column:width=25%}
{include:TOC for Tech Tips - by Task - Install}
{column}
{column:width=75%}
{panel:title=This is a sample page only| borderStyle=dashed| borderColor=#ccc| titleBGColor=#F7D6C1| bgColor=#FFFFCE}
To use it properly, follow the "How to Create a New Page" instructions on the [home|Home] page.
{panel}
by [Your Name Here|http://wikis.sun.com/display/~your_wiki_login_name]
h2. Introduction
h5. Purpose
Describe how to install a sparce zone, e.i. a zone that re-use as much as possible from the global-zone.
h5. Scope
This topic simply describes how to get a sparse zone created, it does not dicuss zones concepts etc.
h5. References
* [Set up a multipurpose Solaris web server|http://wiki.ittoolbox.com/index.php/Set%5Fup%5Fa%5Fmultipurpose%5FSolaris%5Fweb%5Fserver#Configuration_files]
* [Zones in Solaris 10: part three - sparse root and whole root|http://solaris.reys.net/english/2005/03/solaris_10_zones_sparse_root_whole_root]
* [http://stromberg.dnsalias.org/~strombrg/Solaris-notes.html]
h2. Preparation
# [Writing sysidcfg]
# [Writing site.xml]
# [Writing zones.cfg]
h2. Installation
# mkdir -p /zones/sparse
# chmod 700 /zones/sparse
# zonecfg -z sparse -f /zones.cfg
# zoneadm -z sparse verify
# zoneadm -z sparse install
# cp /sysidcfg /zones/sparse/root/etc
# cp /site.xml /zones/sparse/root/var/svc/profile
# touch /zones/sparse/root/NFS4
# zoneadm -z sparse boot
# zlogin -C sparse
#* logout with ~.
h5. Output
h5. zoneadm -z sparse install
{code}
# zoneadm -z sparse install
Preparing to install zone <sparse>.
Creating list of files to copy from the global zone.
Copying <1881> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <1161> packages on the zone.
Initialized <1161> packages on zone.
Zone <sparse> is initialized.
The file </zones/sparse/root/var/sadm/system/logs/
install_log> contains a log of the zone installation.
{code}
h5. zlogin -C sparse
{code}
# zlogin -C sparse
[Connected to zone 'sparse' console]
144/144
Reading ZFS config: done.
Dec 1 04:09:48 svc.startd[19855]: svc:/system/avahi-bridge-dsd:default: \
Method "/usr/sbin/avahi-daemon-bridge-dsd -D" failed with exit status 1.
Dec 1 04:09:48 svc.startd[19855]: svc:/system/avahi-bridge-dsd:default: \
Method "/usr/sbin/avahi-daemon-bridge-dsd -D" failed with exit status 255.
Dec 1 04:09:48 svc.startd[19855]: svc:/system/avahi-bridge-dsd:default: \
Method "/usr/sbin/avahi-daemon-bridge-dsd -D" failed with exit status 255.
Dec 1 04:09:48 svc.startd[19855]: system/avahi-bridge-dsd:default failed: \
transitioned to maintenance (see 'svcs -xv' for details)
Creating new rsa public/private host key pair
Creating new dsa public/private host key pair
Configuring network interface addresses: bge0.
rebooting system due to change(s) in /etc/default/init
[NOTICE: Zone rebooting]
SunOS Release 5.11 Version snv_77 32-bit
Copyright 1983-2007 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Hostname: sparse
Reading ZFS config: done.
Dec 1 13:10:35 sparse avahi-daemon-bridge-dsd[733]: dbus_bus_get_private():
Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
sparse console login: Dec 1 13:10:36 sparse avahi-daemon-bridge-dsd[832]:
dbus_bus_get_private(): Failed to connect to socket /var/run/dbus/system_bus_socket:
No such file or directory
Dec 1 13:10:36 sparse svc.startd[619]: system/avahi-bridge-dsd:default failed:
transitioned to maintenance (see 'svcs -xv' for details)
Dec 1 13:11:34 sparse sendmail[802]:
unable to qualify my own domain name (sparse) -- using short name
Dec 1 13:11:35 sparse sendmail[8990]:
My unqualified host name (sparse) unknown; sleeping for retry
Dec 1 13:11:35 sparse sendmail[8991]:
My unqualified host name (sparse) unknown; sleeping for retry
Dec 1 13:12:35 sparse sendmail[8990]:
unable to qualify my own domain name (sparse) -- using short name
Dec 1 13:12:35 sparse sendmail[8991]:
unable to qualify my own domain name (sparse) -- using short name
{code}
h2. Troubleshooting
h5. On line 1 of /zones.cfg: sparse: No such zone configured
Missing at the top of /zones.cfg:
{code}
create -b
{code}
{include:Get BigAdmin Bucks}
{column}
{section}
{section:border=false}
{column:width=25%}
{include:TOC for Tech Tips - by Task - Install}
{column}
{column:width=75%}
{panel:title=This is a sample page only| borderStyle=dashed| borderColor=#ccc| titleBGColor=#F7D6C1| bgColor=#FFFFCE}
To use it properly, follow the "How to Create a New Page" instructions on the [home|Home] page.
{panel}
by [Your Name Here|http://wikis.sun.com/display/~your_wiki_login_name]
h2. Introduction
h5. Purpose
Describe how to install a sparce zone, e.i. a zone that re-use as much as possible from the global-zone.
h5. Scope
This topic simply describes how to get a sparse zone created, it does not dicuss zones concepts etc.
h5. References
* [Set up a multipurpose Solaris web server|http://wiki.ittoolbox.com/index.php/Set%5Fup%5Fa%5Fmultipurpose%5FSolaris%5Fweb%5Fserver#Configuration_files]
* [Zones in Solaris 10: part three - sparse root and whole root|http://solaris.reys.net/english/2005/03/solaris_10_zones_sparse_root_whole_root]
* [http://stromberg.dnsalias.org/~strombrg/Solaris-notes.html]
h2. Preparation
# [Writing sysidcfg]
# [Writing site.xml]
# [Writing zones.cfg]
h2. Installation
# mkdir -p /zones/sparse
# chmod 700 /zones/sparse
# zonecfg -z sparse -f /zones.cfg
# zoneadm -z sparse verify
# zoneadm -z sparse install
# cp /sysidcfg /zones/sparse/root/etc
# cp /site.xml /zones/sparse/root/var/svc/profile
# touch /zones/sparse/root/NFS4
# zoneadm -z sparse boot
# zlogin -C sparse
#* logout with ~.
h5. Output
h5. zoneadm -z sparse install
{code}
# zoneadm -z sparse install
Preparing to install zone <sparse>.
Creating list of files to copy from the global zone.
Copying <1881> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <1161> packages on the zone.
Initialized <1161> packages on zone.
Zone <sparse> is initialized.
The file </zones/sparse/root/var/sadm/system/logs/
install_log> contains a log of the zone installation.
{code}
h5. zlogin -C sparse
{code}
# zlogin -C sparse
[Connected to zone 'sparse' console]
144/144
Reading ZFS config: done.
Dec 1 04:09:48 svc.startd[19855]: svc:/system/avahi-bridge-dsd:default: \
Method "/usr/sbin/avahi-daemon-bridge-dsd -D" failed with exit status 1.
Dec 1 04:09:48 svc.startd[19855]: svc:/system/avahi-bridge-dsd:default: \
Method "/usr/sbin/avahi-daemon-bridge-dsd -D" failed with exit status 255.
Dec 1 04:09:48 svc.startd[19855]: svc:/system/avahi-bridge-dsd:default: \
Method "/usr/sbin/avahi-daemon-bridge-dsd -D" failed with exit status 255.
Dec 1 04:09:48 svc.startd[19855]: system/avahi-bridge-dsd:default failed: \
transitioned to maintenance (see 'svcs -xv' for details)
Creating new rsa public/private host key pair
Creating new dsa public/private host key pair
Configuring network interface addresses: bge0.
rebooting system due to change(s) in /etc/default/init
[NOTICE: Zone rebooting]
SunOS Release 5.11 Version snv_77 32-bit
Copyright 1983-2007 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Hostname: sparse
Reading ZFS config: done.
Dec 1 13:10:35 sparse avahi-daemon-bridge-dsd[733]: dbus_bus_get_private():
Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
sparse console login: Dec 1 13:10:36 sparse avahi-daemon-bridge-dsd[832]:
dbus_bus_get_private(): Failed to connect to socket /var/run/dbus/system_bus_socket:
No such file or directory
Dec 1 13:10:36 sparse svc.startd[619]: system/avahi-bridge-dsd:default failed:
transitioned to maintenance (see 'svcs -xv' for details)
Dec 1 13:11:34 sparse sendmail[802]:
unable to qualify my own domain name (sparse) -- using short name
Dec 1 13:11:35 sparse sendmail[8990]:
My unqualified host name (sparse) unknown; sleeping for retry
Dec 1 13:11:35 sparse sendmail[8991]:
My unqualified host name (sparse) unknown; sleeping for retry
Dec 1 13:12:35 sparse sendmail[8990]:
unable to qualify my own domain name (sparse) -- using short name
Dec 1 13:12:35 sparse sendmail[8991]:
unable to qualify my own domain name (sparse) -- using short name
{code}
h2. Troubleshooting
h5. On line 1 of /zones.cfg: sparse: No such zone configured
Missing at the top of /zones.cfg:
{code}
create -b
{code}
{include:Get BigAdmin Bucks}
{column}
{section}