Hi Krzys et al,
actually what you can do is forcibly attach the zone after you create
the zone config file via zonecfg and made the copied zonepath availabe, like
# zoneadm -z myzone attach -F
Of course this does then not perform any consistency checks, so you must
ensure yourself that the package/patch level fits on the system you want
to use your copied zone.
Greets
Thorsten
Krzys wrote:
Ah, to bad I am just using U3 :( ANy idea if its going to be included in
U4? or when its going to be in any solaris update?
Thanks so much for the info...
Chris
On Tue, 17 Apr 2007, Menno Lageman wrote:
Krzys wrote:
I have a question. Is there a way to "deport" running zone? Yeah I
know what I am talking about... please read to see what I want to
acomplish.
Ok, I have aproduction zone running. It is all set on zfs pool, so
what I wanted to do is to duplicate my curent environment without
actually bringing it down...
I did try to create a snap of my zone. I did then move it to a
different system via zfs send/receive option. So I had file system
all set and ready to go, but I was not able to import my zone since I
did not have SUNWdetached.xml in there.
Is there any way to make a clone of a zone (since I have it on zfs)
and then import it somehow on a different system?
I was even trying to recreate zone using config file, but when I got
to the poit of setting it up on a partition it complaioned that
already root directory exists in that path...
Hi,
if you are using a recent build of Nevada (> 48-ish) you can create
SUNWdefault.xml by performing a dry-run detach of your zone. This does
not require the zone to be stopped and it will output the manifest to
stdout. Save this output as SUNWdetached.xml in your new zonepath and
create and attach the zone there. So something like this should do the
trick:
(src) # zoneadm -z myzone detach -n > /tmp/SUNWdetached.xml
(src) # scp /tmp/SUNWdetached.xml [EMAIL PROTECTED]:/zones/myzone
(target) # zonecfg -z myzone create -a /zones/myzone
(target) # zoneadm -z myzone attach
(target) # zoneadm -z myzone boot
(assuming that your new zone's zonepath is at /zones/myzone).
Menno
--
Menno Lageman - Sun Microsystems - http://blogs.sun.com/menno
!DSPAM:122,46246c3157331363223461!
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sitz der Gesellschaft:
Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht München: HRB 161028
Geschäftsführer: Marcel Schneider, Wolfgang Engels, Dr. Roland Bömer
Vorsitzender des Aufsichtsrates: Martin Häring
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy
all copies of the original message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org