Page 1 of 1

problems connecting from host to guest.

Posted: 29. May 2013, 12:39
by User347777
Hi,

I have been pulling my hair out with this problem of connecting my host (laptop running windows 7) connecting to my guest virtual machine (Oracle Linux), the plan is to setup a 2 node rac cluster. I cannot ping or ssh from my laptop to guest vmware.

This was working when I first set this up at home using wifi with a network default gateway of 192.168.1.1. My work network has an IP range of 10.x.x.x and I cannot connect from host to guest ideally I would like to connect from home and work.

I have created a simple vm machine to troubleshoot this problem, with the setup as below:

1) Virtual box host only adapter.

Vbox settings:
IP: 192.168.54.1
255.255.255.0
DHCP Server enabled: 192.168.54.1
Server Mask: 255.255.255.0
lower band: 192.168.54.101
upper band: 192.168.54.254


2) internal network adapter assigned an IP address of 192.168.1.135 with a default gateway of 192.168.1.0


3) work network wifi default gateway: 10.128.64.1

any help is appreciated I have been stuck on this problem for days now.

Re: problems connecting from host to guest.

Posted: 29. May 2013, 13:10
by noteirak
Set your guest to use Host-Only mode, not internal.

Re: problems connecting from host to guest.

Posted: 29. May 2013, 13:25
by User347777
I have one adapter set to host only and the other to internal network the second adapter will be used for private interconnect between vm nodes.

Re: problems connecting from host to guest.

Posted: 29. May 2013, 13:37
by noteirak
What is the IP & subnet of the guest on the host-only interface?

Re: problems connecting from host to guest.

Posted: 29. May 2013, 14:14
by User347777
Please find details from guest vm. eth1 is the static IP I'm trying to ping from host 192.168.1.135.

eth0
inet: 192.168.56.101
Bcast: 192.168.56.255
MasK: 255.255.255.0

eth1
inet: 192.168.1.135
Bcast: 192.168.1.255
Mask: 255.255.255.0

thanks.

Re: problems connecting from host to guest.

Posted: 29. May 2013, 14:26
by noteirak
Host settings:
IP: 192.168.54.1
255.255.255.0
DHCP Server enabled: 192.168.54.1
Server Mask: 255.255.255.0
lower band: 192.168.54.101
upper band: 192.168.54.254

eth0
inet: 192.168.56.101
Bcast: 192.168.56.255
MasK: 255.255.255.0

eth1
inet: 192.168.1.135
Bcast: 192.168.1.255
Mask: 255.255.255.0
So if I understand this right :
- Your host-only interface on the host is on 192.168.54.0/24
- Your host-only interface on the guest is on 192.168.56.0/24
- You try to ping the 192.168.1.135 IP within the guest, and I guess the host has no route or interface to it and the guest doesn't have routing enabled.

If I am correct, you did not configure you network properly AT ALL. Please make sure you understand networking before going for advanced configuration.
Networking configuration of the host or the guest is way out of scope of this forum. I would look for more info on Internet first so you fully grasp what you are doing.

Re: problems connecting from host to guest.

Posted: 29. May 2013, 15:49
by User347777
let me send you the full configuration, as I said in my first post the intial setup was done from home where the default wifi gateway was 192.168.1.0, from home I could connect from my laptop (host) directly to the guest server...... 192.168.1.135. However when I'm at work the laptop is using the work wifi which is on a 10.x.x.x network range probably why I have no direct ssh from laptop to guest.

How can I configure virtualbox to allow ssh connection from host laptop to virtual machines....irrespective of wifi network.

Re: problems connecting from host to guest.

Posted: 29. May 2013, 16:50
by noteirak
I don't understand what your Wifi has anything to do with this, since you tell me that you are using Host-Only mode and Internal mode? None of which requires any hardware network and only exist within the host and the VMs.

Show me the config of your VMs using this command (replace VmName with the actual names) and put quotes if the name has a space :
vboxmanage showvminfo VmName --details
Run the command in the installation dir of Virtualbox.