r/virtualbox • • Apr 11 '24 Heart of Silver

Guide/Tutorial Error Installing Windows - Windows cannot read the ProductKey from the unattend answer file

547 Upvotes

I just tried to install Windows 11 and Windows 10 using VirtualBox in Linux Debian and I came accross this error multiple times while the "setup is starting".

Screenshot of the error: https://imgur.com/cW1GUkh

Found the solution in this video on YT: https://www.youtube.com/watch?v=Y8rzZHscljQ&t=183s
Just so the solution is well documented I'm posting it here in text:

  1. Power of the VM machine

  2. Go to the settings of your VM - System - Boot Order - Uncheck Floppy

  3. Press OK

  4. Go to the folder where your VM is stored (default is Home - VirtualBox VMs)

  5. Delete all 3 files that start with "Unattended"

  6. Power on the VM machine

  7. Click OK on the warning

  8. Press any key to continue

All done, now it should work as normal.

EDIT 2: Other untested, but probably better solutions that don't require disabling unattended install, which were kindly suggested in the comments:

1 - Use a generic Windows key (suggested by u/right_requirement_43)

Generic keys can be found here: https://gist.github.com/rvrsh3ll/0810c6ed60e44cf7932e4fbae25880df

2 - Editing the unattended xml file (Suggested by u/pcfist)

The error during Windows setup appears to be caused by malformed unattended XML configuration file. You can see it by opening the XML file in the VM folder (named something like Unattended-<VM-GUID>-autounattend.xml) using any text editor, then search for "product". It will look like this:

<UserData>
    <ProductKey>

        <WillShowUI>OnError</WillShowUI>
    </ProductKey>

It sure looks strange with this empty line after <ProductKey>, right? I opened the XML file from another VM's folder and compared this section:

<UserData>
    <ProductKey>
        <Key></Key>
        <WillShowUI>OnError</WillShowUI>
    </ProductKey>

Here we see the missing <Key> tag. We can add it to our Win11's -autounattend.xml file and voila—it works, no more errors! You can install your Windows 11 normally. Not sure why it happens, looks like a VirtualBox bug.


r/virtualbox • • Oct 31 '19

Announcement READ THIS FIRST - MacOS on VirtualBox

101 Upvotes

WARNING: QUESTIONS POSTED ABOUT THIS TOPIC WILL BE DELETED

MacOS is not a supported OS in VirtualBox. You will almost always have problems using it.

The official recommendation of this subreddit is to use this script:

https://github.com/myspaghetti/macos-guest-virtualbox/

However, don't expect everything to work. Check the description on that page for a list of things that probably won't work.

You can also try different virtualization methods, such as VMWare, qemu, HyperKit, etc. You might have better results.

Alternatively, you can do some of the steps manually. The below instructions have worked for some users, but the developer of the script above has warned that some of these commands are unnecessary and may cause more issues than they solve.

cd "C:\Program Files\Oracle\VirtualBox\" 
VBoxManage modifyvm "macos" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff

VBoxManage setextradata "macos" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3" 
VBoxManage setextradata "macos" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0" 
VBoxManage setextradata "macos" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple" 
VBoxManage setextradata "macos" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" 
VBoxManage setextradata "macos" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

This was taken from this tutorial:

https://www.maketecheasier.com/install-macos-virtualbox/

Anything beyond this is almost impossible until VirtualBox supports MacOS, which will likely be never because Apple likes to keep their stuff super proprietary and garbage like that. Do not post questions here about these issues, there is no current answer, and these questions are becoming tedious.

Questions that are specific to MacOS should go to a subreddit that is focused on MacOS issues. Any issues with getting it to run should not be posted here. If you followed that tutorial and it didn't work, there's likely nothing anyone else can do. Some people can get it to work, others can't. Until it's officially supported, there's not much we can do but repeat the same advice over and over.

Note that running VirtualBox on a Mac to virtualize other OSes is supported and is totally fine to ask about here.


r/virtualbox • • May 30 '25

Important/PSA VirtualBox now on GitHub

89 Upvotes

