Virtualbox Guru Meditation und Neustart des Hosts

Allgemeine Diskussionen über den Einsatz von VirtualBox.
Post Reply
TheBraggart
Posts: 2
Joined: 3. Jul 2020, 08:20

Virtualbox Guru Meditation und Neustart des Hosts

Post by TheBraggart »

Hallo zusammen,

Ich habe in unserer Firma 3 virtuelle Server mit Virtualbox aufgesetzt.
Zunächst mal alles kein Problem.
Dann kam das Problem, dass ja das Host-System, welches auf Windows 10 Pro läuft, ab und an selbständig, wegen Updates, herunter fährt und neu startet.
Da dadurch leider die virtuellen Maschinen abgewürgt werden, musste ich eine Lösung dafür finden.
Ich habe es so gelöst, dass der PC wenn er den Befehl zum Herunterfahren bekommt, der shutdown mit einer Batch abgebrochen wird und 5 Minuten gewartet wird,während
die Maschinen den Befehl zum Herunterfahren bekommen. Beim Hochfahren wird ebenfalls eine Batch ausgeführt, welche die Maschinen hochfährt.

Shutdown.bat

Code: Select all

shutdown -a
echo Das Herunterfahren wurde am %date% um %time% erfolgreich gestoppt. >> C:\Users\Administrator\Desktop\log.txt
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" controlvm "Windows Server 2016 Fileserver" acpipowerbutton
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" controlvm "Windows 10 Stein" acpipowerbutton
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" controlvm "Windows Server 2016 Lizenzserver" acpipowerbutton
ping -n 10 localhost > nul
echo Die virtuellen Maschinen wurden am %date% um %time% erfolgreich heruntergefahren. >> C:\Users\Administrator\Desktop\log.txt
shutdown -s -t 360
exit
Start.bat

Code: Select all

ping -n 360 localhost > nul
cd C:\Program Files\Oracle\Virtualbox
vboxmanage startvm "Windows Server 2016 Fileserver"
vboxmanage startvm "Windows 10 Stein"
vboxmanage startvm "Windows Server 2016 Lizenzserver"
exit

Bis hierhin ist auch alles ok. Ich habe das mit dem Herunterfahren getestet und jedes mal funktioniert es.
Ob beim Herunterfahren durch Updates das selbe Ereignis ausgelöst wird weiß ich noch nicht, da ich nicht bis 0 Uhr im Geschäft sitzen will um zu warten bis das System selbständig herunter fährt.

Das Problem ist jetzt, dass der Fileserver ab und zu durch den erzwungenen Neustart in diesen Guru Modus verfällt.
Ich habe mir das Logfile dazu auch angesehen aber werde daraus nicht schlau.
Da steht einfach, dass die Maschine in den Guru Modus versetzt wird.

Das Logfile und die Konfiguration der betroffenen Maschine habe ich angefügt.

Wenn mir jemand dahingehend weiterhelfen könnte wäre ich sehr dankbar.
Vielleicht hat auch jemand ein komplett anderes Konzept für die Neustartproblematik durch Updates.
Vielen Dank schonmal!
Attachments
Documents.zip
(82.05 KiB) Downloaded 18 times
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 Guru Meditation und Neustart des Hosts

Post by scottgus1 »

First, use Group Policy Editor to set Windows 10 Pro to not automatically reboot for updates:

Run... > gpedit.msc > Local Computer Policy > Administrative Templates > Windows Components > Windows Update > Configure Automatic Updates > set "Configure automatic updating" dropdown to 2 (Notify for download and auto install) or possibly 3 (Auto download and notify for install).

The guru meditated on "VINF_EM_TRIPLE_FAULT", which means the guest wanted to do something so weird out there that the little guy could not figure out what to do.

Stop the forced shutdowns with GPE as above and this error will probably go away, if it is not caused by a flipped bit previously generated by the forced shutdowns. Also try an 'sfc /scannow' in an administrator command prompt inside the guest to test for bad guest system files.
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 Guru Meditation und Neustart des Hosts

Post by scottgus1 »

Also, use Windows settings or GPE to disable the ability to shut down the server manually though the Start menu, so someone doesn't accidentally kill the guests. Use a batch file with a shortcut in the desktop, which shuts down running guest, like you have posted, as the only way to shut down the host.
TheBraggart
Posts: 2
Joined: 3. Jul 2020, 08:20

Re: Virtualbox Guru Meditation und Neustart des Hosts

Post by TheBraggart »

Hey,

thanks for the advice!

I configured the GPO object and i checked it with gpresult /r.
I will see if the starts automatically again.

The shutdown and restart button i disabled firstly when i installed the machine.
I thought there is no possibility to disable the automatic updates on a win 10 machine...
Thank you for your answer!
Post Reply