Community discussions

MikroTik App
 
XTLMeth
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 57
Joined: Mon Sep 07, 2009 7:10 am

CCR2004-1G-2XS-PCIe VMWare 7 Driver

Mon Aug 15, 2022 7:31 pm

I am trying to use the CCR2004 PCIe card and have the pcie interfaces show up in VMWare 7 but it's not recognized. Is there a VMWare 7 driver available for this card?
 
User avatar
jbl42
Member Candidate
Member Candidate
Posts: 159
Joined: Sun Jun 21, 2020 12:58 pm

Re: CCR2004-1G-2XS-PCIe VMWare 7 Driver

Mon Aug 15, 2022 8:05 pm

The CCR2004-1G-2XS-PCIe emulates a Atheros 1GB chip towards the host supported by the Linux atl1c driver. It requires a patch added by MikroTik so it is recognized as 10/25GB interface.
Currently it is only supported by recent Linux kernels. Not in Windows, FreeBSD (yet) or VMWare7 (I suppose you actually mean ESXi7). The only way so far is to pass the CCR2004-1G-2XS-PCIe devices into the VM for exclusive usage and run a Linux guest recent enough. This requires VTd/DirectIO support in mainboard chipset and UEFI Bios.
 
XTLMeth
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 57
Joined: Mon Sep 07, 2009 7:10 am

Re: CCR2004-1G-2XS-PCIe VMWare 7 Driver

Mon Aug 15, 2022 9:41 pm

I was able to pass the card through to a Linux VM running ubuntu 20.04 and it shows 1G but I can almost get 10G through it with iperf. I was hoping to be able have the card show up as vmnics.

lshw -class network -short
H/W path Device Class Description
==================================================
/0/100/15/0 ens160 network VMXNET3 Ethernet Controller
/0/100/16/0 ens192 network AR8151 v2.0 Gigabit Ethernet

===========================================================

ethtool ens192
Settings for ens192:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: pg
Wake-on: d
Current message level: 0x0000003f (63)
drv probe link timer ifdown ifup
Link detected: yes

===========================================================

iperf3 -c 10.128.140.30 -P10
Connecting to host 10.128.140.30, port 5201
[ 5] local 10.128.140.193 port 59614 connected to 10.128.140.30 port 5201
[ 7] local 10.128.140.193 port 59616 connected to 10.128.140.30 port 5201
[ 9] local 10.128.140.193 port 59618 connected to 10.128.140.30 port 5201
[ 11] local 10.128.140.193 port 59620 connected to 10.128.140.30 port 5201
[ 13] local 10.128.140.193 port 59622 connected to 10.128.140.30 port 5201
[ 15] local 10.128.140.193 port 59624 connected to 10.128.140.30 port 5201
[ 17] local 10.128.140.193 port 59626 connected to 10.128.140.30 port 5201
[ 19] local 10.128.140.193 port 59628 connected to 10.128.140.30 port 5201
[ 21] local 10.128.140.193 port 59630 connected to 10.128.140.30 port 5201
[ 23] local 10.128.140.193 port 59632 connected to 10.128.140.30 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 112 MBytes 942 Mbits/sec 6 433 KBytes
[ 7] 0.00-1.00 sec 69.1 MBytes 579 Mbits/sec 12 318 KBytes
[ 9] 0.00-1.00 sec 236 MBytes 1.98 Gbits/sec 8 833 KBytes
[ 11] 0.00-1.00 sec 93.1 MBytes 781 Mbits/sec 21 387 KBytes
[ 13] 0.00-1.00 sec 66.0 MBytes 554 Mbits/sec 14 303 KBytes
[ 15] 0.00-1.00 sec 87.9 MBytes 737 Mbits/sec 47 359 KBytes
[ 17] 0.00-1.00 sec 65.5 MBytes 549 Mbits/sec 18 305 KBytes
[ 19] 0.00-1.00 sec 55.3 MBytes 464 Mbits/sec 37 273 KBytes
[ 21] 0.00-1.00 sec 109 MBytes 914 Mbits/sec 11 406 KBytes
[ 23] 0.00-1.00 sec 112 MBytes 942 Mbits/sec 42 419 KBytes
[SUM] 0.00-1.00 sec 1006 MBytes 8.44 Gbits/sec 216
- - - - - - - - - - - - - - - - - - - - - - - - -
[ 5] 1.00-2.00 sec 120 MBytes 1.01 Gbits/sec 0 605 KBytes
[ 7] 1.00-2.00 sec 92.6 MBytes 777 Mbits/sec 0 494 KBytes
[ 9] 1.00-2.00 sec 218 MBytes 1.82 Gbits/sec 0 1014 KBytes
[ 11] 1.00-2.00 sec 110 MBytes 920 Mbits/sec 0 563 KBytes
[ 13] 1.00-2.00 sec 88.9 MBytes 745 Mbits/sec 0 475 KBytes
[ 15] 1.00-2.00 sec 100 MBytes 843 Mbits/sec 0 530 KBytes
[ 17] 1.00-2.00 sec 90.3 MBytes 757 Mbits/sec 0 484 KBytes
[ 19] 1.00-2.00 sec 79.7 MBytes 669 Mbits/sec 0 441 KBytes
[ 21] 1.00-2.00 sec 112 MBytes 943 Mbits/sec 0 581 KBytes
[ 23] 1.00-2.00 sec 115 MBytes 966 Mbits/sec 0 594 KBytes
[SUM] 1.00-2.00 sec 1.10 GBytes 9.45 Gbits/sec 0
 
User avatar
jbl42
Member Candidate
Member Candidate
Posts: 159
Joined: Sun Jun 21, 2020 12:58 pm

Re: CCR2004-1G-2XS-PCIe VMWare 7 Driver

Mon Aug 15, 2022 10:49 pm

I was able to pass the card through to a Linux VM running ubuntu 20.04 and it shows 1G but I can almost get 10G through it with iperf. I was hoping to be able have the card show up as vmnics.
Glad to hear it worked.
The AR8151 network chip is actually a 1GB chip, but the virtual chip as emulated by the CCR2004-1G-2XS-PCIe also provides 10GB and 25GB speeds. The adapter name displayed in Linux still is "AR8151 v2.0 Gigabit Ethernet", same for the link speeds, what is a bit confusing.
To have it working as a real "vmnic" wrappable by the VMXNET3 pseudo driver and available to all guests, ESXi would require a native driver. This is unlikely to ever happen, except MT creates one.

The CCR2004-1G-2XS-PCIe specs could do a much better job with indicating the emulated NICs in passthrough mode only work in Linux. Either on a real box, or by passing it into a single guest for exclusive usage.

Who is online

Users browsing this forum: Ahrefs [Bot], Amazon [Bot] and 16 guests