Cannot create lxd with maas kvm ( bug)

I was on same issue.

maas $profile vm-hosts read prints the 0 cores available/total. (!!)

After reconfigure /etc/maas/*.conf's maas_url correctly, problem solved.