I used to be able to access the web server I had running on my guest OS in Virtual Box from my host OS. I also had it set to the network settings of “Host Only Adapter”. Then I needed to access the internet directly on the gues OS, so I changed my settings on the guest OS to “NAT” (in virtual box), and in /etc/network/interfaces, I removed the loopback stuff and the static IP I’d put in.
Now no matter what I do, I cannot get it back to being accessible from the host os! I even did a completely NEW install of Ubuntu guest OS in Virtual box (completely new install from the ISO, new hard disk) and even THAT one won’t work! Any ideas what went wrong and how to fix this?
Don’t use nat ! Use ‘bridged adapter’ in your VB host. Than you can access your guest from vb host and other computers in lan, provided the gest network settings ( ip, mask, gateway, /etc/hosts, etc) are correct.
I tried that too and it did not work! In fact, somehow when I type “ifconfig” on the guest OS, it now shows only “lo”!!! It no longer shows eth0! Help!
you have to enable the guest network adpater(s) in the network settings of the virtual machine in VBox. If you didn’t define any network adapter for your virtual machine, you won’t have any.
More importantly, look in Yast. If you changed network adapters it is
possible your old one is still defined within the Guest but no longer
visible because the host (via VirtualBox) has given the guest a new
interface, and one that is not configured.
Good luck.
On 09/04/2010 10:36 PM, please try again wrote:
>
> you have to enable the guest network adpater(s) in the network settings
> of the virtual machine in VBox. If you didn’t define any network
> adapter for your virtual machine, you won’t have any.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
Nothing I did worked, but something in VirtualBox and the random popups I got on changes (it always showed that I’d changed to “bridged adapter” but only sometimes popped up something to tell me the change was applied) made me think maybe it was buggy in actually applying the change. So I did this:
Changed to NAT
Restarted, didn’t work
Changed to host only
Restarted, didn’t work
Changed to bridged adapter
Restarted, didn’t work
Changed to NAT
Restarted, didn’t work
Changed to host only
Restarted, didn’t work
Changed to bridged adapter
it finally worked!
So something’s buggy with VirtualBox and changing network type.