Creating and Using Oracle Solaris Kernel Zones

Exit Print View

Updated: December 2014

How to Migrate a Kernel Zone

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. On the global zone, suspend the file system on the kernel zone to be migrated.
    #zoneadm -z zonename suspend

    For example, to suspend the kernel zone kzone1 on the global zone global:

    global# zoneadm -z zkone1 suspend
  3. Detach the kernel zone file system on the global zone.
    #zoneadm -z zonename detach

    For example, to detach the kernel zone kzone1 on the global zone global:

    global#zoneadm -z kzone1 detach
  4. Export the zone configuration and transfer the file to the new host.
    # zonecfg -z zonename  export | ssh root@newhost zonecfg -z zonename  -f -

    For example:

    global# zonecfg -z kzone1 export | ssh root@global2 zonecfg -z kzone1 -f -
  5. Attach the zone on the new host.
    # zoneadm -z zonename attach

    For example:

    global2# zoneadm -z kzone1 attach
  6. Boot the kernel zone on the new host to resume the migrated zone.
    #zoneadm -z zonename boot

    For example:

    global2# zoneadm -z kone1 boot

See also

For additional information about zones on shared storage and zone migrations, see Migrating a Non-Global Zone to a Different Machine in Creating and Using Oracle Solaris Zones .