MAAS to use LxD vm host

I have followed the guideline here

trying to add an LxD vm host to be controlled by MAAS.
Basically these are steps what I have done:

  1. Add a machine to MAAS subnet.
  2. Commission and deploy Ubuntu 20.04 on the machine.
  3. ssh into the machine and do install LxD and all basically settings on the vm-host-networking guide.
  4. Use MAAS UI to add KVM and include the machine. Take action → refresh it.

After that I still see the following snapshot with power “Unknown”

What have I missed and how to make it a “Ready” resource on MAAS UI?

My MAAS version is
MAAS version: 2.8.2 (8577-g.a3e674063-0ubuntu1~18.04.1)

Thank you.


I think you’ve run into a bug there, but I don’t think it’s a blocker for you.

The Power there refers to the machine that you deployed as the LXD host. For some reason, it’s not linked to the machine in MAAS, but instead it created a new one.

You should be able to use the VM host and compose machines, though.

But I would strongly suggest that you upgrade to 2.9 (and 3.0 in a couple of weeks), since we’ve made quite a lot improvements when it comes to LXD VM hosts.

1 Like

You are totally right.

I can still compose LxD vm under this version of MAAS.

These commission stuck. Is it because the bridge lxdbr0 I have set up locally in the VM host not be appeared by MAAS?

I saw locally on the host, vm cannot get IP addresses.

After reading carefully the doc and trying it again, I finally got it ready.

Critical points:

  1. Commission → configure bridge on MAAS UI → deploy (I did it wrong to deploy before configure bridge on MAAS UI)

  2. Would you like to configure LXD to use an existing bridge or host interface? (yes/no) [default=no]: yes
    Name of the existing bridge or host interface: br0

But there is still something I cannot complete followed the doc.

lxc network set lxdbr0 dns.mode=none
lxc network set lxdbr0 ipv4.dhcp=false
lxc network set lxdbr0 ipv6.dhcp=false

When I tried to do this locally, it shows error:

Error: Only managed networks can be modified

But I hope this won’t effect the final result.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.