How can a Virtualbox host connect to a guest VM when host wireless is disabled / host Ethernet cable is unplugged?

Posted by uloBasEI on Super User See other posts from Super User or by uloBasEI
Published on 2012-06-18T21:51:52Z Indexed on 2012/06/19 3:18 UTC
Read the original article Hit count: 206

Filed under:
|

I have a Virtualbox VM running on a computer connected to Internet via an Ethernet cable. The guest has a network adapter attached to a NAT. 2 ports (22 and 80) are forwarded so that the host can access them respectively on localhost:2222 and localhost:8080.

When the Ethernet cable is plugged, both machine (host and guest) can access Internet and the host can access the SSH server/Webserver which ports are forwarded.

When I unplug the Ethernet cable from the host, the host can not access the SSH server/Webserver of the guest anymore. Same situation with a Laptop connected to Internet via wireless when I disable the wireless adapter or set a wrong WPA key.

My question is: is there a workaround for the host to access the guest services even if its Ethernet cable is unplugged / wireless is not available?

© Super User or respective owner

Related posts about networking

Related posts about virtualbox