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.
problems connecting from host to guest.
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: problems connecting from host to guest.
Set your guest to use Host-Only mode, not internal.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
-
User347777
- Posts: 4
- Joined: 29. May 2013, 12:26
Re: problems connecting from host to guest.
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.
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: problems connecting from host to guest.
What is the IP & subnet of the guest on the host-only interface?
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
-
User347777
- Posts: 4
- Joined: 29. May 2013, 12:26
Re: problems connecting from host to guest.
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.
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.
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: problems connecting from host to guest.
So if I understand this right :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
- 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.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
-
User347777
- Posts: 4
- Joined: 29. May 2013, 12:26
Re: problems connecting from host to guest.
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.
How can I configure virtualbox to allow ssh connection from host laptop to virtual machines....irrespective of wifi network.
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: problems connecting from host to guest.
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 :
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 :
Run the command in the installation dir of Virtualbox.vboxmanage showvminfo VmName --details
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!