Running avahi-daemon in LXC

a quick howto

For my compute, I prefer to run proxmox, and it allows you to run containers via LXC. These will use the currently running kernel and boot close to instantly, with a much lower overhead than a KVM-based VM.

Anyhow, trying to run avahi-daemon in the containers often fails. I'm not the first to notice this, but the answers were unsatisfying until I found a suggestion to try running with --no-rlimits.

To make the change persistence using systemdis simple.

Once the system editor opens add the following to the top of the file

[Service]
ExecStart=
ExecStart=/usr/sbin/avahi-daemon -s --no-rlimits

Tell systemd that you wish to create an overide file

systemctl edit avahi-daemon.service
About the author
Stephen Schwetz

Stephen Schwetz

I collect movies TV series and acronyms after my name. I am an active ADHD and Autistic, who suffers from all the trauma of trying to fit into a social system that doesn't work for the last 46 years

The Schwarrisons

A Neurodivergent Family Trying to Fit Their Square Pegs Into the Round Holes of Life

The Schwarrisons

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to The Schwarrisons.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.