VMware Communities
Surendramj
Contributor
Contributor
Jump to solution

Smart card reader is not connecting properly after the VM is resumed from sleep using vmrum commands

Smart card reader is not connecting properly after the VM is resumed from sleep using vmrum commands

Scenario is,

1. Smart card reader is connected to VM with card inserted in it

2. Initiate a guest suspend from the VM toolbar

3. Now resume the VM using vmrun command in host machine

     vmrun -T ws start xxx.vmx

Now, VM is resumed but the smart card reader which was connected earlier is not working properly in VM i.e, sometimes after resume smart card reader driver is getting uninstalled and some other times, smart card connected to the reader is not available in VM

My requirement is after resume, smart card reader remain connected to VM with previously installed driver and smart card.

Kindly help to solve this issue.

Host OS: Win 2012 R2

VM OS: Win 10 x64

Thanks!!

0 Kudos
1 Solution

Accepted Solutions
Surendramj
Contributor
Contributor
Jump to solution

Dear All,

I got a workaround for this issue. By adding " usb.autoConnect.device0 = "0xVID:0xPID" " this statement to the VMX file, solves this issue i.e., whenever VM is wake up by clicking the resume link or using vmrun commands, it connects the respective device automatically and it is loading properly with its driver. Smart card as well getting detected after sleep\hibernate without any issues.

VID & PID is device's respective IDs which can be seen in device manager properties "Device Instance path".

For more info on this, visit VMware KB: Automatically connecting USB devices at virtual machine power on

~Surendra

View solution in original post

1 Reply
Surendramj
Contributor
Contributor
Jump to solution

Dear All,

I got a workaround for this issue. By adding " usb.autoConnect.device0 = "0xVID:0xPID" " this statement to the VMX file, solves this issue i.e., whenever VM is wake up by clicking the resume link or using vmrun commands, it connects the respective device automatically and it is loading properly with its driver. Smart card as well getting detected after sleep\hibernate without any issues.

VID & PID is device's respective IDs which can be seen in device manager properties "Device Instance path".

For more info on this, visit VMware KB: Automatically connecting USB devices at virtual machine power on

~Surendra