Krzys wrote:
hello, I just got into zones and I have few questions:
is there any way to create zone with some additional customizations?
here is what I did:
# zonecfg -z titan1
titan1: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:titan1> create
zonecfg:titan1> set zonepath=/zones/titan1
zonecfg:titan1> set autoboot=true
zonecfg:titan1> add net
zonecfg:titan1:net> set address=192.168.1.82
zonecfg:titan1:net> set physical=bge0
zonecfg:titan1:net> end
zonecfg:titan1> info
zonecfg:titan1> verify
zonecfg:titan1> commit
zonecfg:titan1> exit
Ok, so that created my zone. Now I have to login and changethe following:
passwd file to point to new root home directory: /root/
add users.
change syslog.conf settings
make appriopriate changes in /etc/hosts file.
make changes to /etc/mail/sendmail.cf
Because the global zone has access to the files under <zonepath>, a script can
be run in the global zone which manipulates files "in" the non-global zone.
For example, titan1 has a file called /etc/inet/hosts. The same file can be
accessed from the global zone with a different name:
/zones/titan1/root/etc/inet/hosts.
One precaution: after a zone has been booted for the first time, do not trust
the contents of its files. A sufficiently-privileged user of a non-global
zone may, accidentally or deceptively, modify a file in the non-global zone.
is there any way to automate it? I did create only 10 zones and its not
to crazy to login to each of them and do all those different config
changes etc, but I was wondering if there was any easier way of doing
all of them at the creation time by scripts. I did setup scripts to do
most of the stuff with zone creation, to allocate resources per zones,
and to zreate zfs for each zone with all the settings that I needed but
I was wondering if I can automate it even more.
Thanks for any help or pointers that you could give to me...
Chris
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org
--
--------------------------------------------------------------------------
Jeff VICTOR Sun Microsystems jeff.victor @ sun.com
OS Ambassador Sr. Technical Specialist
Solaris 10 Zones FAQ: http://www.opensolaris.org/os/community/zones/faq
--------------------------------------------------------------------------
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org