Become an administrator.
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
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
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 -
Attach the zone on the new host.
# zoneadm -z zonename attach
For example:
global2# zoneadm -z kzone1 attach
Boot the kernel zone on the new host to resume the migrated zone.
#zoneadm -z zonename boot
For example:
global2# zoneadm -z kone1 boot
No comments:
Post a Comment