Connecting LXD Containers to LAN in Centos 8

For Wifi, you don’t have a ton of options when it comes to having other systems on your network be able to access your containers.

The main one that comes to mind would be to run a normal LXD bridge (like lxdbr0) and then configure your home router to route the subnet of that bridge to the machine running it.

So say your laptop is at 192.168.1.100 and your lxdbr0 has 10.200.30.1/24, you’d put a route in your home router for 10.200.30.0/24 via 192.168.1.100.

This should then allow everything else on your network which communicates through your router to reach instances on that 10.200.30.0/24 network.

The obvious downside of this approach is that it’s quite manual, you’ll need to do that for every system that’s hosting LXD instances and if you move an instance between machine, then its address will be completely different.