I installed VirtualBox on my Windows 7 machine. Through VirtualBox, I installed Ubuntu 9.10 with apache2. I can view http://localhost from Ubuntu, but is there anyway I can view it from my windows machine too? i.e. run the apache server on ubuntu, and view it from windows? I figured it would open a port or something that would be visible to my whole computer regardless of its virtualness, but I guess not. How do I get around this?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
|
|||
|
|
|
Open port 80 in the VM, then go to the IP address of the VM in your browser. |
|||||||
|
|
While the Virtualbox is powered down, create a secondary network connection of type "host only". Power up your Virtualbox and run The IP address you are looking for is in the second paragraph (mine is 192.168.56.101). Optional: Add the following to your Windows hosts file:
Now you can go straight to |
||||
|
|
|
http://allisterx.blogspot.com/2008/05/web-server-on-virtualbox-gues-os.html Edit: I should elaborate a bit. Here's the important bit from the tutorial. You need to run this on your Windows host OS.
|
||||
|
|