Skip to content

Commit 2686837

Browse files
author
Simonx Xu
authored
Merge pull request #9528 from v-lianna/CI_6966
AB#6966 Create yubikey-usb-device-hyper-v-virtual-machine.md
2 parents 7a771dc + ee87f8b commit 2686837

2 files changed

Lines changed: 78 additions & 0 deletions

File tree

support/windows-server/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2778,6 +2778,8 @@ items:
27782778
href: ./virtualization/upgrade-computers-hyper-v-role.md
27792779
- name: Windows Server 2019 Hyper-V host minroot behavior
27802780
href: ./virtualization/windows-server-hyper-v-host-minroot-behaviors.md
2781+
- name: YubiKey USB device doesn't appear in a Hyper-V virtual machine
2782+
href: ./virtualization/usb-device-hyper-v-virtual-machine.md
27812783
- name: Integration components
27822784
items:
27832785
- name: Degraded integration services message for non-Windows guests
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
title: YubiKey USB Device Doesn't Appear in a Hyper-V Virtual Machine
3+
description: Resolves an issue where a YubiKey USB device doesn't appear in a Hyper-V VM. Provides guidance on using a YubiKey USB device for hardware encryption in a Hyper-V VM.
4+
ms.date: 09/09/2025
5+
manager: dcscontentpm
6+
audience: itpro
7+
ms.topic: troubleshooting
8+
ms.reviewer: kaushika, simonw, v-lianna
9+
ms.custom:
10+
- sap:virtualization and hyper-v\installation and configuration of hyper-v
11+
- pcy:WinComm Storage High Avail
12+
---
13+
# YubiKey USB device doesn't appear in a Hyper-V virtual machine
14+
15+
This article helps resolve an issue where a YubiKey USB device doesn't appear in a Hyper-V virtual machine (VM) and provides guidance on using a YubiKey USB device for hardware encryption in a Hyper-V VM. It explains how to achieve USB passthrough in Hyper-V, a feature not natively supported, and offers alternative methods to enable this functionality.
16+
17+
> [!NOTE]
18+
> Before proceeding, confirm:
19+
>
20+
> * You have administrative access to both the Hyper-V host and the VM.
21+
> * The YubiKey USB device is connected to the Hyper-V host.
22+
> * The VM is running an operating system that supports YubiKey.
23+
> * Remote Desktop Protocol (RDP) is enabled on the VM if you use the RDP method.
24+
25+
When you use Hyper-V, a YubiKey USB device doesn't appear in the VM or can't be accessed, even though it's connected to the Hyper-V host.
26+
27+
## Hyper-V doesn't natively support USB passthrough to VMs
28+
29+
This issue occurs because Hyper-V doesn't include built-in support for USB passthrough. This limitation prevents VMs from being directly accessing USB devices connected to the host. If you're accustomed to this functionality on other virtualization platforms, such as VMware, you might need clarification on how to achieve similar results in Hyper-V.
30+
31+
## Resolution 1: Use Enhanced Session Mode
32+
33+
Enhanced Session Mode enables interaction between the host and the VM, allowing USB devices to be redirected to the VM. To use Enhanced Session Mode, follow these steps:
34+
35+
1. Open **Hyper-V Manager** on the host.
36+
2. Select the Hyper-V host in the left-hand pane.
37+
3. In the right-hand pane, select **Hyper-V Settings**.
38+
4. Under **Server**, ensure that **Enhanced Session Mode Policy** is enabled.
39+
5. Under **User**, ensure that **Enhanced Session Mode** is enabled.
40+
6. Start the VM you want to connect the YubiKey to.
41+
7. Once the VM is running, open it in Enhanced Session Mode:
42+
43+
1. Close the VM window if it's already open.
44+
2. Reconnect to the VM and select **Show Options**.
45+
3. Navigate to the **Local Resources** tab.
46+
4. Under **Local devices and resources**, select **More**.
47+
5. Expand the **Other supported Plug and Play (PnP) devices** section and select the YubiKey device.
48+
6. Select **OK** and reconnect to the VM.
49+
50+
The YubiKey should now be accessible in the VM.
51+
52+
## Resolution 2: Use RDP
53+
54+
RDP allows USB devices connected to the host to be redirected to the VM. To use RDP, follow these steps:
55+
56+
1. Configure the VM to allow RDP connections:
57+
58+
1. Sign in to the VM and enable Remote Desktop in the system settings.
59+
2. Allow the necessary firewall rules for Remote Desktop.
60+
61+
2. From the Hyper-V host, open the **Remote Desktop Connection** application.
62+
3. In the RDP connection window, select **Show Options**.
63+
4. Navigate to the **Local Resources** tab.
64+
5. Under **Local devices and resources**, select **More**.
65+
6. Expand the **Other supported Plug and Play (PnP) devices** section and select the YubiKey device.
66+
7. Select **OK** and connect to the VM using RDP.
67+
68+
Once connected via RDP, the YubiKey will be redirected and available in the VM.
69+
70+
If neither solution resolves the issue, consider the following points:
71+
72+
* Verify that the YubiKey is supported by the VM's operating system.
73+
* Ensure that the USB device is functioning correctly on the host machine.
74+
* Check for any additional configuration requirements specific to the YubiKey model.
75+
76+
For further assistance, consult the YubiKey documentation or contact Microsoft Support.

0 commit comments

Comments
 (0)