Skip to content

Instantly share code, notes, and snippets.

@FreesoSaiFared
Forked from pangyuteng/README.md
Created June 16, 2024 01:26
Show Gist options
  • Save FreesoSaiFared/70fbccd79eff7f6e70e7626c4cc89c4d to your computer and use it in GitHub Desktop.
Save FreesoSaiFared/70fbccd79eff7f6e70e7626c4cc89c4d to your computer and use it in GitHub Desktop.
setting up Dell Poweredge R720 + Nvidia Tesla P40 24GB
  • hardware
  Dell Poweredge R720
  Nvidia Tesla P40 24GB 
  • follow below link and stop prior section "Configuring the VM (Windows 10)", note the modifications listed below. https://gist.github.com/qubidt/64f617e959725e934992b080e677656f

    • in proxmox web interface, select vm, for hostpci - check All Functions,ROM-Bar,PCI-Express

    • edit your /etc/pve/qemu-server/${VM_ID}.conf per below

machine: q35
cpu: host,hidden=1,flags=+pcid
args: -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_vendor_id=NV43FIX,kvm=off'
# below is based on needs
cores: 10
memory: 262144
scsi0: local-lvm:vm-100-disk-0,size=768G
boot: order=scsi0;net0
scsihw: virtio-scsi-pci
hostpci0: 0000:42:00,pcie=1
  • turn on the vm.

  • when installing ubuntu, don't install the driver.

  • boot up vm

  • check if gpu is present

lspci | grep 01:00
  • install driver
sudo apt-add-repository -r ppa:graphics-drivers/ppa
sudo apt update
sudo apt remove nvidia*
sudo apt autoremove
sudo ubuntu-drivers autoinstall

+ run `nvidia-smi` and get complaints, run below.

sudo rmmod nouveau sudo modprobe nvidia


+ run `nvidia-smi` to confirm presense of gpu.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment