Share via

Virtual Machines Question

Anonymous
2025-06-16T17:24:04+00:00

Hello, i wanted to install a virtual machine on my pc, but when i try to install virtual box, it says that i need a c++ package (i don't remember the name) but i installed it and restarted the pc, but it's not working..

i tried on 22H2 (i think) and im sure that i tried on 23H2 and 24H2.

How can i install correctly virtual box? and if i can't, is there another virtual machine?

Windows for home | Windows 11 | Devices and drivers

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

7 answers

Sort by: Most helpful
  1. Anonymous
    2025-06-17T20:40:46+00:00

    Hello,

    Thanks for the update and for the screenshot. The error message hints at incomplete installation of Oracle VirtualBox 7.1.10 and an abrupt end of the process. To fix the error, here are actually some solutions:

    1. Restart your computer.
    2. Right-click on the VirtualBox installer and select the option 'Run as administrator.' This ensures that it has all the necessary permission.
    3. Uninstall all prior versions of VirtualBox entirely prior to installation anew. Use "Add or Remove Programs" feature in Windows to uninstall VirtualBox.

    Temporarily Disable Antivirus/Firewall.

    1. Delete temporary files which time interfere with the successful installation: Press Win + "R", then type %temp%, and press Enter. Delete unnecessary files in the Temp folder.
    2. The installed installer might be corrupted. Download a fresh copy from the official VirtualBox website.
    3. Check Windows Updates, Always keep the Windows OS updates applied unless the installation is continuing because failure of updates can be a main cause for issues in installation.
    4. Install Required Dependencies, update Windows drivers as well as install any required dependencies.
    5. Use Compatibility Mode, run the installer in compatibility mode thereby running it for an earlier version of Windows if required.

    Could you please try out these steps and let me know if it works out? And, in case that any other error arises, I would love to have more information it.

    Best regards,

    Tin

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2025-06-17T20:05:54+00:00

    Hello, i tried to do what you told me to do, i disabled every hyper-v option, but still not installing.. i tried to execute this command: VirtualBox-x.x.x-xxxxxx-Win.exe --logging --logfile install.log but it's not working.

    i can send new logs i get when i try to install the virtualbox:

    logs: https://pastebin.com/bnLz0u6j

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2025-06-17T15:24:45+00:00

    Hello,

    Thank you for the update. It sounds as if there might still be some inconsistent virtualization features enabled for your system, even with Hyper-V” turned “off” within Windows Features. Let's go step by step to completely disable Hyper-V and any associated components and resolve the Visual C++ installation issue blocking VirtualBox.

    1: Unsorted Virtualization Conflicts

    The following features should not be enabled in order for VirtualBox to function correctly:

    Hyper-V

    Virtual Machine Platform

    Windows Hypervisor Platform

    Memory Integrity / Core Isolation

    Disable All Conflicting Features

    To disable the features, open Command Prompt as Administrator and run:

    dism.exe /Online /Disable-Feature:Microsoft-Hyper-V-All

    dism.exe /Online /Disable-Feature:VirtualMachinePlatform

    dism.exe /Online /Disable-Feature:WindowsHypervisorPlatform

    bcdedit /set hypervisorlaunchtype off

    And then restart your computer.

    2: Ensure that Memory Integrity is Off

    Memory Integrity (Core Isolation) may also conflict.

    Windows Security

    Device Security > Core Isolation details

    Memory Integrity should be switched off

    Another restart

    Install Visual C++ Redistributables (Correctly)

    You've mentioned that you were asked for a C++ package. VirtualBox depends on the following:

    Microsoft Visual C++ Redistributable 2015 - 2022 (x64)

    Download:

    vc_redist.x64.exe - Microsoft Link

    Run the installer

    If it says already installed then Repair will be shown

    Restart after installation

    Try to Install VirtualBox Again

    Use the most recent installer at:

    https://www.virtualbox.org/wiki/Downloads

    (Select "Windows hosts")

    Right-click installer > Run as admin

    It still does not work. Try again with logs

    If this fails:

    Command Prompt as Admin

    Then execute:

    VirtualBox-x.x.x-xxxxxx-Win.exe --logging --logfile install.log

    Paste or send the contents of install.log

    Could you please try out these steps and let me know if it works out? And, in case that any other error arises, I would love to have more information it.

    Best regards,

    Tin

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2025-06-16T21:07:21+00:00

    Hello, the Hyper-V option was already disabled, i tried to enable but no changes and i enabled Virtual Machine Platform. when the virtual box installation fails i get logs.

    This is the log i got:

    https://pastebin.com/ZJ5xLWNs

    i don't know if it's important.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2025-06-16T17:56:31+00:00

    Hello! Thank you for reaching out. I am Tin, an independent advisor, and glad to assist you today with this issue. We will either try to get your VirtualBox installation working or examine some good alternatives if it doesn't. Here is the step-by-step plan to resolve the situation:

    Detailed Fix for VirtualBox Installation Error--the C++ Package

    1. The Usual Suspect

    So, typically, VirtualBox installation fails if an installation of the Microsoft Visual C++ Redistributable is either missing or broken. It usually requires:

    Microsoft Visual C++ 2015-2022 Redistributable (x64). Download link from Microsoft.

    **Even if it says "installed", reinstall it manually and then restart the system.

    1. A Clean Full Reinstallation of VirtualBox

    If it still doesn’t work:

    Uninstall VirtualBox completely (with some leftover-removing app like Revo Uninstaller).

    Reboot.

    Then download the latest version from the official VirtualBox website.

    Be careful to select the version that matches your Windows build, as some 24H2 builds can still run buggy with VirtualBox, especially Insider ones.

    1. Optional Changes

    Disable Hyper-V for the time being (optionalfeatures.exe→ Uncheck Hyper-V, Virtual Machine Platform, Windows Hypervisor Platform).

    If activated, turn off Memory Integrity (Settings → Windows Security → Device Security → Core Isolation).

    Please try these steps and let me know how it goes. If you run into any issues, just reply back with the details.

    Best regards,

    Tin

    Was this answer helpful?

    0 comments No comments