VirtualBox-Fehler

Allgemeine Diskussionen über den Einsatz von VirtualBox.
SirWilliam91
Posts: 7
Joined: 5. Jun 2022, 23:27

VirtualBox-Fehler

Post by SirWilliam91 »

Hallo zusammen,

ich kann in der VirtualBox aktuell keine Server mehr starten:

Für die virtuelle Maschine Server konnte keine neue Sitzung eröffnet werden.
Not in a hypervisor partition (HVP=0) (VERR_NEM_NOT_AVAILABLE).
AMD-V is disabled in the BIOS (or by the host OS) (VERR_SVM_DISABLED).
Fehlercode: E_FAIL (0x80004005)
Komponente: ConsoleWrap
Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}


Als die Meldung vorhin erschien hab ich erstmal Windows neu installiert, auch weil ich seit der letzten funktionierenden Anwendung die Hardware im System getauscht habe.
Der PC läuft jetzt zwar wieder schneller, aber Server starten immernoch nicht.

Über die Google Suche wurde dann noch geraten die Virtualization im BIOS zu aktivieren und Hyper-V in den Systemeinstellungen zu deaktivieren, das war aber beides schon so.
Im Thread VERR_NEM_VM_CREATE_FAILED: What do I do? steht dazu ein paar Kosolenbefehle auszuführen wobei ich da ungern dran rumspiele.
Ausprobiert hab ich zudem die 6.1.34, 6.1.32 und 6.0.24 mit den entsprechenden Extensions sowie wiederkehrender Fehlermeldung.

Die VirtualBox nutze ich ausschließlich um an einer Typo3-Website zu basteln.
Mainboard vorher/nachher: ASUS M5A99X Evo R2.0 / MSI B550-A Pro
CPU vorher/nachher: AMD FX-8350 / AMD Ryzen 5 5600X
OS: Windows 10 Pro

Vielen Dank wenn sich hier jemand einklinkt.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VirtualBox-Fehler

Post by scottgus1 »

SirWilliam91 wrote:activate the virtualization in the BIOS
It's highly likely this is already activated, since 6.1 requires BIOS virtualization to be on at all times, and your VMs were running previously.
SirWilliam91 wrote:deactivate Hyper-V in the system settings
This is far more likely to be causing the problem. Major Windows Updates can turn on Hyper-V, so can a number of other Windows services.

Start the guest from full normal shutdown, not save-state. Run until you see the problem happen, then shut down the guest from within the guest OS if possible. If not possible, close the Virtualbox window for the guest with the Power Off option set.

Right-click the guest in the main Virtualbox window's guest list, choose Show Log. Save the far left tab's log. Search the log for these words:

Attempting fall back to NEM

If these words are in your guest's vbox.log, Hyper-V is enabled.
SirWilliam91 wrote:execute a few console commands, which I don't like playing around with.
You'll have to, since that's the best way to disable Hyper-V. It's not dangerous. Hundreds of Virtualbox users have run those commands with full success to their computers. (and of course a full restorable host disk image would be good insurance).

If these searched words are not present in the log, zip the vbox.log, and post the zip file, using the forum's Upload Attachment tab.
SirWilliam91
Posts: 7
Joined: 5. Jun 2022, 23:27

Re: VirtualBox-Fehler

Post by SirWilliam91 »

In der Log-File steht tatsächlich diese Zeile:
00:00:02.202112 HM: HMR3Init: Attempting fall back to NEM: AMD-V is disabled in the BIOS (or by the host OS)

Ich habe also die Anleitung VERR_NEM_VM_CREATE_FAILED: What do I do? befolgt.

DeviceGuard war in gpedit auf "nicht konfiguriert", ist jetzt deaktiviert.
CredentialGuard war bereits 0 in regedit.
Core Isolation Details gibt es nicht, in der Systemsteuerung steht "Standardhardwaresicherheit nicht unterstützt".

Danach hab ich diese Commands als Admin ausgeführt:
bcdedit /set hypervisorlaunchtype off
DISM /Online /Disable-Feature:Microsoft-Hyper-V
shutdown -s -t 2