After years of patience, the VirtualBox sourcecode is finally on GitHub: https://github.com/VirtualBox/virtualbox


r/virtualbox • • Jan 26 '23

Help Why is Virtualbox so janky and performs so bad?

67 Upvotes

Seriously this thing is absolutely terrible. I was planning on having a VM just for internet stuff. Host running windows 11 and VM on windows 10 but the performance is so GARBAGE and the experience is so janky that im considering reformatting my entire hard drive just so i don't have to deal with any residue of this software in my computer.

I have a 5900x +32GB of ram... i dedicated 6 cores and 12GB to the VM and yet it runs like crap. Im running the latest Virtualbox version. Installing the guest additions just makes it perform slightly better. Bumping from incredible 128mb of vram to astronomical 256mb of vram in the settings performs no better than rubbing snake oil on my pc case. There is a noticeable slight lag that happens sometimes, video playback sucks, even the windows UI gets broken with graphical glitches.

Using Virtualbox feels like is the absolute opposite experience of using Vmware which is ultra smooth, fast and actually works straight away. so here i am in my last hope of MAYBE finding a magical setting or something that i might had missed and that will make Virtualbox decent enough. Is there anything i can do to make this program usable?


r/virtualbox • • Apr 29 '21

General VB Question Anyone else running VMs just for fun?

67 Upvotes

So my hobby lately has been installing every operating system I can get my hands on in VirtualBox or something else. A few years ago I got 27 VMs running at once which was a challenge a quite a lot of fun.

I'm starting to get back into it again but it's the strangest thing, my wife and friends don't seem all that interested in screenshots of 30 year old operating systems....


r/virtualbox • • Jan 23 '23

Announcement Trying to Run VMs on Apple Silicon Macs (M1, M2, etc.)?

49 Upvotes

This question has come up a number of times in the last few days. Note - there is now Virtual Box 7.2.x build for Apple Silicon. However, it is:

  1. Not capable of running modern x86-64 OSs in VMs. The latest release can run 16 and 32 bit x86 code, abet, slowly -- this feature is not formally supported, and not enabled by default.

  2. Can run certain ARM64 Linux / BSD / Windows OSs in VMs. Check the Virtual Box documentation for what releases are supported.

You may be able to get older 32 or 16 bit x86 OS to work with said VMs. However, expect performance to be poor. For anything other than experimentation with x86 OSs, you are better off getting real x86-64 bit hardware to run Virtual Box on or, alternatively, looking for a different hypervisor for your Apple Silicon hardware.

See - https://forums.virtualbox.org/viewtopic.php?f=8&t=107344

See also - https://www.virtualbox.org/manual/topics/Introduction.html#host-guest-matrix


r/virtualbox • • Apr 21 '23

Solved Black Screen after Downloading guest Additions.

47 Upvotes

FOR ANYONE LOOKING: The issue can either be solved by using VboxSVGA or by using an older version (6.x.x) instead of the newest virtualbox version.

Thank you to everyone who tried to help me and the other people that are having this problem.*

info:

I am using Virtualbox 7.0.8 In order to Virtualize Windows XP. My host computer uses windows 11.

Story:

Today i wanted to use a Windows Xp VM to run an old Need for Speed game. I am having some (What seem to be graphics adapter) issues. To which the solution is, according to the internet, to install Guest Additions. So i did so (I got the CD-image from the devices tab). And when it was completely installed, and i restarted windows. My screen was just black, i did get a boot screen and i did hear the boot sound. But I saw nothing, i have been messing around to see if i can get it to work. But it just doesn't!

If anyone has had something similar, or know how to fix it. I would be very grateful for help.


r/virtualbox • • Aug 18 '26

Release VirtualBox v7.2.16!

40 Upvotes

r/virtualbox • • May 24 '21

General VB Question Virtual Box on M1 Mac?

39 Upvotes

Hope this is the right place to post—is there any progress on getting virtual box to install on a M1 Mac? Getting VBox to run is still holding me back. Thanks


r/virtualbox • • Feb 09 '23

Help Cannot download VirtualBox Guest Additions disk image file

