VMware Communities
rrllrrll1122
Contributor
Contributor

Vmware disconnected and reconnects frequently

Title says it all, VMware workstation 12.5 keeps disconnecting and then reconnecting frequently. I am running Linux Mint 18 MATE edition as my host and the same OS on my virtual machine. I have everything updated, can't figure out what the problem is. I really need help because it interrupts some of my projects that I am doing on the virtual machine. Does anyone have a solution?

21 Replies
888BBQ888
Contributor
Contributor

Same problem.

Host: Ubuntu 22.04

VM: Win 10

Player: 17.0.2 build-21581411 (same was on v 16.x)

VMTools: https://packages.vmware.com/tools/releases/12.3.0/windows/x64/VMware-tools-12.3.0-22234872-x86_64.ex... (just updated)

Network: NAT

7 yrs guys. Maybe it's time to shoot the trouble finally :winking_face:

Reply
0 Kudos
888BBQ888
Contributor
Contributor

ok. there are two solutions:

  1. (the dirty) patch userif.c module https://github.com/mkubecek/vmware-host-modules/issues/129#issue-1171165261 ; https://fluentreports.com/blog/?p=717

Extract the /usr/lib/vmware/modules/source/vmnet-only.tar tar file, you need to modify the userif.c file. Search it for VNetUserIfSetUplinkState function and right after the variable declaration add if (!linkUp) return 0;

// Around line 966
VNetUserIfSetUplinkState(VNetPort *port, uint8 linkUp)
 {
    VNetUserIF *userIf;
    VNetJack *hubJack;
    VNet_LinkStateEvent event;
    int retval;

    /* ADD: never send link down events */   
    if (!linkUp) return 0;
    /* END Added code */
    
    ... rest of code ...

This will eliminate the linkdown events; which disconnect the internet from the VMWare network driver...

After you do that; recreate the vmnet-only.tar and replace the original. Then you can run: /usr/bin/vmware-modconfig --console --install-all

And then either
systemctl restart vmware
or
service vmware restart

 

2. (the ugly) remove NetworkManager https://communities.vmware.com/t5/VMware-Workstation-Pro/Network-keeps-resetting/m-p/2861224/highlig...

Reply
0 Kudos