Fedora NVIDIA Wayland Xorg GDM Secure Boot VM

This guide assumes a fresh install of Fedora 37 or 38 and a single* non-root user typically setup during install.

Enable Remote Desktop (RDP)

Settings > Sharing > Remote Desktop

Remote Desktop ON

Remote Control ON

Note the password at Authentication > Password

Install the NVIDIA driver**

sudo dnf install kernel-devel-`uname -r` xorg-x11-drv-nvidia akmod-nvidia xorg-x11-drv-nvidia-power vdpauinfo vulkan vulkan-tools xorg-x11-drv-nvidia-cuda-libs

Setup Secure Boot

sudo mokutil --import /etc/pki/akmods/certs/public_key.der

Provide and confirm a password when prompted to do so. It will be required once, to complete key enrolment in an upcoming step.

sudo akmods --force && sudo dracut --force
sudo reboot

Follow the pre-boot on-screen instructions to Enrol the key (enter the password provided in an earlier step, when prompted) and Reboot.

Monitor Configuration

You might get a blank display when the system boots up. This is when *having one and only one user makes it possible to blindly log in at the graphical console, so you can connect to and see your desktop – using RDP.

<Enter> <user password> <Enter>

The display might remain blank, but Num Lock on the keyboard would light up, indicating a console login.

Connect to your desktop using an RDP client, like Microsoft Remote Desktop. The password for your username is the one you noted in the first step above, Enable Remote Desktop.

You should see Wayland as the remote desktop on a default install. Set the screen resolution, scaling, etc. for your desktop to valid values supported by your monitor, and you should immediately get a graphical display at the console, while simultaneously disconnecting the Remote Desktop connection.

Confirm the new display settings at the console before the countdown timer reverts the changes. You should then have a valid display configuration saved for your monitor.

sudo cp ~/.config/monitors.xml /var/lib/gdm/.config/

Source: https://wiki.archlinux.org/title/GDM
sudo chown gdm:gdm /var/lib/gdm/.config/monitors.xml

Enable Suspend and Hibernate

sudo systemctl enable nvidia-{suspend,resume,hibernate}

Switch to X11

Click the gear icon at the bottom right of the graphical login screen after selecting the user to log in, then choose Gnome on Xorg.

** The driver install includes graphics hardware acceleration components that may not as of this writing fully support Wayland but can be utilized by switching to the Xorg display server.

Install VMware Player 17

Post install sign the two VMware modules with the secure boot key.

sudo /usr/src/kernels/`uname -r`/scripts/sign-file sha256 /etc/pki/akmods/private/private_key.priv /etc/pki/akmods/certs/public_key.der $(modinfo -n vmmon)

sudo /usr/src/kernels/`uname -r`/scripts/sign-file sha256 /etc/pki/akmods/private/private_key.priv /etc/pki/akmods/certs/public_key.der $(modinfo -n vmnet)

Source: https://kb.vmware.com/s/article/2146460

Following a kernel upgrade:

sudo vmware-modconfig --console --install-all

Then re-sign the modules.

The PC used is Dell XPS 8950 with NVIDIA RTX 3060Ti and out-of-the-box defaults of secure boot enabled, RAID On and Intel Multi-Display disabled.

Leave a Reply