Skip to content

maschine = q35 and hostpci passthrough pcie #1806

Open
@two56bytes

Description

@two56bytes

when creating a new qemu vm the "machine" parameter is not noticed which breakes hostpci passthrough for pcie devices:

machine = "q35"
bios = "ovmf"

hostpci {
device = "hostpci0"
id = "0000:03:00"
xvga = true
pcie = true
}

produces:

proxmox_virtual_environment_vm.gaming: Creating...

│ Error: error waiting for VM start: task "UPID:server:0000550D:000780EC:67C30E2D:qmstart:106:root@pam:" failed to complete with exit code: q35 machine model is not enabled at /usr/share/perl5/PVE/QemuServer/PCI.pm line 491.

│ with proxmox_virtual_environment_vm.gaming,
│ on qemu-gaming.tf line 1, in resource "proxmox_virtual_environment_vm" "gaming":
│ 1: resource "proxmox_virtual_environment_vm" "gaming" {

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Projects

    • Status

      ☑️ Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions