VMware Communities
MartinF12
Contributor
Contributor

Cannot connect to guest, but host has can access internet

I upgraded lately to Workstation 16 and I have huge problems with connectivity and I am already kind of frutrated from the issue. 

The problem: I have ubuntu 20.04 runnig the latest Vmware tools and the newest version of Workstation. Guest can ping host (192.168.67.2) and it can access internet through NAT network adapter but host cannot access guest at all - no ping reply or TCP connection possible. 

I am running in Ring level 3 along with Docker. Neweset Windows update. No special firewall rules in Linux, I can also cannot see any packets coming in when running tcpdump -i any -n

UPDATE 1: I cannot also ping from the Windows host system the guests default gateway (192.168.67.2).

12/09 UPDATE 2: I reinstalled Vmware Workstation and it was working 1 day. After reboot not working again

12/15 UPDATE 3: I tried to change the NAT network to 192.168.68.128. No effect. Created completely new VM, fresh install of Ubuntu, not working. VMs can ping themselves between each other though.

12/16 UPDATE 4: I will reinstall now again, and keep you updated.

Defender Firewall completely disabled.

MartinF12_0-1607353689267.png

Switch config:

MartinF12_1-1607353767341.png

VMX file:

Spoiler
.encoding = "windows-1252"
displayName = "ASROCK-DevLinux"
config.version = "8"
virtualHW.version = "18"
mks.enable3d = "TRUE"
pciBridge0.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "TRUE"
hpet0.present = "TRUE"
usb.vbluetooth.startConnected = "TRUE"
guestOS = "ubuntu-64"
nvram = "ASROCK-DevLinux.nvram"
virtualHW.productCompatibility = "hosted"
powerType.powerOff = "soft"
powerType.powerOn = "soft"
powerType.suspend = "soft"
powerType.reset = "soft"
tools.syncTime = "TRUE"
numvcpus = "2"
cpuid.coresPerSocket = "2"
vcpu.hotadd = "TRUE"
memsize = "6272"
mem.hotadd = "TRUE"
scsi0.virtualDev = "lsilogic"
scsi0.present = "TRUE"
sata0.present = "TRUE"
scsi0:0.fileName = "ASROCK-DevLinux-000004.vmdk"
scsi0:0.present = "TRUE"
sata0:1.deviceType = "cdrom-raw"
sata0:1.fileName = "auto detect"
usb.present = "TRUE"
ehci.present = "TRUE"
svga.graphicsMemoryKB = "786432"
ethernet0.addressType = "generated"
ethernet0.virtualDev = "e1000"
serial0.fileType = "thinprint"
serial0.fileName = "thinprint"
ethernet0.present = "TRUE"
extendedConfigFile = "ASROCK-DevLinux.vmxf"
gui.lastPoweredViewMode = "fullscreen"
uuid.bios = "56 4d 7c d6 3c fb f8 1f-b1 11 64 be f0 34 1f 8e"
migrate.hostlog = ".\ASROCK-DevLinux-9ab0daf7.hlog"
scsi0:0.redo = ""
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
scsi0.pciSlotNumber = "16"
usb.pciSlotNumber = "32"
ethernet0.pciSlotNumber = "33"
ehci.pciSlotNumber = "35"
vmci0.pciSlotNumber = "36"
sata0.pciSlotNumber = "37"
ethernet0.generatedAddress = "00:0C:29:34:1F:8E"
ethernet0.generatedAddressOffset = "0"
vmci0.id = "-265019506"
monitor.phys_bits_used = "45"
vmotion.checkpointFBSize = "4194304"
vmotion.checkpointSVGAPrimarySize = "268435456"
softPowerOff = "TRUE"
usb:1.speed = "2"
usb:1.present = "TRUE"
usb:1.deviceType = "hub"
usb:1.port = "1"
usb:1.parent = "-1"
svga.guestBackedPrimaryAware = "TRUE"
sata0:1.autodetect = "TRUE"
tools.remindInstall = "FALSE"
toolsInstallManager.updateCounter = "6"
toolsInstallManager.lastInstallError = "0"
checkpoint.vmState = ""
uuid.location = "56 4d 7a 60 0d 6b 62 e1-43 02 fd e3 9c cf b5 49"
gui.exitOnCLIHLT = "TRUE"
svga.vramSize = "268435456"
guestOS.detailed.data = "bitness='64' distroName='Ubuntu' distroVersion='20.04' familyName='Linux' kernelVersion='5.4.0-56-generic' prettyName='Ubuntu 20.04.1 LTS'"
vmotion.svga.mobMaxSize = "1073741824"
vmotion.svga.graphicsMemoryKB = "786432"
vmotion.svga.supports3D = "1"
vmotion.svga.baseCapsLevel = "9"
vmotion.svga.maxPointSize = "1"
vmotion.svga.maxTextureSize = "16384"
vmotion.svga.maxVolumeExtent = "2048"
vmotion.svga.maxTextureAnisotropy = "16"
vmotion.svga.lineStipple = "0"
vmotion.svga.dxMaxConstantBuffers = "14"
vmotion.svga.dxProvokingVertex = "0"
vmotion.svga.sm41 = "1"
vmotion.svga.multisample2x = "1"
vmotion.svga.multisample4x = "1"
vmotion.svga.msFullQuality = "1"
vmotion.svga.logicOps = "1"
vmotion.svga.bc67 = "9"
vmotion.svga.sm5 = "1"
vmotion.svga.multisample8x = "1"
vmotion.svga.logicBlendOps = "1"
checkpoint.vmState.readOnly = "FALSE"
tools.upgrade.policy = "upgradeAtPowerCycle"
cleanShutdown = "TRUE"
isolation.tools.hgfs.disable = "FALSE"
sharedFolder0.present = "TRUE"
sharedFolder0.enabled = "TRUE"
sharedFolder0.readAccess = "TRUE"
sharedFolder0.writeAccess = "TRUE"
sharedFolder0.hostPath = "C:\DEV"
sharedFolder0.guestName = "DEV"
sharedFolder0.expiration = "never"
sharedFolder.maxNum = "1"
sata0:0.present = "TRUE"
floppy0.present = "FALSE"
sound.present = "FALSE"
sata0:0.autodetect = "TRUE"
sata0:0.deviceType = "cdrom-raw"
sata0:0.fileName = "auto detect"
usb:0.present = "TRUE"
usb:0.deviceType = "hid"
usb:0.port = "0"
usb:0.parent = "-1"
sata0:0.startConnected = "TRUE"
ethernet0.connectionType = "nat"

