无法在 VirtualBox 中启用 AMD-V(硬件虚拟化)

无法在 VirtualBox 中启用 AMD-V(硬件虚拟化)

在虚拟机设置中,该案例VT-x / AMD-V是灰色的,我无法检查它。为什么?

  • 我有一台 Windows 10 专业版主机(已更新)
  • 我使用 Vbox 6.1(最新版本)
  • SVM mode在我的 BIOS 设置中已启用
  • performancesWindows 任务管理器显示选项卡中已启用虚拟化
  • AMD-V/Hyper-V Compatibility Checkerthis machine is compatible with hyper-v
  • 在 Windows 功能 ( enable or disable windows features...) 中,hyper-v已禁用,containers已禁用,guarded host已禁用
  • 在Windows Defender设置中,核心和内存隔离被禁用。
  • 我重启了很多次

任何想法 ?

[编辑于 2020/05/26]

我忘了说:

  • 我有一台 ryzen 5 3600x
  • 我的主板是 MSI B450M PRO M2 MAX

[编辑 2 2020/05/26]

为了回答essjae评论:

我没有任何第三方防病毒软件。我只使用 Windows Defender。

当我跑步时systeminfo,我收到了这条信息Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed.。考虑到这一点关联,这意味着 Hyper-v 已在运行。但我不明白为什么,因为当我进入时Enable or disable Windows features,Hyper-v未选中!(我重启了很多次)。

