How to create LXD image for virtual-machine?

The virtual machine is natively supported by LXD starting from version 4.0

I tried to use Packer to build LXD images for virtual-machine, but I found nothing in the documentation that allows me to change the image type from CONTAINER to VIRTUAL-MACHINE.

My question is how to create an LXD image for virtual-machine?

It turned out to be not supported. Therefore I contributed that to the plugin

1 Like