[OpenIndiana-discuss] Migrating zones between OpenIndiana machines

Dave Koelmeyer davekoelmeyer at me.com
Wed May 25 06:03:41 UTC 2011


Hi,

I'm having a hell of a time trying to simply migrate a zone from one OI machine to another, wondering if anyone can help. Both machines are running oi_147

I have configured and install a NGZ on machine 1, and wish to detach and install it on machine 2.

I am following the guide here:

http://download.oracle.com/docs/cd/E19044-01/sol.containers/819-2450/gcgnc/index.html


On machine 1:

First I have run zoneadm -z myzone detach
Then, cd /rpool/zones/zone_roots and tar cvf myzone.tar myzone/

This creates a .tar file of the zone, which I've then copied over to machine 2

On machine 2:

I've extracted the .tar file to /rpool/zones/zone_roots

The above steps so far are all covered at:

http://download.oracle.com/docs/cd/E19044-01/sol.containers/819-2450/gcglo/index.html

So, next I run:
zonecfg -z myzone
create -a /rpool/zones/zone_roots/myzone

I alter the zone configuration properties as needed for networking etc, then commit and exit.

Finally, I attempt to attach the zone:
pfexec zoneadm -z myzone attach

at which point I get:
Log File: /var/tmp/myzone.attach_log.Wsaq8n
ERROR: no active dataset.
Result: Attach Failed.

What is this referring to, and why can I not find any reference to it in the documentation? Any pointers welcome :)

Cheers,
Dave


More information about the OpenIndiana-discuss mailing list