a - enable iommu check if iommu is enabled from bios grep -E 'svm|vmx' /proc/cpuinfo if is not enable it enabled to the bios then edit grub → sudo nano /etc/default/grub add → intel_iommu=on iommu=pt for intel or amd_iommu=on for amd at the GRUB_CMDLINE_LINUX_DEFAULT then run → sudo update-grub sudo reboot
b - enable OpenGL/3D acceleration in vm open the settings of the virtual machine you want to enable OpenGL/3D acceleration go to Display Spice select None to Listen Type Enable OpenGL select the GPU Then go to Video Virtio enable 3D acceleration