Creating a zone with root on local disk

Last published : Jun 10, 2026
Create a zone root on the local disk on each node in the cluster. The file system for application data is on a shared device and is either the loopback type or the direct mount type. For a direct mount file system, run the mount command from the global zone with the mount point specified as the complete path that starts with the zone root. For a loopback file system, add it into the zone's configuration before you boot the zone.
To create a zone root on local disks on each node in the cluster
  1. Configure the zone with the zonecfg command.
    zonecfg -z newzone
    zonecfg:newzone> create
    1. Set the zonepath parameter to specify a location for the zone root.
    zonecfg:newzone> set zonepath=/export/home/newzone
  2. For exclusive IP zone, set the ip-tye to exclusive:
    zonecfg:newzone> set ip-type=exclusive
    1. Add network interface to zone configuration. This is required for non-global zone to communicate with had running in global zone.
    zonecfg:newzone> add net
    zonecfg:newzone:net> set physical=net0
    zonecfg:newzone:net> set address=192.168.1.10
    zonecfg:newzone:net> end
  3. Make sure global zone can be pinged from non-global zone with global zone hostname. You may need to add global zone hostname entry to /etc/hosts file inside non-global zone or enable DNS access from inside the non-global zone.
  4. If your application data resides on a loopback mount file system, create the loopback file system in the zone.
  5. Exit the zonecfg configuration.
    zonecfg> exit
    1. Create the zone root directory.
    mkdir zonepath
  6. Set permissions for the zone root directory.
    chmod 700 zonepath
    1. Install the non-global zone.
    zoneadm -z newzone install
  7. Repeat step 1 to step 10 on each system in the service group's SystemList.
  8. If the application data is on a loopback file system, mount the file system containing the application's data on shared storage.
  9. Boot the zone.
zoneadm -z newzone boot
  1. If the application data is on a direct mount file system, mount the file system from the global zone with the complete path that starts with the zone root.