UID:41870
性别:保密
居住地:
博客:
关于我:
加入: 2023-07-15
  • image.png

        如上图,是我在B站北京麟卓视频下面的留言,也是通过了各种方法来解决这个问题,但是起初都没解决问题,下面来说一下用atlas os遇到 【hyper-v关联服务首次开启,请重启电脑后继续安装!】的解决方法。

        找到 【Atlas3. Configuration1. General ConfigurationHyper-V and VBS】,以管理员方式运行

    【Enable Hyper-V and VBS.cmd,然后重启,即可完成安装,此方法适用于安装Atlas os的玩家。

        如果你没有备份Atlas优化的文件夹,可以复制以下这段代码

    @echo off
    setlocal EnableDelayedExpansion
    
    whoami /user | find /i "S-1-5-18" > nul 2>&1 || (
    	call RunAsTI.cmd "%~f0" "%*"
    	exit /b 0
    )
    
    :: Enable Hyper-V with DISM
    DISM /Online /Enable-Feature:Microsoft-Hyper-V-All /Quiet /NoRestart
    
    bcdedit /set hypervisorlaunchtype auto > nul 2>&1
    bcdedit /deletevalue vm > nul 2>&1
    :: Some registry entry causes this to make an install unbootable, need to look into
    :: bcdedit /set vsmlaunchtype Auto > nul 2>&1
    bcdedit /deletevalue loadoptions > nul 2>&1
    
    :: Apply registry changes
    :: https://admx.help/?Category=Windows_10_2016&Policy=Microsoft.Windows.DeviceGuard::VirtualizationBasedSecurity
    reg delete "HKLMSOFTWAREPoliciesMicrosoftWindowsDeviceGuard" /v "EnableVirtualizationBasedSecurity" /f
    reg delete "HKLMSOFTWAREPoliciesMicrosoftWindowsDeviceGuard" /v "RequirePlatformSecurityFeatures" /f
    reg delete "HKLMSOFTWAREPoliciesMicrosoftWindowsDeviceGuard" /v "HypervisorEnforcedCodeIntegrity" /f
    reg delete "HKLMSOFTWAREPoliciesMicrosoftWindowsDeviceGuard" /v "HVCIMATRequired" /f
    reg delete "HKLMSOFTWAREPoliciesMicrosoftWindowsDeviceGuard" /v "LsaCfgFlags" /f
    reg delete "HKLMSOFTWAREPoliciesMicrosoftWindowsDeviceGuard" /v "ConfigureSystemGuardLaunch" /f
    
    :: Found this to be the default
    reg add "HKLMSYSTEMCurrentControlSetControlDeviceGuard" /v "RequireMicrosoftSignedBootChain" /t REG_DWORD /d "1" /f
    reg add "HKLMSYSTEMCurrentControlSetControlDeviceGuard" /v "EnableVirtualizationBasedSecurity" /t REG_DWORD /d "1" /f
    reg add "HKLMSYSTEMCurrentControlSetControlDeviceGuard" /v "RequirePlatformSecurityFeatures" /t REG_DWORD /d "1" /f
    reg add "HKLMSYSTEMCurrentControlSetControlDeviceGuard" /v "Locked" /t REG_DWORD /d "0" /f
    reg add "HKLMSYSTEMCurrentControlSetControlDeviceGuardScenariosHypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d "1" /f
    reg add "HKLMSYSTEMCurrentControlSetControlDeviceGuardScenariosHypervisorEnforcedCodeIntegrity" /v "Locked" /t REG_DWORD /d "0" /f
    reg add "HKLMSYSTEMCurrentControlSetControlDeviceGuardScenariosHypervisorEnforcedCodeIntegrity" /v "WasEnabledBy" /t REG_DWORD /d "1" /f
    
    :: Enable drivers
    !setSvcScript! hvservice 3
    !setSvcScript! vhdparser 3
    !setSvcScript! vmbus 0
    !setSvcScript! Vid 1
    !setSvcScript! bttflt 0
    !setSvcScript! gencounter 3
    !setSvcScript! hvsocketcontrol 3
    !setSvcScript! passthruparser 3
    !setSvcScript! pvhdparser 3
    !setSvcScript! spaceparser 3
    !setSvcScript! storflt 0
    !setSvcScript! vmgid 3
    !setSvcScript! vmbusr 3
    !setSvcScript! vpci 0
    
    :: Enable services
    for %%a in (
    	"gcs"
    	"hvhost"
    	"vmcompute"
    	"vmicguestinterface"
    	"vmicheartbeat"
    	"vmickvpexchange"
    	"vmicrdv"
    	"vmicshutdown"
    	"vmictimesync"
    	"vmicvmsession"
    	"vmicvss"
    ) do (
        !setSvcScript! %%~a 3
    )
    
    :: Enable system devices
    DevManView.exe /enable "*Hyper-V*" /use_wildcard
    
    echo Finished, please reboot your device for changes to apply.
    pause
    exit /b

       保存为cmd格式,已管理员方式运行后,重启电脑,兆懿会自动打开安装程序进行安装,安装完成后打开

    可能会遇到一直在加载的问题,可在Powershell里面输入 netsh.exe winsock reset 重启后再试,一般都能

    解决问题。

    附一下Atlas os优化文件夹目录,遇到相关问题,或需要启动相关服务的可以参考。

    image.png

       好的,以上就是我遇到问题的解决方法,其他版本windows也有可能会遇到类似的问题,其实只要重新启动

    必要的服务即可解决问题,希望大家玩的开心。


    2
关注的用户 全部