Building an OpenBSD Libvirt Box
You can use the netlab libvirt package command to build a OpenBSD Vagrant box:
Download the OpenBSD qcow2 image from https://bsd-cloud-image.org/ into an empty directory
Execute netlab libvirt package openbsd img-file-name and follow the instructions
Warning
If you’re using a netlab release older than 1.8.2, or if you’re using a Linux distribution other than Ubuntu, please read the box-building caveats first.
Initial Device Configuration
The OpenBSD VM is configured with cloud-init, but you still have to perform a controlled shutdown before the virtual disk is packed into a Vagrant box.
The netlab libvirt config openbsd command displays the build recipe:
The OpenBSD box-creation process is fully automated with cloud-init.
The virtual machine will boot, set password for user 'openbsd' and
execute commands specified in the cloud-init user configuration file.
The last command executed is 'shutdown -h -p now' which powers off the
VM, allowing 'netlab libvirt package' to continue with box packaging.