How to setup a LX zone

Install a package for LX-zone:

zone-lx
dilos# apt update && apt install zone-lx

After installation you need to reboot the system to activate installed drivers.

And you can configure your LX-zone as native zone with small difference:

zonecfg
dilos# zonecfg -z lx2
lx2: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:lx2> create -t SUNWlx26
zonecfg:lx2> set zonepath=/zones/lx2
zonecfg:lx2> set autoboot=false
zonecfg:lx2> set ip-type=exclusive
zonecfg:lx2> add attr
zonecfg:lx2:attr> set type=string
zonecfg:lx2:attr> set name=resolvers
zonecfg:lx2:attr> set value="192.168.0.1"
zonecfg:lx2:attr> end                    
zonecfg:lx2> add net 
zonecfg:lx2:net> set physical=eth1
zonecfg:lx2:net> set global-nic=e1000g1
zonecfg:lx2:net> add property (name="gateway",value="192.168.0.1")
zonecfg:lx2:net> add property (name="ip",value="192.168.0.103")
zonecfg:lx2:net> add property (name="netmask",value="255.255.255.0")
zonecfg:lx2:net> add property (name="primary",value="true")
zonecfg:lx2:net> end                                     
zonecfg:lx2> verify
zonecfg:lx2> commit
zonecfg:lx2> exit  

By default version of kernel set to 2.6, you could change it:

change kernel version
dilos# zonecfg -z lx2
zonecfg:lx2> info attr name=kernel-version
attr:                                     
        name: kernel-version
        type: string
        value: 2.6
zonecfg:lx2> select attr name=kernel-version
zonecfg:lx2:attr> set value="4.18.0"
zonecfg:lx2:attr> end               
zonecfg:lx2> info attr name=kernel-version
attr:                                     
        name: kernel-version
        type: string
        value: 4.18.0
zonecfg:lx2> verify
zonecfg:lx2> commit
zonecfg:lx2> exit

Now you can install the new zone from an archive by the full path:

installation
dilos# zoneadm -z lx2 install -d /path/to/archive.tar.bz2

archive.tar.bz2 is an archive of the system, you can do it by yourself from an installed system, just use this command:

archive
centos# tar -jcf archive.tar.bz2 --exclude c6.tar.bz2 --exclude dev --exclude proc --exclude sys --exclude boot --exclude mnt --exclude net *

Then boot it as some other zone:

booting zone
dilos# zoneadm -z lx2 boot