Unable to provision VM on Rocky Linux 8 with Libvirt - Qemu 6.0+

Problem:

Cannot provision VMs on LIbvirt compute resource with LVM backing volume.

Katello initiated provisions creates VMs with Disk Driver type “file” rather than “host device” - causes error:

`

-blockdev ‘{“driver”:“file”,“filename”:“/dev/guest_vg/miriam.cheeky.local-disk1”,“node-name”:“libvirt-2-storage”,“auto-read-only”:true,“discard”:“unmap”}’ \

`

internal error: process exited while connecting to monitor: 2024-02-17T21:32:47.249281Z qemu-kvm: -blockdev {"driver":"file","fil
ename":"/dev/guest_vg/vm.example.local-disk1","node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}: 'file' driver requires '/dev/guest_vg/vm.example.local-disk1' to be a regular file

Expected outcome:

create devices with “Host Device” Driver

`

blockdev ‘{“driver”:“host_device”,“filename”:“/dev/guest_vg/rocky8”,“aio”:“native”,“node-name”:“libvirt-1-storage”,“cache”:{“direct”:true,“no-flush”:false},“auto-read-only”:true,“discard”:“unmap”}’ \

`

Foreman and Proxy versions:

Foreman Version 3.8.0
Katello Version 4.10

Foreman and Proxy plugin versions:

Foreman Version 3.8.0
Katello Version 4.10

Distribution and version:

RHEL 8.9

Other relevant data:

Compute Resource is Rocky Linux 8.9

Found another post referencing a fix but I am not sure how to implement this:

Was this fixed in the update to Foreman 3.9 and Katello 4.11?

Looks like this patch was released with rubygem-fog-libvirt-0.12.0-1.el8.noarch.rpm, this was indeed released with 3.9 Commits · fog/fog-libvirt · GitHub