3

It seems that I have enough though; maybe it's not automatic swap mounting?

Any help on getting hibernate working is appreciated.

Problem

A T
  • 2,472
  • 6
  • 25
  • 33
  • What is not hibernating the host or the virtualbox guest ? How much RAM do you have ? – Panther Dec 12 '11 at 18:48
  • possible duplicate of [How do I add more swap easily so that I can hibernate my laptop?](http://askubuntu.com/questions/49095/how-do-i-add-more-swap-easily-so-that-i-can-hibernate-my-laptop) – Bruno Pereira Dec 12 '11 at 18:52
  • This is **not** a dupe to the swap question as here a virtual machine needs to be hibernated. – Takkat Dec 12 '11 at 21:00

1 Answers1

6

It is not a good idea to hibernate your Virtual Box virtual machine to the virtual disk swap. The appropriate way to achieve hibernation is to close your virtual machine with Machine -> Close (or just close the virtual machine window):

enter image description here

Choose "Save the machine state" for "hibernating" to a file on your host partition.

You can also do this from command line on the host with the following command:

VBoxManage controlvm <name> savestate

Replace <name> by the name of your VM.

Takkat
  • 140,996
  • 54
  • 308
  • 426