35 Upvotes

Host OS: Linux Version: Version 7.0.6 r155176

When I go to Devices -> Insert Guest Additions CD image:

I am trying to download Virtualbox Guest Additions disk image, I then get a prompt saying Could not find the VirtualBox Guest Additions disk image file:

https://imgur.com/a/nGdKNGV

And then when I click on Download then I get this error message VBoxGuestAdditions During certificate downloading: Unknown reason:

https://imgur.com/u0OQOok

Not too sure why this is happening?


r/virtualbox • • Mar 17 '20

After trying for 2 days, I finally got the sims running on my Mac

34 Upvotes

r/virtualbox • • Oct 16 '22

General VB Question VirtualBox 7.0 - Disable notification center?

33 Upvotes

Can the notification center be disabled permanently? I find it very annoying.


r/virtualbox • • Jul 23 '21

Closed No more Windows 11 Questions!

32 Upvotes

Hey there, MrAureliusR here:

Windows 11 is not supported as either host or guest. Period. There is absolutely no reason to expect it'll work, and until it's officially supported you're essentially on your own. If you want to share a working configuration or tutorial link, fine! But asking questions about why it's not working -- we don't know either! Nobody knows yet.

If you find a new bug that you are pretty sure is unique to Windows 11, you can report it to Oracle's bug tracker ... but don't do this willy-nilly! Document the bug. Make sure it's repeatable. And most importantly check to make sure nobody else has submitted the bug already!

This rule will change as soon as Windows 11 is officially supported by VirtualBox.


r/virtualbox • • Dec 07 '20

Guide/Tutorial Virtualbox or VMWare Player?

30 Upvotes

VirtualBox is a free hypervisor that is trusted by many. However, VMWare Player is also free, and some people may be a little confused on which hypervisor to use. I've created a video resource that goes over some of the most popular features.

Tl;dw; Virtualbox and VMWare have different target audiences. For me, and many others, VMWare is better. But for some, they may want Virtualbox.

Video here


r/virtualbox • • Jun 06 '20

Bug Pro Tip: If you're experiencing random freezes on the guest, reduce CPU count to improve performance

29 Upvotes

Looks like there is an issue in VirtualBox 6.x where if you assign more vCPU to the guest, you may experience random freezes and poor scrolling experience on the guest.

Reducing the vCPU to 1 or 2 could help improve performance and stop the random freezes.

Relevant threads:

https://forums.virtualbox.org/viewtopic.php?f=2&t=91836

https://www.virtualbox.org/ticket/18957

https://wiki.archlinux.org/index.php/VirtualBox#Random_freezing_in_guests_with_intel_graphics

Edit:

This issue is especially common with Intel CPU / Graphics.


r/virtualbox • • Jun 25 '20

Guide/Tutorial macOS Big Sur on VirtualBox

27 Upvotes

Here's how to run macOS Big Sur on VirtualBox:

  1. Install Catalina on VirtualBox

  2. Download Big Sur InstallAssistant.pkg (9GB) either inside the virtual machine or on the host on a disk image that will be mounted on the virtual machine. Windows can create and mount VHD disk images through Disk Management.

  3. Use VirtualBox to create an additional disk image that's has at least 60GB of space. Attach it to the virtual machine and erase it with Disk Utility, formatting it to APFS.

  4. Run InstallAssistant.pkg which creates an "Install macOS Beta.app" in the /Applications folder

  5. Run "Install macOS Beta.app", select "Show All Disks..." and select the new empty disk.

  6. Allow the installer to complete. When the macOS initial setup starts, shut down macOS with Command-Q

  7. Set the virtual machine's USB version to 1.1 and disable all network adapters from the VirtualBox settings (AppleKeyStore, the system's secure keychain, crashes otherwise)

  8. Boot macOS Big Sur and complete the initial setup

  9. After initial setup is complete the USB settings and network adapters can be restored.

Congrats, you have a macOS version that's slower and uglier than Catalina! Hopefully Apple will replace the blurrier icons and other blurrier graphical interface elements by release time.


