Dan,

There is no documentation anywhere on doing brand development. If you look
in the smartos-live repo at
overlay/generic/usr/lib/brand/lx/lx_boot_zone_ubuntu you can see the
SmartOS-specific things we do during the boot of ubuntu. There is a
slightly different and more generic version of that file in the
illumos-joyent tree which is more suitable for upstreaming in the future. I
haven't looked to see what init is being used on centos but if you can get
the zone to boot so that init stays up and running then it becomes much
easier to move forward. You can zlogin to interact with init, you can
dtrace in the GZ while init is coming up, etc. Getting init to stay up and
then up to multi-user is the biggest hurdle when when you are working with
a new release inside lx. This is because the newer Linux init's, like
upstart or systemd, are using various obscure parts of their kernel to try
do all sorts of things. Feel free to ping me with specific questions but
there is no guide to doing this, it is just a lot of tough debugging.

Jerry


On Thu, Jan 29, 2015 at 7:44 PM, Dan McDonald via smartos-discuss <
[email protected]> wrote:

> It's clear I'm going to have to write or steal lx_boot_zone_redhat.  It's
> missing currently, and when I do something as crazy as merely make it a
> symlink to lx_boot_zone_ubuntu, it's enough for vmadm to think the zone is
> running.
>
> What I have seen:
>
>         https://wiki.smartos.org/display/DOC/LX+Branded+Zones
>
> doesn't talk much about what pieces are needed for a different distro's
> zone.  Not shocking, given ubuntu's #1 on Joyent's list, and everyone else
> is just along for the ride at the moment.
>
> One other thing I've noticed from the illumos-joyent tree is that
> lx_boot_zone_<distro> seems to be relatively new, and possibly contains
> bits from older lx_init_zone_<distro>.  Is there ANY documentation about
> "for <distro>, here's what you do"?
>
> If not, I guess I just plow ahead.  If so, please let me know.  If there's
> progress on this front I'm not aware of, I'd love to know about it.  I've
> manage to create an image for a CentOS zone, and can replicate the process
> if anyone wants the .json and .zfs/.zss files from my experiments.
>
> Thanks,
> Dan
>
>
>
> -------------------------------------------
> smartos-discuss
> Archives: https://www.listbox.com/member/archive/184463/=now
> RSS Feed:
> https://www.listbox.com/member/archive/rss/184463/21516906-2011406d
> Modify Your Subscription:
> https://www.listbox.com/member/?&;
> Powered by Listbox: http://www.listbox.com
>



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to