AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1877472
Accepted
Franck Dernoncourt
Franck Dernoncourt
Asked: 2025-02-09 08:46:39 +0800 CST2025-02-09 08:46:39 +0800 CST 2025-02-09 08:46:39 +0800 CST

VirtualBox 日志中显示“VT-x 不可用”。为什么?

  • 772

我的设置:

  • 主机运行 Windows 11 24H2 Pro。它使用 VirtualBox 版本 7.1.4 r165100(Qt6.5.3)。
  • 访客运行 Kubuntu 24.04.1 LTS。

我看见VBox.log:

00:00:08.192929 HM: HMR3Init: Attempting fall back to NEM: VT-x is not available

什么可能导致该问题?


我目前的诊断是:

  • BIOS 中启用了虚拟化功能。
  • Hyper-V 已禁用:在 Windows 设置中截图,在 PowerShell 中截图。
  • 我使用的是 MSI GS76 Stealth 11UH 笔记本电脑,它配备了 Intel Core i9-11900H CPU,支持 VT-x。
windows
  • 1 1 个回答
  • 148 Views

1 个回答

  • Voted
  1. Best Answer
    Franck Dernoncourt
    2025-02-09T09:27:37+08:002025-02-09T09:27:37+08:00

    背景:NEM 代表本机执行模式。当由于系统限制而无法启用 VT-x(Intel 虚拟化技术)或 AMD-V(AMD 虚拟化)时,它是 VirtualBox 使用的后备模式。

    该问题通常是由于 Hyper-V 或某些 Windows 安全功能引起的。

    我根据virtualbox.org 帖子部分执行了以下步骤:

    1. 禁用 Hyper-V 服务:

      在此处输入图片描述

    2. 以管理员身份在 cmd 中运行:

      bcdedit /set hypervisorlaunchtype off
      
    3. 禁用该策略:

      在此处输入图片描述

    4. 禁用所有核心隔离功能:

      在此处输入图片描述

      在此处输入图片描述

    5. 重新启动了笔记本电脑。

    然后它就起作用了:  VBox.log显示它现在正在使用 VT-x 而不是 NEM。

    00:00:06.534552 HM: HMR3Init: VT-x w/ nested paging and unrestricted guest execution hw support
    00:00:07.822064 HM: Using VT-x implementation 3.0
    00:00:07.822121 HM: VT-x/AMD-V init method: Local
    [...]
    00:00:07.822532 *********************** VT-x features ***********************
    00:00:07.822533 Nested hardware virtualization - VMX features
    00:00:07.822534   Mnemonic - Description                                  = guest (host)
    00:00:07.822534   VMX - Virtual-Machine Extensions                        = 1 (1)
    00:00:07.822534   InsOutInfo - INS/OUTS instruction info.                 = 1 (1)
    00:00:07.822535   ExtIntExit - External interrupt exiting                 = 1 (1)
    00:00:07.822535   NmiExit - NMI exiting                                   = 1 (1)
    00:00:07.822535   VirtNmi - Virtual NMIs                                  = 1 (1)
    00:00:07.822535   PreemptTimer - VMX preemption timer                     = 0 (1)
    00:00:07.822536   PostedInt - Posted interrupts                           = 0 (1)
    00:00:07.822536   IntWindowExit - Interrupt-window exiting                = 1 (1)
    00:00:07.822536   TscOffsetting - TSC offsetting                          = 1 (1)
    00:00:07.822537   HltExit - HLT exiting                                   = 1 (1)
    00:00:07.822537   InvlpgExit - INVLPG exiting                             = 1 (1)
    00:00:07.822537   MwaitExit - MWAIT exiting                               = 1 (1)
    00:00:07.822537   RdpmcExit - RDPMC exiting                               = 1 (1)
    00:00:07.822538   RdtscExit - RDTSC exiting                               = 1 (1)
    00:00:07.822538   Cr3LoadExit - CR3-load exiting                          = 1 (1)
    00:00:07.822538   Cr3StoreExit - CR3-store exiting                        = 1 (1)
    00:00:07.822538   TertiaryExecCtls - Activate tertiary controls           = 0 (1)
    00:00:07.822539   Cr8LoadExit  - CR8-load exiting                         = 1 (1)
    00:00:07.822539   Cr8StoreExit - CR8-store exiting                        = 1 (1)
    00:00:07.822539   UseTprShadow - Use TPR shadow                           = 1 (1)
    00:00:07.822540   NmiWindowExit - NMI-window exiting                      = 1 (1)
    00:00:07.822540   MovDRxExit - Mov-DR exiting                             = 1 (1)
    00:00:07.822540   UncondIoExit - Unconditional I/O exiting                = 1 (1)
    00:00:07.822540   UseIoBitmaps - Use I/O bitmaps                          = 1 (1)
    00:00:07.822541   MonitorTrapFlag - Monitor Trap Flag                     = 0 (1)
    00:00:07.822541   UseMsrBitmaps - MSR bitmaps                             = 1 (1)
    00:00:07.822541   MonitorExit - MONITOR exiting                           = 1 (1)
    00:00:07.822541   PauseExit - PAUSE exiting                               = 1 (1)
    00:00:07.822542   SecondaryExecCtl - Activate secondary controls          = 1 (1)
    00:00:07.822542   VirtApic - Virtualize-APIC accesses                     = 1 (1)
    00:00:07.822542   Ept - Extended Page Tables                              = 1 (1)
    00:00:07.822542   DescTableExit - Descriptor-table exiting                = 1 (1)
    00:00:07.822543   Rdtscp - Enable RDTSCP                                  = 1 (1)
    00:00:07.822543   VirtX2ApicMode - Virtualize-x2APIC mode                 = 0 (1)
    00:00:07.822543   Vpid - Enable VPID                                      = 1 (1)
    00:00:07.822544   WbinvdExit - WBINVD exiting                             = 1 (1)
    00:00:07.822544   UnrestrictedGuest - Unrestricted guest                  = 1 (1)
    00:00:07.822544   ApicRegVirt - APIC-register virtualization              = 0 (1)
    00:00:07.822544   VirtIntDelivery - Virtual-interrupt delivery            = 0 (1)
    00:00:07.822545   PauseLoopExit - PAUSE-loop exiting                      = 1 (1)
    00:00:07.822545   RdrandExit - RDRAND exiting                             = 1 (1)
    00:00:07.822545   Invpcid - Enable INVPCID                                = 1 (1)
    00:00:07.822545   VmFuncs - Enable VM Functions                           = 0 (1)
    00:00:07.822546   VmcsShadowing - VMCS shadowing                          = 0 (0)
    00:00:07.822546   RdseedExiting - RDSEED exiting                          = 1 (1)
    00:00:07.822546   PML - Page-Modification Log                             = 0 (1)
    00:00:07.822546   EptVe - EPT violations can cause #VE                    = 0 (1)
    00:00:07.822547   ConcealVmxFromPt - Conceal VMX from Processor Trace     = 0 (1)
    00:00:07.822547   XsavesXRstors - Enable XSAVES/XRSTORS                   = 0 (1)
    00:00:07.822547   PasidTranslate - PASID translation                      = 0 (0)
    00:00:07.822548   ModeBasedExecuteEpt - Mode-based execute permissions    = 0 (1)
    00:00:07.822548   SppEpt - Sub-page page write permissions for EPT        = 0 (0)
    00:00:07.822548   PtEpt - Processor Trace address' translatable by EPT    = 0 (1)
    00:00:07.822548   UseTscScaling - Use TSC scaling                         = 0 (1)
    00:00:07.822549   UserWaitPause - Enable TPAUSE, UMONITOR and UMWAIT      = 0 (0)
    00:00:07.822549   Pconfig - Enable PCONFIG                                = 0 (0)
    00:00:07.822549   EnclvExit - ENCLV exiting                               = 0 (0)
    00:00:07.822550   BusLockDetect - VMM Bus-Lock detection                  = 0 (0)
    00:00:07.822551   InstrTimeout - Instruction timeout                      = 0 (0)
    00:00:07.822551   LoadIwKeyExit - LOADIWKEY exiting                       = 0 (1)
    00:00:07.822551   HLAT - Hypervisor-managed linear-address translation    = 0 (0)
    00:00:07.822552   EptPagingWrite - EPT paging-write                       = 0 (0)
    00:00:07.822552   GstPagingVerify - Guest-paging verification             = 0 (0)
    00:00:07.822552   IpiVirt - IPI virtualization                            = 0 (0)
    00:00:07.822552   VirtSpecCtrl - Virtualize IA32_SPEC_CTRL                = 0 (0)
    00:00:07.822553   EntryLoadDebugCtls - Load debug controls on VM-entry    = 1 (1)
    00:00:07.822553   Ia32eModeGuest - IA-32e mode guest                      = 1 (1)
    00:00:07.822553   EntryLoadEferMsr - Load IA32_EFER MSR on VM-entry       = 1 (1)
    00:00:07.822553   EntryLoadPatMsr - Load IA32_PAT MSR on VM-entry         = 1 (1)
    00:00:07.822554   ExitSaveDebugCtls - Save debug controls on VM-exit      = 1 (1)
    00:00:07.822554   HostAddrSpaceSize - Host address-space size             = 1 (1)
    00:00:07.822554   ExitAckExtInt - Acknowledge interrupt on VM-exit        = 1 (1)
    00:00:07.822555   ExitSavePatMsr - Save IA32_PAT MSR on VM-exit           = 1 (1)
    00:00:07.822555   ExitLoadPatMsr - Load IA32_PAT MSR on VM-exit           = 1 (1)
    00:00:07.822555   ExitSaveEferMsr - Save IA32_EFER MSR on VM-exit         = 1 (1)
    00:00:07.822555   ExitLoadEferMsr - Load IA32_EFER MSR on VM-exit         = 1 (1)
    00:00:07.822556   SavePreemptTimer - Save VMX-preemption timer            = 0 (1)
    00:00:07.822556   SecondaryExitCtls - Secondary VM-exit controls          = 0 (0)
    00:00:07.822556   ExitSaveEferLma - Save IA32_EFER.LMA on VM-exit         = 1 (1)
    00:00:07.822556   IntelPt - Intel Processor Trace in VMX operation        = 0 (1)
    00:00:07.822557   VmwriteAll - VMWRITE to any supported VMCS field        = 0 (1)
    00:00:07.822557   EntryInjectSoftInt - Inject softint. with 0-len instr.  = 1 (1)
    00:00:07.822557 
    00:00:07.822557 ******************* End of VT-x features ********************
    

    请注意,这些指令的子集可能就足以使其工作。

    • 0

相关问题

  • 如何在 Windows Precision 触摸板上禁用鼠标加速?

  • 批量重命名图像文件集

  • Python 的“pass”参数的批处理等价物是什么?

  • 在 Windows 上与 Docker 守护进程通信

  • 资源管理器侧面板中的桌面外壳快捷方式

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve