[prev in list] [next in list] [prev in thread] [next in thread] 

List:       centos-virt
Subject:    Re: [CentOS-virt] Hot adding USB devices to guests at a fixed address
From:       Stephen Harris <lists () spuddy ! org>
Date:       2013-11-27 21:50:33
Message-ID: 20131127215033.GA29451 () mercury ! spuddy ! org
[Download RAW message or body]

On Tue, Nov 26, 2013 at 11:45:43AM -0500, R P Herrold wrote:
> On Tue, 26 Nov 2013, Stephen Harris wrote:
> 
> >   % cat /etc/udev/rules.d/90-owon.rules 
> >   ACTION=="add", \
> >     SUBSYSTEM=="usb", \
> >     SYSFS{idVendor}=="5345", \
> >     SYSFS{idProduct}=="1234", \
> >     RUN+="/usr/bin/virsh attach-device XP_VM1 /etc/libvirt/HotPlug/owon.xml"
> 
> > Now this works; I plug the device in and the guest sees it.
> 
> most USB persistent enumeration are done by the device serial 
> number, which should appear along with the Vendor and Product.
> 
> Can you expose that through the udev rules as well?

udev merely triggers virsh to expose the device; the actual connection
of the device into the VM is done by the "attach-device" rule.

However I don't seem to be able to see the serial number inside the VM
and I can't work out how to expose it.

Hmm.

-- 

rgds
Stephen
_______________________________________________
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic