question

DavidEcho-4023 avatar image
0 Votes"
DavidEcho-4023 asked DavidEcho-4023 answered

Hyper-V VMConnect web camera in VM?

I have a few VMs in Hyper-V. I want one of these VMs to be able to use my host web cam, which is a USB Logitech cam, for use in MS Teams.


Using gpedit on the host, I set:
Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Connection Client\RemoteFX USB Device Redirection\Allow RDP redirection of other supported RemoteFX devices from this computer = Enabled for Administrators and users

Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Device and Resource Direction\Do not allow video capture redirection = Disabled

Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Device and Resource Direction\Do not allow supported Plug and Play device redirection = Disabled

Performed "gpupdate /force" and rebooted host

In theory, this should allow me to run "vmconnect.exe localhost <vmname> /edit", and then click "Show Options", click the "Local Resources" tab, Click the "More" button, and then see my camera under "Other supported RemoteFX USB Devices".

In reality, I have seen this option exactly twice ever. I have zero idea what magic I performed to make it show. On those two occasions, I was able to allow the camera in the VM connect session, and the setting remained for a fairly long time. BUT, that setting is sometimes "lost". But right now, I cannot find any way to apply that setting for the VM again. I have tried setting ant unsetting the gpedit settings, rebooting host and guest VM countless times, nothing makes the option available.

So, is there some reliable repeatable action that I can perform to make this option appear so that I can use my host USB web camera in the Hyper-VM guest through the VMConnect?

Note that this option is actually available on the mstsc.exe UI, but I am not able to use MSTSC.exe to connect to this VM, and am restricted to using VMConnect.exe.

Note also that this "issue" appears to be fuly the fault of the host, not the guests. On the two occasions where "Other supported RemoteFX USB devices" appeated for the VM, it appeared for all VMs, which are all quiet different configurations. When it disappeared, it disappeared for all guests.

Thank you for any help.
David

windows-server-hyper-v
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DavidEcho-4023 avatar image
0 Votes"
DavidEcho-4023 answered

OK, for anyone who finds this in the future, I have resolved this issue.
At some point in the past, I had removed the Logitech Capture software from the VM where I wanted to use the Logitech camera. This was a mistake on my part.

Given a setup as outlined in my initial question, all I needed extra was to re-install the Logitech Capture software on the VM.

I think what I have discovered is actually a bug in VMConnect.exe. When Logitech Capture was removed from the VM, while the Logitech USB web cam was attached to that VM with RemoteFX USB redirection, it broke RemoteFX USB redirection for all VMs. The entire RemoteFX USB redirection feature stopped working for all available USB devices and for all VMs.

All I did today was notice that Logitech Capture was not on the VM (and therefore the driver was not on the VM), reinstall it, and the RemoteFX USB redirection feature returned for all 4 of my VMs, and for all 3 of the available USB devices.

Hope this helps.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DavidEcho-4023 avatar image
0 Votes"
DavidEcho-4023 answered

84365-vmconnect-remotefx.png

This is the desired outcome when runing vmconnect.exe with the /edit parameter, and selecting the local resources to make available to the VM. I have seen this twice, but when I did, it disappeared very quickly afterwards.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

XiaoweiHe-MSFT avatar image
0 Votes"
XiaoweiHe-MSFT answered

Hi,

On the Hyper V settings, please check if we enabled "Enhanced session mode":

84427-image.png

And on the VM, please check if we checked "guest services":

84376-image.png

Thanks for your time!
Best Regards,
Anne


If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (60.1 KiB)
image.png (57.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DavidEcho-4023 avatar image
0 Votes"
DavidEcho-4023 answered DavidEcho-4023 edited

Hello Anne

Yes, "Allow enhanced session mode is ticked in the policy setting as you pictured

Also, every VM that I have has Guest Services Installed.

And finally, I do have "Enhanced Session Mode" ticked under the "User setting in my Hyper-V Settings. This is supposed to default all connections to use Enhanced Session Mode instead of Basic mode. In reality, it does not actually do that. Often when I use VMConnect.exe to connect to my VM, it defaults to Basic Mode. I just flick it over to Enhanced Session mode. Either way, the "Other supported RemoteFX USB devices" still does not show.

Thank you
David

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DavidEcho-4023 avatar image
0 Votes"
DavidEcho-4023 answered

I do note this little blurb in the red box in the image. The VM is running Windows 10, Enterprise Edition, 19042.867.

84493-image.png

Is there any documentation on the "may require additional configuration inside the virtual machine"?

I also note that when I use vmconnect.exe to connect to the VM, it dows show a little printer icon in the title bar, and hovering over it says "Select devices to use.". But If I click on that icon, nothing happens.

84406-image.png



image.png (29.5 KiB)
image.png (1.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DavidEcho-4023 avatar image
0 Votes"
DavidEcho-4023 answered

I will note some ODD behaviour from VMConnect.

If I open Hyper-V Manager and right click on my VM, and click "Connect", then the connection is opened in Enhanced Session Mode.

But, If I instead open Hyper-V Manager and right click on my VM, and click "Edit Session Settings", then I can go in and attempt to add the Camera as a device in the VM, but, the connection is ALWAYS in basic mode when I click "Edit Session Settings". I would assume that the camera cannot be added in Basic mode, because RemoteFX Usb sharing is not possible in Basic Mode.

I do not know if this indicates the issue, but the behaviour is counterintuitive.

If I instead run
vmconnect.exe localhost myvm /edit
then i will see the edit session settings window, and the resulting session seems to be in Enhanced session mode. But again, I can still not select my camera for use in the VM.

David

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.