The lx brand for OpenIndiana 151a

The lx branded zones on OpenSolaris enabled to run Linux binaries. But this useful feature was removed from the kernel in June 11, 2010. As it turned out, it is not so difficult to bring the lx brand back. The results of the first attempt are below.

To enable rollback capability you can create a new boot environment and activate it. Let’s name it lx01.
sudo beadm create lx01
sudo beadm activate lx01

After rebooting into the new boot environment, you should install files from archive. There is the kernel among these files.
wget http://www.os-solaris.ru/wp-content/uploads/lx_151a_20120111.7z
7z x lx_151a_20120111.7z
sudo cp -r etc/ kernel/ platform/ usr/ /

You should reboot the system to load the new kernel. Then add lx brand kernel modules to the system.
sudo add_drv lx_audio
sudo add_drv -m ‘lx_ptmajor 0666 root sys’ lx_ptm
sudo add_drv -m ‘* 0644 root sys’ lx_systrace

Create and configure a new zone.
sudo zonecfg -z myzone
myzone: No such zone configured
Use ‘create’ to begin configuring a new zone.
zonecfg:myzone> create -t SUNWlx
zonecfg:myzone> set zonepath=/export/myzone_root
zonecfg:myzone> add net
zonecfg:myzone:net> set address=192.168.1.30/24
zonecfg:myzone:net> set defrouter=192.168.1.1
zonecfg:myzone:net> set physical=yukonx0
zonecfg:myzone:net> end
zonecfg:myzone> add attr
zonecfg:myzone:attr> set name=»audio»
zonecfg:myzone:attr> set type=boolean
zonecfg:myzone:attr> set value=true
zonecfg:myzone:attr> end
zonecfg:myzone> commit
zonecfg:myzone> exit

Then download and repack the installation image.
wget http://dlc.sun.com/osol/brandz/downloads/centos_fs_image.tar.bz2
bunzip2 < centos_fs_image.tar.bz2 |gzip >centos_fs_image.tar.gz

Install the zone from the image.
sudo zoneadm -z myzone install -d /home/keremet/lx/centos_fs_image.tar.gz

Now it is possible to boot the zone.
sudo zoneadm -z myzone boot

To access the zone console use the folloing command
sudo zlogin -C myzone

To login to the zone use
login: root
password: root

Andrey Sokolov (keremet (at) solaris.kirov.ru)

Trackbacks

  1. […] Результаты первой попытки восстановления приведены LX brand для OpenIndiana 151a This entry was posted in Solaris, Sun Microsystems, UNIX, Новости, […]

  2. […] Чтобы запустить скайп на OpenIndiana, требуется настроить, сконфигурировать и установить типизированную зону, как было описано в статье http://os-solaris.ru/lx-brand-dlya-openindiana-151a/ […]

Speak Your Mind

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.