Previously (some years back) I have used vmbuilder, but this now seems to be unmaintained and cannot be used with newer ubuntu versions.
I have also tried vagrant with vagrant-libvirt plugin, apart from this method requires a huge amount of packages to be installed it didn't work in the end after all because there is no ubuntu cloud images for the libvirt provider.
I have also looked into standard virt-installer providing the standard ISO image as CD-ROM, but that is not non-interactive. Apart from that I also ran into a ubiquity bug during the interactive installation.
So what is the best way to non-interactively provision ubuntu virtual
machines using libvirt? Or what is the replacement of vmbuilder?
virt-builder. I have reported it on https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1813662 – Jarl Jan 28 '19 at 21:05virt-builderonly creates the disk I am still missing the xml-file, i.e. the domain definition in libvirt. – Jarl Jan 30 '19 at 14:28virt-installand using the--importoption to tell it to use the existing disk, rather than trying to run an OS installer. – Michael Hampton Jan 30 '19 at 15:01virsh list? – Jarl Feb 04 '19 at 13:12