VMware Communities
rtp1000
Contributor
Contributor

Creating a new ubuntu VM , with static IP getting tons of dropped packets

Hello,
i have just switched from VirtualBox to VMware and I am setting up my first VM

I have set up a ubuntu workstation.
In the network settings of the VM i choose  a bridged adapter and in the ubuntu OS i set the static IP

My issue is i am getting tons of dropped packets and my connection very frequently just hangs and drops all connections

just after boot up i see 155 dropped

Thankyou on any suggestions on how to debug / fix this issue

thanks

ifconfig

ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 192.168.1.61  netmask 255.255.255.0  broadcast 192.168.1.255

        inet6 fe80::20c:29ff:fedd:d92f  prefixlen 64  scopeid 0x20<link>

        ether MYMAC txqueuelen 1000  (Ethernet)

        RX packets 915  bytes 470621 (470.6 KB)

        RX errors 0  dropped 155 overruns 0  frame 0

        TX packets 258  bytes 34991 (34.9 KB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536

        inet 127.0.0.1  netmask 255.0.0.0

        inet6 ::1  prefixlen 128  scopeid 0x10<host>

        loop  txqueuelen 1000  (Local Loopback)

        RX packets 413  bytes 68527 (68.5 KB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 413  bytes 68527 (68.5 KB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Tags (1)
Reply
0 Kudos
7 Replies
wila
Immortal
Immortal

Hi,

Are you using an ASUS motherboard? If so, have a look at this thread:

The @IP of my VMware VM appears and then intermittently disappears from the ARP cache of its VMware ...

If not, what happens if you continuously ping your host (er even google.com)

eg.

ping google.com

Do you loose packets then too?

What happens if you do the same on your host? (If it is windows use: ping -t google.com)

Lastly, please attach a vmware.log file -which can be found in your virtual machine directory- to your reply.

Please do not copy&paste log text contents into a post here, but instead attach the whole file. You can find an attach link at the bottom right area when posting a reply.

--

Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos
rtp1000
Contributor
Contributor

Wila.

Thanks for the reponse

So yes i do have a asus mother board.  but do not see the turbo lan software. (it does describe the problem i am having )
so other answers to your questions

1) From the VM, i ping google.com. no packet loss

2) From the VM, i ping a device on the LAN, no packet loss

3) PIng from my MAC to the device hosting the VM, no packet loss

4) from VM, ping localhost , no packet loss

5) from PM , ping its own ip, no packet loss

6) Can not ping from my MAC, but i can ssh to the VM and goto the webpage hosted on the VM

Reply
0 Kudos
wila
Immortal
Immortal

Hi,

It looks like that the problem is that you are starving the CPU.

Your host has a intel i5-2310, which has physical 4 cores total (the thread count doesn't matter).

Your guest is configured with 4 vCPU's.

My suggestion is to drop the guest CPU count to 2 vCPU's (or if you must use 3 vCPU's, but my suggestion is 2) and see if the problem persists.

Btw, does that "packed dropped" count in your ifconfig output increase over time?

--

Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos
rtp1000
Contributor
Contributor

I lowered the CPU's to two

if i do ifconfig and then immediately do it again, the  dropped count has incremented by 2 or 3

the other numbers look ok

BTW, i also tried a different NIC. I had a USB NIC so i am using it now instead of the one on the motherboard that the windows os is using

This is just after reboot::

ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 192.168.1.61  netmask 255.255.255.0  broadcast 192.168.1.255

        inet6 fe80::20c:29ff:feee:de2f  prefixlen 64  scopeid 0x20<link>

        ether   txqueuelen 1000  (Ethernet)

        RX packets 1033  bytes 457899 (457.8 KB)

        RX errors 0  dropped 151  overruns 0  frame 0

        TX packets 336  bytes 40801 (40.8 KB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

thanks again for your help

Reply
0 Kudos
wila
Immortal
Immortal

Hi,

This is the output after dropping to 2 vCPU's right?

Do you still see the problem with the VM that it hangs and drops all connections?

I see you are using a bridged network connection, not NAT, so it isn't the NAT service misbehaving.

One other thing to try is to change the virtual adapter type in the configuration of the virtual machine.

There is no graphical configuration for this, you have to manually edit the virtual machine hardware configuration.

With the VM shut down and VMware Player not running, navigate to the virtual machine folder and open the .vmx file in a plain text editor (like notepad)

Then locate the line:

ethernet0.virtualDev = "e1000"

and change it into:

ethernet0.virtualDev = "e1000e"

The e1000e adapter tends to behave better than the e1000 one.

Yet another virtual adapter you can try is vmware's own "vmxnet3", it should work best, but it requires you to have vmware tools installed.

--
Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos
rtp1000
Contributor
Contributor

Wil,

after some tweaking finally got it working with the e1000e driver. Still no joy. I am only running the Player not the pro so i do not think the  vmxnet3 will be an option.

Hopefully this new drive and the 2 CPUs will help the majority of this issues and just live with the dropped packets

Thanks for all your help.

Reply
0 Kudos
wila
Immortal
Immortal

Hi,

Hope it did help.

For the record, you don't need Workstation Pro to be able to use vmxnet3 network adapters.

You will however have to edit the vmx file manually to change the network adapter.

--

Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos