Use Local Devices and Resources on Hyper-V Virtual Machine in Windows  

    Use Local Devices and Resources on Hyper-V Virtual Machine in Windows

    Use Local Devices and Resources on Hyper-V Virtual Machine in Windows

    How to Use Local Devices and Resources on Hyper-V Virtual Machine in Windows 10
    Published by Category: Virtualization
    14 Mar 2019
    Designer Media Ltd


    How to Use Local Devices and Resources on Hyper-V Virtual Machine in Windows 10

    information   Information
    Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems (aka: guests) can be used and managed just as if they were physical computer systems, however they exist in a virtualized and isolated environment.

    You can give a virtual machine access to a computer's local resources, like a removable USB flash drive, when you use Virtual Connection Manager (VMConnect). To make this happen, turn on enhanced session mode on the Hyper-V host, use VMConnect to connect to the virtual machine, and before you connect, choose the local resource that you want to use.

    Enhanced session mode provides the following new capabilities for Virtual Machine Connection sessions:
    • Display Configuration
    • Audio redirection
    • Printer redirection
    • Full clipboard support (improved over limited prior-generation clipboard support)
    • Smart Card support
    • USB Device redirection
    • Drive redirection
    • Redirection for supported Plug and Play devices

    You might want use a computer's local resources to:
    • Troubleshoot a virtual machine without a network connection to the virtual machine.
    • Copy and paste files to and from the virtual machine in the same way you copy and paste using a Remote Desktop Connection (RDP).
    • Sign in to the virtual machine by using a smart card.
    • Print from a virtual machine to a local printer.
    • Test and troubleshoot developer applications that require USB and sound redirection without using RDP.


    This tutorial will show you how to use local drives, devices, and resources on a Hyper-V virtual machine with enhanced session mode in Windows 10.

    Note   Note
    To be able to use a computer's local resources on a virtual machine:


    EXAMPLE: Local devices and resources on Hyper-V VM from host PC
    Click image for larger version. 

Name:	Host_PC.png 
Views:	415 
Size:	51.6 KB 
ID:	93212
    Click image for larger version. 

Name:	VM.jpg 
Views:	481 
Size:	156.1 KB 
ID:	93211


    Here's How:

    1. Open Hyper-V Manager.

    2. Select the Hyper-V host (ex: "BRINK-DESKTOP") in the left pane, double click/tap on the virtual machine (ex: "Non Insider W10") that you want to connect and use enhanced session mode to use local devices and resources on. (see screenshot below)

    Click image for larger version. 

Name:	Hyper-V_Manager.jpg 
Views:	528 
Size:	125.0 KB 
ID:	93227

    3. Click/tap on the Start button to start the virtual machine (ex: "Non Insider W10"). (see screenshot below)

    Name:  Start.png
Views: 9126
Size:  18.3 KB

    4. Click/tap on Show Options in the VMConnect dialog when it automatically opens. (see screenshot below)

    Name:  Hyper-V_Enhanced_Session_Local_Resources-1.png
Views: 9155
Size:  25.8 KB

    Note   Note
    If you don't see the VMConnect dialog and the virtual machine is currently running without enhanced session, then click/tap on View on the menu bar of the virtual machine, and click/tap on the unchecked Enhanced session to open the VMConnect dialog.

    Click image for larger version. 

Name:	Hyper-V_Enhanced_Session.jpg 
Views:	487 
Size:	171.7 KB 
ID:	93213

    If you don't see the VMConnect dialog and the virtual machine is currently running with enhanced session (checked), then open an elevated command prompt, type the command below, and press Enter to open a new connection for the virtual machine with the VMConnect dialog. Close the command prompt and the other virtual machine connection without the VMConnect dialog.

    vmconnect localhost "VM name" /edit

    NOTE: Substitute VM name in the command above with the actual name (ex: "Non Insider W10") of the virtual machine.

    For example: vmconnect localhost "Non Insider W10" /edit

    Click image for larger version. 

