Libvirt video card

Hi,

Today I was playing with Foreman and Libvirt and when creating a VM I could see the following warning message in the log:

qemu-kvm: -device cirrus-vga,id=video0,bus=pci.0,addr=0x2: warning: 'cirrus-vga' is deprecated, please use a different VGA card instead

I know it’s not a big deal, but I was wondering if cirrus wouldn’t be removed in a future version of qemu-kvm. In my environment I changed the following lines:

<video>
  <model type='cirrus' vram='9216' heads='1'/>
</video>

By:

<video>
  <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'/>
</video>

in /opt/theforeman/tfm/root/usr/share/gems/gems/fog-libvirt-0.7.0/lib/fog/libvirt/models/compute/templates/server.xml.erb

Do you think that it could be interesting to update the template?

Quentin

I think you should take this to the relevant project:

I’ve just done that! Thanks :slight_smile:

For the record, there was a PR raised:

It is still being discussed, there was another user complaining that libvirt from CentOS 8 no longer works with this driver (VNC), so this needs to be resolved.

1 Like

Hello from 2025! Latest Foreman v3.13 using rubygem-fog-libvirt-0.12.2-1.el9.noarch is still creating VMs with the Cirrus Logic VGA - is there any plans to switch over with or without backward compatibility? Any advice for existing users?

Reason I’m bringing this up again: cockpit-machines in CentOS Stream 9 will crash VMs created by Foreman using the libvirt provider:

qemu-kvm: ../qapi/qobject-output-visitor.c:95: void qobject_output_add_obj(QObjectOutputVisitor *, const char *, QObject *): Assertion `name' failed.
2025-02-24 01:15:38.268+0000: shutting down, reason=crashed