You can create a local zone either through zone commands or through the zone wizard of Solaris Container Manager.
When you create a local zone using Solaris Container Manager, ensure that you add the base directory of Sun Management Center to the inherit-pkg-dir directory. You can specify this in the “Provide Inherit Package” step of the wizard.
For more information, see “Managing Zones” in Installing and Administering Solaris Container Manager 1.1.
Create a local zone using zone commands.
Become superuser and open two terminal windows.
From the first terminal window, type the following lines to create a local zone.
zonecfg -z localzonename, where localzonename is the name of the local zone.
create
export
add inherit-pkg-dir
set dir=/opt, where /opt is the installation directory.
end
add net
set address=ipaddress
set physical=networkinterface
end
set zonepath=/export/zone/localzonename
verify
commit
exit
zoneadm -z localzonename install
From the second terminal window, type zlogin -C localzonename to log in to the local zone.
From the first terminal window, type zoneadm -z localzonename boot to boot the zone.
The boot messages are displayed in the second terminal window where you logged in to the zone.
Type the appropriate values for locale, terminal type, host name, naming service, and so on.
The zone will be rebooted.