I thought I posted this on friday, but I don't see it on the thread list, apologies if this is being repeated. zonemgr has helped me over the last 2 years to setup zones for over 200 students and is the best Solaris tool I know, in addition to Blastwave.
Unfortunately, I am running into problems today. The Blastwave packages are not installing. I have changed the url in my pkg-get.conf in the global zone to blastwave.network.com. But from the logs, it appears that zonemgr is downloading from the old Blastwave mirror site, not the blastwave.network.com site: http://www.blastwave.org/mirrors.php Help would be great, I can't imagine setting up zones for 60 students each semester without zonemgr and Blastwave. Thanks very much Manish -bash-3.00# more testadd.sh #!/usr/bin/bash zonemgr -a add -n azadianl -z "/export/zones" -P "xxxxxxx" -I "131.247.16.151|e1000g0|25|azadianl" -R "/root|/usr/bin/bash" -X "mkdir /export/home" -C "/etc/nsswitch.conf" -C "/etc/resolv.conf" -C "/etc/ default/login" -C "/etc/default/su" -C "/root/zonecfgs/chgpwd.sh|/root/chgpwd.sh" -C "/root/zonecfgs/my.cnf|/opt/csw/mysql5/my.cnf" -C "/root/zonecfgs/phpinfo.php|/opt/csw/apache2/share/htdocs/phpinfo.php" - C "/root/zonecfgs/httpd-mpm.conf|/opt/csw/apache2/etc/extra/httpd-mpm.conf" -G "expect" -G "apache2" -G "mysql5" -G "php5" -G "php5_mysql" -G "ap2_modphp5" -X "svcadm enable cswapache2" -X "chmod 777 /root/ chgpwd.sh" -X "chmod 777 /opt/csw/apache2/share/htdocs" -s "basic|lock" -X "useradd -d /export/home/azadianl -m -s /usr/bin/bash azadianl" -X "/root/chgpwd.sh azadianl xxxxxxxx" -X "svcadm disable webconsole" -bash-3.00# ./testadd.sh Checking to see if the zone IP address (131.247.16.151) is already in use...IP is available. Preparing to install zone <azadianl>. Creating list of files to copy from the global zone. Copying <13543> files to the zone. Initializing zone product registry. Determining zone package initialization order. Preparing to initialize <1093> packages on the zone. Initialized <1093> packages on zone. Zone <azadianl> is initialized. The file </export/zones/azadianl/root/var/sadm/system/logs/install_log> contains a log of the zone installation. Creating the sysidcfg file for automated zone configuration. Copying (/etc/nsswitch.conf) from the global zone to (/etc/nsswitch.conf) in the non-global zone. Copying (/etc/resolv.conf) from the global zone to (/etc/resolv.conf) in the non-global zone. Copying (/etc/default/login) from the global zone to (/etc/default/login) in the non-global zone. Copying (/etc/default/su) from the global zone to (/etc/default/su) in the non-global zone. Copying (/root/zonecfgs/chgpwd.sh) from the global zone to (/root/chgpwd.sh) in the non-global zone. Copying (/root/zonecfgs/my.cnf) from the global zone to (/opt/csw/mysql5/my.cnf) in the non-global zone. Copying (/root/zonecfgs/phpinfo.php) from the global zone to (/opt/csw/apache2/share/htdocs/phpinfo.php) in the non-global zone. Copying (/root/zonecfgs/httpd-mpm.conf) from the global zone to (/opt/csw/apache2/etc/extra/httpd-mpm.conf) in the non-global zone. Copy completed. Booting zone for the first time. Waiting for first boot tasks to complete. Updating netmask information. Copying (/etc/nsswitch.conf) from the global zone to (/etc/nsswitch.conf) in the non-global zone. Copy completed. Updating /etc/inet/hosts of the global zone with the azadianl IP information. Setting the root user's home directory to /root Setting the root user's shell to /usr/bin/bash Disabling un-necessary services via basic method for the default services. Making sure Blastwave's pkg-get progam is installed. The installation log for blastwave packages is stored in /root/.zonemgr/cswlog6895 Install md5 package in zone azadianl in order to properly verify Blastwave packages... Installing package "expect" in zone azadianl... Installing package "apache2" in zone azadianl... Installing package "mysql5" in zone azadianl... Installing package "php5" in zone azadianl... Installing package "php5_mysql" in zone azadianl... Installing package "ap2_modphp5" in zone azadianl... Running "mkdir /export/home" in zone azadianl... Running "svcadm enable cswapache2" in zone azadianl... svcadm: Pattern 'cswapache2' doesn't match any instances Running "chmod 777 /root/chgpwd.sh" in zone azadianl... Running "chmod 777 /opt/csw/apache2/share/htdocs" in zone azadianl... Running "useradd -d /export/home/azadianl -m -s /usr/bin/bash azadianl" in zone azadianl... 64 blocks Running "/root/chgpwd.sh azadianl xxxxxxxx" in zone azadianl... /sbin/sh: /root/chgpwd.sh: not found Running "svcadm disable webconsole" in zone azadianl... Zone azadianl is complete and ready to use. -bash-3.00# zlogin azadianl [Connected to zone 'azadianl' pts/2] Sun Microsystems Inc. SunOS 5.10 Generic January 2005 -bash-3.00# svcs -a | grep apache disabled 23:11:23 svc:/network/http:apache2 -bash-3.00# svcs -a | grep expect -bash-3.00# pwd /root -bash-3.00# ls -al total 1452 drwxr-xr-x 5 root root 512 Aug 28 23:11 . drwxr-xr-x 19 root root 512 Aug 28 23:11 .. drwx------ 2 root root 512 Aug 28 23:11 .gnupg drwx------ 3 root root 512 Aug 28 23:11 .sunw drwxr-xr-x 2 root root 512 Aug 28 23:11 .zonemgr -rw-r--r-- 1 root root 356241 Aug 28 23:11 catalog -rw-r--r-- 1 root root 356473 Aug 4 01:27 catalog.asc -rwxrwxrwx 1 azadianl other 303 Sep 2 2007 chgpwd.sh -bash-3.00# -- This message posted from opensolaris.org