Hi Alexander

Alexander Skwar schrieb:

I'd like to create a NGZ on a S10U6 system. Actually, I'd like to create
a number of NGZ's on this host and the NGZs don't differ much. So
I thought that it should be possible to create a "template" NGZ where
the zone root is on a ZFS.

Then I think it should somehow be possible to use ZFS snapshots
and clones. Ie. a snapshot of the zone root should be created, it
should be promoted to a clone and this clone should be used as the
zone root for a new NGZ. When first booting, I'd run a sys-unconfig,
reboot again and enter valid data (or modify the files touched by
sys-unconfig myself and safe me one boot). Afterwards, the
zone XML file in /etc would need to be modified to "cheat" the system
into thinking that this new NGZ is properly configured.
All correct. If you do not start the "template" NGZ for the first time, you could directly clone that one without sys-unconfig the targets.

Or does zoneadm maybe support this from itself? If so, what would
be the correct way of using zoneadm? Is the manpage at
the current man page (or at least the one that is valid for S10U6)?
And if that's so, would the following be the correct way of doing

  # zoneadm -z template-zone halt
  # zfs snapshot zones/templ...@2008-12-13
  # zoneadm -z target clone -s zones/templ...@2008-12-13 template-zone

Would that be correct?

No. Opensolaris can directly clone zones using ZFS snapshots. Solaris up to 10u6 cannot. The manpage for 10u6 is more advanced than the command.
Do not forget to create a unique identifier when cheating /etc/zones/index. Copy a valid uid and modifiy a bit. It only has to be unique.


Thanks a lot,


_______________________________________________ zones-discuss mailing list zones-discuss@opensolaris.org

__________ Information from ESET NOD32 Antivirus, version of virus signature database 3687 (20081212) __________

The message was checked by ESET NOD32 Antivirus.



zones-discuss mailing list

Reply via email to