The easy way to change the hostname of a Sun container server is to
- edit /etc/nodename to reflect the new name
- revisit the /etc/hosts file to verify that its got the IP/Name of the container correct
There is no need to change the name of the container to be the same as the hostname of the container but I prefer to do so. Hence
- I change/rename the zonepath and
- change the zonename using zonecfg etc.