<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Passthrough on homelab</title>
    <link>https://homelab.nbkelley.com/tags/passthrough/</link>
    <description>Recent content in Passthrough on homelab</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 01 May 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://homelab.nbkelley.com/tags/passthrough/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Proxmox VM Boot Troubleshooting</title>
      <link>https://homelab.nbkelley.com/docs/infrastructure/proxmox-vm-boot-troubleshooting/</link>
      <pubDate>Fri, 01 May 2026 00:00:00 +0000</pubDate>
      <guid>https://homelab.nbkelley.com/docs/infrastructure/proxmox-vm-boot-troubleshooting/</guid>
      <description>&lt;h1 id=&#34;proxmox-vm-boot-troubleshooting&#34;&gt;Proxmox VM Boot Troubleshooting&lt;a class=&#34;anchor&#34; href=&#34;#proxmox-vm-boot-troubleshooting&#34;&gt;#&lt;/a&gt;&lt;/h1&gt;&#xA;&lt;h2 id=&#34;what-was-established&#34;&gt;What Was Established&lt;a class=&#34;anchor&#34; href=&#34;#what-was-established&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Ubuntu VMs can hang during the boot process at &lt;code&gt;apparmor.service&lt;/code&gt; (displayed as &amp;ldquo;staring apparmor.service - L:oad appArmor profiles&amp;hellip;&amp;rdquo;).&lt;/li&gt;&#xA;&lt;li&gt;In Proxmox, this specific hang was caused by an iGPU (&amp;hellip;)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;coffee-lake-igpu-passthrough-freeze--recovery&#34;&gt;Coffee Lake iGPU Passthrough Freeze &amp;amp; Recovery&lt;a class=&#34;anchor&#34; href=&#34;#coffee-lake-igpu-passthrough-freeze--recovery&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Issue&lt;/strong&gt;: Coffee Lake iGPU passthrough to an Ubuntu VM causes the Proxmox VM to freeze on boot.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Immediate Recovery Steps&lt;/strong&gt; (run from Proxmox host console):&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Stop the frozen VM&lt;/strong&gt;: &lt;code&gt;qm stop &amp;lt;VMID&amp;gt; --force&lt;/code&gt; or &lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt; via &lt;code&gt;ps aux | grep qemu&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Remove iGPU from VM config&lt;/strong&gt;: Edit &lt;code&gt;/etc/pve/qemu-server/&amp;lt;VMID&amp;gt;.conf&lt;/code&gt; and remove &lt;code&gt;hostpci&lt;/code&gt; lines and GPU-related &lt;code&gt;args:&lt;/code&gt; lines.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Reset host iGPU state&lt;/strong&gt;: Edit &lt;code&gt;/etc/modprobe.d/pve-blacklist.conf&lt;/code&gt; and comment out &lt;code&gt;blacklist i915&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Reboot host&lt;/strong&gt;: &lt;code&gt;update-initramfs -u -k all &amp;amp;&amp;amp; reboot&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Verify host recovery&lt;/strong&gt;: &lt;code&gt;lspci | grep -i vga&lt;/code&gt; and &lt;code&gt;lsmod | grep i915&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Proper Re-configuration Steps&lt;/strong&gt;:&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Enable IOMMU&lt;/strong&gt;: Update &lt;code&gt;/etc/default/grub&lt;/code&gt; with &lt;code&gt;GRUB_CMDLINE_LINUX_DEFAULT=&amp;quot;quiet intel_iommu=on iommu=pt&amp;quot;&lt;/code&gt;, then &lt;code&gt;update-grub &amp;amp;&amp;amp; reboot&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Verify IOMMU Groups&lt;/strong&gt;: &lt;code&gt;find /sys/kernel/iommu_groups/ -type l&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Add iGPU via UI&lt;/strong&gt;: VM → Hardware → Add PCI Device → Select iGPU → Check &amp;ldquo;All Functions&amp;rdquo; &amp;amp; &amp;ldquo;PCI-Express&amp;rdquo; → &lt;strong&gt;DO NOT&lt;/strong&gt; check &amp;ldquo;Primary GPU&amp;rdquo;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Advanced/Alternative Configuration&lt;/strong&gt;:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;GRUB Parameters&lt;/strong&gt;: &lt;code&gt;quiet intel_iommu=on iommu=pt pcie_acs_override=downstream,multifunction nofb nomodeset video=efifb:off&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Host Blacklist&lt;/strong&gt;: &lt;code&gt;echo &amp;quot;blacklist i915&amp;quot; &amp;gt;&amp;gt; /etc/modprobe.d/pve-blacklist.conf&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;VM Config (&lt;code&gt;args&lt;/code&gt;)&lt;/strong&gt;:&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;args: -device vfio-pci,host=00:02.0,addr=0x18,x-igd-gms=1,driver=vfio-pci&#xA;args: -device vfio-pci,host=00:02.1,addr=0x18.1,driver=vfio-pci&#xA;args: -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off&#xA;args: -set device.vga.ramfb=off&#xA;args: -set device.vga.driver=vfio-pci&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;VM Hardware Requirements&lt;/strong&gt;: Machine &lt;code&gt;q35&lt;/code&gt;, BIOS &lt;code&gt;OVMF (UEFI)&lt;/code&gt;, Display &lt;code&gt;Default&lt;/code&gt; (not SPICE).&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Ubuntu VM Guest&lt;/strong&gt;: Install Intel graphics drivers, add &lt;code&gt;i915.enable_guc=2&lt;/code&gt; to kernel parameters, ensure early KMS start.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;sources&#34;&gt;Sources&lt;a class=&#34;anchor&#34; href=&#34;#sources&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;ingested/chats/103-Troubleshooting Coffee Lake iGPU Passthrough on Proxmox.md&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;ingested/chats/101-Troubleshooting Slow Ubuntu VM Boot.md&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
  </channel>
</rss>
