On 11/8/06, Al Hopper <[EMAIL PROTECTED]> wrote:
In my case, the ability to clone a zone from a zfs snapshot did'nt make
it! :(

Yeah, but if you read the man page in the U3 beta, you would see that
the man page changes made it over.  Personally, I would have preferred
the code instead of the man pages.  :)

Per a discussion I had with Jerry Jelinek after I brought this up as
part of the beta:

Jerry said...
backporting this to S10 until we have the ability to upgrade
zones that reside on zfs. At this time we do not recommend
customers place their zones on zfs. Obviously this works and
is usually ok as long as you do not care about being able to
upgrade your system, but this is not something we can
generally support until we have an upgrade solution.

So long as upgrades are not something that I am concerned about, it
seems as though the following is an approach that would work out OK.
Please let me know if you concur.

### Initial setup of /zones fs

# zfs create local/zones
# zfs set mountpoint=/zones local/zones

### Create my full-root template zone

# zonecfg -z template-full
create -t SUNWblank
set zonepath=/zones/template-full
verify
commit
exit
# zfs create local/zones/template-full
# chmod 700 /zones/template-full
# zoneadm -z template-full install
# zoneadm -z template-full boot
# zlogin -C template-full

### Do zone customization stuff (e.g. run JASS to harden)

### Prepare the zone for cloning

# zoneadm -z template-full halt
# zoneadm -z template-full detach
# zfs snapshot local/zones/[EMAIL PROTECTED]

### Create a clone

# zonecfg -z newzone
create -t template-full
set zonepath=/zones/newzone
.... set up networks, pools, etc.
verify
commit
exit
# zfs clone local/zones/[EMAIL PROTECTED] local/zones/newzone
# zoneadm attach newzone
# zoneadm -z newzone boot -s
# yes | zlogin newzone sys-unconfig
# zoneadm -z newzone boot
# zlogin -C newzone
perform sysidcfg stuff

Jerry later said:

This is a very clever procedure. You might want to send this
out to the opensolaris zones-discuss list so that others can
benefit from your idea here. I don't see any problems with
this procedure.

However, I waited until someone else announced the features or lack
thereof found in S10 11/06.  :)

Mike

--
Mike Gerdts
http://mgerdts.blogspot.com/
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to