Home Members Sponsors Blogs Photos Videos Groups Events Polls Forums Articles
Articles
How to install Centos into a Linux Branded Zone
01-21-09

The following assumes that centos_fs_image.tar.bz2 has been downloaded from the above location, and saved into /export/zdata/share. It also assumes that the directory /export/zones/centos has been created and given the permissions 700.

 

bash-3.00# cd /export/zone

 

bash-3.00# mkdir cento

 

bash-3.00# chmod 700 cento

 

bash-3.00# pwd
/export/zone

 

bash-3.00# zonecfg -z centos
centos: No such zone configured

 

Use 'create' to begin configuring a new zone.

 

zonecfg:centos> create -t SUNWlx
zonecfg:centos> set zonepath=/export/zones/centos
zonecfg:centos> add net
zonecfg:centos:net> set address=10.1.1.1/24
zonecfg:centos:net> set physical=e1000g0
zonecfg:centos:net> end
zonecfg:centos> info


zonename: centos
zonepath: /export/zones/centos
brand: lx
autoboot: false
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
net:
address: 10.1.1.1/24
physical: e1000g0
zonecfg:centos> commit
zonecfg:centos> exit

 

bash-3.00# svcadm enable svc:/system/filesystem/volfs:default

 

bash-3.00# svcs | grep volfs
online 9:18:04 svc:/system/filesystem/volfs:default

 

bash-3.00# ls ../zdata/share
SAMP.tar centos_fs_image.tar.bz2

 

bash-3.00# zoneadm -z centos install -d /export/zdata/share/centos_fs_image.tar.bz2

 

Installing zone 'centos' at root directory '/export/zones/centos'
from archive '/export/zdata/share/centos_fs_image.tar.bz2'

This process may take several minutes.

Setting up the initial lx brand environment.
System configuration modifications complete.
Setting up the initial lx brand environment.
System configuration modifications complete.

Installation of zone ‘centos' completed successfully.

 

Details saved to log file:
"/export/zones/centos/root/var/log/centos.install.1759.log"

 

bash-3.00# zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
- z1 configured /export/zones/z1 native shared
- centos installed /export/zones/centos lx shared

 

bash-3.00# zoneadm -z centos boot

 

bash-3.00# zlogin cento

[Connected to zone 'centos' pts/5]

 

Welcome to your shiny new Linux zone.

- The root password is ‘root'. Please change it immediately.

- To enable networking goodness, see /etc/sysconfig/network.example.

- This message is in /etc/motd. Feel free to change it.

 

For anything more complicated, see:
http://opensolaris.org/os/community/brandz/

 

You have mail.

 

-bash-2.05b# hostname
cento

 

Now that wasn't too difficult, was it?

 

Powered by:
BoonEx - Community Software; Dating And Social Networking Scripts; Video Chat And More.
Copyright © 2010 Texas Sun Users Group.