On Mon, Jan 11, 2010 at 12:40:23PM -0800, Edward Pilatowicz wrote:
> hey dan,
>
> i'm currently prototyping the zones support for pkg.
Cool!
> afaik, bart is correct in you options. with the current pkg software
> and your config, if you want to stick with our documented "zoneadm
> attach -u" upgrade mechanism then you'll need to stand up a depot in the
> global zone.
Because one of my non-global zones is the router, yes, this would have to be
the case. (Either that, or I plug in my global zone to the Internet
directly, bypassing the NAT/FW zone until such time as it's upgraded.)
> wrt using the pkg download cache, you might be able to do this but you'd
> have to figure out a way to manipulate the cache to ensure that it will
> have everyting needed in it for you to zones updates. (if you figure
> out a way to do this then please share it with this alias.)
I know little about this technology. A wild, uneducated guess would be:
At the beginning of "pkg image-update":
- Foreach ipkg zone
* Find packages that aren't ALREADY in the global zone.
* Add these to the list to be updated.
Proceed with contacting the repository, grabbing EVERY PACKAGE
needed.
Install global's newest packages in its new BE.
Install every ipkg zone's newest packages in the new BE.
> i do have one other workaround/suggestion you could try. after you do
> an image-update of your global zone. before rebooting, use beadm to
> mount the new image on /a. then you can try doing "pkg -R
> /a/<path_to_you_zone>/root image-update" for each of your zones. this
> will probably work as long as your always image-update'ing to the latest
> bits in the repository (and no new images get pushed to the repository
> in between all the image-update opreations.)
I plan to only update to latest/greatest (after all, besides being my home
server, this is yet-another-instance of eating-my-own-dogfood), so this might
work nicely.
In fact, this workaround/suggestion inspired my above shot in the dark about
what to do.
> once we have actual zone support in pkg, your zones will get
> automatically updated when you do the image-update of the global zone.
> and since you have a network connection at that point in time everything
> will work correctly, as you'd expect.
Yes, even when one of the non-global zones is forwarding the packets into the
global zone! :)
> unfortunatly, my prototype is still in very rough shape right now and
> not something that anyone can really test out. i hope to have something
> more solid, and some related design docs, out soon.
Modulo quick backups, I may wish to volunteer for testing this.
Thank you!!!
Dan
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss