1. Joined : Nov 2016
    Posts : 3
    Windows 10 Pro x64
       2 Weeks Ago #1

    Windows 10 Host Hyper-V RemoteFX VGPU Gaming-


    Hello,

    Sorry if this post already exist somewhere else, I checked through all of the category's pages and didn't find anything related.

    Reasoning behind this whole endeavor:
    I want to separate Programming, gaming and DBA activities from my main OS.
    Basically I'm OCD and don't want to "dirty" my windows installation with too much software.

    I read about Docker and application containerization/virtualization but have no clue how to do it, thus i chose this method.

    So, here is the setup,

    I have Windows 10 Pro installed on my computer (host, directly installed on the drive, no other OS's installed or dual booted).
    I have enabled hyper-V on it.
    I created a virtual machine with Windows 10 in Hyper-V.

    Gaming VM Specs
    - 100% of Processor used (4 cores)
    - 8GB of RAM
    - 80GB vhdx (can be expanded if required)
    - Standard Network adapter (not legacy or fiber)
    - All Integration Services available (all checkboxes checked)
    - RemoteFX VGPU adapter installed - linked to my GTX 970 card - 1024MB of Video Memory selected
    - RDP enabled

    I installed Sims 4 on this VM and started testing. (I know, I know, living with girlfriend)
    The game lags.
    Specifically frame skipping (30 FPS or lower) at medium settings; on main OS 60+ FPS no lag on Ultra.

    No other game(s) and/or application(s) running on the VM.

    Now my questions.

    Is it possible to fix this?
    Is it possible to do some sort of direct pass from the VM to the GPU (I know that the entire thing, including the main OS, sits on the Hyper-V layer between the hardware and the software)
    Are there any GPO fixes to force something similar to this?
    Are there any registry hacks that may enable some sort of passthrough?
    Is it possible to force some sort of driver to substitute the RemoteFX driver in the VM?

    I have read about Terminal Services, but have no clue what or how or where.
    Also read about the new features of Server 2016 but it's still in beta.

    Anyone have a clue to this, or even if it's possible?
      My System SpecsSystem Spec


  2. Joined : Dec 2015
    Posts : 2,289
    Windows10
       2 Weeks Ago #2

    Why not simply install a second instance of windows 10 in a virtual hard drive rather than a virtual machine?

    This just creates a single .vhd file on your current installation which emulates a second hard drive and al files for the second instance are included in the .vhd file. When you boot to the vhd version, it uses al the native host drivers rather than emulated drivers via a vm.
      My System SpecsSystem Spec


  3. Joined : Nov 2016
    Posts : 3
    Windows 10 Pro x64
       2 Weeks Ago #3

    That sounds like a good idea, but wouldn't that create a second entry in the bootloader?
    I did some research into that, it seems that I can do pretty much what I want with the bootloader entries, that is really awesome.
    Thanks a lot.

    Now, sorry if I seem ungrateful, I just want to see if there are any other options out there.
    How can I get a VM as close to bare metal performances as possible.
      My System SpecsSystem Spec


  4. Joined : Dec 2015
    Posts : 2,289
    Windows10
       2 Weeks Ago #4

    A second boot entry is no big deal. Easy to add or remove.

    To create vhd do this

    create usb flash drive of windows 10 installer using media creation tool.

    boot from usb drive

    At install now, press shift+f10 to jump to command prompt

    Type following (can change names, size in GB, drive etc).

    c:

    cd\

    md vhd

    diskpart

    create vdisk file=c:\vhd\win10.vhd maximum=50000 type=fixed

    select vdisk file=c:\vhd\win10.vhd

    attach vdisk

    exit

    exit

    and now install OS in new vhd.

    This creates new boot entry for you.

    To remove, just delete vhd and remove boot entry from boot tab in msconfig.

    I doubt there is any vm that could outperform using vhd with native pc. Even the best (hyper-v) would be slower.
      My System SpecsSystem Spec


  5. Joined : Oct 2013
    A Finnish ex-pat in Germany
    Posts : 9,032
    Windows 10 Pro
       2 Weeks Ago #5

    cereberus said: View Post
    To create vhd do this.
    An alternative, maybe the easiest method is simply mount (double click) a Hyper-V virtual machine's VHD or VHDX file on host, open elevated command prompt and enter command bcdboot X:\Windows (replace X with drive letter given to Windows partition when VHD is mounted).

    This adds the VHD or VHDX to Windows boot menu as native boot VHD.

    More: Hyper-V - Native Boot VHD - Windows 10 Forums

    Kari
      My System SpecsSystem Spec


  6. Joined : Nov 2016
    Posts : 3
    Windows 10 Pro x64
       2 Weeks Ago #6

    Solved


    Hi,

    Thanks for the help.
    The solutions provided are really good.
    Just booted one of my VM's directly and it works flawlessly.
    Thank MS that Windows 10 is smart enough to detect the hardware changes and reconfigure accordingly.
      My System SpecsSystem Spec


  7. Joined : Dec 2015
    Posts : 2,289
    Windows10
       2 Weeks Ago #7

    Kari said: View Post
    An alternative, maybe the easiest method is simply mount (double click) a Hyper-V virtual machine's VHD or VHDX file on host, open elevated command prompt and enter command bcdboot X:\Windows (replace X with drive letter given to Windows partition when VHD is mounted).

    This adds the VHD or VHDX to Windows boot menu as native boot VHD.

    More: Hyper-V - Native Boot VHD - Windows 10 Forums

    Kari
    Great tutorial. I always had issue with vhds not being able to be upgraded with new builds in native boot mode. I knew you could upgrade in a vm. It never occurred to me to simply load vm in hyper-v, upgrade vhd and then reload in native mode. I guess this shows how superior Windows 10 is in handling native and hyper-v drivers when switching between vm mode or native mode.

    I shall try this with my insider version which I have always run in hyper-v as I did not want to mess up partitions by installing as a normal dual boot option.

    This allows me to use vhd natively but use hyper-v to upgrade. Don't know why I never thought of it!

    I was using viboot and macrium and using method you showed me to sysprep and generalise hyper-v image to be able to install image in a native vhd but I obviously over complicated the solution!!
      My System SpecsSystem Spec


  8. Joined : Oct 2013
    A Finnish ex-pat in Germany
    Posts : 9,032
    Windows 10 Pro
       2 Weeks Ago #8

    cereberus said: View Post
    I was using viboot and macrium and using method you showed me to sysprep and generalise hyper-v image to be able to install image in a native vhd but I obviously over complicated the solution!!
    Both methods (viBoot and Hyper-V) have their own advantages. Macrium viBoot is practical when you have an image made from a physical installation and you want to service it (upgrade, add / remove programs and files etc.) outside said physical installation, then update it fast simply by restoring the in viBoot updated image.

    Hyper-V is great if you want to run Windows on VHD on physical hardware; just create the vm in Hyper-V, shut it down after installation, mount on host and run one simple command to add it to boot menu.

    Important thing to remember, as also told in tutorial, is that you have to remove all checkpoints from a vm in Hyper-V before you can mount it! Mounting a vm with existing checkpoints will corrupt the VHD.

    Kari
      My System SpecsSystem Spec


  9. Joined : Dec 2015
    Posts : 2,289
    Windows10
       2 Weeks Ago #9

    Kari said: View Post
    Both methods (viBoot and Hyper-V) have their own advantages. Macrium viBoot is practical when you have an image made from a physical installation and you want to service it (upgrade, add / remove programs and files etc.) outside said physical installation, then update it fast simply by restoring the in viBoot updated image.

    Hyper-V is great if you want to run Windows on VHD on physical hardware; just create the vm in Hyper-V, shut it down after installation, mount on host and run one simple command to add it to boot menu.

    Important thing to remember, as also told in tutorial, is that you have to remove all checkpoints from a vm in Hyper-V before you can mount it! Mounting a vm with existing checkpoints will corrupt the VHD.

    Kari
    Another scotch lined up if you are ever in Aberdeen ��!
      My System SpecsSystem Spec


 


Similar Threads
Thread Forum
Solved LAN - 1 Gb/s on VM, 100 Mb/s on W10 HOST (HYPER -V)
HI there particularly Kari as you are the resident expert on HYPER-V here !!!! HYPER -V have 2 physical identical INTEL NIC 1Gb/s Wired Lan connectors -- VM gives me 1Gb/s, Windows Host only 100 Mb/s ??? Have switched NIC's and cables...
Virtualization
KVM Host --W10 VM with HYPER -V running another VM (Nesting)
Hi there. It seems some CPU's will handle HYPER-V in a VM running on a Host where a HYPERVISOR (KVM in this case) is already running. One needs to make a few mods otherwise booting up the VM running UNDER the HYPER-V (the 2nd level VM) will...
Virtualization
Hyper V not Showing Host Machine
Hyper V Manager Not showing Host Machine so i can make virtual machine screen shoot is below 81869
Virtualization
HYPER-V won't install properly on W10 HOST
Hi there I can't install HYPER-V properly on a W10 HOST -- gets message about something in BIOS not enabled. Installs fine on W8.1 . On W10 the boxes are greyed out. Cheers jimbo
Virtualization
HYPER-V won't install properly on W10 HOST
Network and Sharing
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 13:35.
Find Us
Twitter Facebook Google+



Windows 10 Forums