System Administration Guide: Oracle Solaris 8 Containers

Chapter 6 Booting a Zone and Zone Migration

This chapter describes how to boot the installed zone, and also discusses how to migrate the zone to another machine.

If you are booting a zone that does not have the hostname or name service configured, read Chapter 7, About Zone Login and Post-Installation Configuration first.

About Booting the Zone

Booting 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.

ProcedureHow to Boot the Zone

You must be the global administrator in the global zone to perform this procedure.

  1. Become superuser, or assume the Primary Administrator role.

  2. Use the zoneadm command with the -z option, the name of the zone, which is s8-zone, and the boot subcommand to boot the zone.


    global# zoneadm -z s8-zone boot
    
  3. When the boot completes, use the list subcommand with the -v option to verify the status.


    global# zoneadm list -v
    

    You will see a display that is similar to the following:


    ID  NAME     STATUS       PATH                           BRAND      IP
     0  global   running      /                              native     shared
     1  s8-zone  running      /export/home/s8-zone         solaris8     shared
See Also

For more information on booting zones and boot options, see Chapter 20, Installing, Booting, Halting, Uninstalling, and Cloning Non-Global Zones (Tasks), in System Administration Guide: Oracle Solaris Containers-Resource Management and Oracle Solaris Zones.

Migrating a solaris8 Zone to Another Host

About Detaching and Attaching the Zone

A solaris8 zone can be migrated to another host by using the zoneadm command with the detach and attach subcommands. This process is described in About Migrating a Zone in System Administration Guide: Oracle Solaris Containers-Resource Management and Oracle Solaris Zones and How to Migrate A Non-Global Zone in System Administration Guide: Oracle Solaris Containers-Resource Management and Oracle Solaris Zones.

To attach the solaris8 zone to the new host, you must use the -F option. This option is used to skip package and patch validation, which are not needed for branded zones.


Example 6–1 Sample attach Command


host2# zoneadm -z zonename attach -F

Zone Migration and Initial Boot

During the process of installing the solaris8 branded zone, a physical-to-virtual conversion is automatically performed. When a solaris8 branded zone is migrated to a new host, this process must be repeated to ensure that the zone is optimized to run on the new host. The first time that the zone attempts to boot on the new host it will detect whether the s8_p2v conversion command was run. The zone will not boot if the command has not been run again.

If you are booting a migrated s8-zone zone on a new host for the first time, run the following command before you boot the zone:


global# /usr/lib/brand/solaris8/s8_p2v zonename