[Solved] Unable to install RHEL9 on VirtualBox

Discussions about using Linux guests in VirtualBox.
Post Reply
Fujitsu_user
Posts: 34
Joined: 12. Feb 2021, 00:02

[Solved] Unable to install RHEL9 on VirtualBox

Post by Fujitsu_user »

Whenever to start it, it will almost immediately panic:
RHEL9.png
RHEL9.png (36.87 KiB) Viewed 7602 times
Please see the attached logs and the screen copy.
Thanks.
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 RHEL9 on VirtualBox

Post by scottgus1 »

There was no log, but the green turtle is present, so Hyper-V is enabled. See HMR3Init: Attempting fall back to NEM (Hyper-V is active)
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 RHEL9 on VirtualBox

Post by fth0 »

If you haven't already eliminated Hyper-V, please try if the following command helps:

Code: Select all

VBoxManage setextradata "RHEL9" "VBoxInternal/CFGM/IsaExts/POPCNT" "1"
[/s]
Edit:
Damn it, that happens when you type instead of copy! ;)

Please try the following command instead:

Code: Select all

VBoxManage setextradata "RHEL9" "VBoxInternal/CPUM/IsaExts/POPCNT" "1"
If it does not help, and only then, additionally try:

Code: Select all

VBoxManage setextradata "RHEL9" "VBoxInternal/CPUM/IsaExts/POPCNT" "2"
Last edited by fth0 on 31. Jul 2022, 13:01, edited 1 time in total.
Fujitsu_user
Posts: 34
Joined: 12. Feb 2021, 00:02

Re: Unable to install RHEL9 on VirtualBox

Post by Fujitsu_user »

Just clarify: as after I turned off the Hyper-V in Windows 11's setting and rebooted the machine, tried to install RHEL9, still same problem, so I re-enabled the Hyper-V.
Just tried your VBoxMange command, but still, the RHEL9 will almost immediately panic. I tried to add the logs, now I found it said the log file too big, max allowed size is only 128Kib, but my log files are all bigger than that, let me know how should I send the log files over.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Unable to install RHEL9 on VirtualBox

Post by mpack »

I deleted your pasted, partial logs.

Please provide a VM log file. Make sure the VM is fully shut down, then right click it in the manager UI. Select "Show Log" and save "VBox.log" (no other file) to a zip file. Then attach the zip here.

I would say to look for the "Upload attachment" tab when composing a message, but you already posted a screenshot so you must already know about it.
Fujitsu_user
Posts: 34
Joined: 12. Feb 2021, 00:02

Re: Unable to install RHEL9 on VirtualBox

Post by Fujitsu_user »

Ok, please see the attached zipped log file
Attachments
VBox.zip
VBox.log
(28.54 KiB) Downloaded 34 times
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 RHEL9 on VirtualBox

Post by fth0 »

Sorry, I made a mistake. :(

Please see my previous post for the correct command.
Fujitsu_user
Posts: 34
Joined: 12. Feb 2021, 00:02

Re: Unable to install RHEL9 on VirtualBox

Post by Fujitsu_user »

The
VBoxManage setextradata "RHEL9" "VBoxInternal/CPUM/IsaExts/POPCNT" "1"
fixed the issue. Thanks a lot!!!
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 RHEL9 on VirtualBox

Post by fth0 »

Thanks for reporting back! :)
Fujitsu_user
Posts: 34
Joined: 12. Feb 2021, 00:02

Re: Unable to install RHEL9 on VirtualBox

Post by Fujitsu_user »

fth0 wrote:Thanks for reporting back! :)
Hi fth0, may I know what does the command VBoxManage setextradata "RHEL9" "VBoxInternal/CPUM/IsaExts/POPCNT" "1" do? as I found now the svm flag in /proc/cpuinfo is gone on all my Linux VMs, could not get KVM support for qemu. If that's the cause, how to restore it to its original state? Thanks a lot.
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: [Solved] Unable to install RHEL9 on VirtualBox

Post by fth0 »

VirtualBox 6.1.36 does not to provide the CPU capability POPCNT to the guest OS when running in NEM mode (under Hyper-V). The given extradata setting overrides this decision. Leave out only the digit '1' (but keep the then empty quotes "") to remove the extradata setting.

I don't see any connection to the SVM flag, but let's discuss that in your other thread.
Post Reply