How to Create a Bridged Network for LXD Containers

How to Create a Bridged Network for LXD Containers

LXD is an image-based container deployment platform. It is easy to use, though you need a network bridge to access these contaienrs. Here is how to make create one.

When it comes to containers, LXD might not be at the forefront of your mind. That’s a shame because this tool is an outstanding route for developers to begin working with containers, in a virtual machine kind of way. LXD is an image-based container deployment platform that bears some resemblance to Ubuntu’s Multipass. In fact, if you’ve used Multipass, you’ll feel right at home with LXD. The biggest difference is that LXD gives you a few more environment options to play with.

The one drawback to using such a tool (instead of working directly with, say, Docker) is similar to that of Kubernetes — accessing the actual containers from your LAN. With Kubernetes, you must deploy special services to reach those containers. With LXD, on the other hand, in order to reach those virtualized containers you need to create a network bridge.

How you do this will depend on the host you’re using to deploy LXD. I’m going to walk you through this process using Ubuntu Server 18.04. This particular Linux distribution uses Netplan to configure networking devices. Netplan configuration files are YAML-based, so anyone that’s worked with Docker or Kubernetes should be instantly familiar with the layout of these files.

In order to make this work, you’ll need to have LXD up and running and a container deployed. For this, you’ll want to give my article “How to Deploy Containers with LXD” a read.

With that out of the way, let’s make this happen.

containers development linux tutorial

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Hire Dedicated Linux Developer

Looking to develop real-time applications? **[Hire Dedicated Linux Developer]( "Hire Dedicated Linux Developer")** from **[](

50+ Useful Kubernetes Tools for 2020 - Part 2

Our original Kubernetes tool list was so popular that we've curated another great list of tools to help you improve your functionality with the platform.

How long does it take to develop/build an app?

This article covers A-Z about the mobile and web app development process and answers your question on how long does it take to develop/build an app.

Developer Career Path: To Become a Team Lead or Stay a Developer?

For a developer, becoming a team leader can be a trap or open up opportunities for creating software. Two years ago, when I was a developer, ... by Oleg Sklyarov, Fullstack Developer at Skyeng company

User Administration in Linux - Linux Tutorial - Linux Training

User Administration in Linux - Linux Tutorial - Linux Training