I spent a few hours yesterday on a Proxmox LXC (un-priviledged) trying to setup a NUT Server to monitor my office's two UPSes (both Cyber Power). Things were going swimmingly until near the end when try as I might I couldn't convince the NUT monitor to start. I won't go into detail here as my presumptive feeling was ... maybe I should be using a full VM and not this LXC container. That leads me to now and my general confusion about how to best setup a NUT Server.
- I have setup a Debian 11 VM in Proxmox; base install of a CloudImage template I use
- After installing `nut`, `nut-client`, and `nut-server` (I plan on having this node as a server but also want the client services available)
- I then went into the Proxmox hardware settings and had no problem adding the UPS's to the VM:
- After rebooting the VM (and then eventually the full Proxmox host) I am baffled to see that commands like `lsusb`, `usb-devices`, and `nut-scanner` return absolutely nothing:
- I then read the WIKI article about USB devices and VMs and this got me thinking that I should use the proxmox CLI to assign these USB devices to the VM in question. I did this and from the following output I believe it would believe it took hold:
- Sadly the VM commands shown above produce the same results (after reboot of the VM). In fact, I'd have thought the CLI results and UI results should be identical but then hope springs eternal (only to be crushed by inevitable winter).
- I then -- in a serendipitous moment -- tried typing lsusb -t and the "-t" part apparently forced the command to give me some feedback which was that "/sys/bus/usb" doesn't exist! This is above my pay grade ... i'm not a beginner but I'm not a pro. I would have though that some "base" directory would be created for any VM or at least when I added the USB devices it would create this directory.
- Does anyone have a strong point of view on whether a VM or an LXC container is more suitable for running a NUT Server? If so ... why?
- Does anyone know why I can't get any USB info from within the VM whereas on the LXC container it was immediately available?
- Based on my discovery of the missing "/sys/bus/usb" directory ... who's responsibility is this to create this and am I correct in saying that it must exist for the VM to probe the USB info?
- Does anyone have any good instructional content or configuration files for setting this up? I used Techno Tim's video and notes as a starting point and then found this blog post helpful too
Last edited: