Running NUT in an LXC container
Jim Klimov edited this page Jul 20, 2022
·
1 revision
Details:
- https://alioth-lists.debian.net/pipermail/nut-upsuser/2022-July/012884.html
- https://discuss.linuxcontainers.org/t/issue-usb-passthrough-using-network-ups-tools-nut-within-a-container-for-an-apc-ups/14641/1
One lesson learned - it is possible even with USB pass-through, but special care must be taken with unprivileged container since NUT drivers drop privileges by default and would map to another user (who should have access to device node on the host).
Welcome to the Network UPS Tools (NUT) project Wiki, and feel free to contribute tricks and insights.
While there are several good entries in the menu, ones referenced most frequently in issue discussions include:
- Building NUT for in-place upgrades or non-disruptive tests
- Technicalities: Customizing (NUT) config files and scripts delivered by packaging
- Links to distribution packaging recipes and repository sections
- Troubleshooting
upsdrvctl
drivers not starting ("insufficient permissions on everything") possibly due to nut-driver-enumerator (NDE) services having been there before you with NUT 2.8.x - Changing NUT daemon debug verbosity
- Building NUT integration for Home Assistant
- Running NUT in an LXC container
- Troubleshooting eventual disconnections (Data stale) and CyberPower Systems (CPS) know-how
- NUT for Windows
- NUT HCL and DDL
- Code contributions, PRs, PGP and DCO
Also keep in mind the documentation links from NUT website and the FAQ in particular.