Deleting Hibernate File

Discussions about using Windows guests in VirtualBox.
Post Reply
LoztInSpace
Posts: 19
Joined: 9. Dec 2012, 03:57
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows 2008

Deleting Hibernate File

Post by LoztInSpace »

Guest: Windows Server 2003
Host: Win7

Is Hiberfil.sys used by the VB Save Sate process? If not is there a way to delete it?

The usual way on a native Windows machine does not work-
powercfg -h off

Hibernation failed with the following error: The request is not supported
The following items are preventing hibernation on this system.
The system firmware does not support hibernation.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Deleting Hibernate File

Post by socratis »

VirtualBox knows absolutely nothing about "Hiberfil.sys" file on your guest. It doesn't care what files are in the guest. When you "Save State" a guest, a ".sav" file is created on your host with the contents of the memory at the time, but nothing on the guest. Why you can't delete the file, is actually a Windows question and you would be better served if you took a look at a Windows forum or with the appropriate Google search.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
LoztInSpace
Posts: 19
Joined: 9. Dec 2012, 03:57
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows 2008

Re: Deleting Hibernate File

Post by LoztInSpace »

Thanks that makes perfect sense.

Given the error message, does VB affect the way Windows might be interpreting the firmware?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Deleting Hibernate File

Post by mpack »

The BIOS tells the guest OS that hibernation makes no sense, and the guest OS tells you the same, via the error message.

You suspend a VM using the "save state" feature of VirtualBox: which saves the guest state on the host. You have no need of the guest OS internal feature.
Rootman
Posts: 251
Joined: 1. Oct 2012, 18:29

Re: Deleting Hibernate File

Post by Rootman »

Was this perhaps a physical server you made a virtual one? If so the hyberfil.sys is vestigial and not doing anything. Will Windows let you delete it? If not DL a Linux live distro, mount the drive after booting to it in the VM from the ISO and delete it. if it comes back then Windows is creating it for some reason. The "hardware" that is reported by the VB BIOS simply does not supply what's needed to allow hibernation, it just won't work. When suspending a VM in VB the VM's state is saved OUTSIDE the VM in the hosts filesystem along side the VM's disk file.

Look at the guests registry here: HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Power\HibernateEnabled it should be set to 0, if not change it there and reboot. If it's recreated after that then you have some sort of utility or something that is recreating it. If you just can't get Windows to cooperate then you can set the key HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Power\HiberFileSizePercent to decimal 1 which will make the hyberfil.sys very small.
LoztInSpace
Posts: 19
Joined: 9. Dec 2012, 03:57
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows 2008

Re: Deleting Hibernate File

Post by LoztInSpace »

Got it many thanks!
Post Reply