PC ausgesteckt, gewartet, Boot - der Fehler bleibt leider bestehen.

Anbei die Log-File.
Attachments
Typo3 TPO 01B-2022-06-06-12-46-03.zip
(6.39 KiB) Downloaded 14 times
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VirtualBox-Fehler

Post by mpack »

00:00:02.202112 HM: HMR3Init: Attempting fall back to NEM: AMD-V is disabled in the BIOS (or by the host OS)
00:00:02.202414 VMSetError: F:\tinderbox\win-6.1\src\VBox\VMM\VMMR3\NEMR3Native-win.cpp(1460) int __cdecl nemR3NativeInit(struct VM *,bool,bool); rc=VERR_NEM_NOT_AVAILABLE
00:00:02.202449 VMSetError: Not in a hypervisor partition (HVP=0)
00:00:02.202474 NEM: NEMR3Init: Native init failed: VERR_NEM_NOT_AVAILABLE.
It seems to me that AMD-v (SVM) needs to be enabled in the host PC BIOS. Did you perhaps turn it off instead of on?

Read this related FAQ: I have a 64bit host, but can't install 64bit guests.
SirWilliam91
Posts: 7
Joined: 5. Jun 2022, 23:27

Re: VirtualBox-Fehler

Post by SirWilliam91 »

Im BIOS sieht es so aus, das war schon so eingestellt:
Attachments
IMG_20220606_140816629-2.jpg
IMG_20220606_140816629-2.jpg (100.37 KiB) Viewed 8757 times
Last edited by mpack on 6. Jun 2022, 16:24, edited 1 time in total.
Reason: Attach image directly.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VirtualBox-Fehler

Post by mpack »

Well, it's one of two things.

1. It is disabled in the PC BIOS (your most recent post says it is enabled).

2. It is enabled, but something else is using it.

The choice is yours.

In the option 2 case, the most obvious culprit on PCs is Hyper-v and related functions, but it can also be third party AV, system debug tools etc.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VirtualBox-Fehler

Post by scottgus1 »

FWIW the posted picture does not appear to be showing the AMD/V or SVM setting. Hyperthreading isn't either of these, and I have no idea what "Secure Virtual Machine" refers to. Please doublecheck what setting in your host BIOS actually refers to AMD-V or SVM, which are AMD's "tech names" for hardware virtualization, then check the setting is enabled, and if it is, please post a picture of that.

Note that if it has ben disabled, a full power-off and unplug of the PC for a few minutes is required to get the setting to be truly enabled.
SirWilliam91
Posts: 7
Joined: 5. Jun 2022, 23:27

Re: VirtualBox-Fehler

Post by SirWilliam91 »

Würde es zu 1. helfen ein BIOS Update durchzuführen? Im MSI Center wird davon abgeraten.

Zu 2. muss ich sagen, dass ich von dem Ganzen keine Ahnung habe. Ich brauche die VirtualBox für mein Studium und komme wegen dem Fehler derzeit nicht an meine typo3 Prüfungsarbeit.
Wie kann ich den Fehler weiter eingrenzen? Third Party AV kann keine Ursache sein. Und auch sonst ist das System frisch aufgesetzt.
In den Systemeinstellungen habe ich noch etwas gefunden das mit Hyper V zu tun hat, siehe Anhang.

Es wäre auch möglich den alten PC wieder zusammen zu bauen aber dafür fehlen mir ein paar Teile und ich finde die Lösung nicht nachhaltig.
SirWilliam91
Posts: 7
Joined: 5. Jun 2022, 23:27

Re: VirtualBox-Fehler

Post by SirWilliam91 »

scottgus1 wrote:FWIW the posted picture does not appear to be showing the AMD/V or SVM setting. Hyperthreading isn't either of these, and I have no idea what "Secure Virtual Machine" refers to. Please doublecheck what setting in your host BIOS actually refers to AMD-V or SVM, which are AMD's "tech names" for hardware virtualization, then check the setting is enabled, and if it is, please post a picture of that.