r/virtualbox • • Apr 22 '23

Solved Where to download Guest Additions ISO?

26 Upvotes

I want to know where to download the Guest Additions from, because the VM creation GUI rather demonstrates that it should be possible, whereas forums.virtualbox.org/viewtopic.php?t=94786 demonstrates that it's actually too illusive to locate. I certainly haven't been able to.

  1. #!/usr/bin/env sh
    sudo zypper info 'VirtualBox'
  2. Loading repository data...
    Reading installed packages...
    
    Information for package virtualbox:
    -----------------------------------
    Repository     : Main Repository (OSS)
    Name           : virtualbox
    Version        : 7.0.6-6.2
    Arch           : x86_64
    Vendor         : openSUSE
    Installed Size : 84.7 MiB
    Installed      : Yes
    Status         : up-to-date
    Source package : virtualbox-7.0.6-6.2.src
    Upstream URL   : https://www.virtualbox.org/

The information window's background is pure idiocy. See comment/lmxjf8m.

If you can access that image, transfer it to PixelFed for me — I can't, being in GBR.


r/virtualbox • • Oct 19 '21

Help "Failed to open a session for the virtual machine ... Call to NEMR0InitVMPart2 failed: VERR_NEM_INIT_FAILED (VERR_NEM_VM_CREATE_FAILED). Result Code: E_FAIL (0x80004005) Component: ConsoleWrap Interface: IConsole ..."

26 Upvotes

This was in my upgraded VB v6.1.28 from v6.1.26 in my updated, 64-bit W10 Pro. PC. VB keeps showing this after starting a guest VM:

"Failed to open a session for the virtual machine ...

Call to NEMR0InitVMPart2 failed: VERR_NEM_INIT_FAILED (VERR_NEM_VM_CREATE_FAILED).

Result Code: E_FAIL (0x80004005) Component: ConsoleWrap Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}".

They last worked on a couple days ago too in v6.1.26 before upgrading to v6.1.28. Is anyone else seeing this too? I already tried rebooting, repairing, etc. I didn't uninstall and reinstall VB yet. I might go downgrade it back to v6.1.22 soon? Let's see if we can fix it first. http://zimage.com/~ant/temp/AntsVirtualBox6.1.zip for my VB settings and logs (will delete when fixed).

Thank you for reading and hopefully answering soon. :)


r/virtualbox • • Aug 28 '26

Help VirtualBox is one of the worst programs ever

25 Upvotes

I have had trouble with VirtualBox bugs for years. To start with, my computer would crash after going to sleep. It would wake on its own with a black screen and only a reboot would get it working again. I traced the problem to a VirtualBox driver. Then some months ago my computer stopped recognizing USB storage devices. I used an external USB drive for storing images and virtual disks, so I updated VirtualBox. Problem solved. But now VMs freeze after only running for minutes with my Windows VM having perhaps the shortest runtime (Linux VMs are not much better). I'm forced to power off the VM in many cases or even kill the hypervisor process. I updated today to version 7.2.16, but the problem still occurs. I've even uninstalled it completely and reinstalled it.

OS: Windows 10

CPU: AMD Ryzen


r/virtualbox • • May 11 '21

Help Is it possible to passthrough a gpu to a virtualbox vm on windows?

25 Upvotes

Host OS- Windows 10 Home Graphics cards- AMD Radeon and Nvidia Geforce GTX 1650 CPU- AMD Ryzen 5 4000 series Vbox version- 6.1.22 Guest OS- Manjaro Linux ( based on arch) and Windows XP (for retro games)

And I have installed host extensions on the host and I have installed guest additions on the guests.

I want to passthrough a gpu to the guests so I can test what gaming on linux is like on the manjaro guest and so I can play retro games better on the xp guest.

The manjaro guest is 64 bit and the XP guest is 32 bit and has SP3 installed.


r/virtualbox • • Jun 04 '25

Release VirtualBox 7.1.10 released

24 Upvotes

r/virtualbox • • Oct 30 '22

Help Windows 11 guest OS keeps freezing/crashing

24 Upvotes

