Access server running on localhost on host system through virtualbox guest OS
Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: Gentoo, Ubuntu, RHEL, CentOS, BSD, Solaris
Posts: 82
Rep:
Quote:
Originally Posted by Jean-Luc Besson
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.
Distribution: Gentoo, Ubuntu, RHEL, CentOS, BSD, Solaris
Posts: 82
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.