Migrate A Non-Global Zone from one host to another
This ONLY WORKS (Big Gotcha) on machines of same architecure and Solaris 10 realease
Become superuser, or assume the Primary Administrator role.
Halt the zone to be migrated, zone-name in this procedure.
host1# zoneadm -z zone-name halt
Detach the zone.
host1# zoneadm -z zone-name detach
The detached zone is now in the configured state.
Move the zonepath for zone-name to the new host.
See How to Move the zonepath to a new Host for more information.
On the new host, configure the zone.
host2# zonecfg -z zone-name
You will see the following system message:
zone-name: No such zone configured
Use ‘create’ to begin configuring a new zone.
To create the zone zone-name on the new host, use the zonecfg command with the -a option and the zonepath on the new host.
zonecfg:zone-name> create -a /export/zones/zone-name
(Optional) View the configuration.
(Optional) Make any required adjustments to the configuration.
For example, the network physical device might be different on the new host, or devices that are part of the configuration might have different names on the new host.
zonecfg:zone-name> select net physical=bge0
zonecfg:zone-name:net> set physical=e1000g0
Commit the configuration and exit.
Attach the zone on the new host.
Attach the zone with a validation check.
host2# zoneadm -z zone-name attach
The system administrator is notified of required actions to be taken if either or both of the following conditions are present:
Required packages and patches are not present on the new machine.
The software levels are different between machines.
Force the attach operation without performing the validation.
host2# zoneadm -z zone-name attach -F