coreinfo.exe另外,这是(的输出关联

> .\Coreinfo.exe

Coreinfo v3.5 - Dump information on system CPU and memory topology
Copyright (C) 2008-2020 Mark Russinovich
Sysinternals - www.sysinternals.com


AMD Ryzen 5 3600 6-Core Processor
AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD
Microcode signature: 00000000
HTT             *       Multicore
HYPERVISOR      *       Hypervisor is present
VMX             -       Supports Intel hardware-assisted virtualization
SVM             -       Supports AMD hardware-assisted virtualization
X64             *       Supports 64-bit mode

SMX             -       Supports Intel trusted execution
SKINIT          -       Supports AMD SKINIT

NX              *       Supports no-execute page protection
SMEP            *       Supports Supervisor Mode Execution Prevention
SMAP            *       Supports Supervisor Mode Access Prevention
PAGE1GB         *       Supports 1 GB large pages
PAE             *       Supports > 32-bit physical addresses
PAT             *       Supports Page Attribute Table
PSE             *       Supports 4 MB pages
PSE36           *       Supports > 32-bit address 4 MB pages
PGE             *       Supports global bit in page tables
SS              -       Supports bus snooping for cache operations
VME             *       Supports Virtual-8086 mode
RDWRFSGSBASE    *       Supports direct GS/FS base access

FPU             *       Implements i387 floating point instructions
MMX             *       Supports MMX instruction set
MMXEXT          *       Implements AMD MMX extensions
3DNOW           -       Supports 3DNow! instructions
3DNOWEXT        -       Supports 3DNow! extension instructions
SSE             *       Supports Streaming SIMD Extensions
SSE2            *       Supports Streaming SIMD Extensions 2
SSE3            *       Supports Streaming SIMD Extensions 3
SSSE3           *       Supports Supplemental SIMD Extensions 3
SSE4a           *       Supports Streaming SIMDR Extensions 4a
SSE4.1          *       Supports Streaming SIMD Extensions 4.1
SSE4.2          *       Supports Streaming SIMD Extensions 4.2

AES             *       Supports AES extensions
AVX             *       Supports AVX instruction extensions
FMA             *       Supports FMA extensions using YMM state
MSR             *       Implements RDMSR/WRMSR instructions
MTRR            *       Supports Memory Type Range Registers
XSAVE           *       Supports XSAVE/XRSTOR instructions
OSXSAVE         *       Supports XSETBV/XGETBV instructions
RDRAND          *       Supports RDRAND instruction
RDSEED          *       Supports RDSEED instruction

CMOV            *       Supports CMOVcc instruction
CLFSH           *       Supports CLFLUSH instruction
CX8             *       Supports compare and exchange 8-byte instructions
CX16            *       Supports CMPXCHG16B instruction
BMI1            *       Supports bit manipulation extensions 1
BMI2            *       Supports bit manipulation extensions 2
ADX             *       Supports ADCX/ADOX instructions
DCA             -       Supports prefetch from memory-mapped device
F16C            *       Supports half-precision instruction
FXSR            *       Supports FXSAVE/FXSTOR instructions
FFXSR           *       Supports optimized FXSAVE/FSRSTOR instruction
MONITOR         -       Supports MONITOR and MWAIT instructions
MOVBE           *       Supports MOVBE instruction
ERMSB           -       Supports Enhanced REP MOVSB/STOSB
PCLMULDQ        *       Supports PCLMULDQ instruction
POPCNT          *       Supports POPCNT instruction
LZCNT           *       Supports LZCNT instruction
SEP             *       Supports fast system call instructions
LAHF-SAHF       *       Supports LAHF/SAHF instructions in 64-bit mode
HLE             -       Supports Hardware Lock Elision instructions
RTM             -       Supports Restricted Transactional Memory instructions

DE              *       Supports I/O breakpoints including CR4.DE
DTES64          -       Can write history of 64-bit branch addresses
DS              -       Implements memory-resident debug buffer
DS-CPL          -       Supports Debug Store feature with CPL
PCID            -       Supports PCIDs and settable CR4.PCIDE
INVPCID         -       Supports INVPCID instruction
PDCM            -       Supports Performance Capabilities MSR
RDTSCP          *       Supports RDTSCP instruction
TSC             *       Supports RDTSC instruction
TSC-DEADLINE    -       Local APIC supports one-shot deadline timer
TSC-INVARIANT   *       TSC runs at constant rate
xTPR            -       Supports disabling task priority messages

EIST            -       Supports Enhanced Intel Speedstep
ACPI            -       Implements MSR for power management
TM              -       Implements thermal monitor circuitry
TM2             -       Implements Thermal Monitor 2 control
APIC            *       Implements software-accessible local APIC
x2APIC          -       Supports x2APIC

CNXT-ID         -       L1 data cache mode adaptive or BIOS

MCE             *       Supports Machine Check, INT18 and CR4.MCE
MCA             *       Implements Machine Check Architecture
PBE             -       Supports use of FERR#/PBE# pin

PSN             -       Implements 96-bit processor serial number

PREFETCHW       *       Supports PREFETCHW instruction

Maximum implemented CPUID leaves: 0000000D (Basic), 8000001E (Extended).
Maximum implemented address width: 48 bits (virtual), 48 bits (physical).

Processor signature: 00870F10

Logical to Physical Processor Map:
**----------  Physical Processor 0 (Hyperthreaded)
--**--------  Physical Processor 1 (Hyperthreaded)
----**------  Physical Processor 2 (Hyperthreaded)
------**----  Physical Processor 3 (Hyperthreaded)
--------**--  Physical Processor 4 (Hyperthreaded)
----------**  Physical Processor 5 (Hyperthreaded)

Logical Processor to Socket Map:
************  Socket 0

Logical Processor to NUMA Node Map:
************  NUMA Node 0

No NUMA nodes.

Logical Processor to Cache Map:
**----------  Data Cache          0, Level 1,   32 KB, Assoc   8, LineSize  64
**----------  Instruction Cache   0, Level 1,   32 KB, Assoc   8, LineSize  64
**----------  Unified Cache       0, Level 2,  512 KB, Assoc   8, LineSize  64
******------  Unified Cache       1, Level 3,   16 MB, Assoc  16, LineSize  64
--**--------  Data Cache          1, Level 1,   32 KB, Assoc   8, LineSize  64
--**--------  Instruction Cache   1, Level 1,   32 KB, Assoc   8, LineSize  64
--**--------  Unified Cache       2, Level 2,  512 KB, Assoc   8, LineSize  64
----**------  Data Cache          2, Level 1,   32 KB, Assoc   8, LineSize  64
----**------  Instruction Cache   2, Level 1,   32 KB, Assoc   8, LineSize  64
----**------  Unified Cache       3, Level 2,  512 KB, Assoc   8, LineSize  64
------**----  Data Cache          3, Level 1,   32 KB, Assoc   8, LineSize  64
------**----  Instruction Cache   3, Level 1,   32 KB, Assoc   8, LineSize  64
------**----  Unified Cache       4, Level 2,  512 KB, Assoc   8, LineSize  64
------******  Unified Cache       5, Level 3,   16 MB, Assoc  16, LineSize  64
--------**--  Data Cache          4, Level 1,   32 KB, Assoc   8, LineSize  64
--------**--  Instruction Cache   4, Level 1,   32 KB, Assoc   8, LineSize  64
--------**--  Unified Cache       6, Level 2,  512 KB, Assoc   8, LineSize  64
----------**  Data Cache          5, Level 1,   32 KB, Assoc   8, LineSize  64
----------**  Instruction Cache   5, Level 1,   32 KB, Assoc   8, LineSize  64
----------**  Unified Cache       7, Level 2,  512 KB, Assoc   8, LineSize  64

Logical Processor to Group Map:
************  Group 0

[编辑 3 2020/05/26]

正如Ramhound评论部分所要求的,这是我无法检查的选项的屏幕截图。

Virtualbox 截图

这是我的 BIOS 中的图片SVM mode。抱歉画质不佳。

SVM模式的图片

我没有 Github Desktop。我只使用 git bash。

您可以在下面找到我的任务管理器的屏幕截图。

任务管理器截图

这是 Windows 功能的屏幕截图。

Windows 功能屏幕截图

[编辑 4 2020/05/26]

结果如下Get-WindowsOptionalFeature -Online -FeatureName *Hyper-V*

> Get-WindowsOptionalFeature -Online -FeatureName *Hyper-V*


FeatureName      : Microsoft-Hyper-V-All
DisplayName      : Hyper-V
Description      : Provides services and management tools for creating and running virtual machines and their
                   resources.
RestartRequired  : Possible
State            : Disabled
CustomProperties :


FeatureName      : Microsoft-Hyper-V
DisplayName      : Hyper-V Platform
Description      : Provides the services that you can use to create and manage virtual machines and their resources.
RestartRequired  : Possible
State            : Disabled
CustomProperties :


FeatureName      : Microsoft-Hyper-V-Tools-All
DisplayName      : Hyper-V Management Tools
Description      : Includes GUI and command-line tools for managing Hyper-V.
RestartRequired  : Possible
State            : Disabled
CustomProperties :


FeatureName      : Microsoft-Hyper-V-Management-PowerShell
DisplayName      : Hyper-V Module for Windows PowerShell
Description      : Includes Windows PowerShell cmdlets for managing Hyper-V.
RestartRequired  : Possible
State            : Disabled
CustomProperties :


FeatureName      : Microsoft-Hyper-V-Hypervisor
DisplayName      : Hyper-V Hypervisor
Description      : Provides the Hyper-V Hypervisor.
RestartRequired  : Possible
State            : Disabled
CustomProperties :


FeatureName      : Microsoft-Hyper-V-Services
DisplayName      : Hyper-V Services
Description      : Provides the services that you can use to create and manage virtual machines and their resources.
RestartRequired  : Possible
State            : Disabled
CustomProperties :


FeatureName      : Microsoft-Hyper-V-Management-Clients
DisplayName      : Hyper-V GUI Management Tools
Description      : Includes the Hyper-V Manager snap-in and Virtual Machine Connection tool.
RestartRequired  : Possible
State            : Disabled
CustomProperties :

结果如下@(Get-Wmiobject Win32_ComputerSystem).HypervisorPresent

> @(Get-Wmiobject Win32_ComputerSystem).HypervisorPresent
True

[编辑 5 2020/05/30]

我尝试使用命令手动启用 hw virt .\VBoxManage.exe modifyvm "110-proxy-ub-2004" --nested-hw-virt on,但是当我尝试启动 VM 时出现此错误:

手动启用 Hw virt

我仍在寻找解决方案。

答案1

我终于找到了答案。即使Hyper-v在 中禁用了Windows features,该服务HV Host Service仍在运行。我禁用了所有Hyper-v服务,现在 Vbox VM 设置中的选项VT-x / AMD-V不再变灰,并且当我启用该选项时,我的 VM 会启动。

服务

相关内容