Public bug reported:

Hello,

I'm trying to use an ActivIdentity USB key card for VPN connectivity.
The key is working fine in a native Win7x64 but I fail to get it working
when the host is P2V-ed into a  VirtualBox (resp VMware) VM guest in
Ubuntu 11.10.

Setup is as follows: Host is Ubuntu 11.10 x64 with distro supplied pcsc-
lite packages:

root:~# dpkg -l  | grep -i pcsc
ii  libpcsc-perl                           1.4.12-1build1                       
   Perl interface to the PC/SC smart card library
ii  libpcsclite1                           1.7.2-2ubuntu2                       
   Middleware to access a smart card using PC/SC (library)
ii  pcsc-tools                             1.4.17-1                             
   Some tools to use with smart cards and PC/SC
ii  pcscd                                  1.7.2-2ubuntu2                       
   Middleware to access a smart card using PC/SC (daemon side)

The card is recognized OK by "pcsc_scan" (text output in the
"pcsc_scan.out" file in the attached log tar ball). The only problem (?)
is that when running "pcsc_scan" it powers the USB (LED turns green),
reads the content,  but then it hangs , and the key powers off (led
turns  red). Also to note is that running "pcsc_scan" spawns  an "pcscd
--auto-exit" process


1) Running Win7x64 in VirtualBox (v4.1) 

Before starting the VM "pcsd" is launched with "pcscd --foreground
--debug --apdu 2>&1  | tee pcscd_debug--virtualbox.out"  (see attached
"pcscd_debug--virtualbox.out"). Running it powers on the card on (LED
turns green) but after 4.5--5sec it powers the card down (LED turns RED
but still on). See line 51 in the attached "pcscd_debug--virtualbox.out"
log).  Funnily enough (?) running "pcsc_scan" does report the same
status but LED is still red (key is not powered on ?).

After starting the VM in Virtualbox I can insert  "ActivIdentity
Activsym_Key [010B]" USB device in the VM. Problem is doing that it
doesn't power on the card and "pcscd" keeps spinning on the lines:

[...]
ccid_usb.c:620:WriteUSB() write failed (2/4): -1 Device or resource busy
ifdwrapper.c:346:IFDStatusICC() Card not transacted: 612
eventhandler.c:303:EHStatusHandlerThread() Error communicating to: Activkey Sim 
00 00
[...]

(see "pcsd_debug--virtualbox.out")


2) VMware Workstation (8.0.1) 

Things are a bit more interesting.  Started "pcscd" "pcscd --foreground
--debug --apdu 2>&1  | tee pcscd_debug--vmware.out" (the "pcscd_vmware-
debug.out" attached in the tar ball). After VM has started there are
three USB devices: "Shared Activkey Sim 00 00"  (the only one listed
with an option "Insert SmartCard"), "Activkey_Sim" and (seeingly
VMware's own) "DigitalPersona USB device".

Upon inserting in VM the first one (i.e. "Shared Activkey Sim 00 00")
the following happens: the card is powered on (LED turns green) but
trying to access the card in the Win7x64 guest times out.

So, all in all I'm unable to use that USB key in a VM guest no matter if
it's VirtualBox or VMware.  Any suggestions ?

Let me know if there is any more input you need (and how to collect it).

TIA for any help,

Florian

** Affects: pcsc-lite (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/925683

Title:
  ActivIdentity USB token not powering/working in a VM (VirtualBox /
  VMware)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/925683/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to