What if I were to:
install a zone. And before installing any apps in it, I
tar -cf MyCleanZone.tar /export/zone2
When I need to wipe out my test setups, I just untar it.
?
Russ
Russ Petruzzelli wrote On 07/17/06 02:55 PM,:
re:
how is this valuable? 'Delete' and 'zonecfg' are very lightweight
True. I guess I just wanted to avoid the cfg file
steps. (lazy)
What I'd really like is to be able to "flash archive" and create a
"template" zone.
And then pull it out (flash a zone) and have a fresh zone to work with.
(Or whatever other method would speed up the install:
-- Initializing package <435> of <1059>: percent complete:
41%
Russ
Jeff Victor wrote On 07/17/06 02:38 PM,:
Russ Petruzzelli wrote:
Ordinarily to remove a zone, it says to:
------------------
Step1: zoneadm -z ps-eng6-zoneX halt
Step2: zoneadm -z ps-eng6-zoneX uninstall
Step3: zonecfg -z ps-eng6-zoneX delete
but I just want to lay down a new OS in my zone.
Can I just do it this way (skipping deleting the zone)?:
Step1: zoneadm -z ps-eng6-zoneX halt
Step2: zoneadm -z ps-eng6-zoneX uninstall
Step3: zoneadm -z ps-eng6-zoneX install
Step4: zoneadm -z ps-eng6-zoneX boot
Yes, although I suggest checking the status of the zone after the 'uninstall'. It
should be 'configured'. Any other status may indicate failure of the
uninstallation process.
Just curious: how is this valuable? 'Delete' and 'zonecfg' are very lightweight
steps.
--------------------------------------------------------------------------
Jeff VICTOR Sun Microsystems jeff.victor @ sun.com
OS Ambassador Sr. Technical Specialist
Solaris 10 Zones FAQ: http://www.opensolaris.org/os/community/zones/faq
--------------------------------------------------------------------------
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org
|
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org