Virtualisation in RHEL & USB device allocation to VMs

Latest response

Hi.  Technically not RHEV, but virtualisation within RHEL, so not sure if this needs to be moved.

RHEL 6.2

The issue is, I have multiple USB devices (soundcards, and also tested with USB license dongles) attached to the host.  Say for example I have 2 USb soundcards (both with same device/vendor id), one on 001:003 and the other on 001:004, with the goal of having each one attached to a seperate VM.  If I go through and add each one to a VM through virt-manager, they both come up actually listed as the same bus/device id.  eg, both VMs will say they have 001:003. (or 001:004)

 

If I check the log files of each VM and look at the command that it is using to start up the machine, the -usb-device is the same for each one.

 

I've attempted with a different USb device, in this case there were 3 USB licence dongles.  2 the same and 1 different.  Attempting to add these to various guests, even if I chose one of the 2, it would add the 1 that was different. (hope this makes sense.)

 

In short, I think there might be a bug with the way USb devices are added.

 

I have tried manually editing the xml config for each guest with the <address bus='001' device='003'> and it makes no difference, they both still try to use the same soundcard.

 

As an aside, can someone please advise if it is possible to modify the command that the VMs use to start up?  Or is it a consolidation of the XML file that it puts together at startup?

 

Thanks in advance,
Owen.

Responses