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
Host : Win7 64bit
Guest / VM Machine: CenOS 7