Proxmox VM Boot Troubleshooting#
What Was Established#
- Ubuntu VMs can hang during the boot process at
apparmor.service(displayed as “staring apparmor.service - L:oad appArmor profiles…”). - In Proxmox, this specific hang was caused by an iGPU (…)
Coffee Lake iGPU Passthrough Freeze & Recovery#
- Issue: Coffee Lake iGPU passthrough to an Ubuntu VM causes the Proxmox VM to freeze on boot.
- Immediate Recovery Steps (run from Proxmox host console):
- Stop the frozen VM:
qm stop <VMID> --forceorkill -9 <PID>viaps aux | grep qemu. - Remove iGPU from VM config: Edit
/etc/pve/qemu-server/<VMID>.confand removehostpcilines and GPU-relatedargs:lines. - Reset host iGPU state: Edit
/etc/modprobe.d/pve-blacklist.confand comment outblacklist i915. - Reboot host:
update-initramfs -u -k all && reboot. - Verify host recovery:
lspci | grep -i vgaandlsmod | grep i915.
- Stop the frozen VM:
- Proper Re-configuration Steps:
- Enable IOMMU: Update
/etc/default/grubwithGRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt", thenupdate-grub && reboot. - Verify IOMMU Groups:
find /sys/kernel/iommu_groups/ -type l. - Add iGPU via UI: VM → Hardware → Add PCI Device → Select iGPU → Check “All Functions” & “PCI-Express” → DO NOT check “Primary GPU”.
- Enable IOMMU: Update
- Advanced/Alternative Configuration:
- GRUB Parameters:
quiet intel_iommu=on iommu=pt pcie_acs_override=downstream,multifunction nofb nomodeset video=efifb:off - Host Blacklist:
echo "blacklist i915" >> /etc/modprobe.d/pve-blacklist.conf - VM Config (
args):args: -device vfio-pci,host=00:02.0,addr=0x18,x-igd-gms=1,driver=vfio-pci args: -device vfio-pci,host=00:02.1,addr=0x18.1,driver=vfio-pci args: -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off args: -set device.vga.ramfb=off args: -set device.vga.driver=vfio-pci - VM Hardware Requirements: Machine
q35, BIOSOVMF (UEFI), DisplayDefault(not SPICE). - Ubuntu VM Guest: Install Intel graphics drivers, add
i915.enable_guc=2to kernel parameters, ensure early KMS start.
- GRUB Parameters:
Sources#
ingested/chats/103-Troubleshooting Coffee Lake iGPU Passthrough on Proxmox.mdingested/chats/101-Troubleshooting Slow Ubuntu VM Boot.md