LXD in OpenWrt

I bought this computer to serve as both for a router and a server running lxd, but it'll take a while to arrive.

The main issue is still the planning and I see two options for it.

  • The first option is to run OpenWRT on the system and run lxd inside it. This would probably be the easiest approach if lxd runs inside OpenWRT. I didn't find anyone doing this, so I wanted to know if this is possible. Does anyone know?

  • The second option is to run Ubuntu Server on the system, OpenWRT as an lxd container and manage the rj45 ports from inside the container. This has its advantages as well, but seems more complicated to manage. How can I let the OpenWRT container manager the port connections and still have the host Ubuntu server have access to the network to provide access to the other containers?

  • I guess there's also a third option which is to get some recommendation on any alternative I have not thought about. Can someone recommend a better alternative in which I can run lxd and also administer the router through an easy web interface?

i guess proxmox? Since it's x86/64 bit, you can run proxmox and Run those 2 system you need in 2 vm, having access natively to the hardware.you can also give the server vm internet access through internal bridge, always with proxmox.

Nope, you can't do that.

1 Like

I don't know if it's even possible to port LXD to OpenWrt, but LXC works just fine.

If OpenWRT doesn't run LXD, what would be the best options to run OpenWRT as a container? Do I pass all network devices over to the OpenWRT container and then try to open a connection from the server to the container afterwards? Or does the server connect to the internet and pass that connection to the OpenWRT container? What would be my options? I'm quite a noob on this and I'm trying to learn.