Centos 7 guest customization on vmware doesn’t work

Ran into this this morning… I was making a Centos 7 vmware template for an upcoming project that is dependent on this OS.. So I got everything up and running beautifully on the OS and converted it over to a template.. When I tried to enter in the new IP and hostname through the guest customization wizard it would appear to have taken the changes. However when the VM powered on the hostname was the same as the template and the IP was not changed (much to my dismay). After about an hour of tinkering and googling I have compiled the following as the solution until vmware decides to fix this:

Firstly install all dependencies

– perl

– net-tools

– open-vm-tools

– open-vm-tools-deploypkg

The last dependency there however is not in the repositories by default. No worries though vmware has provided a repository that has this open-vm-tools-deploypkg package, do the following to get this installed:


vi /etc/yum.repos.d/vmware-tools.repo 

Now paste this into there:


name = VMware Tools
baseurl = http://packages.vmware.com/packages/rhel7/x86_64/
enabled = 1
gpgcheck = 0

And lastly run your install:

yum install open-vm-tools-deploypkg

Now the other thing that I saw was messed up was that vmware didn’t recognize the OS properly and so the customization still didn’t work properly. For some reason they want you to be full fledged RHEL… While I wasn’t willing to pay for that I was willing to entertain this requirement by editing the redhat-release files like so:

[root@centos7x64 network-scripts]# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)

And now we change it:

[root@centos7x64 network-scripts]# rm -f /etc/redhat-release && touch /etc/redhat-release && echo "Red Hat Enterprise Linux Server release 7.0 (Maipo)" > /etc/redhat-release
[root@centos7x64 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.0 (Maipo)


Now my guest customization using vmware is working perfectly. Enjoy!



Leave a Reply

Your email address will not be published.