[VMX content moved to a "spoiler" by moderator to make for easier scrolling]

0 Kudos
2 Replies
Ray_CJ
Enthusiast
Enthusiast

First question(s)...

Was this running prior to upgrading to Workstation 16, and if so, what version was being used?

Has the version of Ubuntu changed?

 

With simple NAT interface, the host will only be able to reach the guest if the host has a route to the NAT'd subnet.   Do a "netstat -r" command in the host. See example below.  In the purple/pink area, if you don't see a destination to your NAT subnet, that answers why your host can't reach the guest.   If we determine this is the fundamental reason for the disconnect, we can later try to find-out why that route is not getting installed in your host routing table.  If the route exists and points to the proper pseudo-interface, then we must debug why the packets aren't getting there.

 

Ray_CJ_0-1608163423776.png

 

Regards

Ray C

 

0 Kudos
vlaicu
Contributor
Contributor

I am facing the same situation:
Windows 10 Enterprise, 64-bit (Build 19043.1348) 10.0.19043
VMware Workstation Pro 16.2.1 build 18811642

VM can reach internet and it is configured to use NAT
Host can reach internet
VM cannot ping host and vice versa nor I can connect from either direction

In my preliminary investigation virtual network created for NAT was bound to VMware Network Adapter VMnet8.

ipconfig showed that vmnet8 had an ip allocated from the class 169 which somehow proved that the NIC is not getting an IP from DHCP service created by vmware for this virtual network.

Steps to fix it:
- I tried to manually add an IP to VMnet8 from this subnet (.3) -> Failed
- disabled completely windows firewall AND VM iptables

What worked:
- I have opened Virtual Network Editor,
- I unchecked "Connect a host virtual adapter to this network" and Applied
- Checked it back and Applied

After that ipconfig was showing an IP from that subnet and I was able to reach the VM

0 Kudos