On fresh installation of Manjaro KDE, I was doing below steps to setup VFIO
sudo pamac install qemu libvirt ovmf virt-manager ebtables dnsmasq birdge-utils
Then I edited my GRUB command line to this:
quiet udev.log_priority=3 nvidia_drm.modeset=1 rd.driver.blacklist=nouveau modeprob.blacklist=nouveau video=efifb:off rd.driver.pre=vfio-pci kvm.ignore_msrs=1 vfio-pci.ids=10de:2704,10de:22bb amd_iommu=force_enable iommu=pt hugepages=16384
and updated GRUB using
sudo update-grub
Then I added modules in my mkinit configuration
sudo nano /etc/mkinitcpio.conf
MODULES="vfio vfio_iommu_type1 vfio_pci vfio_virqfd irqbypass kvm kvm_amd xhci_hcd"
HOOKS="base udev autodetect modconf block keyboard keymap filesystems"
sudo mkinitcpio -P
After rebooting I checked my bindings with
lspci -nnk | grep -A 3 -E "VGA|3D"
and verified that iGPU driver is amdgpu and Nvidia driver is vfio-pci
Then I setup network
sudo nano /etc/libvirt/qemu.conf
user=wizard
group=kvm
sudo systemctl enable libvirtd.service
sudo systemctl enable virtlogd.socket
sudo systemctl start libvirtd.service
sudo systemctl start virtlogd.socket
sudo virsh net-define /etc/libvirt/qemu/networks/default.xml
sudo virsh net-autostart default
However after reboot I am stack in booting without loading the desktop environment.
This is where it stops:
[ OK ] Reached target Sound Card.
[ OK ] Started Bluetooth service.
[ OK ] Reached target Bluetooth Support.
Starting Hostname Service...
[ OK ] Started User Login Management.
[ OK ] Started Authorization Manager.
Starting Modem Manager...
[ OK ] Started Hostname Service.
[ OK ] Started Modem Manager.
Starting Network Manager Script Dispatcher Service...
[ OK ] Started Network Manager Script Dispatcher Service.
[ OK ] Started Network Manager.
[ OK ] Reached target Network.
Starting Network Manager Wait Online...
[ OK ] Starting CUPS Scheduler...
[ OK ] Started CUPS Scheduler.
[ OK ] Finished Network Manager Wait Online.
[ OK ] Reached target Network is Online.
[ OK ] Mounted
[ OK ] Mounted
[ OK ] Mounted
[ OK ] Mounted
[ OK ] Mounted
[ OK ] Mounted
[ OK ] Mounted
[ OK ] Mounted
[ OK ] Mounted
[ OK ] Reached target Remote File Systems.
Starting Permit User Sessions...
[ OK ] Finished Permit User Sessions.
[ OK ] Started Command Scheduler.
Starting Hold until boot process finishes up...
Starting Terminate Plymouth Boot Screen...
lspci
[wizard@wizzy-am5-manj-kde6 Wizzy]$ lspci -nnk | grep -A 3 -E "VGA|3D"
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD103 [GeForce RTX 4080] [10de:2704] (rev a1)
Subsystem: Gigabyte Technology Co., Ltd Device [1458:40bc]
Kernel driver in use: vfio-pci
Kernel modules: nouveau, nvidia_drm, nvidia
--
15:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev c9)
Subsystem: Gigabyte Technology Co., Ltd Device [1458:d000]
Kernel driver in use: amdgpu
Kernel modules: amdgpu
[wizard@wizzy-am5-manj-kde6 Wizzy]$
inxi -F
done
[wizard@wizzy-am5-manj-kde6 Wizzy]$ inxi -F
System:
Host: wizzy-am5-manj-kde6 Kernel: 6.10.13-3-MANJARO arch: x86_64 bits: 64
Console: tty 2 Distro: Manjaro Linux
Machine:
Type: Desktop Mobo: Gigabyte model: X670E AORUS MASTER serial: <superuser required>
UEFI: American Megatrends LLC. v: F33d date: 10/16/2024
CPU:
Info: 16-core model: AMD Ryzen 9 7950X3D bits: 64 type: MT MCP cache: L2: 16 MiB
Speed (MHz): avg: 545 min/max: 545/5759 cores: 1: 545 2: 545 3: 545 4: 545 5: 545 6: 545
7: 545 8: 545 9: 545 10: 545 11: 545 12: 545 13: 545 14: 545 15: 545 16: 545
17: 545 18: 545 19: 545 20: 545 21: 545 22: 545 23: 545 24: 545 25: 545 26: 545
27: 545 28: 545 29: 545 30: 545 31: 545 32: 545
Mod edit: Images removed and replaced with text. Last one will be OCR’d and added once I have time.