Note that if it has ben disabled, a full power-off and unplug of the PC for a few minutes is required to get the setting to be truly enabled.
Ich versuche das jetzt erstmal.
SirWilliam91
Posts: 7
Joined: 5. Jun 2022, 23:27

Re: VirtualBox-Fehler

Post by SirWilliam91 »

Ok nice! Die VirtualBox läuft wieder. Im BIOS war tatsächlich das AMD SVM deaktiviert. Die Option ist aber versteckt. Im MSI UEFI muss man dafür F7 drücken um in den Advanced Mode zu gelangen. Dann Overclocking > Advanced CPU Setting > SVM Mode enable/disable.

Müssen jetzt noch irgendwelche Änderungen die ich vorgenommen habe rückgängig gemacht werden?
Auf jeden Fall vielen Dank mpack und scottgus1.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VirtualBox-Fehler

Post by mpack »

scottgus1 wrote:I have no idea what "Secure Virtual Machine" refers to.
Hmm. I was under the impression that SVM is the acronym for Secure Virtual Machine/Mode, indicating what AMD originally thought the feature would be used for (i.e. AV, not VMs).

But the OP's later post talks of a hidden setting, so now I have no idea what the original setting enabled.
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: VirtualBox-Fehler

Post by fth0 »

SirWilliam91 wrote:Im BIOS war tatsächlich das AMD SVM deaktiviert. Die Option ist aber versteckt. Im MSI UEFI muss man dafür F7 drücken um in den Advanced Mode zu gelangen. Dann Overclocking > Advanced CPU Setting > SVM Mode enable/disable.
Was mir jetzt noch nicht klar ist: Wo befindet sich das Menü aus dem Screenshot in viewtopic.php?f=5&t=106212#p518878, in dem schon "Secure Virtual Machine: YES" stand?
SirWilliam91
Posts: 7
Joined: 5. Jun 2022, 23:27

Re: VirtualBox-Fehler

Post by SirWilliam91 »

Hier noch zwei Screenshots wie das Ganze im BIOS aussieht falls mein letzter Post unklar war.

Ich denke es ist für unerfahrene Nutzer einfach missverständlich gemacht im BIOS.
Wenn ich das BIOS als Laie aufrufe, also beim Start-Up DEL/ENTF drücke, sagt mir das wie im ersten Screenshot "Secure Virtual Machine: yes" was aber mehr heißt "Secure Virtual Machine: possible".
Erst das Switchen in das erweiterte BIOS per F7 bringt einen dann zur "echten" Einstellung.

EDIT: Bessere Screenshots. Leider kann ich keine Screenshots aus dem BIOS direkt speichern.
Attachments
SVM Mode disabled>enabled
SVM Mode disabled>enabled
IMG_20220606_170825882-04.jpg (35.11 KiB) Viewed 8740 times
Links OC Menü auswählen > Advanced CPU Configuration
Links OC Menü auswählen > Advanced CPU Configuration
IMG_20220606_170814665-03.jpg (43.9 KiB) Viewed 8740 times
"EZ Mode" BIOS hier F7 Taste drücken
"EZ Mode" BIOS hier F7 Taste drücken
IMG_20220606_170731484-01.jpg (74.54 KiB) Viewed 8740 times
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: VirtualBox-Fehler

Post by fth0 »

Danke für die Screenshots. Ich habe mir noch mal eine offizielle Dokumentation angesehen und jetzt verstanden, dass die Anzeige im "EZ Mode" nicht änderbar ist und nur bedeutet, dass die CPU SVM generell unterstützt, und nicht, ob es gerade ein- oder ausgeschaltet ist. Das geht nur im Overclocking-Bereich, wie Du schon beschrieben hast.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VirtualBox-Fehler

Post by scottgus1 »

scottgus1 wrote:I have no idea what "Secure Virtual Machine" refers to.
mpack wrote:I was under the impression that SVM is the acronym for Secure Virtual Machine/Mode
SVM = "Secure Virtual Machine"..... Yeah, makes sense. It's been one of those days :lol:

The last screenshots show enabled SVM, so it seems Hyper-V is the culprit. Is your computer controlled by corporate IT overlords?
Post Reply