LXD 4.1: VM created from profile has no disk

,

Here’s how I’ve created the VM:

ubuntu@aa1-cptef102-n3:~$ lxc launch --vm --profile stagingtwo-2.2.25 images:debian/stretch
Creating the instance
Instance name is: humane-kit

The instance you are starting doesn't have any network attached to it.
  To create a new network, use: lxc network create
  To attach a network to an instance, use: lxc network attach

Starting humane-kit

Here’s the profile:

ubuntu@aa1-cptef102-n3:~$ lxc profile show stagingtwo-2.2.25
config:
  limits.cpu: "2"
  limits.memory: "2"
  security.secureboot: "false"
description: 2.2.25
devices:
  root:
    path: /
    pool: ceph
    size: 25GB
    type: disk
name: stagingtwo-2.2.25

Here’s the resulting VM config with a blank devices section:

ubuntu@aa1-cptef102-n3:~$ lxc config show humane-kit
architecture: x86_64
config:
  image.architecture: amd64
  image.description: Debian stretch amd64 (20200608_05:24)
  image.os: Debian
  image.release: stretch
  image.serial: "20200608_05:24"
  image.type: disk-kvm.img
  volatile.base_image: 78b99d11380a812bcfa87ae3b1107c59a210f531f7a0ce9294e809bc7cf2585b
  volatile.last_state.power: RUNNING
  volatile.vm.uuid: aca3d528-8c81-4144-8f56-ea26e875e793
devices: {}
ephemeral: false
profiles:
- stagingtwo-2.2.25
stateful: false
description: ""

Is there an error in my profile - lxc console is just blank. A VM with no profile specified does not have a blank devices section.

lxc config show --expanded will show you the config including its profiles.

Thanks - turns out my problem was that I was only allocating 2 bytes of RAM to the VM by missing a suffix.