Using VirtualHere run as services (both server and client) and having a VM windows 11 always connecting to a specific USB

I have installed the VirtualHere on a Windows 2019 server as a service. (I purchased a license). On another physical 2019 server I have a VM windoes 11 running.

On that VM I installed the cliend with the -b option to install as a service. I am trying to get this VM to always connect to a USB port that has a dongle in it. 

Note I am able to get this VM to connect to that port through the UI. I need to get it to connect automatically when the VM is rebooted.

 

#2

When the client is running as a service, start again so you can see the GUI then just right click on the device you want to automatically use immediately and select Auto-Use Device

 

#3

I tried the auto-use devise.

  1. so when I reboot this VM it will reconect to this USB.

I have noticed the following behavior.

This VM is a dedicated application then needs to connect with to the same USB which has a Dongle. which is running a webserver.

I have noticed that if I log on to this VM anf access the software all works. 

If I access the webserver I get to the server login page but cannot log into the application. I gegt an access violation which is because it cannot comunicate with the USB dongle

 

I guess the question is how do I start the client so that anyone accessing the webserver will have access to that USB dongle

#4

You need to install the virtualhere client as a service using the -i argument or (install via the GUI). The -b argument turns off autofind when it installs the server, and so it wont find any server automatically.

To fix (install via the GUI):

Run the virtualhere client, Right click USB Servers->Uninstall Service. Run the client again and right click USB Servers->Install Service and make sure the Auto-Find is checked.