FreeNAS on ESXi: EATON UPS not starting

GreaseMonkey88

Dabbler
Joined
Dec 8, 2019
Messages
27
Hi guys,

I'm trying to get my Eaton UPS Ellipse ECO running. According to the NUT project, the device is supported.

You can see my system specs in my signature below, FreeNAS 11.2 running on ESXI 6.7.
  • The UPS ist connected to the USB 2.0 port of the board. Yes, I tried different ports/cables.
  • In ESXi I added the USB device to the FreeNAS VM in the VM config. I also tried to pass through the hole USB controller to the FreeNAS VM, then it works, but that is not an option, because I boot ESXi off an USB stick.

Heres the basic UPS configuration in FreeNAS, ignore the Aux Parameter user = "root" for now:

01.png

02.png


I get the following output errors:

Dec 30 12:13:58 freenas root: /usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut Dec 30 12:13:58 freenas upsmon[4895]: UPS [EATON_UPS]: connect failed: Connection failure: Connection refused Dec 30 12:13:58 freenas upsmon[4895]: Communications with UPS EATON_UPS lost Dec 30 12:14:03 freenas upsmon[4895]: UPS [EATON_UPS]: connect failed: Connection failure: Connection refused Dec 30 12:14:03 freenas upsmon[4895]: UPS EATON_UPS is unavailable Dec 30 12:14:08 freenas upsmon[4895]: UPS [EATON_UPS]: connect failed: Connection failure: Connection refused Dec 30 12:14:13 freenas upsmon[4895]: UPS [EATON_UPS]: connect failed: Connection failure: Connection refused Dec 30 12:14:18 freenas upsmon[4895]: UPS [EATON_UPS]: connect failed: Connection failure: Connection refused Dec 30 12:14:24 freenas upsmon[4894]: upsmon parent: read

Seems to me like a permission problem. When I add 'user = "root"' to the NUT config, I get the following output errors:

Dec 30 12:15:34 freenas upsd[5720]: Can't connect to UPS [EATON_UPS] (usbhid-ups-EATON_UPS): No such file or directory Dec 30 12:15:34 freenas upsmon[5738]: Poll UPS [EATON_UPS] failed - Driver not connected Dec 30 12:15:34 freenas upsmon[5738]: Communications with UPS EATON_UPS lost Dec 30 12:15:39 freenas upsmon[5738]: Poll UPS [EATON_UPS] failed - Driver not connected Dec 30 12:15:39 freenas upsmon[5738]: UPS EATON_UPS is unavailable Dec 30 12:15:44 freenas upsmon[5738]: Poll UPS [EATON_UPS] failed - Driver not connected Dec 30 12:15:49 freenas upsmon[5738]: Poll UPS [EATON_UPS] failed - Driver not connected Dec 30 12:15:52 freenas upsd[5721]: mainloop: Interrupted system call Dec 30 12:16:00 freenas upsmon[5737]: upsmon parent: read


Thanks in advance for your help!
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I would have expected the port to be either just USB or /dev/TTY0 (or TTYx)

Based on the message "No such file or directory", I would play around with the port information until something works.
 

Evertb1

Guru
Joined
May 31, 2016
Messages
700
I have a "lab" system I use for all kinds of development and test work. It runs a FreeNAS VM as well. As I need it to stay up for weeks sometimes, it has its own UPS (APC Back-UPS Pro 1200). I have been struggling with the USB ports as well. Passing through the onboard USB host controller was not an option. Hmm... problem. Then I recalled that I still should have an PCIEX 1 USB 3 controller somewhere. Back from the days that USB 3 was not available on most motherboards. Found it, put it in the lab box and yes, it was found and passthrough capable. Problem solved. I don't know the brand anymore but it was fairly cheap and based on a host controller from NEC corporation (uPD70200 USB 3.0 host controller). I still needed to do some work to let FreeNAS signal to the host that it was time to shutdown but this post was helpful with that. I tested the scenario the hard way (just pulled out the AC plug from the UPS) and it worked like a charm.
 
Last edited:

GreaseMonkey88

Dabbler
Joined
Dec 8, 2019
Messages
27
I thought of just plugging in an USB 3 PCIe card as well, but I'm not really satisfied with this solution. Sure they are cheap on Ebay, but I'm sure it's possible somehow. The PCIe card should be the last try.
 

Evertb1

Guru
Joined
May 31, 2016
Messages
700
Well, what can I say. I owned the card already, an open PCIe slot was available and my patience was wearing thin. Easy decision really. :)
 
Last edited:
Top