Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When there is no wifi connection or ethernet connection, I'm unable to reach the OS in VirtualBox from the same machine (i.e. the host OS). From reading this post: http://askubuntu.com/questions/247625/what-is-the-loopback-device-and-how-do-i-use-it this is because:

When a network interface is disconnected--for example, when an Ethernet port is unplugged or Wi-Fi is turned off or not associated with an access point--no communication on that interface is possible, not even communication between your computer and itself.

That answer recommends using the "loopback device" instead, but loopback is 127.0.0.0/8 and my VirtualBox OS is set to a static ip of 192.168.1.111 (and I don't want to have to change this). How do I make it reachable?

SETUP:

* Host Machine (Laptop): openSUSE 13.1
    * VirtualBox: CentOS 6 (192.168.1.111)

I want to ssh from openSUSE to CentOS.

share|improve this question

2 Answers 2

This is exactly the question I answered for someone else with a Windows VirtualBox host and a linux guest yesterday.

CentOs localhost only work when connected to internet

If you can adapt the instructions for Linux, then follow the bit under "Edit: New suggested configuration" to create an always-available network for your Linux host to talk to your VirtualBox guest using VirtualBox's "Host-Only network adapter", and then a second network connection bridged to your WiFi connection so the Virtual Machine can get out to the internet.

I'm not sure if you can get away without changing the guest's IP address though.

share|improve this answer
    
I will take a look but I need the static IP so other computers on the network can reach it when it's back online. –  Don Rhummy Mar 11 at 6:04

here is suse ics info https://en.opensuse.org/SDB:Internet_connection_sharing and setup static ips between guest vm and host machine

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.