As the title says, I was trying to do a sys-unconfig on a Solaris 10 branded zone and when I reboot and go enter the new config info, the hostname doesn't get asked to be changed. The system automatically configures the zonename as the hostname.
Some things I tried that didn't work:
Some things I tried that didn't work:
- Configure a NIC that doesn't exist
Since most of the googled results pointed to pulling out the network cable, I tried the logical equivalent for a zone. However, configuring a non-existent NIC doesn't work, because the a zone won't boot when configured with a NIC that doesn't exist. - Choose a NIC that does exist but is offline
Same reasoning at point 1, still doesn't work though. - Configure an IP that doesn't exist on our LAN
Same reasoning at point 1, still doesn't work though. - Do it with no NIC configured
This actually works, the system asks me for a new hostname during the sysconfig. Unfortunately, it doesn't ask me for any of the subsequent network info. So when I add the NIC, I'll have to then do the subnet and DNS configuration manually. No thank you. - Search for files that contain the hostname and delete manually
Just in case the sys-unconfig was not deleting these files. Didn't work. - Set the bootargs to "noauto"
Got this from an Oracle SR for when the hostname is being retrieved from the jumpstart server (which I don't have anyway). Didn't work.
What worked:
- After the sys-unconfig and subsequent sysconfig completed, I edited the following files and rebooted the zone:
- /etc/inet/hosts
- /etc/nodename
- /etc/hostname.net0 (or whatever's relevant)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.