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

Page 1 of 3 123 LastLast
    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
    19 Apr 2020
    Designer Media Ltd

    How to Use Local Devices and Resources on Hyper-V Virtual Machine 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, 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.

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

    * The Hyper-V host (ex: your PC) must have Enhanced session mode policy and Enhanced session mode settings turned on.
    * The Hyper-V virtual machine (guest) must have Remote Desktop Services enabled and run Windows Server 2012 R2, Windows Server 2016, Windows 8.1, or Windows 10 as the guest operating system.



    EXAMPLE: Local devices and resources on Hyper-V VM from host PC
    Use Local Devices and Resources on Hyper-V Virtual Machine in Windows-host_pc.png
    Use Local Devices and Resources on Hyper-V Virtual Machine in Windows-vm.jpg



    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)

    Use Local Devices and Resources on Hyper-V Virtual Machine in Windows-hyper-v_manager.jpg

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

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

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

    Use Local Devices and Resources on Hyper-V Virtual Machine in Windows-hyper-v_enhanced_session_local_resources-1.png

    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.
    Use Local Devices and Resources on Hyper-V Virtual Machine in Windows-hyper-v_enhanced_session.jpg

    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

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


    5 Check or uncheck the Save my settings for future connections to this virtual machine box for what you want. (see screenshot below)

    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.

    Use Local Devices and Resources on Hyper-V Virtual Machine in Windows-hyper-v_enhanced_session_local_resources-2.png

    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)

    Use Local Devices and Resources on Hyper-V Virtual Machine in Windows-hyper-v_enhanced_session_local_resources-3.png

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

    Use Local Devices and Resources on Hyper-V Virtual Machine in Windows-hyper-v_enhanced_session_local_resources-4.png

    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)

    Use Local Devices and Resources on Hyper-V Virtual Machine in Windows-hyper-v_enhanced_session_local_resources-5.png

    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)

    Use Local Devices and Resources on Hyper-V Virtual Machine in Windows-hyper-v_enhanced_session_local_resources-6.png


    That's it,
    Shawn






  1. Posts : 1
    Windows 10
       #1

    Thank you very much!
      My Computer


  2. Posts : 68,678
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

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


  3. Posts : 2
    WINDOWS 10
       #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 Computer


  4. Posts : 68,678
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #4

    karmantyu said:
    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 Computers


  5. Posts : 2
    WINDOWS 10
       #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 Computer


  6. Posts : 2
    Windows 10
       #6

    hi ..
    I have gone through the procedure you have mentioned. But my guest system is Win XP, is there any solution where we can use the resource of host system to virtual system( Generation1, XP system.)
      My Computer


  7. Posts : 68,678
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #7

    m534753 said:
    hi ..
    I have gone through the procedure you have mentioned. But my guest system is Win XP, is there any solution where we can use the resource of host system to virtual system( Generation1, XP system.)

    Hello m534753,

    It doesn't appear your system meets the requirements.

    Enhanced session mode isn't available for generation 1 (unless Windows 10 Pro, Education, or Enterprise) virtual machines or for virtual machines that run non-Windows operating systems.

    The Hyper-V virtual machine (guest) must have Remote Desktop Services enabled and run Windows Server 2012 R2, Windows Server 2016, Windows 8.1, or Windows 10 as the guest operating system.

    You might check this below to see if it may help:

    Make USB devices accessible to a Windows XP virtual machine - TechRepublic
      My Computers


  8. Posts : 2
    Windows 10
       #8

    ok, Accepted.
    Can we do this sharing, if we add the virtual system in network. Can you please guide how to add in the network. I just wanted to create internal network so that the virtual image will be able to communicate the host system.
      My Computer


  9. Posts : 68,678
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #9

    m534753 said:
    ok, Accepted.
    Can we do this sharing, if we add the virtual system in network. Can you please guide how to add in the network. I just wanted to create internal network so that the virtual image will be able to communicate the host system.

    I'm not sure about that either, but would be a good question to post in the Virtualization forum area to see someone may know.
      My Computers


 

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 Discussions
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 19:55.
Find Us




Windows 10 Forums