LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Access server running on localhost on host system through virtualbox guest OS (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/access-server-running-on-localhost-on-host-system-through-virtualbox-guest-os-944903/)

Jean-Luc Besson 05-14-2012 11:57 AM

Access server running on localhost on host system through virtualbox guest OS
 
Hi everyone,

I am running:
Ubuntu 11.10. (Host)
Virtualbox 4.1.2
Windows XP SP3 (Guest)

I need to do some Internet Explorer 7 related CSS workarounds and can not browse files on localhost on the host system. It seems the server is not even recognized.

So far I have tried all the network adapters for the guest system and made the necessary changes in the Windows host file. None of it worked.

Does anyone of you have experience with this kind of problem?
Any help is appreciated.

djsoundfx 05-15-2012 10:54 AM

Quote:

Originally Posted by Jean-Luc Besson (Post 4678124)
Hi everyone,

I am running:
Ubuntu 11.10. (Host)
Virtualbox 4.1.2
Windows XP SP3 (Guest)

I need to do some Internet Explorer 7 related CSS workarounds and can not browse files on localhost on the host system. It seems the server is not even recognized.

So far I have tried all the network adapters for the guest system and made the necessary changes in the Windows host file. None of it worked.

Does anyone of you have experience with this kind of problem?
Any help is appreciated.

So just to clarify you're trying to allow the XP Guest to access a server that is running on the Ubuntu host? When you say browse files are these webpages that are being hosted on a webserver like apache on the ubuntu host?
If you can clear these up I'll see if I can help as I've done some work that is similar.

Jean-Luc Besson 05-15-2012 10:57 AM

Quote:

Originally Posted by djsoundfx (Post 4679032)
So just to clarify you're trying to allow the XP Guest to access a server that is running on the Ubuntu host?

Right.
Quote:

Originally Posted by djsoundfx (Post 4679032)
When you say browse files are these webpages that are being hosted on a webserver like apache on the ubuntu host?

Also correct.

Thank you for your reply.

djsoundfx 05-15-2012 03:19 PM

Great well first things first, just to double check are you able to access the webpages on the Ubuntu machine? Is it listening on the correct ports?
Code:

netstat -anpt|grep httpd
Does your guest have connectivity at all (ie does it obtain an IP address can it connect to your internet)? Does this ip address match the subnet of the host (ie both are 192.168.1.x)? Then see if you can ping your host from your guest and vice versa? Also are you running iptables or another firewall?
Code:

sudo iptables -L -n
If this is too basic to start out with let me know what you have tried and I'll try to catch up and skip what you've already tried.


All times are GMT -5. The time now is 01:04 AM.