Posted by Doomshammer on Monday, September 3. 2007 at 20:33 in Anwendungen, Computer, English only, Linux/Unix, Privat, Thoughts
Today I played around with BrandZ. BrandZ makes it possible to install another brand of OS inside of a Solaris Zone. My target was a CentOS installation inside of my zone.
The configuration of the zone works pretty much straight forward. A simple:
zonecfg -z linuxtest1 "create -t SUNWlx; set zonepath=/export/myzone_root"
is enough, to have a basic linux-branded zone. To make the zone avail. via network, you could add a quick:
zonecfg -z linuxtest1 "add net; set address=192.168.197.201/24; set physical=e1000g0; end"
to get a network interface assigned to the zone.
Now the zone is ready for installation. To make things easy, I took the CentOS tarbar that is avail. here. The installation is done by this command:
zoneadm -z linuxtest1 install -d /home/doomy/CentOS/centos_fs_image.tar.bz2
After some minutes (depending on your machine speed and the typ of installation you've choosen) the installtion is complete and you are ready to boot up your linux zone:
zoneadm -z linuxtest1 boot
Now enter the linux via SSH or local console (zlogin -C) and there we are:
Linux linuxtest1 2.4.21 BrandZ fake linux i686 i686 i386 GNU/Linux
A linux installation couldn't be easier