Friday, April 18, 2008

Creating a zone on Solaris 10

here are the basic steps to create a zone on solaris 10.

root@Uranus # zonecfg -z test1
test1: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:test1> create
zonecfg:test1> set zonepath=/space/zone/test1
zonecfg:test1> add net
zonecfg:test1:net> set physical=bge1
zonecfg:test1:net> set address=192.168.0.237
zonecfg:test1:net> end
zonecfg:test1> verify
zonecfg:test1> commit
zonecfg:test1> exit

root@Uranus # zoneadm -z test1 install

root@Uranus # zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
- test1 installed /space/zone/test1 native shared

root@Uranus # zoneadm -z test1 boot

root@Uranus # zlogin -C test1