Fusion

 View Only
Expand all | Collapse all

Fusion vmware-natd not closing TCP sockets after guest connection closes and hug CPU to 100%

  • 1.  Fusion vmware-natd not closing TCP sockets after guest connection closes and hug CPU to 100%

    Posted Oct 10, 2026 07:40 AM

    On Fusion 26h1u1 on Intel MAC I observed that closing a TCP connection will leave the guest TCP guest socket in FIN_WAIT_2 state. After analyzing the natd I confirmed that natd keeps the guest-side socket open and does not close it, verified with lsof (see below).
    My diagnosys: because  CLOSED socket is permanently readable: poll() reported it ready every iteration, the handler read() failed instantly, nothing was torn down, repeat at CPU speed. So seems a bug in the handling logic.
    On the guest side:

    # the leak specifically linux
    sudo netstat -n |fgrep FIN_WAIT_2

    # the leak specifically windows
    netstat -n |find "FIN_WAIT_2"

    On the Host side

    # the leak specifically
    sudo lsof -n -P -p $(pgrep -x vmnet-natd) | grep -c CLOSED


  • 2.  RE: Fusion vmware-natd not closing TCP sockets after guest connection closes and hug CPU to 100%

    Posted Oct 11, 2026 09:52 AM

    After further refine, the issue occurs when the connection is blocked from a firewall or disconnected abruptly (i.e. network lost). My case was a firewall (Little Snitch)