Creating a zone root on local disk

Use the following steps to create zone root on the local disk of each system. The file system, typically for data that is on a shared device, is of the loop back type or direct mount. Choose one of the procedures that follow.

To create zone root on local disks with application data using loop back file system

  1. Create the zone with the zonecfg command.

    zonecfg -z newzone

    zonecfg:newzone> create

  2. Set the zonepath parameter to specify a location for the zone root.

    zonecfg:newzone> set zonepath=/export/home/newzone

  3. Create a loop back file system in the zone.
  4. Set a virtual IP address of the system to be the IP address of the zone and define the device name for the NIC associated with the IP address.

zonecfg> add net

zonecfg:net>set physical=<device_name>

zone cfg:net>set address=<ip address>

zonecfg:net>end

  1. Exit the zonecfg configuration.

zonecfg> exit

  1. Create the actual zone root directory

mkdir <zonepath>

  1. Set permissions for the zone root directory.

    chmod 700 <zonepath>

  2. Install the non-global zone.

zoneadm -z <zonename> install

  1. Repeat step 1 to step 8 on each system in the service group's SystemList.
  2. On one system, mount the file system containing the application's data on shared storage. Use the same mount point as in the global zone.
  3. Boot the zone.

zoneadm -z <zonename> boot

To create zone root on local disks with data using direct mount file system

  1. Create the zone with the zonecfg command.

    zonecfg -z newzone

    zonecfg:newzone> create

  2. Set the zonepath parameter to specify a location for the zone root.

    zonecfg:newzone> set zonepath=/export/home/newzone

  3. Set a virtual IP address of the system to be the IP address of the zone and define the device name for the NIC associated with the IP address.

zonecfg> add net

zonecfg:net>set physical=<device_name>

zone cfg:net>set address=<ip address>

  1. Exit the zonecfg configuration.

zonecfg> exit

  1. Create the actual zone root directory

mkdir <zonepath>

  1. Set permissions for the zone root directory.

    chmod 700 <zonepath>

  2. Install the non-global zone.

zoneadm -z <zonename> install

  1. Repeat the previous zone creation steps on each other system in the service group's SystemList.
  2. Boot the zone.

    zoneadm -z <zonename> boot

  3. On one system, mount the file system containing the application's data on shared storage. Use the same mount point as in the global zone.