Page tree
Skip to end of metadata
Go to start of metadata

You can have LXD containers connect directly to the same network as your host. In order to do this, you must setup a bridge on your OS.

Then execute the LXD profile editor,

lxc profile edit default.

After which, change lxdbr0 to your bridge,

config: {}
description: Default LXD profile
devices:
  eth0:
    name: eth0
    nictype: bridged
    parent: lxdbr0
    type: nic
name: default

In this case, our bridge is br0

config: {}
description: Default LXD profile
devices:
  eth0:
    name: eth0
    nictype: bridged
    parent: br0
    type: nic
name: default

Verify changes,

lxc profile show default

Now your new LXD containers should be visible within the same network used by the host.

  • No labels