Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.


  Search this Thread
Old 03-15-2011, 09:33 PM   #1
Registered: Aug 2007
Posts: 40

Rep: Reputation: 15
Migrating Solaris 10 Zones to new machine.

How do you migrate a system with one global zone and two non-global zones to a new but similar machine?

Last edited by bavondrake; 03-15-2011 at 09:34 PM.
Old 03-16-2011, 06:17 AM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
AFAIK you can't move global zones, so for the global you have to do a fresh install on the new one then transfer config files etc.

For non-global zones, (1) halt zone (2) zoneadm detach zone (3) move data (rsync as root for best results) (4) create new zone config (5) zoneadm attach zone to data (6) boot zone. I've done this once, and you can Google for more details.
Old 03-16-2011, 07:05 AM   #3
Registered: Aug 2007
Posts: 40

Original Poster
Rep: Reputation: 15

I wish there is a way to get a global zone to a new machine.
The reason for that is because all non-global zones sit on top of global zone and share the same kernel with it.

Is there a way to snapshot it or back it up or ..?

Thanks a lot

Old 03-16-2011, 05:32 PM   #4
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,707

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Originally Posted by bavondrake View Post
I wish there is a way to get a global zone to a new machine.
The reason for that is because all non-global zones sit on top of global zone and share the same kernel with it.
That depends on what you mean by "similar machines". If the machines are close enough, you might just move the disks (physically or logically) from one to another and you have migrated all your zones, including the global one. Of course, there might be some things to fix / adapt for this to succeed.
Alternatively, flash archives are a way to clone a global zone to other machines.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
migrating sshd keys to new machine genmaicha Linux - Software 1 08-28-2009 11:21 PM
Migrating a Single Project in SVN from One Machine to Another your_shadow03 Linux - Newbie 1 06-09-2009 12:14 AM
solaris zones: what is it for? ic_torres Solaris / OpenSolaris 5 04-11-2009 04:22 AM
Migrating machine users to virtual users p_penduko Linux - General 2 11-04-2004 07:37 AM
dns zones jmono Linux - Networking 3 05-19-2003 09:39 PM > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 02:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration