LXD networking with Calico and CNI

I would like to start a discussion as to how to connect LXD containers with Calico. I believe I may have to get Calico development involved too but at this stage I would like to get LXD’s opinion first.

I have created the https://github.com/quater/calico-for-lxc-and-lxd repository that showcases how Calico can actually work with LXC/ LXD. However this repository is based on code changes provided by Cui Zhicheng more than 18 months ago. Since then technology has moved on so that it would require yet another similar code change to get this working with the current latest technologies.

The https://github.com/quater/calico-for-lxd repository shows the current state, without any additional code changes.

My aim is to get an upstream supported way of getting LXD working with Calico. For this to happen, it potentially requires some changes in some of those repositories.




What do you think?

3 Likes

In the meantime I have been able to get Calico 3.4 working with LXC/ LXD. The only caveat is that is only possible to attach one Calico managed network interface per container.

Please see https://github.com/quater/calico-for-lxd for details.

Ideally, I would like to have the ability attach multiple Calico managed network interfaces. I try to get this addressed by the help of https://github.com/projectcalico/cni-plugin/issues/667.

2 Likes