CentOS 7.7 iso image import into LXD

How to use Distrobuilder or any other tool to import a CentOS 7.7 iso image into LXD and create a VM ?

Distrobuilder could probably be used for that by using the YAML at GitHub - lxc/lxc-ci: LXC continuous integration and build scripts, possibly an older revision of it.

Alternatively, you can always do:

  • lxc init centos-vm --vm --empty
  • lxc config device add centos-vm install disk source=/path/to/iso boot.priority=10
  • lxc start centos-vm --console=vga

To go through the installer by booting the ISO directly.

Thanks. The second option works perfect!