Sure. I think it might be the card thats broken or something… Right now im trying to pass it to VM.
GRUB_DEFAULT=saved
GRUB_TIMEOUT=10
GRUB_TIMEOUT_STYLE=hidden
GRUB_DISTRIBUTOR="Manjaro"
GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on apparmor=1 security=apparmor udev.log_priority=3"
GRUB_CMDLINE_LINUX=""
# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.
GRUB_SAVEDEFAULT=true
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y
# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console
# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console
# 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'
GRUB_GFXMODE=auto
# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep
# 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"
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
GRUB_COLOR_NORMAL="light-gray/black"
GRUB_COLOR_HIGHLIGHT="green/black"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/usr/share/grub/background.png"
GRUB_THEME="/usr/share/grub/themes/manjaro/theme.txt"
# 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
# MODULES
# 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"
# BINARIES
# 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
BINARIES=()
# FILES
# 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.
FILES=""
# HOOKS
# 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
# Examples:
## 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.
Would you mind posting the results of inxi -F? Because if vfio isn’t loaded as the graphics driver something is still wrong with the settings where a new GPU would not help either.
Looks good, lets hope it works. In case it does you will probably have to hide the fact that you are using a VM if you haven’t already to avoid the error 43.
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.
You could set the bus type to virtio since you are passing the virtio cd anyways.
You have passed all devices where you loaded the vfio driver to the VM?
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)…