I am looking at implementing software in Open Source MANO (OSM) that will use LXD in a similar manner to OpenStack. In OSM, VM sizing is specified in a template with CPU, RAM and Disks. For OpenStack, a flavor must be created and referenced for launching the VM.
With LXD, I have a choice:
- Use LXD profiles to mimic the flavor usage in OpenStack. Profiles would be created and deleted by OSM, or
- Simply create the LXD VM using limits for CPU and RAM, and use config device to specify the disks
Which is the more “LXD” way of doing things?