Tag: network

How to get LXD containers get IP from the LAN with routed network

You are using LXD containers and you want a container (or more) to get an IP address from the LAN (or, get an IP address just like the host does). LXD currently supports four ways to do that, and depending on your needs, you select the appropriate way. Using macvlan. See https://blog.simos.info/how-to-make-your-lxd-container-get-ip-addresses-from-your-lan/ Using bridged. See …

Continue reading

Permanent link to this article: https://blog.simos.info/how-to-get-lxd-containers-get-ip-from-the-lan-with-routed-network/

How to add both a private and public network to LXD using cloud-init

When you launch a new LXD container, LXD applies the default LXD profile unless you specify a different profile. By adding configuration to a LXD profile, you can launch containers with specific parameters such as specific network configuration. In the following we see how this default LXD profile looks like, and then use cloud-init instructions …

Continue reading

Permanent link to this article: https://blog.simos.info/how-to-add-both-a-private-and-public-network-to-lxd-using-cloud-init/

How to use LXD container hostnames on the host in Ubuntu 18.04

Update: 12 Oct 2018 – The systemd service file and the LXD lxdbr0 configuration have been updated according to the comment by mDfRgmd. Please check again and verify that you are using the updated version. If you have two LXD containers, mycontainer1 and mycontainer2, then you can reference each other with those handy *.lxd hostnames …

Continue reading

Permanent link to this article: https://blog.simos.info/how-to-use-lxd-container-hostnames-on-the-host-in-ubuntu-18-04/

How to create a snap for a Python app with networking using snapcraft in Ubuntu 16.04

Update #1: 6 Feb 2017  httpstat needs curl. Originally, this HowTo would freshly compile curl from the github source. Now, this HowTo shows how to reuse the existing curl package from the Ubuntu repositories. In this post we see how to create a snap package (or, just snap) of some software in Ubuntu 16.04. A …

Continue reading

Permanent link to this article: https://blog.simos.info/how-to-create-a-snap-for-a-python-app-with-networking-using-snapcraft-in-ubuntu-16-04/

%d bloggers like this: