Skip to content

Instantly share code, notes, and snippets.

@lsd-cat
Last active September 17, 2026 16:27
Show Gist options
  • Select an option

  • Save lsd-cat/b49f8517c856e42aa7acc633de1cdc8d to your computer and use it in GitHub Desktop.

Select an option

Save lsd-cat/b49f8517c856e42aa7acc633de1cdc8d to your computer and use it in GitHub Desktop.
Qubes in Proxmox

Qubes OS 4.3.1 on Proxmox (nested KVM)

Host: Proxmox 9, AMD Zen4, kvm_amd nested=1.

Steps

  1. Download Qubes-R4.3.1-x86_64.iso to /var/lib/vz/template/iso.
  2. Create the VM:
    • q35 machine
    • SeaBIOS
    • 12GB+ RAM, balloon 0
    • 4 cores
    • 80GB+ virtio disk
    • vga std
    • serial0 socket
    • NIC e1000
  3. Set the critical args:
  • qm set <id> --args "-machine kernel-irqchip=split -cpu EPYC-Rome,+svm,+npt,+nrip-save,+invtsc -device intel-iommu,intremap=on,caching-mode=on".
  1. Boot the ISO and install normally via the Proxmox console.
  2. Continue past the "Unsupported Hardware" warning, it only reflects the emulated IOMMU.
  3. In Initial Setup, uncheck the sys-usb option and keep the rest default.
  4. If sys-net fails to start: set qvm-prefs sys-net virt_mode hvm and assign the NIC with qvm-pci assign --required -o no-strict-reset=true -o permissive=true sys-net dom0:<port>.
  5. Give sys-net a static IP via Network Manager if the bridge has no DHCP.

Args explanation

  • -cpu EPYC-Rome,...: host on Zen4 triple-faults the PV dom0 kernel right after "Poking KASLR".
  • +svm,+npt: without them Xen sees no HVM/HAP and no qube can start.
  • intel-iommu and kernel-irqchip=split: without a vIOMMU, libxl refuses PCI passthrough ("passthrough not supported on this platform"). sys-net then cannot get the NIC. Split irqchip is a hard requirement of the emulated IOMMU.
  • e1000, not e1000e or virtio: e1000e MSI-X corrupts the heap of the sys-net stubdomain QEMU (malloc_consolidate crash in xen_pt). e1000 has no MSI and works.

Useful to know

  • Changing the NIC model changes the PCI identity. The stale required assignment in /var/lib/qubes/qubes.xml then blocks sys-net ("device not available"). Stop qubesd, delete the <device> line, restart, re-assign.
  • Templates can be (re)installed offline from /var/lib/qubes/template-packages/*.rpm with qvm-template install --nogpgcheck. Run qubesctl saltutil.sync_all before any qubesctl state.sls qvm.*.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment