Thanks a lot for the response! Also for the good idea about not
starting the template at all. Have a nice day, alexander.
2008/12/13, Konstantin Gremliza konstan...@gremliza.net:
Hi Alexander
Alexander Skwar schrieb:
Hi.
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
http://docs.sun.com/app/docs/doc/816-5166/zoneadm-1m?l=dea=view
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
things?
# 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.
Konstantin
Thanks a lot,
Alexander
___
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.
http://www.eset.com
--
Von meinen Mobilgerät aus gesendet
Alexander
--
[ Chat = Jabber: alexw...@jabber80.com | Gmail: a.sk...@gmail.com ]
[ Mehr = MSN: alexw...@live.de | Yahoo!: askwar | ICQ: 350677419 ]
___
zones-discuss mailing list
zones-discuss@opensolaris.org