using virtual here client in windows docker container

Hi,

We have been using a windows container as a Jenkins slave to build our source code, and we would like to use virtual here CLI command to retrieve a USB dong license hosted on our VirtualHere server.

Jenkins build job gets stuck when container try to execute command C:\vhui64.exe and C:\vhui64.exe -t "USE,IT-OPS-07-S.8" (address of usb dongle).
When i manually run command in container interactive session

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Install> C:\vhui64.exe
PS C:\Install> C:\vhui64.exe -t "USE,IT-OPS-07-S.8"
PS C:\Install> The VirtualHere Client drivers will be installed.

Please check the taskbar during this process, the installation may need your authorization.
FAILED

it doesn't return cursor and i have to manually press "Enter". It might be reason why jenkins hung because the powershell command not considered completed?

Can you please help?
Thanks

#2

I dont think windows containers support kernel drivers. You need to use a proper vm for this. Not a container. VirtualHere keeps wanting to install its driver but its not possible in a winodws container

#3

Hi Michael,
Thanks for your reply. If i run docker interactive session, i can retrieve USB dongle successfully as following

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Install>
PS C:\Install>
PS C:\Install>
PS C:\Install>
PS C:\Install> C:\vhui64.exe
PS C:\Install> The VirtualHere Client drivers will be installed.
PS C:\Install>
PS C:\Install> e taskbar during this process, the installation may need your authorization.
PS C:\Install>
PS C:\Install> C:\vhui64.exe -t "USE,IT-OPS-07-S.8"
PS C:\Install> OK
PS C:\Install>
PS C:\Install>
PS C:\Install> C:\vhui64.exe -t "LIST"
PS C:\Install> VirtualHere Client IPC, below are the available devices:
(Value in brackets = address, * = Auto-Use)

Windows Hub (IT-OPS-07-S:7575)

--> GHS-5 (IT-OPS-07-S.18)
--> GHS-3 (IT-OPS-07-S.10)
*--> GHS-2 (IT-OPS-07-S.8) (In-use by you)

PS C:\Install> ntly off
Auto-Use All currently off
Reverse Lookup currently off
Reverse SSL Lookup currently off
VirtualHere Client not running as a service

The problem i observed is even it successfully grab usb dongle, the command doesn't return for some reason ...

#4

Yes it doesnt return because it needs to install drivers and it cant because windows containers dont support drivers.