Sure. I think it might be the card thats broken or something… Right now im trying to pass it to VM.
GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on apparmor=1 security=apparmor udev.log_priority=3"
# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.
# Preload both GPT and MBR modules so that they are not missed
# Uncomment to enable booting from LUKS encrypted devices
# Uncomment to use basic console
# Uncomment to disable graphical terminal
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command 'videoinfo'
# Uncomment to allow the kernel use the same resolution used by grub
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
# Uncomment to disable generation of recovery mode menu entries
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
I can’t see that you used vfio or a stub driver. You can’t pass the GPU to a VM, if the host system has already loaded a graphics driver. Have a look at this.
Then you can take the device IDs of the GPU you want to pass. Also make sure you specify all devices within a IOMMU group.
You can set the kernel parameters like explained here.
GNU nano 5.2 /etc/mkinitcpio.conf
# vim:set ft=sh
# The following modules are loaded before any boot hooks are
# run. Advanced users may wish to specify all system modules
# in this array. For instance:
# MODULES=(piix ide_disk reiserfs)
MODULES="vfio_pci vfio vfio_iommu_type1 vfio_virqfd"
# This setting includes any additional binaries a given user may
# wish into the CPIO image. This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way. This is useful for config files.
# This is the most important setting in this file. The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
## This setup specifies all modules in the MODULES setting above.
## No raid, lvm2, or encrypted root is needed.
# HOOKS=(base modconf)
## This setup will autodetect all modules for your system and should
Since these conf files are embedded in the initramfs image, any changes require regenerating a new image each time:
Have you regenerated the initramfs image? I have specified the device IDs via the kernel parameters in /etc/default/grub. Maybe you could try that if it doesn’t work with the initramfs.
With inxi -F you can check if the vfio driver gets loaded for your GPU.
VM Doesnt start. It says: Graphical console not configured for guest. Also strange thing i noticed: when i plug in gpu that i passed the screen should be blank right? On my screen it says no signal. I will try to pass rx580 and see if it changes anything.
Yes, all of em. Even if i would set the bus type to virtio it would not start anyways. I tried passing my rx580 and when i did the screen was blank however when i plugged in my nvidia card to the monitor it didnt post(no signal)…