Hi All,
In summary - I have an issue creating VM’s through MAAS and LXD.
The error:
Ensure this value is less than or equal to 0 for CPU and RAM.
I have the latest version of MAAS running: 3.4.0-14319-g.3ab76533f
I decided to setup an LXD host to see the integration between the two…
I installed LXD (5.19) with no issues:
cat <<EOF | sudo lxd init --preseed
config:
core.https_address: '[::]:8443'
core.trust_password: somethingsecurehere
networks: []
storage_pools:
- config:
source: /dev/md0
description: ""
name: ecstoragepool
driver: zfs
profiles:
- config: {}
description: ""
devices:
eth0:
name: eth0
nictype: macvlan
parent: enp51s0f0np0
type: nic
root:
path: /
pool: ecstoragepool
type: disk
name: default
projects: []
cluster: null
EOF
I didn’t add the MAAs link within the init as I get SSL issues due to the self signed cert. Keen to resolve this also if someone has anything useful - the machine isn’t accessible externally.
Within LXD I enabled the UI and added a vm. again with no issues.
To help, I deleted this VM before the next steps.
I then went into MAAS and added an LXD host.
No issues.
With MAAs I then try to add a vm but get errors for both CPU and RAM:
Error: Ensure this value is less than or equal to 0.
It doesn’t matter what I put in here, it won’t create.
I then added a new VM via the LXD ui and it worked fine (still).
After about 10 minutes it also showed up in MAAS saying it was commissioning (which it isn’t).
I can however delete this VM from MAAS, it can also see all the info correctly…
Any help would be great.
Thanks,