I run Windows 11 22H2 and want to run a VM with Windows 11 as well. I installed the latest version (7.0.2) of VirtualBox with the guest additions but the guest OS keeps crashing/freezing after a few minutes (sometimes less than a minute) of use.

I have a new system. Intel Core i7-12700, 32 GB DDR4, ASUS ROG STRIX B660-A GAMING WIFI D4 and RTX 3080 (but virtualbox seems to use the Intel graphics instead).

I've tried changing settings, enabled and disabled Hyper-V, but to no avail. Allocating more or less ram/cpu cores doesn't help either.

What can I do? This is super frustrating because part of the reason why I put so much ram into this system was so that I could comfortably run VMs. But not only does my VM crash all the time, when it does work it is laggy as hell.


r/virtualbox • • Jun 24 '22

Help is anyone able to activate a Windows 10/11 guest VM?

23 Upvotes

Hi all. :)

I am using Pop!_Os host (based on Ubuntu 22.04 LTS), Windows 10 & Windows 11 guests, and Virtualbox 6.1.34.

I bought a Dell that came with Windows 10 installed, which I recently upgraded to Windows 11.

I wiped Windows from the laptop and installed Windows 10 & 11 in 2 separate VMs, but can't activate Windows in either VM.

My understanding is that modern computers have the Windows product keys in the BIOS...so how can the VMs access the BIOS in order for Windows to be activated?

Thanks in advance! :)

EDIT1: I think I just found the answer by googling - run this from a terminal in linux to pull the Windows 10/11 key from BIOS:

sudo strings /sys/firmware/acpi/tables/MSDM

EDIT2: Success! That linux command above pulled a 25 character key from my BIOS and I was able to use the key to install a new Windows 10 VM that doesn't require activation! Windows 11 is so crap that I am sticking with W10! :)


r/virtualbox • • Jul 10 '20

Guide/Tutorial How to fix VirtualBox 6.1 running slow on Mac after initial install

23 Upvotes

Note: this is not a post about running MacOS on VirtualBox, but running VirtualBox on a Mac.

I'm using a Macbook Pro 16" and using VirtualBox 6.1 to run Ubuntu 20, I have installed Guest Additions on Ubuntu. VirtualBox seemed to run slow but I found the solution was actually to do with resolution. Posting because it took awhile searching through various forums how to speed VB up so I thought a consolidated post could help some other beginners out.

Step 1: Install guest additions for VirtualBox. It's pretty easy and there are tutorials on how to do this. Once it's installed the features that are useful for the next steps are all automatically applied.

Step 2: Setting VirtualBox VM to open in low resolution (don't worry, by low resolution I believe it just means lower than the Retina display resolution, not that its going to be in a terrible resolution once you set this, mine looks great).

Go to applications > right click VirtualBox > Show Package Contents > expand Resources folder > then right click VirtualBoxVM application file > click on Get Info > then you'll see a check box that says "Open in low resolution". Check this box.

Step 3: Make sure scale is set to 100%

To make sure you're scale is set to 100% (mine was set to 200% from previously trying to fix resolution issues so yours may already be at 100%). You do this by clicking on the tiny monitor/screen icon on the bottom right of the VM window. Then click on Virtual Screen 1 and select 100%.

Step 4: Make sure Auto-Resize guest display is selected

This should be selected automatically after installing the guest additions but just to make sure you want to click on the same monitor/screen icon in step 3 and select "Auto-Resize guest display" if there isn't already a check next to it.

Step 5: Set the graphics controller to VBoxSVGA (skip this step if you want, explanation below)

This is the last step and to be honest I do not know what it does. I was following the recommendations of someone else who was having the same laggy issues with VirtualBox on a newer Mac but even before doing this my Ubuntu in VirtualBox was already running smoothly. But hey, it probably does something important that I don't realize. But all you have to do is once you open VirtualBox and before running your VM you want to click on Settings > Display > and once here you change the graphics controller to VBoxSVGA. It may pop up a little warning that says Invalid Settings Detected but I just ignored that and everything's working fine.

I hope this helps!