[RESOLVED] VMWare on Ryzen with Ubuntu 22.04

I am using a Ryzen 22.04 with the default kernel on an AMD machine.

Linux framework 6.1.0-1026-oem #26-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov  1 14:06:23 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

I followed the instructions given here:
https://volvodiag.com/ubuntu-vmware-kernel-module-install-guide/

I did:

mkdir repos
cd repos
git clone https://github.com/mkubecek/vmware-host-modules
cd vmware-host-modules/
git checkout workstation-17.5.0
cd vmmon-only && make && cd ..
cd vmnet-only && make && cd ..
tar -cf vmmon.tar vmmon-only
tar -cf vmnet.tar vmnet-only
sudo cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/
sudo apt install libaio1
sudo vmware-modconfig --console --install-all

This fails with the message:

ufechner@framework:~$ sudo vmware-modconfig --console --install-all
[sudo] password for ufechner: 
[AppLoader] GLib does not have GSettings support.
Stopping VMware services:
   VMware Authentication Daemon                                        done
   Virtual machine monitor                                             done
make: Entering directory '/tmp/modconfig-VPKEfw/vmmon-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/6.1.0-1026-oem/build/include/.. M=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-1026-oem'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
  You are using:           gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
  CC [M]  /tmp/modconfig-VPKEfw/vmmon-only/linux/driver.o
  CC [M]  /tmp/modconfig-VPKEfw/vmmon-only/linux/driverLog.o
  CC [M]  /tmp/modconfig-VPKEfw/vmmon-only/linux/hostif.o
  CC [M]  /tmp/modconfig-VPKEfw/vmmon-only/common/apic.o
  CC [M]  /tmp/modconfig-VPKEfw/vmmon-only/common/comport.o
  CC [M]  /tmp/modconfig-VPKEfw/vmmon-only/common/cpuid.o
  CC [M]  /tmp/modconfig-VPKEfw/vmmon-only/common/crosspage.o
  CC [M]  /tmp/modconfig-VPKEfw/vmmon-only/common/memtrack.o
  CC [M]  /tmp/modconfig-VPKEfw/vmmon-only/common/moduleloop.o
  CC [M]  /tmp/modconfig-VPKEfw/vmmon-only/common/phystrack.o
  CC [M]  /tmp/modconfig-VPKEfw/vmmon-only/common/sharedAreaVmmon.o
  CC [M]  /tmp/modconfig-VPKEfw/vmmon-only/common/statVarsVmmon.o
  CC [M]  /tmp/modconfig-VPKEfw/vmmon-only/common/task.o
  CC [M]  /tmp/modconfig-VPKEfw/vmmon-only/common/vmx86.o
  CC [M]  /tmp/modconfig-VPKEfw/vmmon-only/bootstrap/bootstrap.o
  CC [M]  /tmp/modconfig-VPKEfw/vmmon-only/bootstrap/monLoader.o
  CC [M]  /tmp/modconfig-VPKEfw/vmmon-only/bootstrap/monLoaderVmmon.o
  CC [M]  /tmp/modconfig-VPKEfw/vmmon-only/bootstrap/vmmblob.o
  LD [M]  /tmp/modconfig-VPKEfw/vmmon-only/vmmon.o
  MODPOST /tmp/modconfig-VPKEfw/vmmon-only/Module.symvers
  CC [M]  /tmp/modconfig-VPKEfw/vmmon-only/vmmon.mod.o
  LD [M]  /tmp/modconfig-VPKEfw/vmmon-only/vmmon.ko
  BTF [M] /tmp/modconfig-VPKEfw/vmmon-only/vmmon.ko
Skipping BTF generation for /tmp/modconfig-VPKEfw/vmmon-only/vmmon.ko due to unavailability of vmlinux
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-1026-oem'
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= postbuild
make[1]: Entering directory '/tmp/modconfig-VPKEfw/vmmon-only'
make[1]: 'postbuild' is up to date.
make[1]: Leaving directory '/tmp/modconfig-VPKEfw/vmmon-only'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory '/tmp/modconfig-VPKEfw/vmmon-only'
make: Entering directory '/tmp/modconfig-VPKEfw/vmnet-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/6.1.0-1026-oem/build/include/.. M=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-1026-oem'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
  You are using:           gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
  CC [M]  /tmp/modconfig-VPKEfw/vmnet-only/driver.o
  CC [M]  /tmp/modconfig-VPKEfw/vmnet-only/hub.o
  CC [M]  /tmp/modconfig-VPKEfw/vmnet-only/userif.o
  CC [M]  /tmp/modconfig-VPKEfw/vmnet-only/netif.o
  CC [M]  /tmp/modconfig-VPKEfw/vmnet-only/bridge.o
  CC [M]  /tmp/modconfig-VPKEfw/vmnet-only/procfs.o
  CC [M]  /tmp/modconfig-VPKEfw/vmnet-only/smac_compat.o
  CC [M]  /tmp/modconfig-VPKEfw/vmnet-only/smac.o
  CC [M]  /tmp/modconfig-VPKEfw/vmnet-only/vnetEvent.o
  CC [M]  /tmp/modconfig-VPKEfw/vmnet-only/vnetUserListener.o
  LD [M]  /tmp/modconfig-VPKEfw/vmnet-only/vmnet.o
  MODPOST /tmp/modconfig-VPKEfw/vmnet-only/Module.symvers
  CC [M]  /tmp/modconfig-VPKEfw/vmnet-only/vmnet.mod.o
  LD [M]  /tmp/modconfig-VPKEfw/vmnet-only/vmnet.ko
  BTF [M] /tmp/modconfig-VPKEfw/vmnet-only/vmnet.ko
Skipping BTF generation for /tmp/modconfig-VPKEfw/vmnet-only/vmnet.ko due to unavailability of vmlinux
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-1026-oem'
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= postbuild
make[1]: Entering directory '/tmp/modconfig-VPKEfw/vmnet-only'
make[1]: 'postbuild' is up to date.
make[1]: Leaving directory '/tmp/modconfig-VPKEfw/vmnet-only'
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory '/tmp/modconfig-VPKEfw/vmnet-only'
Starting VMware services:
   Virtual machine monitor                                            failed
   Virtual machine communication interface                             done
   VM communication interface socket family                            done
   Virtual ethernet                                                   failed
   VMware Authentication Daemon                                        done

Any idea how to make it work? Do I need to use another kernel?

Linux kernel 6.1 is from January, it probably won’t have stable support for 7840 yet. I would vote for upgrade to a more recent kernel, maybe 6.5+.

P.S. Oh, it should run with the OEM C kernel. Dunno then.

1 Like

Yep seeing in other threads that kernel 6.5x with Ubuntu 22.04 seems to work mostly for them with some minor issues though.

Only when you can, please update to a more recent supported distro, like Fedora 39 and Ubuntu 23.04

cheers! :slight_smile:

This is resolved. The issue was that I had secure boot enabled.

1 Like

Thanks for the update @Uwe_Fechner :slight_smile: