Skip to main content

Proxmox

Install Notes

  • If your clock is wrong, check that you can ping google.com before trying anything else.
  • Don't use 127.0.0.1 as DNS — use the same IP as your gateway (router).
  • Qualified domain name: the first part (subdomain or domain if no sub) will be the machine's name.

Setup Laptop as Server

Disable lid-close action

sudo nano /etc/systemd/logind.conf
# Uncomment HandleLidSwitch and set to: HandleLidSwitch=ignore

Options: ignore, lock, poweroff, hibernate

GPU

Verify card is available

lspci | grep -i nvidia
# Should return e.g.: 00:10.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile]

Check it's working

nvidia-smi

Proxmox PCI Passthrough

  • Add PCI device
  • Select GPU
  • Check All Functions
  • Do not check Primary GPU

Install Drivers (Ubuntu)

sudo ubuntu-drivers install --gpgpu
sudo add-apt-repository restricted multiverse
sudo apt-get update
sudo apt-get install -y nvidia-driver-XXXXX-open

CUDA

Follow the NVIDIA CUDA install guide.

Run sudo apt --fix-broken install if needed post-install.

Follow the NVIDIA Container Toolkit guide to use GPU in containers.

Debug: Wipe Drivers

# 1. Drop to text console
sudo systemctl isolate multi-user.target

# 2. Remove all NVIDIA/CUDA packages
sudo apt-get --purge remove '^nvidia-.*' 'cuda-*' \
'*cublas*' '*cufft*' '*cufile*' '*curand*' '*cusolver*' \
'*cusparse*' '*nvjpeg*' 'nsight-*' 'libnvidia-*' 'nvidia-container*'

# 3. Clean up
sudo apt-get autoremove --purge -y && sudo apt-get clean

# 4. Remove repo lists
sudo rm -f /etc/apt/sources.list.d/cuda*.list \
/etc/apt/sources.list.d/nvidia*.list \
/usr/share/keyrings/nvidia-*-keyring.gpg \
/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg

# 5. Remove orphaned folders
sudo rm -rf /usr/local/cuda-*

# 6. Reboot
sudo systemctl isolate graphical.target && sudo reboot

CPU

If you see errors starting MinIO, try changing the VM CPU type from KVM to host.

Update Main VM

If apt-get update fails, comment out lines in /etc/apt/sources.list.d/.