How to migrate a zone in Solaris
Posted: May 20, 2010 at 11:31 pm | Tags: solaris, Unix, virtualization, zonesThis is a tutorial about migrating a zone in Solaris. First, you have to create the manifest. On the host system, use the folowing command and direct the output to a file:
zoneadm -z myzone detach -n > /export/home/myzone-manifest.txt
cd /export/home
tar cf myzone-manifest.tar myzone-manifest.txt
sftp host2
sftp>cd /export/home
sftp>put myzone-manifest.tar
sftp>quit
On the target system, extract the tar file:
cd /export/home
tar xf myzone-manifest.tar
On the target system you have to create a non-global zone called myzone and set the zonepath property to /zones/myzone:
zonecfg -z myzone
create
set zonepath=/zones/myzone
verify
commit
exit
You have to validate the feasibility of zone migration:
zoneadm -z myzone attach -n /export/home/myzone-manifest.txt
The migration is made without the -n option.
























