John,
Device passthrough into an LX zone is not likely to achieve the result
you desire.  We do not provide meaningful emulation of the device
interfaces which UPS-related Linux programs would expect.  This
includes aspects such as ioctls, major/minor numbering, and
appropriate entries in devfs/procfs/sysfs.

I believe that some folks drop a minimal pkgsrc footprint into the GZ
in order to install some of the UPS-interfacing software which is
available.  That may be the best approach.

With regards,

--Patrick


On 3 June 2016 at 22:40, John Croix <[email protected]> wrote:
> I'm currently sitting in the dark in my house without power, pondering the 
> need for an automatic means to shutdown my SmartOS server. When power went 
> off, I raced upstairs to manually shut it down prior to draining the UPS, and 
> I'd like to avoid a repeat scenario.
> 
> It seems like the best way to do this might be to have a dedicated LX zone 
> that runs the APC UPS daemon software. I can use it to touch a file when 
> required, and, in the global zone, monitor the file system for the presence 
> of that file. When the file appears, a power off command is issued. I just 
> need to be able to have the local zone access the UPS via USB connection. 
> Access to the LX file system from the global zone for monitoring is obviously 
> not an issue.
> 
> In short, I need to find out how to do the following:
>   Determine which device in the global zone the UPS is attached to via USB 
> cable
>   Pass the device down to a local zone (I assume via some zonecfg commands)
>   Determine which device to point the daemon to in the local zone
> Can anybody provide some info concerning the above issues?
> 
> Thanks in advance,
> John
> 
> Sent from my iPad
> 


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to