Kamis, 21 Agustus 2025

GPU Passthrough Windows di Proxmox VE 9.0

Panduan lengkap dengan pendekatan ramah pemula, mencakup pengertian, setup, debugging, hingga file konfigurasi akhir. Termasuk pula catatan penting khusus untuk Proxmox VE 9.0.

1. Mengapa GPU Passthrough?

GPU Passthrough memungkinkan sebuah VM (misalnya Windows) menggunakan GPU fisik secara langsung, memberikan performa mendekati native. Cocok untuk tugas berat seperti gaming, rendering, dan machine learning.

  • Memaksimalkan performa grafis VM
  • Memberikan isolasi penuh antara host dan guest
  • Ideal untuk penggunaan multimedia dan komputasi berat

2. Syarat Minimum

  • CPU Intel (VT-d) atau AMD (AMD‑Vi/IOMMU)
  • Motherboard dengan dukungan IOMMU
  • GPU tambahan (contoh: NVIDIA GT 1030, GTX/RTX series)
  • Terinstall Proxmox VE 9.0 (kernel 6.14+)
  • Monitor terhubung ke GPU itu sendiri

3. Instalasi & Persiapan Awal

Pastikan sistem Proxmox kamu ter‑update:

apt update && apt full-upgrade -y

Jika menggunakan repository no-subscription, cukup diaktifkan di panel web UI atau via file sumber.

“Full Automation of GPU Passthrough… perfect for users looking to assign a dedicated GPU to their virtual machines without the hassle of manual configuration steps.” — tentang PECU tool untuk setup GPU passthrough secara otomatis

4. Pasang GPU Fisik

  1. Matikan host, pasang GPU di slot PCI‑e.
  2. Hubungkan monitor ke GPU, bukan ke grafik onboard.
  3. Nyalakan ulang dan login ke Proxmox.

5. Aktifkan VT-d/IOMMU di BIOS

Masuk BIOS/UEFI dan aktifkan:

  • Intel VT-d / AMD‑Vi
  • Intel Virtualization Technology / SVM
Aktifkan IOMMU sepenuhnya — "Auto" kadang tidak cukup.

6. Konfigurasi GRUB & Initramfs

Edit file konfigurasi GRUB:

nano /etc/default/grub

Ubah baris menjadi:

GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt video=efifb:off"

Update dan reboot:

update-grub
update-initramfs -u

7. Verifikasi IOMMU

dmesg | grep -e DMAR -e IOMMU

Pastikan muncul pesan “DMAR: IOMMU enabled”.

8. Blacklist Driver Host

Untuk mencegah host mengikat GPU:

echo -e "blacklist nouveau\noptions nouveau modeset=0" > /etc/modprobe.d/blacklist-nouveau.conf
echo "blacklist snd_hda_intel" > /etc/modprobe.d/blacklist-hda.conf

9. Bind GPU ke VFIO‑PCI

Cari Vendor & Device ID GPU:

lspci -nn | grep -i nvidia

Contoh:

01:00.0 [10de:1d01]  
01:00.1 [10de:0fb8]

Set binding:

echo "options vfio-pci ids=10de:1d01,10de:0fb8" > /etc/modprobe.d/vfio.conf

10. Muat Modul VFIO

echo -e "vfio\nvfio_pci\nvfio_iommu_type1" >> /etc/modules
update-initramfs -u

11. Reboot & Verifikasi Binding

reboot
lspci -nnk | grep -i -A 3 nvidia

Pastikan:

Kernel driver in use: vfio-pci

12. Tambahkan GPU ke VM (via GUI)

  1. Masuk Proxmox Web UI → VM target → Hardware → Add → PCI Device
  2. Pilih GPU & Audio (jika ada)
  3. Centang: All Functions, Primary GPU, ROM-bar

13. Edit Konfigurasi `.conf` VM

Contoh file konfigurasi lengkap:

boot: order=sata0;ide2;ide0;net0
cores: 2
cpu: host,hidden=1,flags=+pcid
hostpci0: 0000:01:00,pcie=1,x-vga=1,multifunction=on
hostpci1: 0000:01:00.1
ide0: local-iso:iso/virtio-win-0.1.271.iso,media=cdrom,size=709474K
ide2: local-iso:iso/1.Win10tinyX64.iso,media=cdrom,size=959168K
machine: pc-q35-8.0
memory: 3048
meta: creation-qemu=10.0.2,ctime=1755763442
name: wintiny
net0: virtio=BC:24:11:60:32:0E,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
sata0: local-iso:100/vm-100-disk-0.qcow2,size=64G
scsihw: virtio-scsi-single
smbios1: uuid=405bd7fa-1e25-4d3a-ac8e-757e73f011ee

14. Jalankan VM & Instal Driver Windows

  • Start VM dan perhatikan monitor yang terhubung ke GPU
  • Instal driver NVIDIA terbaru di Windows
  • Pastikan tidak muncul error Code 43 di Device Manager

15. Isu Proxmox VE 9.0 & Workaround

Beberapa pengguna melaporkan Code 43 di Windows VM hanya muncul setelah upgrade ke Proxmox 9.0, meski konfigurasi sama seperti versi 8.

“Passthrough is working fine until I just now updated to PVE 9… Windows shows error Code 43.” — thread pengguna di forum Proxmox :contentReference[oaicite:0]{index=0}

Selain itu, beberapa kombinasi GPU atau controller juga menyebabkan VM tidak bisa boot atau host hang. Sebagai solusi sementara:

  • Coba downgrade kernel / revert ke Proxmox VE 8.x
  • Pantau forum resmi untuk patch atau update dari tim Proxmox

Untuk pengguna Ampere GPU dengan vGPU, pertimbangkan penggunaan pve-nvidia-vgpu-helper tool :contentReference[oaicite:1]{index=1}.

16. Tips Lanjutan & Troubleshooting

  • Jika Windows VM hang saat shutdown, mungkin perlu reset GPU via hookscript :contentReference[oaicite:2]{index=2}
  • Jika VGA display error: Pastikan gunakan tipe mesin pc‑q35, bukan i440fx :contentReference[oaicite:3]{index=3}
  • Tambahkan parameter kernel seperti initcall_blacklist=sysfb_init atau pcie_acs_override=downstream,multifunction untuk stabilitas lebih baik :contentReference[oaicite:4]{index=4}

Penutup

GPU passthrough memberikan akses performa tinggi kepada VM Windows di Proxmox. Meski membutuhkan pemahaman teknis, panduan ini membantu kamu setiap langkah secara jelas dan ramah pemula. Ingat, Proxmox VE 9.0 membawa perubahan—jika ada bug, kamu bisa coba rollback atau gunakan alternatif seperti PECU untuk percepat setup.

Penulis: Admin Lab Virtualisasi
Tanggal: 21 Agustus 2025

Tidak ada komentar:

Posting Komentar