You can pass through the device to a native zone if you like.
You need to manual edit the zone using zonecfg and use the 'add device'
command.
Due to SmartOS running from ramdisk the usb device order was not stable
for me causing some problems. (APC SmartUPS)
I abandoned that approach and switched to a RPi which failed last year
and I haven't setup a replacement yet. I was thinking about using socat
to forward it from the GZ to a zone over the network.
Socat is available I just need to write a proper smf for this.
Alternatively I'm looking into a smf that will reconfigure the zone
automaticall on boot to have the correct usb device. Not sure which
methode would be easier.
Regards
Jorge
On 2016-06-04 05:40, John Croix 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