I just build my first proxmox server and one of the uses is that I want a VM to process my 4K CCTV foottage with motioneye. I have a single GPU in the proxmox server I want to use to offload this from the cpu. I want to passthrough my GPU to a ubuntu 20.04 VM. I can't seem to get around the
This is my hardware:
AMD 2700X
Asus Prime X470-PRO
Gigabyte GTX 1050TI (in first x16 slot)
LSI HBA card (in second x16 slot)
And couple of disks
I run proxmox 7
I tried multiple things to get around this error but nothing seems to work.
Here are the steps I took and my current configuration.
On server (proxmox):
I did notice when booting the proxmox server it acctually displays the boot process and stops the display output untill I start the Ubuntu VM.
If someone has some suggestions I could try please let me know.
EDIT: I forgot to add I did try using the romfile option with the original vbios and a modified version with changed vendor ID and device ID but no luck.
Also here is my vm config:
BAR 3: can't reserve [mem 0xf0000000-0xf1ffffff 64bit pref]
error.This is my hardware:
AMD 2700X
Asus Prime X470-PRO
Gigabyte GTX 1050TI (in first x16 slot)
LSI HBA card (in second x16 slot)
And couple of disks
I run proxmox 7
I tried multiple things to get around this error but nothing seems to work.
Here are the steps I took and my current configuration.
On server (proxmox):
- Included
quiet amd_iommu=on iommu=pt pcie_acs_override=downstream,multifunction nofb nomodeset textonly video=vesafb:off video=efifb:off
in grub. - proxmox-boot-tool refresh (update-grub)
- included the following in /etc/modules:
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd - IOMMU interrupt remaping:
echo "options vfio_iommu_type1 allow_unsafe_interrupts=1" > /etc/modprobe.d/iommu_unsafe_interrupts.conf
echo "options kvm ignore_msrs=1" > /etc/modprobe.d/kvm.conf - Blacklist drivers
echo "blacklist nvidiafb" >> /etc/modprobe.d/pve-blacklist.conf
echo "blacklist nouveau" >> /etc/modprobe.d/pve-blacklist.conf
echo "blacklist nvidia" >> /etc/modprobe.d/pve-blacklist.conf - reboot
- added GPU to VFIO ( I made sure the I got the correct Id’s)
echo "options vfio-pci ids=10de:1c82,10de:0fb9 disable_vga=1"> /etc/modprobe.d/vfio.conf - update-initramfs -u
- reboot
- Hide VM identifiers from Nvidia
SSH into Proxmox
cd /etc/pve/qemu-server
nano ###.conf (# is the VM identifier of the server)
Added line:
cpu: host,hidden=1
Save file and exit.
- Initial install done so SSH access is configured.
- Added the GPU via proxmox hardware page with options:
All functions, ROM-Bar and PCI-Express - Shutdown and start VM so GPU is added.
- Download Nvidia drivers, tried both from ubuntu packages and Nvidia driver page.
- Disable Nouveau drivers in kernel:
echo "blacklist nouveau" > /etc/modprobe.d/blacklist-nvidia-nouveau.conf
echo "options nouveau modset=0" >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf - sudo update-initramfs -u
- reboot
BAR 3: can't reserve [mem 0xf0000000-0xf1ffffff 64bit pref]
errors.I did notice when booting the proxmox server it acctually displays the boot process and stops the display output untill I start the Ubuntu VM.
If someone has some suggestions I could try please let me know.
EDIT: I forgot to add I did try using the romfile option with the original vbios and a modified version with changed vendor ID and device ID but no luck.
Also here is my vm config:
Code:
agent: 1
args: -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_vendor_id=NV43FIX,kvm=off'
bios: ovmf
boot: order=scsi0;net0
cores: 4
cpu: host,hidden=1,flags=+pcid
efidisk0: vm-mirror:vm-102-disk-0,size=1M
hostpci0: 0000:09:00,pcie=1,romfile=gtx1050ti.rom
machine: q35
memory: 4096
name: motioneye
net0: virtio=82:88:61:35:57:34,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: vm-mirror:vm-102-disk-1,size=64G
scsihw: virtio-scsi-pci
smbios1: uuid=e7cb7f74-4c8e-41ca-83da-15b14ef533d7
sockets: 1
vmgenid: 32ac0b3a-d55b-44c5-898d-d7db3215ed4c
Last edited: