💻 Need Help with Windows? | ✅ Get Instant Support for Windows 10 & 11 | ☎️ Call Now: +1 92980 02076 | 🕒 24x7 Available | Trusted Windows Experts!

How to Reset the Safe Mode Flag on a Virtual Machine (VM)

Sometimes a virtual machine may keep booting into Safe Mode repeatedly, even after restarting. This usually happens when the Safe Mode flag is enabled in the system boot configuration and was not disabled afterward.

This issue can occur on virtual machines running on platforms like VMware Workstation, Oracle VM VirtualBox, or Microsoft Hyper-V.

In this guide, we will show you how to reset the Safe Mode flag on your VM and restore normal boot.


Why Your VM Is Stuck in Safe Mode

A VM typically boots into Safe Mode repeatedly because:

  • Safe Mode was enabled using System Configuration (msconfig)
  • The boot configuration data (BCD) still contains the Safe Mode flag
  • A troubleshooting step was not reverted
  • System changes forced the OS to remain in Safe Mode

Resetting the Safe Mode flag fixes the problem in most cases.


Method 1: Disable Safe Mode Using System Configuration

This is the easiest method if your VM can still boot.

Steps

  1. Start the virtual machine.
  2. Press Windows + R.
  3. Type:
msconfig
  1. Open the Boot tab.
  2. Look for Safe boot under Boot options.
  3. Uncheck Safe boot.
  4. Click Apply → OK.
  5. Restart the virtual machine.

Your VM should now start in normal mode.


Method 2: Reset Safe Mode Using Command Prompt

If the Safe Mode option keeps coming back, you can remove it from the boot configuration.

Steps

  1. Open Command Prompt as Administrator.
  2. Run the following command:
bcdedit /deletevalue {current} safeboot
  1. Restart the virtual machine.

This command removes the Safe Mode flag from the Windows boot configuration.


Method 3: Fix Safe Mode from Windows Recovery

If your VM cannot boot normally, use the recovery environment.

Steps

  1. Start the VM and enter Windows Recovery Environment.
  2. Select Troubleshoot.
  3. Open Advanced Options → Command Prompt.
  4. Run the command:
bcdedit /deletevalue {default} safeboot
  1. Restart the system.

The VM should now boot normally.


Additional Troubleshooting Tips

If the issue still persists:

  • Verify that Safe Mode is not enabled again in msconfig
  • Check for startup scripts forcing Safe Mode
  • Ensure the VM disk is not corrupted
  • Update or reinstall VM tools or guest additions

Final Thoughts

A virtual machine stuck in Safe Mode is usually caused by a Safe Mode flag left in the boot configuration. By removing the flag using msconfig or bcdedit, you can quickly restore normal startup.

This solution works for most Windows virtual machines regardless of the virtualization platform.


Tip:
If you manage multiple VMs, keep a record of system configuration changes to avoid Safe Mode loops in the future.