How To Migrate Solaris Zones

Halt the zone on source system

zoneadm -z myzone halt

Detach the zone

zoneadm -z myzone detach

Take a snapshot of the zonepath

zfs snapshot -r zonepath@local

Use zfs send zonepath@local | ssh remotehost zfs recv zonepath to migrate the zonepath to the remote system

Login to the remote system

Create a zone using the received zonepath

zonecfg -z myzone

create -a zonepath

select net physical=e1000g

set physical=e1000g1

set address=1.2.3.4/24

end

Attach the zone in the new system and point to the new zfs fs as your zonepath

zoneadm -z myzone attach

Modify the net address

Modify the hostname

Leave a Reply