Name:	vmconnect.png 
Views:	338 
Size:	14.0 KB 
ID:	93214


    5. Check or uncheck the Save my settings for future connections to this virtual machine box for what you want. (see screenshot below)
    Note   Note
    If you check this box, this virtual machine will always automatically start in enhanced session mode using the VMConnect settings you set in the steps below.

    If you want to uncheck this box later, you can use the second part with the command in the note box under step 4 above to edit the VMConnect settings of this virtual machine.


    Name:  Hyper-V_Enhanced_Session_Local_Resources-2.png
Views: 9171
Size:  16.0 KB

    6. Click/tap on the Local Resources tab, and check or uncheck if you want to use the local PC's Printers and/or Clipboard in the virtual machine. (see screenshot below)

    Name:  Hyper-V_Enhanced_Session_Local_Resources-3.png
Views: 9101
Size:  19.6 KB

    7. Click/tap on the More button. (see screenshot below)

    Name:  Hyper-V_Enhanced_Session_Local_Resources-4.png
Views: 9149
Size:  15.8 KB

    8. Check or uncheck the boxes of the local PC's devices and resources for what you want to use in the virtual machine, and click/tap on OK. (see screenshot below)

    Name:  Hyper-V_Enhanced_Session_Local_Resources-5.png
Views: 9118
Size:  12.6 KB

    9. Click/tap on Connect to start the virtual machine in enhanced session mode using the local PC's devices and resources that you checked. (see screenshot below)

    Name:  Hyper-V_Enhanced_Session_Local_Resources-6.png
Views: 9101
Size:  21.9 KB


    That's it,
    Shawn


  1.    #1

    Thank you very much!
      My ComputerSystem Spec

  2. Brink's Avatar
    Posts : 37,014
    64-bit Windows 10 Pro build 18860
    Thread Starter
       #2

    I'm glad it could help zzuftt, and welcome to Ten Forums.
      My ComputersSystem Spec

  3.    #3

    Thank You Brink it's working OK.
    But what if I add a RemoteFx 3D adapter for my virtual machine??
    In my case all local resources are disappearing and
    vmconnect localhost "VM name" /edit
    gives not the ConnectToBox back.
    Do you have a solution to have RemteFX3D and local resources - enhanced mode at the same time?
      My ComputerSystem Spec

  4. Brink's Avatar
    Posts : 37,014
    64-bit Windows 10 Pro build 18860
    Thread Starter
       #4

    karmantyu said: View Post
    Thank You Brink it's working OK.
    But what if I add a RemoteFx 3D adapter for my virtual machine??
    In my case all local resources are disappearing and
    vmconnect localhost "VM name" /edit
    gives not the ConnectToBox back.
    Do you have a solution to have RemteFX3D and local resources - enhanced mode at the same time?
    Welcome to Ten Forums.

    I'm afraid I don't know, but hopefully someone may.
      My ComputersSystem Spec

  5.    #5

    Yes, maybe someone can help me later. At the moment I think there is no option to use enhanced mode (sharing local resources through RDP) and RemoteFX 3D (sharing local GPU resources through RDP) at the same time. It could be a not documented system/design limitation, not expected to be removed in the near future. Everybody should decide what is more important, flexible connection to local resources or GPU accelerated rendering.
      My ComputerSystem Spec


 

Tutorial Categories

Use Local Devices and Resources on Hyper-V Virtual Machine in Windows Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


Related Threads
How to Export Hyper-V Virtual Machines in Windows 10 Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems (aka: guests) can be used and managed just as if they were physical computer systems,...
How to Import Hyper-V Virtual Machines Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems (aka: guests) can be used and managed just as if they were physical computer systems, however they...
How to Create Shortcut of Hyper-V Virtual Machine in Windows 8 and 10 There's nothing wrong in running the Hyper-V Manager and launch your virtual machines from there. However, creating a shortcut for each vm you have you can start them fast...
How to Create a Hyper-V Virtual Machine Connection shortcut in Windows 10 The Windows 10 Pro, Enterprise, and Education editions include the Hyper-V virtualization technology. Hyper-V enables running virtualized computer systems on top of a...
Hey- I've been troubleshooting this for ages, and am getting no-where fast! :mad: I'm basically trying to get a webcam to be available in the Windows 10 Pro Gen2 VM using Hyper-V. My host is Windows 10 Pro (on the same PC). I've read that...

Tags for this Thread

Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 07:37.
Find Us