Can't compose vm in kvm

Hello there! I have lxd server, in maas KVM i connected him.

When i try to create VM, i got in Cores and RAM fields **Error:** Ensure this value is less than or equal to 0.

I try to compose vm from cli but i got error as well

maas $PROFILE pod compose 213
Unable to compose KVM instance in 'stable-do2-lxd-h8b080-03'. CPU overcommit ratio is 1.0 and there are 0 available resources; 1 requested.Memory overcommit ratio is 1.0 and there are 0 available resources; 2048 requested.

LXD cluster version 5.20
Maas version 3.4.0

Help me please, how can i compose vm on lxd? Why i got error?

Hej,
I’ve had the same issue. This happened on a node deployed from MAAS using the ‘register’ as KVM node feature. I tried to deploy using Ubuntu 18.04LTS and 20.04LTS, as those were the only supported versions.

The 18.04, never deployed successfully. The 20.04 did deploy, but “ensure this value is less than or equal to 0” appears.

A manually deployed 22.04LTS, worked. I.e. deploy the node as a regular host. Login, and install lxd. Init the lxd, and then register it with Maas.

Hope this helps.
/Patrik