Page 1 of 1
usb device automatically assign
Posted: 4. Jan 2012, 16:20
by mischka2k
hello,
I would like to permanently assign a usb-stick to a virtual machine, so this assigned automatically if the vm is restarted or loses connection to usb-device.
the devicefilter can not make any clear definition as prnt+port or over uuid.
What are my options here?
Re: usb device automatically assign
Posted: 5. Jan 2012, 12:46
by mpack
I'm not sure what your question is. You are obviously aware of device filters, hence you know that it's possible to create on which is tailored to fit a particular device class exactly. As you asking about dedicating a particular USB port? If so then AFAIK USB has no such feature.
Re: usb device automatically assign
Posted: 5. Jan 2012, 14:00
by mischka2k
thanks for the answer.
the problem of the device-filter is that I only assigns the device of this kind.
I would like to assign a specific device and be sure that no two identical devices are assigned to a vm.
Therefore, I am looking for a unique property by which I could assign the usb-device.
Re: usb device automatically assign
Posted: 5. Jan 2012, 18:37
by ChipMcK
mischka2k wrote:I am looking for a unique property by which I could assign the usb-device.
Serial Number?
Re: usb device automatically assign
Posted: 8. Jan 2012, 17:29
by mischka2k
I have alreade looked at the serial nr, all my sticks have the serial "no serial".
Re: usb device automatically assign
Posted: 8. Jan 2012, 17:55
by mpack
In that case you cannot distinguish two USB devices of that type.
Re: usb device automatically assign
Posted: 9. Jan 2012, 14:28
by mischka2k
is it possible to change the name of an usb-device over udev and the uuid?