Unable to install virtualbox on windows 11

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Rosea
Posts: 7
Joined: 12. Oct 2022, 19:04

Unable to install virtualbox on windows 11

Post by Rosea »

Hi All,

I had and old version of virtual box installed on my laptop - 6.1.38 I uninstalled it - since it did not uninstall, I tried using regedit and I tried installing 6.1.40 but it says "Fatal error during installation". So I tried the following:
1. Install as administrator
2. disable antivirus
3. delete the ".VirtualBox" folder
4. cleaning the registry with CCleaner
5. disabled USB support
None of this worked, please help me resolve the issue.

Thank you,
Rose
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Unable to install virtualbox on windows 11

Post by scottgus1 »

Please try this:
Make a new folder on your C drive to put the installer and the log it will make:
C:\VBinstall

Put the installer in the new folder. Open a Run-As-Admin command prompt, and enter this in the command line:

"C:\VBinstall\VirtualBox-X.Y.Z-######-Win.exe"{space}--logging{space}--msi-log-file{space}"C:\VBinstall\textfile.txt"

So for 6.1.38 it should read:

"C:\VBinstall\VirtualBox-6.1.38-153438-Win.exe" --logging --msi-log-file "C:\VBinstall\msilog.txt"

Zip and post "msilog.txt" using the forum's Upload Attachment tab.
Rosea
Posts: 7
Joined: 12. Oct 2022, 19:04

Re: Unable to install virtualbox on windows 11 - msilog.txt

Post by Rosea »

Hello,

Thanks a lot for your reply. I have attached the file.

Thank you
Attachments
msilog.txt.zip
(7.03 KiB) Downloaded 53 times
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Unable to install virtualbox on windows 11

Post by scottgus1 »

The log doesn't seem to show an error, except that the install failed. 'Tis a puzzle to me. Look at these links, maybe the Windows MSI system is bunged.
Rosea
Posts: 7
Joined: 12. Oct 2022, 19:04

Re: Unable to install virtualbox on windows 11

Post by Rosea »

Hello,

I tried repair but it showed no errors after scan & the checks.
I again tried installing but it failed. Should I try editing the registry & changing any key?

Thank you
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Unable to install virtualbox on windows 11

Post by scottgus1 »

I regret I don't know much more about fixing these MSI installer issues. The Virtualbox installer is really a Microsoft MSI installer app carrying the Virtualbox payload.

You could try enabling full MSI logging, then run the installer again, and post the new log (This log will be bigger):
Basic troubleshooting steps for Windows Installer
Enable Windows Installer logging
https://docs.microsoft.com/en-US/troubl ... er-logging
Rosea
Posts: 7
Joined: 12. Oct 2022, 19:04

Re: Unable to install virtualbox on windows 11

Post by Rosea »

Hello,

In the link - https://learn.microsoft.com/en-US/troub ... er-logging
I am unable to modify the name to Logging for the path:
Path:HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer

The name is greyed out to 'Default'. I have attached the screenshot. Please check if it is correct(I have not done this before)
screenshot_regedit.png
screenshot_regedit.png (45.82 KiB) Viewed 4103 times
Rosea
Posts: 7
Joined: 12. Oct 2022, 19:04

Re: Unable to install virtualbox on windows 11

Post by Rosea »

Please check the log file as well.

Thank you
Attachments
msilog.zip
(165.17 KiB) Downloaded 10 times
BillG
Volunteer
Posts: 5102
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Unable to install virtualbox on windows 11

Post by BillG »

Rosea wrote:Hello,

In the link - https://learn.microsoft.com/en-US/troub ... er-logging
I am unable to modify the name to Logging for the path:
Path:HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer
The problem you are having is with the MSI installer, not with VirtualBox (which is why you found a solution at Microsoft). You are more likely to get reliable help in a Microsoft forum than here because of this - that's their special interest.
Bill
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Unable to install virtualbox on windows 11

Post by fth0 »

msilog.txt wrote:
InstallNetLwf: VBoxNetCfgWinNetLwfInstall failed, error = 0x80070002
InstallNetFlt: VBoxNetCfgWinNetFltInstall failed, error = 0x80070002
The installation of the VirtualBox network drivers failed. The error code 0x80070002 typically indicates general problems inside the Windows installer mechanisms. Google is your friend. ;)
Rosea
Posts: 7
Joined: 12. Oct 2022, 19:04

Re: Unable to install virtualbox on windows 11

Post by Rosea »

Hello,

I google searched and tried many solutions but I still cannot install virtualbox

Thank you,
Rose
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Unable to install virtualbox on windows 11

Post by scottgus1 »

You'll have to post this final log and fth0's diagnoses on a Microsoft forum that deals with installing issues.

At this point Virtualbox isn't running yet, and Windows is having trouble installing the Virtualbox files. Something is wrong with your Windows. A Microsoft forum may be able to explain what to do.
Rosea
Posts: 7
Joined: 12. Oct 2022, 19:04

Re: Unable to install virtualbox on windows 11

Post by Rosea »

Hi Scott,

Thanks a lot for your help.

Best regards,
Rose
PeterFromSwe
Posts: 5
Joined: 29. Jan 2018, 20:45
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Ubuntu

Re: Unable to install virtualbox on windows 11

Post by PeterFromSwe »

Hi. Any update on how to proceed? I have exact same symptoms. /Peter
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Unable to install virtualbox on windows 11

Post by scottgus1 »

Peter, see the advice given to Rosea above and try it. If you still have trouble, start a new topic.
Post Reply