HYPER V with minimum GUI or even just a CLI

Page 2 of 2 FirstFirst 12

  1. Posts : 5,478
    2004
       #11

    jimbo45 said:
    I'm looking at running a few VM's from an almost "Server" like system -- I obviously don't want to shell out big $$$$'s for Windows SERVER and it in any case would be overkill for what I want to try out.

    Is it possible using Windows 10 Pro to re-install it with basically just the Hypervisor content - or is there a version of Windows that is just basically the Hypervisor from which I can then create my VM's.
    If you turn on Hyper-V your Windows is already running as a VM - that is how it works.

    If you want to run the free Hyper-V server then you can but you will run immediately into some problems. Firstly you don't get a free license for any VM. Next it is command line only. Next you can not add Wi-Fi or Bluetooth or anything. So none of your VMs will be able to see these things. Even if you have a license for Windows 10 Pro it will not work well if you have decided your underlying hypervisor doesn't have access to any of this.

    You would probably be better off running 10 Pro (or Enterprise or Server) as the host.

    You can add things to the free Hyper-V server but it is hard work - similar to adding things to PE. You need to add registry entries and then import various mum from current (LTSB 2016 at the moment) version.


    I added Wi-Fi if you are interested a couple of releases ago - here it is:
    Code:
    # Registry Changes
    reg load HKLM\WinPE_SYSTEM $WorkDir\mount\windows\system32\config\SYSTEM
    reg load HKLM\WinPE_SOFTWARE $WorkDir\mount\windows\system32\config\SOFTWARE
    
    $RegKey="HKLM\WinPE_SOFTWARE\Microsoft\NetSh"
    reg add  $RegKey /v wlancfg /t REG_SZ /d wlancfg.dll /f
    
    $RegKey="HKLM\WinPE_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Svchost"
    reg add $RegKey /v LocalSystemNetworkRestricted /t REG_MULTI_SZ /d Netman\0hidserv\0svsvc\0dot3svc\0wlansvc /f
    
    # wlansvc
    reg add HKLM\WinPE_SOFTWARE\Microsoft\WlanSvc\bmr /ve
    $RegKey="HKLM\WinPE_SOFTWARE\Microsoft\WlanSvc\PowerProfiles\ClassAC"
    reg add $RegKey /v PowerIdle /t REG_DWORD /d 15 # numbers are decimal
    reg add $RegKey /v PowerTail /t REG_DWORD /d 280
    reg add $RegKey /v PowerTxRx /t REG_DWORD /d 400
    reg add $RegKey /v TailDuration /t REG_DWORD /d 300
    $RegKey="HKLM\WinPE_SOFTWARE\Microsoft\WlanSvc\PowerProfiles\ClassB"
    reg add $RegKey /v PowerIdle /t REG_DWORD /d 15
    reg add $RegKey /v PowerTail /t REG_DWORD /d 280
    reg add $RegKey /v PowerTxRx /t REG_DWORD /d 400
    reg add $RegKey /v TailDuration /t REG_DWORD /d 300
    $RegKey="HKLM\WinPE_SOFTWARE\Microsoft\WlanSvc\PowerProfiles\ClassG"
    reg add $RegKey /v PowerIdle /t REG_DWORD /d 15
    reg add $RegKey /v PowerTail /t REG_DWORD /d 280
    reg add $RegKey /v PowerTxRx /t REG_DWORD /d 400
    reg add $RegKey /v TailDuration /t REG_DWORD /d 300
    $RegKey="HKLM\WinPE_SOFTWARE\Microsoft\WlanSvc\PowerProfiles\ClassN"
    reg add $RegKey /v PowerIdle /t REG_DWORD /d 15
    reg add $RegKey /v PowerTail /t REG_DWORD /d 280
    reg add $RegKey /v PowerTxRx /t REG_DWORD /d 400
    reg add $RegKey /v TailDuration /t REG_DWORD /d 300
    
    $RegKey="HKLM\WinPE_SYSTEM\ControlSet001\services\WlanSvc"
    reg add $RegKey /v DisplayName /d "@%SystemRoot%\System32\wlansvc.dll,-257" 
    reg add $RegKey /v ErrorControl /t REG_DWORD /d 1
    reg add $RegKey /v Group /d TDI
    reg add $RegKey /v ImagePath /t REG_EXPAND_SZ /d "%SystemRoot%\system32\svchost.exe -k LocalSystemNetworkRestricted"
    reg add $RegKey /v Start /t REG_DWORD /d 2 # (automatic start) in clean install system this is 3(manual start)
    reg add $RegKey /v Type /t REG_DWORD /d 32
    reg add $RegKey /v Description /d "@%SystemRoot%\System32\wlansvc.dll,-258" 
    # Remove the Windows Connection Manager (wcmsvc) service dependany
    reg add $RegKey /v DependOnService /t REG_MULTI_SZ /d nativewifip\0RpcSs\0Ndisuio
    reg add $RegKey /v ObjectName /d LocalSystem
    reg add $RegKey /v ServiceSidType /t REG_DWORD /d 1
    reg add $RegKey /v RequiredPrivileges /t REG_MULTI_SZ /d "SeChangeNotifyPrivilege\0SeImpersonatePrivilege\0SeAuditPrivilege\0SeTcbPrivilege\0SeDebugPrivilege"
    reg add $RegKey /v FailureActions /t REG_BINARY /d 805101000000000000000000030000001400000001000000c0d4010001000000e09304000000000000000000
    $RegKey="HKLM\WinPE_SYSTEM\ControlSet001\services\WlanSvc\Parameters"
    reg add $RegKey /v ServiceDll /t REG_EXPAND_SZ /d "%SystemRoot%\System32\wlansvc.dll" 
    reg add $RegKey /v ServiceDllUnloadOnStop /t REG_DWORD /d 1
    reg add $RegKey /v ServiceMain /d WlanSvcMain
    $RegKey="HKLM\WinPE_SYSTEM\ControlSet001\services\WlanSvc\Parameters\ComInterfaceProviders"
    reg add $RegKey /v IHNetIcsSettings /d "{46C166AA-3108-11D4-9348-00C04F8EEB71}"
    $RegKey="HKLM\WinPE_SYSTEM\ControlSet001\services\WlanSvc\Parameters\EapolKeyIpAddress"
    reg add $RegKey /v LocalAddress /d "192.168.173.1"
    reg add $RegKey /v PrefixLength /t REG_DWORD /d 24
    $RegKey="HKLM\WinPE_SYSTEM\ControlSet001\services\WlanSvc\Parameters\OEM\SystemCapabilities"
    reg add $RegKey /ve #***************** no value
    $RegKey="HKLM\WinPE_SYSTEM\ControlSet001\services\WlanSvc\Parameters\OneXAuthenticator"
    reg add $RegKey /ve /t REG_EXPAND_SZ /d "%SystemRoot%\System32\WcnEapAuthProxy.dll"
    $RegKey="HKLM\WinPE_SYSTEM\ControlSet001\services\WlanSvc\Parameters\VendorSpecificIEProviders\02166b50-0459-44d9-9ec1-073431b7d9c9"
    reg add $RegKey /v Path /t REG_EXPAND_SZ /d "%SYSTEMROOT%\System32\TetheringIeProvider.dll" 
    $RegKey="HKLM\WinPE_SYSTEM\ControlSet001\services\WlanSvc\Parameters\VendorSpecificIEProviders\4D50EE01-EEE0-4E5D-9A41-2F5F32044192"
    reg add $RegKey /v Path /t REG_EXPAND_SZ /d "%SYSTEMROOT%\System32\WlanSvc.dll" 
    $RegKey="HKLM\WinPE_SYSTEM\ControlSet001\services\WlanSvc\Parameters\VendorSpecificIEProviders\B7D94B4D-5DB1-4E70-B5C3-DD003EEEBE66"
    reg add $RegKey /v Path /t REG_EXPAND_SZ /d "%SYSTEMROOT%\System32\WiFiDisplay.dll" 
    $RegKey="HKLM\WinPE_SYSTEM\ControlSet001\services\WlanSvc\Parameters\WFDProvPlugin"
    reg add $RegKey /ve /t REG_EXPAND_SZ /d "%SystemRoot%\System32\wfdprov.dll"
    reg add $RegKey /v DllEntryPoint /d WFDProvGetInfo 
    $RegKey="HKLM\WinPE_SYSTEM\ControlSet001\services\WlanSvc\Security"
    reg add $RegKey /v Security /t REG_BINARY /d 0100048098000000a40000000000000014000000020084000500000000001400fd01020001010000000000051200000000001800ff010f0001020000000000052000000020020000000014008d010200010100000000000504000000000014008d01020001010000000000050600000000002800700000000106000000000005500000002e25d9e85a67cd58c504f3dc32c0cb09ab704571010100000000000512000000010100000000000512000000
    $RegKey="HKLM\WinPE_SYSTEM\ControlSet001\services\WlanSvc\VirtualizationManager"
    reg add $RegKey /v WindowsPushNotificationPlatformClsid /d "0C9281F9-6DA1-4006-8729-DE6E6B61581C"
    
    # Native Wifi Filter (dependancy of wlansvc)
    $RegKey="HKLM\WinPE_SYSTEM\ControlSet001\services\NativeWifiP"
    reg add $RegKey /v DisplayName /d "@%SystemRoot%\System32\drivers\nwifi.sys,-101" 
    reg add $RegKey /v ErrorControl /t REG_DWORD /d 1
    reg add $RegKey /v Group /d NDIS
    reg add $RegKey /v ImagePath /t REG_EXPAND_SZ /d "system32\DRIVERS\nwifi.sys"
    reg add $RegKey /v Start /t REG_DWORD /d 3
    reg add $RegKey /v Type /t REG_DWORD /d 1
    
    # vwififlt
    $RegKey="HKLM\WinPE_SYSTEM\ControlSet001\services\vwififlt"
    reg add $RegKey /v DisplayName /d "@%SystemRoot%\System32\drivers\vwififlt.sys,-259" 
    reg add $RegKey /v ErrorControl /t REG_DWORD /d 1
    reg add $RegKey /v Group /d NDIS
    reg add $RegKey /v ImagePath /t REG_EXPAND_SZ /d "System32\drivers\vwififlt.sys"
    reg add $RegKey /v Start /t REG_DWORD /d 1
    reg add $RegKey /v Type /t REG_DWORD /d 1
    reg add $RegKey /v Description /d "@%SystemRoot%\System32\drivers\vwififlt.sys,-260"
    reg add $RegKey /v NdisMajorVersion /t REG_DWORD /d 6
    reg add $RegKey /v NdisMinorVersion /t REG_DWORD /d 50
    reg add $RegKey /v DriverMajorVersion /t REG_DWORD /d 1
    reg add $RegKey /v DriverMinorVersion /t REG_DWORD /d 0
    $RegKey="HKLM\WinPE_SYSTEM\ControlSet001\services\vwififlt\Parameters"
    reg add $RegKey /v DefaultFilterSettings /t REG_DWORD /d 1
    
    # vwifimp not in core image
    #$RegKey="HKLM\WinPE_SYSTEM\ControlSet001\services\vwifimp"
    #reg add $RegKey /v Type /t REG_DWORD /d 1
    #reg add $RegKey /v Start /t REG_DWORD /d 3
    #reg add $RegKey /v ErrorControl /t REG_DWORD /d 1
    #reg add $RegKey /v Tag /t REG_DWORD /d 15
    #reg add $RegKey /v ImagePath /t REG_EXPAND_SZ /d "\SystemRoot\System32\drivers\vwifimp.sys"
    #reg add $RegKey /v DisplayName /d "@%SystemRoot%\System32\drivers\vwifimp.sys,-261" 
    #reg add $RegKey /v Group /d NDIS
    #reg add $RegKey /v Owners /t REG_MULTI_SZ /d "netvwifimp.inf"
    #reg add $RegKey /v TextModeFlags /t REG_DWORD /d 1
    #reg add $RegKey /v NdisMajorVersion /t REG_DWORD /d 6
    #reg add $RegKey /v NdisMinorVersion /t REG_DWORD /d 40
    #reg add $RegKey /v DriverMajorVersion /t REG_DWORD /d 1
    #reg add $RegKey /v DriverMinorVersion /t REG_DWORD /d 1
    #$RegKey="HKLM\WinPE_SYSTEM\ControlSet001\services\vwififlt\Enum"
    #reg add $RegKey /v Count /t REG_DWORD /d 1
    #reg add $RegKey /v NextInstancet /t REG_DWORD /d 1
    #reg add  $RegKey /v 0 /d "{5d624f94-8850-40c3-a3fa-a4fd2080baf3}\vwifimp_wfd\5&e58d9b&0&01"
    
    # WdiWifi
    $RegKey="HKLM\WinPE_SYSTEM\ControlSet001\services\wdiwifi"
    reg add $RegKey /v DisplayName /d "WDI Driver Framework" 
    reg add $RegKey /v ErrorControl /t REG_DWORD /d 1
    reg add $RegKey /v ImagePath /t REG_EXPAND_SZ /d "system32\DRIVERS\wdiwifi.sys"
    reg add $RegKey /v Start /t REG_DWORD /d 3
    reg add $RegKey /v Type /t REG_DWORD /d 1
    
    # legacy WiFi adapter - recommended by http://pcloadletter.co.uk/2011/12/03/windows-pe-builder-script-for-waik-including-wifi-support/
    $RegKey="HKLM\WinPE_SYSTEM\ControlSet001\Enum\Root\LEGACY_WLANSVC"
    reg add $RegKey /v NextInstance /t REG_DWORD /d 1 # numbers are decimal
    reg add $RegKey\0000 /v Service /t REG_SZ /d Wlansvc
    reg add $RegKey\0000 /v Legacy /t REG_DWORD /d 1
    reg add $RegKey\0000 /v ConfigFlags /t REG_DWORD /d 0
    reg add $RegKey\0000 /v Class /t REG_SZ /d LegacyDriver
    reg add $RegKey\0000 /v ClassGUID /t REG_SZ /d "{8ECC055D-047F-11D1-A537-0000F8753ED1}"
    reg add $RegKey\0000 /v DeviceDesc /t REG_SZ /d "@%SystemRoot%\System32\wlansvc.dll,-257"
    $RegKey="HKLM\WinPE_SYSTEM\ControlSet001\services\WlanSvc\Enum"
    reg add $RegKey /v 0 /t REG_SZ /d "Root\LEGACY_WLANSVC\0000"
    reg add $RegKey /v Count /t REG_DWORD /d 1
    reg add $RegKey /v NextInstance /t REG_DWORD /d 1
    
    reg unload HKLM\WinPE_SYSTEM
    reg unload HKLM\WinPE_SOFTWARE
    Not saying it can't be done but it isn't trivial.
      My Computer


  2. Posts : 11,247
    Windows / Linux : Arch Linux
    Thread Starter
       #12

    Hi there
    @lx07

    Thanks for your reply and code -- very helpful but :

    Wifi isn't an issue for me at all on the VM's as I connect the server via a LAN cable to a 1 Gb/s switch. I then have another short piece of Lan cable from the switch that plugs into a Netgear Nighthawk ex700 5 port wifi extender which give perfectly good speed on wifi and I can access the VM's by wifi. The extender connects to the router in the usual way.

    The server has 2 good 10 Gb/s ethernet connections (would be nice to get that speed !!!)

    Cheers
    jimbo
      My Computer


 

  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 06:35.
Find Us




Windows 10 Forums