I have created a VM image (Ubuntu 16.04.6) in VBox on Windows and wanted to access it outside the host in my network. I am facing challenge in achieving this.
These are the steps i followed:
- created the "host-only network" by using Host network manager.
- configured two adapters, first adapter is attached to NAT and the second is attached to Host-only Adapter.
- set up the network interface file to point to host-only adapter and assigned a static IP.
- restarting VM image.
I can access VM image from the host using the static ip. But the challenge is that i can not expose this vm outside my machine as its not accessible. I also tried to set the default gateway to that of our network, but it won't work. In fact that gateway is not accessible from the vm though its accessible from the host machine.
How can this access issue be fixed? Any suggestions/pointers are most welcome.
Thanks in Advance!