I want to get the USB VMs to work, but I use keyboard and mouse via USB, not PS/2, so it will not permit me to configure it.
I wish to attach specific USB Ports to Dom0, which is 1 of the bus's. And the other USB bus's to the USBVM, but I can't find out what device to attach to Dom0 to allow this.
I know what my USB3 is because that's a PCIe card. So that's easy enough to push to a USBVM. But the others, not so easy.
Is it possible to assign specific USB ports instead of whole USB bus's?
My PC has 10 USB Bus's.
My keyboard and mouse are on bus 10, which is PCI device XXXX.XX.X and I left that one on Dom0.
However I now have another issue...
"Error starting VM 'sys-usb': Requested operation is not valid: PCI device 0000:00:1a.0 is in use by driver xenlight, domain sys-usb"
What does this mean?
It does this for each PCI device. I have removed them 1 by 1 just to verify.
Why won't it just assign the device?
FYI: I have plenty of adapters lying around. But thanks for thinking about that.
I have USB1 and USB2 hubs. (according to lsusb)
> Or does "lspci" just show two USB PCI devices (one 1.1, and one 2.0)?
attached, view it for yourself. :}
in that list though, I only have 1 keyboard and 1 mouse plugged in.
I will do some more with more devices plugged in so you can see where the devices attach to.
I have 2 ports on the back on 1 bus, 2 ports on another.
2 ports on the front on another bus.
I have a PCIE card with 4xUSB3 ports.
I also have 1xUSB Internal (can be used as a boot device, as a Qubes boot device even)
My monitor is plugged into the USB3 card, which has 4 USB ports and a Multimedia card reader in it.
My other 2 USB port monitor is NOT plugged in.
I have 2xUSB3 on the front that aren't plugged in.
Did some more testing, you were right, I only have 3.
I have 2 bus's on the motherboard...
I plugged a USB drive into each set to find out which were which.
But that doesn't explain why it isn't working when I even just attach my USB3 card to the USBVM.
That alone should work, but it doesn't.
So this means I should be able to attach the USB3 card, and the 4 other USB to the USBVM, leaving 2 attached to Dom0 for my use.
So why does it have the error?
> Only having one USB bus myself, also used for root, I haven't tried this.
> I have a USB PCI card I've been tempted to use for similar reasons. But
> once again, it was given to me out of the blue, which doesn't put it in my
> "trusted hardware" chain.
> Not that *any* use bus or device should ever be trusted, the main
> motivation for us stuffing them in a VM. :)
It is annoying isn't it?
> > I have 2 bus's on the motherboard...
> > I plugged a USB drive into each set to find out which were which.
> > But that doesn't explain why it isn't working when I even just attach my
> > USB3 card to the USBVM.
> > That alone should work, but it doesn't.
> Agreed, it should work, from my understanding. You reboot after assigning
rebooted, rebuilt, checked it wasn't on any other guests..
> There's some protection about PCI devices not being allowed to go back to
> dom0 for reassignment after use, to protect against potentially
> compromised devices then touching dom0 (to DMA-attack away):
> Not sure if that's relevant or not. I'm over my head with this, and just
> guessing, so I probably shouldn't be giving advice, lol.
Nope, that isn't relevant. Interesting, but not relevant. Thanks. :}
> > So this means I should be able to attach the USB3 card, and the 4 other
> > USB to the USBVM, leaving 2 attached to Dom0 for my use.
> Makes sense to me. (Again, getting those darn keyboard/mice off of USB
> and onto PS/2 certainly wouldn't hurt figuring things out.)
It wouldn't change anything.
If I can't assign a PCI-e USB3 4 port card to the VM and have it start... Bit of a problem?
> > So why does it have the error?
> dmesg have any hints? (Or is that where the error messages your are
> seeing are coming from in the first place?)
No hints, no tips, no help button.
Or assign a storage device to a guest AS a USB device not a physical device?