The patch cannot be applied to Ubuntu Bionic (18.04), since its libvirt version is older than the minimum required (mentioned in the patch).
The Ubuntu Cloud Archive for Bionic (eg, from Focal / Ussuri) can be used/patched though, as it provides a sufficiently newer version of libvirt.
`QEMU >=2.9 and libvirt >= 4.4.0 are the mininum required versions`
$ rmadison -a source libvirt -s bionic-updates # ubuntu archive libvirt | 4.0.0-1ubuntu8.21 | bionic-updates | source
$ cmadison libvirt | grep bionic-updates # cloud archive libvirt | 5.0.0-1ubuntu2.6~cloud3 | stein | bionic-updates | source libvirt | 5.4.0-0ubuntu5.4~cloud1.1 | train | bionic-updates | source libvirt | 6.0.0-0ubuntu8.16~cloud0 | ussuri | bionic-updates | source
The patch cannot be applied to Ubuntu Bionic (18.04), since its libvirt version is older than the minimum required (mentioned in the patch).
The Ubuntu Cloud Archive for Bionic (eg, from Focal / Ussuri) can be used/patched though, as it provides a sufficiently newer version of libvirt.
`QEMU >=2.9 and libvirt >= 4.4.0 are the mininum required versions`
$ rmadison -a source libvirt -s bionic-updates # ubuntu archive
libvirt | 4.0.0-1ubuntu8.21 | bionic-updates | source
$ cmadison libvirt | grep bionic-updates # cloud archive 6~cloud3 | stein | bionic-updates | source 4~cloud1. 1 | train | bionic-updates | source 16~cloud0 | ussuri | bionic-updates | source
libvirt | 5.0.0-1ubuntu2.
libvirt | 5.4.0-0ubuntu5.
libvirt | 6.0.0-0ubuntu8.