Installing ESXi Guest Tools on CentOS 7

From here, edit /etc/yum.repos.d/vmware-tools.repo , add:

name = VMware Tools
baseurl =
enabled = 1
gpgcheck = 1

To install:

sudo yum install open-vm-tools-deploypkg

On my freshly installed CentOS 7, this gave the error:

[kev@unknown000C2960F639 ~]$ sudo yum upgrade

Loaded plugins: fastestmirror

You have enabled checking of packages via GPG keys. This is a good thing. 

However, you do not have any GPG public keys installed. You need to download

the keys for packages you wish to install and install them.

You can do that by running the command:

    rpm --import public.gpg.key

Alternatively you can specify the url to the key you would like to use

for a repository in the 'gpgkey' option in a repository section and yum 

will install it for you.

For more information contact your distribution or package provider.

Problem repository: vmware-tools

It doesn’t say how to import the GPG keys, but this page mentions they are in this location:  /etc/pki/rpm-gpg

So to import,

sudo rpm --import  /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

Then I could update:

sudo yum update

Then install the vmware-tools:

sudo yum install open-vm-tools-deploypkg

Opening iptables firewall ports on CentOS 7

To list existing iptable config:

sudo iptables -L

To open ports, for example, 80, 8443 and 8080:

$ sudo firewall-cmd --zone=public --add-port=80/tcp --permanent


$ sudo firewall-cmd --zone=public --add-port=8080/tcp --permanent


$ sudo firewall-cmd --zone=public --add-port=8443/tcp --permanent



Reload config with:

sudo firewall-cmd --reload