VyOS and other Linux builds unable to use `vmxnet3` or "VMware Paravirtual SCSI" adapter on vSphere
Tags: designpatterns, linux, nfv, vmware
Published: 2021-12-04 19:01:32

---
title: VyOS and other Linux builds unable to use `vmxnet3` or "VMware Paravirtual SCSI" adapter on vSphere
published: true
date: 2021-12-04 18:55:00 UTC
tags: DesignPatterns,Linux,NFV,VMWare
canonical_url: https://blog.engyak.co/2021/12/vyos-and-other-linux-builds-unable-to.html
---

## Have you seen this selector when building machines on vSphere?

[![](https://blogger.googleusercontent.com/img/a/AVvXsEihJsbnBIlcdff4GU8xkjI6MS6XCcz3gR4YVtOU4_Vjj8sjzYXlEQFlWh-WStNjylhRg68_SY8nDhPjstj1i6BR9_vbLho3w31gJlix1MiP_JN7QWoqsf8MMGoR60g74Dt-yLIaAlIiddumMFSN-B5eTzwRb_a9zj9rF2cikAcVvAB4qZXFSVbpVbE-=s16000)](https://blogger.googleusercontent.com/img/a/AVvXsEihJsbnBIlcdff4GU8xkjI6MS6XCcz3gR4YVtOU4_Vjj8sjzYXlEQFlWh-WStNjylhRg68_SY8nDhPjstj1i6BR9_vbLho3w31gJlix1MiP_JN7QWoqsf8MMGoR60g74Dt-yLIaAlIiddumMFSN-B5eTzwRb_a9zj9rF2cikAcVvAB4qZXFSVbpVbE-=s558)

This causes some fairly common issues in NOS VMs, as most don't really know what distribution the NOS is based on.

  

"Guest OS Version" doesn't just categorize your workload, though. Selecting "Other Linux" instructs vSphere to maximize compatibility and ensure the VI admin receives a reliable deployment - which means it'll run some pretty old virtual hardware.

  

VMware curates its lifecycle "Guest OS" settings here. Note that "Other" isn't described: [https://partnerweb.vmware.com/GOSIG/home.html](https://partnerweb.vmware.com/GOSIG/home.html)

  

Two commonly preferred settings for virtual hardware aren't available with this particular OS setting, and they both cause potential performance issues:

- LSI Logic Virtual SCSI
- Intel E1000 NIC <---If you're wondering, it will drop your VM's throughput

Let's cover how we'd fix this in vSphere 7 with a VM. The example in this procedure is VyOS 1.4.

## Updating Paravirtualized Hardware

  

First, let's change the Guest OS version to something more specific. Generally, Linux distributions fall under two categories, Red-Hat, and Debian derivatives - **Gentoo/Arch users won't be covered here because they should be able to find their own way out**.

  

Since we know VyOS is a well-maintained distribution, I'll change it to "Debian 11." While this is technically lying, we're trying to provide a reference hardware version to the virtual machine, not accurately represent the workload. This menu can be reached by selecting "edit VM" on the vSphere console:

[![](https://blogger.googleusercontent.com/img/a/AVvXsEgrRedLD9X7AYlc_zcGTAYsPgGLjdFtHPZtCm_VSOX68VIb_uSJa6gZ8_WxZP3G24PNQTXIjHs3zkvZaZaQklKucZDs-2tXoPEMBw1ybocGBxFc1sAz0qYzU9AXbHVyRhSnnSp_M6g0-qLzieAxvBg0m--DA9urwyBQcbP40uDaW5cw8rQlm7MFE6Vt=s16000)](https://blogger.googleusercontent.com/img/a/AVvXsEgrRedLD9X7AYlc_zcGTAYsPgGLjdFtHPZtCm_VSOX68VIb_uSJa6gZ8_WxZP3G24PNQTXIjHs3zkvZaZaQklKucZDs-2tXoPEMBw1ybocGBxFc1sAz0qYzU9AXbHVyRhSnnSp_M6g0-qLzieAxvBg0m--DA9urwyBQcbP40uDaW5cw8rQlm7MFE6Vt=s725)

  

Second, let's change the SCSI Adapter:

[![](https://blogger.googleusercontent.com/img/a/AVvXsEh6U-bnPytaamAJNa0GQm4a-TuKIf-jh5KEiXSoywlFGTDC1RBjjM3nJNvL6e4P_c1sVU9CFuFjPc0Ik3gDAL_IQOv8EdzILFN0WjRRP_3yuLE0FxuGtYZOY_g6i0aV89Cy4IFhqD0hdKAFN-9qE971N-7iDg0M5_wxH0VsncaR1PO5g1_zwEFwOOaP=s16000)](https://blogger.googleusercontent.com/img/a/AVvXsEh6U-bnPytaamAJNa0GQm4a-TuKIf-jh5KEiXSoywlFGTDC1RBjjM3nJNvL6e4P_c1sVU9CFuFjPc0Ik3gDAL_IQOv8EdzILFN0WjRRP_3yuLE0FxuGtYZOY_g6i0aV89Cy4IFhqD0hdKAFN-9qE971N-7iDg0M5_wxH0VsncaR1PO5g1_zwEFwOOaP=s571)

  

Replacing network adapters will take a little bit more work. Re-typing existing interfaces is not currently supported in vSphere 7, so we'll need to delete and re-create. In this example, we can set a static MAC address so that the guest distribution can correlate the new adapter to the same interface by setting the **MAC Address**  field to static. Since I'm life cycling a VM template, I don't want to do that!

  

**If you're editing an existing VM, make a backup. If it's a NOS, export the configuration. There is no guarantee that the configurations will port over perfectly, and you will want a restore point.** Fortunately, lots of options exist in the VMware ecosystem to handle this!

[![](https://blogger.googleusercontent.com/img/a/AVvXsEjtm1b3Ks0jKfHB56C4bzRnX8OXTcVM3V8rVyUOaLbVGVRLOWZdOvm-6rLuMWqV94kxS9iRYYCrh-roBwEvaEeHjMHc1M2nIioqQoGOIGX2t13Ldbi0X7fX4ktDjGG1CxNVlpX0jEzxWbbNT3eEkJUW8A3ZeDIF3lsgWD6qXtLm5YbfuaqJ0UHcAbIN=s16000)](https://blogger.googleusercontent.com/img/a/AVvXsEjtm1b3Ks0jKfHB56C4bzRnX8OXTcVM3V8rVyUOaLbVGVRLOWZdOvm-6rLuMWqV94kxS9iRYYCrh-roBwEvaEeHjMHc1M2nIioqQoGOIGX2t13Ldbi0X7fX4ktDjGG1CxNVlpX0jEzxWbbNT3eEkJUW8A3ZeDIF3lsgWD6qXtLm5YbfuaqJ0UHcAbIN=s826)
  

## Refactoring / Recovering from the change

With my template VM, the only issues presented were that the interface re-numbered and the VRF needed to be re-assigned:

set interfaces ethernet eth2 address dhcp

set interfaces ethernet eth2 vrf mgmt

commit

save  

  

Since we have the VM awake and in non-template-form, we can update the NOS too. (Guide here: [https://docs.vyos.io/en/latest/installation/update.html](https://docs.vyos.io/en/latest/installation/update.html))

vyos@vyos:~$ add system image https://downloads.vyos.io/rolling/current/amd64/vyos-rolling-latest.iso vrf mgmt  
Trying to fetch ISO file from https://downloads.vyos.io/rolling/current/amd64/vyos-rolling-latest.iso  
 % Total % Received % Xferd Average Speed Time Time Time Current  
 Dload Upload Total Spent Left Speed  
100 436M 100 436M 0 0 12.0M 0 0:00:36 0:00:36 --:--:-- 11.7M  
ISO download succeeded.  
Checking SHA256 (256-bit) checksum...  
 % Total % Received % Xferd Average Speed Time Time Time Current  
 Dload Upload Total Spent Left Speed  
100 106 100 106 0 0 215 0 --:--:-- --:--:-- --:--:-- 215  
Found it. Verifying checksum...  
SHA256 checksum valid.  
Checking for digital signature file...  
 % Total % Received % Xferd Average Speed Time Time Time Current  
 Dload Upload Total Spent Left Speed  
 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0  
curl: (22) The requested URL returned error: 404  
Unable to fetch digital signature file.  
Do you want to continue without signature check? (yes/no) [yes]  
Checking MD5 checksums of files on the ISO image...OK.  
Done!  
What would you like to name this image? [1.4-rolling-202112040649]:  
OK. This image will be named: 1.4-rolling-202112040649  
Installing "1.4-rolling-202112040649" image.  
Copying new release files...  
Would you like to save the current configuration  
directory and config file? (Yes/No) [Yes]: Yes  
Copying current configuration...  
Would you like to save the SSH host keys from your  
current configuration? (Yes/No) [Yes]: No  
Running post-install script...  
Setting up grub configuration...  
Done.  
vyos@vyos:~$ show system image  
The system currently has the following image(s) installed:  
  
 1: 1.4-rolling-202112040649 (default boot)  
 2: 1.4-rolling-202103130218 (running image)  
  
vyos@vyos:~$ reboot  
Are you sure you want to reboot this system? [y/N] y

  

## Recap

To cover the major points of this article:

- Selecting "Guest OS" in vSphere can present significant performance improvements or problems depending on what you choose. The selector chooses what PV hardware to provide to a VM, and it'll try to preserve compatibility and be conservative.
- VM Hardware is a separate knob entirely, updating it won't make the newer hardware available without the "Guest OS" selector
- Consult your NOS vendor on what to select here, if applicable, and require them to provide you documentation on why.

Some additional tangential benefits are present as a result of this change. For example, VM power actions work:
[![](https://blogger.googleusercontent.com/img/a/AVvXsEgFaIWmyaBvB0sKa8UD0c8ICCpode8dWzb8L2T9aqgcxneATQP_n9Ar4wvPfB3MUDszNGn9IHczfieLNtYDqOqAlbayZ2X9BIGxqjfLNMFa8Xu7NObtM7ogFo13Tq1Uj2uwIW3pizA33pOEsWNQy2ejSyhd3VaaBy5PhsJt2ly24s2ivD6Qi3vMtLGA=s16000)](https://blogger.googleusercontent.com/img/a/AVvXsEgFaIWmyaBvB0sKa8UD0c8ICCpode8dWzb8L2T9aqgcxneATQP_n9Ar4wvPfB3MUDszNGn9IHczfieLNtYDqOqAlbayZ2X9BIGxqjfLNMFa8Xu7NObtM7ogFo13Tq1Uj2uwIW3pizA33pOEsWNQy2ejSyhd3VaaBy5PhsJt2ly24s2ivD6Qi3vMtLGA=s511)
  

Since we're done, let's check this change into the image library:

[![](https://blogger.googleusercontent.com/img/a/AVvXsEgmhDeXtJk966JNgEvhimivoHMvkyfHxWt6jOPNNqcssd7pahlLpI3hOh0B6O70a43z2Q_F29EM5XW6daeGVVQLUpv0WSvqbg57dppoOFKQ1RZFUtNLBafXDOe3fWWLzma0VjvsTBVl01-NCG4MhYEMSj7kfI-7VqT3JsFp-QNckpznIHJdhKW4e3Nk=s16000)](https://blogger.googleusercontent.com/img/a/AVvXsEgmhDeXtJk966JNgEvhimivoHMvkyfHxWt6jOPNNqcssd7pahlLpI3hOh0B6O70a43z2Q_F29EM5XW6daeGVVQLUpv0WSvqbg57dppoOFKQ1RZFUtNLBafXDOe3fWWLzma0VjvsTBVl01-NCG4MhYEMSj7kfI-7VqT3JsFp-QNckpznIHJdhKW4e3Nk=s570)
Reference: [https://blog.engyak.co/2020/10/using-vm-templates-and-nsx-t-for.html](https://blog.engyak.co/2020/10/using-vm-templates-and-nsx-t-for.html)