Connecting VMs that run on 2 different host

Discussions related to using VirtualBox on Windows hosts.
Post Reply
tmf33uk
Posts: 1
Joined: 5. Aug 2021, 12:50

Connecting VMs that run on 2 different host

Post by tmf33uk »

Hi,

I have an issue that I cannot find the solution for...

I am using 2 laptops, both with Windows 10 installed and both with the same version of VirtualBox.

All the VMs I'm running on both laptops are using bridged networking and have connectivity with the host they are running on, but not with "the other one", nor the VMs running on the other laptop.

All the VMs have IPs in the 192.168.1.x subnet:

Host1 192.168.1.107
vm1 192.168.1.119

Host2 192.168.1.124
vm2 192.168.1.123
vm3 192.168.1.125
vm4 192.168.1.106

The route on each of the VMs is:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default Livebox 0.0.0.0 UG 100 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0

But the Livebox router only lists the hosts and their IPs (and other devices I have at home).

Looking at the MAC addresses, VMs *are* listed in the administration console of the Livebox but they have no IP:

HOST-691E2D 08:00:27:69:1E:2D --- --- --- 2021/08/05 08:45:50 Bloquear
HOST-220F75 08:00:27:22:0F:75 --- --- --- 2021/08/05 08:47:08 Bloquear
HOST-1D85BC 08:00:27:1D:85:BC --- --- --- 2021/08/05 08:51:24 Bloquear
HOST-5F3158 08:00:27:5F:31:58 --- --- --- 2021/08/05 08:51:28 Bloquear
HOST-AC593C 08:00:27:AC:59:3C --- --- --- 2021/08/05 09:27:38 Bloquear

Any ideas on how to make my VMs connect to each other regardless of the host (laptop) they are running on? They seem part of the same network (192.168.1.x), but they're clearly not...

Thanks in advance.
Teresa.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Connecting VMs that run on 2 different host

Post by scottgus1 »

tmf33uk wrote:2 laptops, both with Windows 10 installed
Moved to Windows Hosts.

In each Windows host OS, open a Command Prompt and run ipconfig /all. Post the command output. Please label which host is which output.

Please provide the following for one VM on each host that is having this problem: Right-click the VM in the main Virtualbox window's VM list, choose Show in Explorer/Finder/File Manager. Zip the VM's .vbox file (not the .vbox-prev file). (Configure your host OS to show all extensions if the folder that opens does not show a .vbox file.) Post the 2 zip files, using the forum's Upload Attachment tab.

If the VM is a Windows OS, open a Command Prompt and run ipconfig /all. Post the command output.

If the VM is a Linux OS, open a Terminal and run ifconfig or ip address. Post the command output.
Post Reply