Information Technology Reference
In-Depth Information
As described in Chapter 6, the first time a Container boots, it assumes that
it can ask you for system identification information on the system console. It's
usually easier to provide that information via the /etc/sysidcfg file. Recall that
if you are working in the global zone, the full path name of that file would be
/zones/web01/root/etc/sysidcfg . The following example demonstrates this
process, using the correct host name and an encrypted form of the root password
you want to use. While copying that file, you can also copy the Apache configura-
tion file from the original web server into the Container's directory structure.
GZ# cat /tmp/sysidcfg
system_locale=C
terminal=dtterm
network_interface=NONE { hostname=web01 }
security_policy=NONE
name_service=NONE
nfs4_domain=domain.com
timezone=US/Eastern
root_password=AxtRb9Zd0fNRM
GZ# cp /tmp/sysidcfg /zones/web01/root/etc/sysidcfg
GZ# cd /zones/web01/root/etc/apache2
GZ# scp web01:/etc/httpd/conf/httpd.conf httpd.conf
GZ# cd /
GZ# zoneadm -z web01 boot
GZ# zlogin -C web01
[Connected to zone 'web01' console]
[NOTICE: Zone booting up]
SunOS Release 5.10 Version Generic_141445-09 64-bit
Copyright 1983-2009 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Hostname: web01
. . .
web01 console login:
At this point, you can log in to the Container using zlogin (1M), create a direc-
tory /webpages , and add a line to /etc/vfstab that will mount the NFS file
system with the web pages. In Container web01 , use the following line:
nfsserver:/web01 - /webpages nfs - yes -
This mount will occur automatically the next time the Container boots.
To also mount that NFS file system now, you can use the following command:
web01# mount /webpages
 
Search WWH ::




Custom Search