Connect USB device from Command Line

Discussion in 'Installation and Configuration of Parallels Desktop' started by CristianoP, Jul 7, 2009.

  1. CristianoP

    CristianoP Bit poster

    Messages:
    2
    Hi,

    how can I connect a specific USB device to a VM using the command line (i.e. through prlctl)? I can't figure this out from the man page.

    Thanks,

    Cristiano Paris
     
  2. desgael

    desgael Pro

    Messages:
    344
  3. CristianoP

    CristianoP Bit poster

    Messages:
    2
    Thank you for your reply. I already came across the page you mentioned and the corresponding manual. Nevertheless, I can't figure out how to attach a USB device to a running VM through the prlctl command.

    I can start it but I don't know how to specify a USB device (say, the embedded bluetooth controller) in the "prlctl --add-device usb" command. Using the GUI, I could manage to have the BT controller automatically attached at start, but this doesn't happen if I start it from the command line using the "prlctl start" command: the BT device is not attached to the VM.

    I even opened the XML config files and found all the parameters related to the BT controller, but I can't figure out how to specify those parameters on the command line...

    That would be great to do so, as I want to write script that automatically start the VM and run a program inside it.

    Thank you!
     
  4. taenzerme

    taenzerme Bit poster

    Messages:
    2
    I know this thread is quite old but as I came here via Google looking for solution perhaps it might help someone in the future:

    prlctl set "Windows XP" --device-connect "Lightman Pro"

    "Windows XP" is the name of the VM
    "Lightman Pro" the name of the USB device.

    Keep in mind that after resuming a VM via command line put in a sleep command for like 5 seconds before running the set command.
     

Share This Page