Access Apache Server VirtualBox VM (CentOS 7) from Host OS (Windows 7)

We have installed CentOS 7 on  VirtualBox Virtual Machine and Windows as a Host OS.  We would like to access a web server Apache on the VM (CentOS 7) from the Host OS (Windows). We met the issue to access Apache Server running in VirtualBox from Host OS and we have fixed it by following steps:

Step 1 – In the VM network settings, using ‘Bridged Adapter’.

Step 2 – Turn on the port of CenOS 7 : using the following command in terminal(for example port 80):


[root@localhost httpd]# firewall-cmd --permanent --add-port=80/tcp
[root@localhost httpd]# firewall-cmd --reload

My environment:
Host :  Win7 64bit
Guest / VM Machine:  CenOS 7

Access CentOS 7 Apache Server in VirtualBox from Host OS (Windows 7)

Avinash Pawar

DevOps Practitioner interested in learning new technologies and interested in sharing the knowledge with others.

More Posts - Website

Follow Me:
TwitterFacebookLinkedInGoogle Plus

Avinash Pawar

DevOps Practitioner interested in learning new technologies and interested in sharing the knowledge with others.

Leave a Reply