|
|||
Solaris Virtualization Product Overview 1. Introduction to Solaris Resource Management 2. Projects and Tasks (Overview) 3. Administering Projects and Tasks 4. Extended Accounting (Overview) 5. Administering Extended Accounting (Tasks) 6. Resource Controls (Overview) 7. Administering Resource Controls (Tasks) 8. Fair Share Scheduler (Overview) 9. Administering the Fair Share Scheduler (Tasks) 10. Physical Memory Control Using the Resource Capping Daemon (Overview) 11. Administering the Resource Capping Daemon (Tasks) 13. Creating and Administering Resource Pools (Tasks) 14. Resource Management Configuration Example 15. Resource Control Functionality in the Solaris Management Console 16. Introduction to Solaris Zones 17. Non-Global Zone Configuration (Overview) 18. Planning and Configuring Non-Global Zones (Tasks) 19. About Installing, Halting, Cloning, and Uninstalling Non-Global Zones (Overview) 20. Installing, Booting, Halting, Uninstalling, and Cloning Non-Global Zones (Tasks) (Optional) How to Verify a Configured Zone Before It Is Installed How to Install a Configured Zone How to Obtain the UUID of an Installed Non-Global Zone How to Mark an Installed Non-Global Zone Incomplete (Optional) How to Transition the Installed Zone to the Ready State Halting, Rebooting, Uninstalling, Cloning, and Deleting Non-Global Zones (Task Map) Halting, Rebooting, and Uninstalling Zones Cloning a Non-Global Zone on the Same System How to Clone a Zone from an Existing Snapshot How to Use Copy Instead of ZFS Clone Deleting a Non-Global Zone From the System How to Remove a Non-Global Zone 21. Non-Global Zone Login (Overview) 22. Logging In to Non-Global Zones (Tasks) 23. Moving and Migrating Non-Global Zones (Tasks) 24. About Packages and Patches on a Solaris System With Zones Installed (Overview) 25. Adding and Removing Packages and Patches on a Solaris System With Zones Installed (Tasks) 26. Solaris Zones Administration (Overview) 27. Administering Solaris Zones (Tasks) 28. Troubleshooting Miscellaneous Solaris Zones Problems 29. About Branded Zones and the Linux Branded Zone 30. Planning the lx Branded Zone Configuration (Overview) 31. Configuring the lx Branded Zone (Tasks) 32. About Installing, Booting, Halting, Cloning, and Uninstalling lx Branded Zones (Overview) 33. Installing, Booting, Halting, Uninstalling and Cloning lx Branded Zones (Tasks) 34. Logging In to lx Branded Zones (Tasks) 35. Moving and Migrating lx Branded Zones (Tasks) 36. Administering and Running Applications in lx Branded Zones (Tasks) 37. Sun xVM Hypervisor System Requirements 38. Booting and Running the Sun xVM Hypervisor 40. Using virt-install to Install a Domain |
Installing and Booting ZonesUse the zoneadm command described in the zoneadm(1M) man page to perform installation tasks for a non-global zone. You must be the global administrator to perform the zone installation. The examples in this chapter use the zone name and zone path established in Configuring, Verifying, and Committing a Zone. (Optional) How to Verify a Configured Zone Before It Is InstalledYou can verify a zone prior to installing it. One of the checks performed is a check for sufficient disk size. If you skip this procedure, the verification is performed automatically when you install the zone. You must be the global administrator in the global zone to perform this procedure.
How to Install a Configured ZoneThis procedure is used to install a configured non-global zone. You must be the global administrator in the global zone to perform this procedure. Note - In Step 2, if the zonepath is on ZFS, the zoneadm install command automatically creates a ZFS file system (dataset) for the zonepath when the zone is installed. You can block this action by including the -x nodataset parameter.
TroubleshootingIf a zone installation is interrupted or fails, the zone is left in the incomplete state. Use uninstall -F to reset the zone to the configured state. Next StepsThis zone was installed with the minimal network configuration described in Chapter 16, Managing Services (Tasks), in System Administration Guide: Basic Administration by default. You can switch to the open network configuration, or enable or disable individual services, when you log in to the zone. See Switching the Non-Global Zone to a Different Networking Service Configuration for details. How to Obtain the UUID of an Installed Non-Global ZoneA universally unique identifier (UUID) is assigned to a zone when it is installed. The UUID can be obtained by using zoneadm with the list subcommand and the -p option. The UUID is the fifth field of the display.
global# zoneadm -z my-zone -u 61901255-35cf-40d6-d501-f37dc84eb504 list -v If both -u uuid-match and -z zonename are present, the match is done based on the UUID first. If a zone with the specified UUID is found, that zone is used, and the -z parameter is ignored. If no zone with the specified UUID is found, then the system searches by the zone name. More InformationAbout the UUIDZones can be uninstalled and reinstalled under the same name with different contents. Zones can also be renamed without the contents being changed. For these reasons, the UUID is a more reliable handle than the zone name. See AlsoFor more information, see zoneadm(1M) and libuuid(3LIB). How to Mark an Installed Non-Global Zone IncompleteIf administrative changes on the system have rendered a zone unusable or inconsistent, it is possible to change the state of an installed zone to incomplete. You must be the global administrator in the global zone to perform this procedure.
More InformationMarking a Zone IncompleteThe -R root option can be used with the mark and list subcommands of zoneadm to specify an alternate boot environment. See zoneadm(1M) for more information. Note - Marking a zone incomplete is irreversible. The only action that can be taken on a zone marked incomplete is to uninstall the zone and return it to the configured state. See How to Uninstall a Zone. (Optional) How to Transition the Installed Zone to the Ready StateTransitioning into the ready state prepares the virtual platform to begin running user processes. Zones in the ready state do not have any user processes executing in them. You can skip this procedure if you want to boot the zone and use it immediately. The transition through the ready state is performed automatically when you boot the zone. You must be the global administrator in the global zone to perform this procedure.
How to Boot a ZoneBooting a zone places the zone in the running state. A zone can be booted from the ready state or from the installed state. A zone in the installed state that is booted transparently transitions through the ready state to the running state. Zone login is allowed for zones in the running state. Tip - Note that you perform the internal zone configuration when you initially log in to the zone. This is described in Performing the Initial Internal Zone Configuration. If you plan to use an /etc/sysidcfg file to perform initial zone configuration, as described in How to Use an /etc/sysidcfg File to Perform the Initial Zone Configuration, create the sysidcfg file and place it the zone's /etc directory before you boot the zone. You must be the global administrator in the global zone to perform this procedure.
Boot a zone using the -m verbose option: global# zoneadm -z my-zone boot -- -m verbose Reboot a zone using the -m verbose boot option: global# zoneadm -z my-zone reboot -- -m verbose Zone administrator reboot of the zone my-zone, using the -m verbose option: my-zone# reboot -- -m verbose TroubleshootingIf a message indicating that the system was unable to find the netmask to be used for the IP address specified in the zone's configuration displays, see netmasks Warning Displayed When Booting Zone. Note that the message is only a warning and the command has succeeded. How to Boot a Zone in Single-User ModeYou must be the global administrator in the global zone to perform this procedure.
Where to Go From HereTo log in to the zone and perform the initial internal configuration, see Chapter 21, Non-Global Zone Login (Overview) and Chapter 22, Logging In to Non-Global Zones (Tasks). |
||
|