Solaris Zone part four ( Zone Configuration )
In this tutorial we will learn how to configure some Solaris zone configuration
Solaris Zone Part 1 ( Concepts and theory )
Solaris Zone Part 2 ( Sparse Solaris zone )
Solaris Zone Part 3 ( whole Solaris zone )
Solaris Zone part 4 ( Zone Configuration )
➊ change solaris zone IP address
↬ From global zone at the command prompt type :-
zonecfg:zone1> select net address=10.109.9.211
zonecfg:zone1:net> set address=10.109.9.212
zonecfg:zone1:net> end
zonecfg:zone1:net> endzonecfg:zone1> verify
zonecfg:zone1> commit
zonecfg:zone1> exit
↬ reboot the zone
zoneadm -z zone1 reboot
↬ where :-
- zone1 is the name of the zone
- 10.109.9.211 is the old IP address
- 10.109.9.212 is the new IP address
➋ change the Zone Host name
↬ from the zone at the command prompt type :-
vi /etc/hosts
↬ change the old name with new.
vi /etc/nodename
↬ change the old name with new .
↬ reboot the zone
zoneadm -z zone1 reboot
➌ Delete zone
↬ from global zone at the command prompt :-
zoneadm -z zone1 halt
zoneadm -z zone1 uninstall
zonecfg -z zone1 delete
➍ swap space in non-global zone
↬ A non-global zone inherits its swap space setting from the global zone. For example, in my global zone:
0 comments:
Post a Comment