Skip to content

Instantly share code, notes, and snippets.

@AdamGoodApp
Created April 13, 2024 15:28
Show Gist options
  • Save AdamGoodApp/9f25fa7679c5368bf298f602515f7a06 to your computer and use it in GitHub Desktop.
Save AdamGoodApp/9f25fa7679c5368bf298f602515f7a06 to your computer and use it in GitHub Desktop.
CPU: AMD 7950X
MB: Asus ProArt X670E-CREATOR WIFI
GPU: NVIDIA 3090
GPU 2: AMD Radeon RX580
UEFI GRUB
/etc/default/grub
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet iommu=pt nomodeset pcie_acs_override=downstream initcall_blacklist=sysfb_init"
GRUB_CMDLINE_LINUX=""
/etc/modules
overlay
vfio
vfio_iommu_type1
vfio_pci
dmesg | grep -i vfio
[ 5.781333] VFIO - User Level meta-driver version: 0.3
[ 5.787042] vfio-pci 0000:01:00.0: vgaarb: deactivate vga console
[ 5.787048] vfio-pci 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[ 5.787178] vfio_pci: add [10de:2204[ffffffff:ffffffff]] class 0x000000/00000000
[ 5.835977] vfio_pci: add [10de:1aef[ffffffff:ffffffff]] class 0x000000/00000000
[ 5.835989] vfio-pci 0000:05:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[ 5.836054] vfio_pci: add [1002:73ff[ffffffff:ffffffff]] class 0x000000/00000000
dmesg | grep 'remapping'
[ 0.111854] x2apic: IRQ remapping doesn't support X2APIC mode
[ 2.454377] AMD-Vi: Interrupt remapping enabled
/etc/modprobe.d/kvm.conf
options kvm-amd nested=1
options kvm ignore_msrs=1 report_ignored_msrs=0
lspci -nn | grep 'NVIDIA'
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA102 [GeForce RTX 3090] [10de:2204] (rev a1)
01:00.1 Audio device [0403]: NVIDIA Corporation GA102 High Definition Audio Controller [10de:1aef] (rev a1)
/etc/modprobe.d/vfio.conf
options vfio-pci ids=10de:2204,10de:1aef,1002:73ff
/etc/modprobe.d/blacklist.conf
blacklist radeon
blacklist amdgpu
blacklist nouveau
blacklist nvidia
blacklist nvidiafb
blacklist nvidia_drm
dmesg | grep -E "DMAR|IOMMU"
[ 0.000000] Warning: PCIe ACS overrides enabled; This may allow non-IOMMU protected peer-to-peer DMA
[ 2.452323] pci 0000:00:00.2: AMD-Vi: IOMMU performance counters supported
[ 2.454576] pci 0000:00:00.2: AMD-Vi: Found IOMMU cap 0x40
[ 2.460515] perf/amd_iommu: Detected AMD IOMMU #0 (2 banks, 4 counters/bank).
dmesg | grep -i vfio
[ 8.395975] VFIO - User Level meta-driver version: 0.3
[ 8.401688] vfio-pci 0000:01:00.0: vgaarb: deactivate vga console
[ 8.401691] vfio-pci 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=none
[ 8.401815] vfio_pci: add [10de:2204[ffffffff:ffffffff]] class 0x000000/00000000
[ 8.448394] vfio_pci: add [10de:1aef[ffffffff:ffffffff]] class 0x000000/00000000
[ 8.448404] vfio-pci 0000:05:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=none
[ 8.448480] vfio_pci: add [1002:73ff[ffffffff:ffffffff]] class 0x000000/00000000
Windows 11 VM conf
agent: 1
balloon: 0
bios: ovmf
boot: order=scsi0;net0
cores: 16
cpu: host
hostpci0: 0000:01:00.0,pcie=1,x-vga=1
machine: pc-q35-8.1
memory: 63488
meta: creation-qemu=8.1.5,ctime=1713016003
name: Windows-11
net0: virtio=BC:24:11:39:5F:63,bridge=vmbr0,firewall=1
numa: 1
ostype: win11
scsi0: SAMSUNG-970:vm-105-disk-0,cache=writeback,discard=on,iothread=1,size=931G,ssd=1
scsihw: virtio-scsi-single
smbios1: uuid=77bf124f-8006-4976-80fe-ef8b744240a8
sockets: 1
tpmstate0: SAMSUNG-970:vm-105-disk-1,size=4M,version=v2.0
vga: none
vmgenid: e58194a4-669f-4c92-9e4a-3ea0f9be17a6
Error on VM boot
WARN: no efidisk configured! Using temporary efivars disk.
swtpm_setup: Not overwriting existing state file.
stopping swtpm instance (pid 2243) due to QEMU startup error
TASK ERROR: start failed: QEMU exited with code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment