Today I had a rather interesting requirement - I needed to run a gitlab instance for my team. I decided I would use one of the servers' hardware and install a virtual machine using VMWare's client for Mac OS called Fusion. In the past I had encountered difficulties in being able to spin up a VM which was visible and ping-able in the intranet using VMWare clients. Yet I tried to go down that path again. It was a bit frustrating and I hopped from one stackoverflow article to another and finally gave up. I switched to VirtualBox and brought up a simple webserver in one line :
python -m SimpleHTTPServer 8000
Once I did this, I made sure this was accessible from browser as http://localhost:8000. I wanted to be able to access this from browser running on another host. So in order to do that I enabled a bridged adapter configuration on the network adapter. Some organizations do not support it. But I was lucky that my organization supported this - awarding an IP address to a VM's network adapter. Then it worked!
On the Mac OS window after launching the VirtualBox go to Machine-> Settings and then choose Network. Select Bridged Adapter and the default settings in Advanced menu. That should do it.
References:
How to set up a firewall in Ubuntu:
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-16-04
python -m SimpleHTTPServer 8000
Once I did this, I made sure this was accessible from browser as http://localhost:8000. I wanted to be able to access this from browser running on another host. So in order to do that I enabled a bridged adapter configuration on the network adapter. Some organizations do not support it. But I was lucky that my organization supported this - awarding an IP address to a VM's network adapter. Then it worked!
On the Mac OS window after launching the VirtualBox go to Machine-> Settings and then choose Network. Select Bridged Adapter and the default settings in Advanced menu. That should do it.
References:
How to set up a firewall in Ubuntu:
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-16-04
