Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

put cirrus-vga on a high PCI slot, so it doesn't clash #1809

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Apr 9, 2024

VGA cards get PCI slot 2 by default from QEMU [1], however, as we
actually disable graphics (so that we don't race for an VNC port), QEMU
thinks it's smart and also gives slot 2 to the storage controller,
leading to:

Call to virDomainCreateWithFlags failed: internal error:
QEMU unexpectedly closed the monitor (vm='forklift_debian11'):
qemu-system-x86_64: -device {"driver":"virtio-blk-pci","bus":"pci.0","addr":"0x2","drive":"libvirt-1-format","id":"ua-box-volume-0","bootindex":1,"write-cache":"on"}:
PCI: slot 2 function 0 not available for virtio-blk-pci, in use by cirrus-vga,id=video0 (Libvirt::Error)

Let's be smarter than QEMU and plug our unused video card (that is
needed for [2]) into slot 9 instead.

[1] https://libvirt.org/pci-addresses.html
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021298

evgeni added 2 commits April 9, 2024 09:16
VGA cards get PCI slot 2 by default from QEMU [1], however, as we
actually disable graphics (so that we don't race for an VNC port), QEMU
thinks it's smart and also gives slot 2 to the storage controller,
leading to:

    Call to virDomainCreateWithFlags failed: internal error:
    QEMU unexpectedly closed the monitor (vm='forklift_debian11'):
    qemu-system-x86_64: -device {"driver":"virtio-blk-pci","bus":"pci.0","addr":"0x2","drive":"libvirt-1-format","id":"ua-box-volume-0","bootindex":1,"write-cache":"on"}:
    PCI: slot 2 function 0 not available for virtio-blk-pci, in use by cirrus-vga,id=video0 (Libvirt::Error)

Let's be smarter than QEMU and plug our unused video card (that is
needed for [2]) into slot 9 instead.

[1] https://libvirt.org/pci-addresses.html
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021298
@evgeni evgeni merged commit d661256 into theforeman:master Apr 9, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants