I've been making LXC containers in Proxmox like a fiend. I'm toally loving Proxmox, if you want several virtual machines I highly recommend it.
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. That seems to do the trick!
But how to get
systemd to run it that way? Very simply as it turns out.
systemctl edit avahi-daemon.service
Add then in the text editor that opens up, enter the following:
ExecStart=/usr/sbin/avahi-daemon -s --no-rlimits
see comment #2 for a script friendly way to do this
libnss-mdns sometimes doesn't install properly though. If you can't ping/lookup other
.local hosts then edit
/etc/nsswitch.conf and change…
hosts: files mdns4_minimal [NOTFOUND=return] dns
If anybody wants to write me an
ansible script to do that I would totally buy you a beer.
Too late, I had to write it myself, container.yml.