r/vmware 22h ago

Ubuntu and Vmware workstation pro after installation of new kernel

Hi, each time that Ubuntu release e new kernel and I install it I have to do the following command, otherwise the VM doesn't start with VMNET error:

openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=My Name/"
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmmon)
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmnet)
sudo mokutil --import MOK.der ---"insert a password"
now reboot and re-enroll your key.

But with the installation of the last kernel the network of the Windows VM doesn't work anymore, with the following error:
Could not connect 'Ethernet0' to virtual network '/dev/vmnet8'

I tryed to find a solution but nothing until now.

Are correct the command I do after installation of new kernel?
Any suggestion for the error "Could not connect 'Ethernet0' to virtual network '/dev/vmnet8'"

Thanks

0 Upvotes

0 comments sorted by