Import custom VM


Is there any guide on how to import a custom VM image (as img, or iso installer) to lxd?
What would be the best way to do this?

You can create an empty VM with lxc init NAME --empty --vm and then replace the raw disk image with your existing VM.

But note that for this to work, your VM must use UEFI, ideally be secureboot enabled too (but you can turn that off) and be bootable from virtio-scsi and support virtio-net for networking.

1 Like