[OpenIndiana-discuss] Migrating zones between OpenIndiana machines

Okky Hendriansyah mawcikurl at gmail.com
Wed May 25 06:16:00 UTC 2011


Hi Dave,

What are the output of "zfs list" on both machines? I think you have to create the "myzone" ZFS dataset on machine 2 before attaching the zone to it.

Regards,
Okky Hendriansyah

-----Original Message-----
From: Dave Koelmeyer <davekoelmeyer at me.com>
Date: Wed, 25 May 2011 06:03:41 
To: Discussion list for OpenIndiana<openindiana-discuss at openindiana.org>
Reply-To: Discussion list for OpenIndiana <openindiana-discuss at openindiana.org>
Subject: [OpenIndiana-discuss] Migrating zones between OpenIndiana machines

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
_______________________________________________
OpenIndiana-discuss mailing list
OpenIndiana-discuss at openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


More information about the OpenIndiana-discuss mailing list