How to dump VM to memory

Discussions related to using the OSE version of VirtualBox.
Post Reply
wytmoon
Posts: 8
Joined: 10. Dec 2012, 07:17

How to dump VM to memory

Post by wytmoon »

Hello

I am running Android x86 ICS version on the VirtualBox I build from source.
I wanted to dump that Android VM into memory so that I can load it again "on the fly" outside VBox.
Tried to clone the HD using "clonehd" with RAW format to create a .img file but it is not what I wanted.
I am expecting a .bin file for the Android VM.

Is this possible? If so can someone help me do this?
Thanks for the help
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: How to dump VM to memory

Post by mpack »

A raw image of the VM disk is about as dumpy as it gets. In fact I can't think of any other useful interpretation of what you are asking.
wytmoon
Posts: 8
Joined: 10. Dec 2012, 07:17

Re: How to dump VM to memory

Post by wytmoon »

I think I found what I need based on this wiki page : http://wiki.yobi.be/wiki/RAM_analysis#R ... phystofile
Followed the instructions for "RAM dump with VirtualBox: via pgmphystofile" but when I execute ".pgmphystofile <filename>" I get the following error

"Error: You hit a debugger feature which isn't implemented yet (argument 0)."

Can someone tell me how to resolve this problem?
Is this because of a library or file that was missed during build?
Thanks for the help
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: How to dump VM to memory

Post by mpack »

If you simply suspend the VM it will create a hibernation file containing the memory contents, CPU register contents etc. The format for the file can be found in the source code.

You do appreciate that the dump will only be useful in other VirtualBox VMs, right? And even then only ones with the same hardware recipe?
Post Reply