How to provide unique hostid for a non global zone
Question : How to set a unique hostid for non-global zone ?
Answer:
Per default, a non global zone in Solaris gets the same hostid as global zone. Starting from Solaris 10 update 9, It is allowed to set unique hostid for a non-global zone using zonecfg command.
Procedure to set unique hostid
1. Shtidown the non-global zone (in our case zone01).
# zlogin zone01 shutdown
2. Set the hostid of your choice using zonecfg command.
# zonecfg -z zone01 zonecfg:zone01> set hostid=80f0c086 (HOSTID of your choice) zonecfg:zone01> exit
3. Boot the zone for the changes to take effect.
# zoneadm -z zone01 boot
No comments:
Post a Comment