[OmniOS-discuss] LX on OmniOS update

wonko at 4amlunch.net wonko at 4amlunch.net
Fri Jul 1 22:37:01 UTC 2016


You are amazing. Keep up the great work. We love you!!

I'll test this out as I have time. I'm very excited for this!

-brian

> On Jul 1, 2016, at 15:04, Dan McDonald <danmcd at omniti.com> wrote:
> 
> Hello!
> 
> I'm BCc:ing the illumos developer and illumos discussion lists.  This thread should continue on omnios-discuss.  Please note I will be very slow to get back to emails until July 12th.
> 
> I'd like to report some progress on the LX zones for OmniOS work.
> 
> First some URLs.  The git repos are:
> 
>    https://github.com/danmcd/io-lx-public/
> 
>    https://github.com/danmcd/ob-lx-public/
> 
> The latter has only one small change in its manifests.  The former is where the big work is.  Feel free to clone/pull and toy around. At this time, I will consider PRs, but likely not issues unless they accompany a PR.  If you have LX-for-OmniOS suggestions or issues, please bring them up on the omnios-discuss mailing list.
> 
> I have webrevs of io-lx against illumos-omnios AND against illumos-joyent:
> 
>    http://kebe.com/~danmcd/webrevs/io-lx-public/
> 
>    http://kebe.com/~danmcd/webrevs/io-lx-public-vs-joyent/
> 
> And finally, I have an IPS server with bloody + LX on it.  You should retarget your "omnios" publisher on a bloody install to it if you want to try them out:
> 
>    http://pkg.omniti.com/omnios/LX/
> 
> The bits so far are able to install an LX zone.  Here's a sample zone configuration (you'll have to create an "lx0" vNIC):
> 
> # zonecfg -z lx0 export
> create -b
> set zonepath=/zones/lx0
> set brand=lx
> set autoboot=false
> set ip-type=exclusive
> add net
> set physical=lx0
> end
> # 
> 
> To install an LX zone on OmniOS, first you must install the LX brand:
> 
>    pkg install brand/lx
> 
> then you need either a compressed or uncompressed ZFS send stream.  The Joyent image repo has these compressed.  To grab one for Alpine, e.g.:
> 
>    curl -O alpine.gz https://images.joyent.com/images/d8830f1e-3680-11e6-be72-2ba188e02d31/file
> 
> The UUID portion of that URL can be modifed to match a given "imgadm" UUID you find on a SmartOS box.
> 
> Once you have that, place it somewhere and use its absolute path:
> 
>    zoneadm -z lx0 install -s /path/to/alpine.gz
> 
> You can then ATTEMPT to boot the zone:
> 
>    zoneadm -z lx0 boot
> 
> ONLY ALPINE is known to reach a login prompt on the console.  You will also have to manually configure networking on it using the /native tools:
> 
>    /native/sbin/ifconfig lx0 addr/prefix up
> 
> In the limited testing I've done thus far, Alpine appears to work.  Note my phrasing "appears to work".  I've been able to configure networking using /native tools and been able to ssh in once I've edited /etc/ssh/sshd_config to be more permissive.
> 
> NOTE:  LX zones and their Datasets are currently independent of boot environments.  One of the upcoming design decisions is how to handle LX zones on OmniOS, where BEs are very important.  Input on this mailing list would be appreciated.  Currently, if you change BEs, you may not have an LX zone configured, but its dataset will still be around.  You can use "zoneadm attach" after "zonecfg" if you wish.
> 
> Two other distro images -- Ubuntu 14.04 and Centos 6.8 -- have been attempted, but their /sbin/init exits with EBADF on a writev to stdout (fd == 2).  I suspect I'm doing something wrong with them (as pfiles(1) shows me no open FDs on /sbin/init), but I will not have time to debug them until July 12th at the earliest.  I will also be mostly away from email during this time as well.
> 
> It's progress.  Thanks go out to Joyent folks who've been VERY HELPFUL and whose LX code has been mostly free of SmartOS-specific assumptions thus far.  Thus far I've had to make only one change to zoneadmd that's truly deviant from illumos-joyent and not just a merge or mismerge.
> 
> Happy (alpine-only) LX-ing,
> Dan
> 
> _______________________________________________
> OmniOS-discuss mailing list
> OmniOS-discuss at lists.omniti.com
> http://lists.omniti.com/mailman/listinfo/omnios-discuss


More information about the OmniOS-discuss mailing list