Below are some troubleshooting tips when the command # zoneadm -z install fails to install the non-global zone.
Verify the configuration before install
Make sure the configuration of the zone is correct using the verify sub-command.
global # zonecfg -z zone01 zonecfg:zone01> verify zonecfg:zone01> ---- No error should be reported here.
Verify proper privileges
Check the user is superuser or has “Zone Management” profile.
global # id uid=20123(user) gid=1(other) global # profiles | grep "Zone Management" Zone Management
Confirm zone install path is accessible by appropriate user
Make sure the zone install path is having correct permission :
global # zonecfg -z zone01 info | grep zonepath zonepath: /zones/zone01 global # ls -ld /zones/zone01 drwx------ 4 root root 512 Mar 24 14:48 /zones/zone01/ (should be 700)
Confirm sufficient disk space
The global zone administrator must ensure that sufficient disk space is available for the zone installation. Depending on the non-global zone type (whole root Vs sparse root) space taken by zone’s root file system may vary. The nature of the packages installed in the global zone affects the space requirements of the non-global zones that are created. Depending on these factor provision the disk space for the non-global zone.
Check for installation logs
We can also check the installation logs in /root/var/sadm/system/logs. In case of zonepath = /zones/zone01, you can find the log at /zones/localzone/root/var/sadm/system/logs, file name is install_log.
Zoneadm install in debug/verbose mode
“zoneadm install” calls a Live Upgrade component to actually populate the zone’s root file system. Add the following lines to /etc/default/lu for debug/verbose mode :
LU_DEBUG_STATE=zon export LU_DEBUG_STATE
Contact Oracle support
Finally if you can not determine the cause of failure, you can contact Oracle support with necessary debug data :
Collect the truss output for zoneadm and ptree output.
# ptree [pid of zoneadm install command] # truss -alef -v all -o truss_zoneadm.out zoneadm -z install
Also provide the install logs :
/root/var/sadm/system/logs zones/localzone/root/var/sadm/system/logs/install_log ---> (for zone01)