Re: [vserver] smartest USB UPS setup with vserver and nut?

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Tue 13 Nov 2007 - 12:33:28 GMT
Message-ID: <20071113123328.GA20159@MAIL.13thfloor.at>

On Mon, Nov 12, 2007 at 07:42:28AM -0600, Michael S. Zick wrote:
> On Mon November 12 2007 07:33, Jon Bendtsen wrote:
> > Hi
> >
> > I have 3 UPS'es and only one serial port in my machine. Luckily 2
> > of the UPS'ses support a USB connection. I use nut
> > http://www.networkupstools.org/
> > to monitor the UPS'ses.
> >
> > The single serial port is no problem getting to work. It's harder with
> > the USB ones. How do i smartest get these to work inside a vserver
> > guest?
> >
> > If i only knew what device to make inside the guests /dev structure,
> > but isnt one of the problems with USB that they can change the name?
> >
>
> The udev (or older hotplug) runs on the host, look up the rule for that
> device in the rules in you distribution - change them to write to the
> correct */dev (host view) directory.
> Most distributions have the rules structured so you can add a custom
> rule rather than alter the default rules.

while this is the correct approach to handle it
properly, you could get away with simply copying
the proper devices into the guest on guest startup

(assuming that they do not changewhile the guest
is running)

best,
Herbert

> Mike
> >
> >
> > JonB
> >
> >
Received on Tue Nov 13 12:33:39 2007

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 13 Nov 2007 - 12:33:43 GMT by hypermail 2.1.8