VMware Communities
HJLBX
Enthusiast
Enthusiast

Where is a detailed guide to connect two VMs installed on the same PC ?

  • Windows 10 Pro
  • Default Windows Firewall
  • VMWare Workstation 12.5

I have tried the Bridged, NAT and Host-Only options.  One VM cannot ping the other VM.  I want to use Host-Only.

I have searched for many hours online and at VMWare.com to sort this out - and can find nothing.

I am new to VMWare Workstation and just a basic home user.

I already read the documentation and set each VM to Host-Only -- but that is not working - there is no communication between the two VMs on the same machine.

I have tried setting Host-Only and enable the DHCP to dynamically assign IP addresses to the VMs - and that does not work; VMs cannot ping each other.

I also tried the Bridged and NAT options -- and both of those are not working either.

0 Kudos
10 Replies
a_p_
Leadership
Leadership

With Host-Only networking configured for the VMs, do both receive a valid DHCP lease (192.168.x.y)?

Did you allow ICMP (ping) traffic in the Windows firewall in both VMs?

André

0 Kudos
HJLBX
Enthusiast
Enthusiast

Where do you find those ?  I am just a basic home user.

0 Kudos
HJLBX
Enthusiast
Enthusiast

Ping is allowed by default in Windows Firewall... so aren't those rules automatically created in a VM ?

0 Kudos
HJLBX
Enthusiast
Enthusiast

The VMs cannot communicate with each other.  There is an exclamation mark inside a yellow triangle over top of the Networking tray icon INSIDE the VM.

0 Kudos
a_p_
Leadership
Leadership

To find out the IP settings, either run ipconfig on a command line, or check the "Status" for the network adapter within the guest OS (Windows).

Also make sure that the virtual network adapters (in the VMs' configuration) are set to Host-Only, and "Connect at power on" is checked.

The default settings in the Windows firewall is NOT to allow ICMP traffic, so you need to allow it.

If this doesn't help, please attach the latest vmware.log files for both VM's to a reply post. You'll find the "Attach" link in the lower right corner of the reply window.

André

0 Kudos
HJLBX
Enthusiast
Enthusiast

1.  Each VM has its own ip address *.128 and *.129.  I looked in the guest OS and I cannot find any "Status" for the virtual network adapters.  I see only IP addresses, subnets, and no gateways.

2.  Both VMs are set to "Host-Only."

3.  On my PC I can ping, so the default Windows Firewall does allow ping.  Unless you mean that VMWare disables ping in Windows Firewall.  I am not understanding.

4.  I completely disabled Windows Firewall in both VM1 and VM2.  When I do that, even then there is no networking; the exclamation mark in the yellow triangle remains over top of the Networking

    tray icon.

5.  I assume you meant VMware.logs from the VM1 and VM2 folders so I have attached those.

0 Kudos
a_p_
Leadership
Leadership

The configuration, and the IP addresses you mentioned seem to be ok.

You say that you can ping the VMs from the host. Did you try to ping the host's virtual "Host-Only" IP address from the VMs, to see whether this works? By default it's "VMnet1" on the host, with an IP address of 192.168.x.1.

André

0 Kudos
HJLBX
Enthusiast
Enthusiast

1.  I can ping one VM from another - only if I enable NAT, but disable Windows Firewall

2.  I cannot ping anything if I enable Host-Only - even with Windows Firewall disabled

     In VM1 or VM2, when I try to ping the Host-Only Virtual Adapter IP address 192.168.135.1 the ping fails\times-out

3.  I can ping VM1 and VM2 from the PC\Host

0 Kudos
HJLBX
Enthusiast
Enthusiast

When I use NAT with Windows Firewall disabled, I still cannot get a program in one VM to connect with the other VM

0 Kudos
gimmely
Hot Shot
Hot Shot

The short answer, based on my experience, is that most of "it" is about networking, instead of VMware or any virtualization tool.  In another word, you'd just consider your VMs (almost) as physical/real hosts.

0 Kudos