I installed Solaris at home, actually Opensolaris, to try out a few things. I've already set up ZFS, so now onto Zones. I found a example to set up a zone a followed, to a 'T'. In using the IP address in the example, it caused the zone to be setup on another subnet, so that had to be rectified. I wanted to change the ip address in the zone to 10.1.1.220. These were the steps:
Prior to the creation of the Zone, I needed a place to put it. I needed a directory:
#Mkdir /coolpool/web-zone
Also unless the correct permissions are set on the directory, you will get a lot of error messages. The correct permissions are:
#chomd 700 /coolpool/web-zone
zonecfg -z web-zone
zonecfg:web-zone> add net
zonecfg:web-zone:net> set physical=afe0
zonecfg:web-zone:net> set address=10.1.1.220
zonecfg:web-zone:net> set defrouter=192.168.1.1
zonecfg:web-zone:net> end
zonecfg:web-zone> verify
zonecfg:web-zone> commit
zonecfg:web-zone > exit
Then booted zone from host:
zoneadm -z web-zone boot
Then zlogin and finish the install:
zoneadm -C console
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment