Dump Virtual Box Memory
A quick reminder of one of the ways of how to dump memory of a VM running on VirtualBox in Linux environment.
List Available VMs
cd "C:\Program Files\Oracle\VirtualBox\"
.\VBoxManage.exe list vms
...
"win1002 debugee" {5f176ebb-a0cc-4dc7-9c6f-988fcbcca867}
...Enable Debug Mode
mantvydas@~: virtualbox --startvm 'yourVMName or VM UUID' --dbgDump VM Memory
Launch the VirtualBox debug console by navigating to "Debug" menu an select "Command Line":

Once you select "Command Line", you will be presented with a console that looks like this:

To create a memory dump, issue the below command (also highlighted in the above graphic):
VBoxDbg> .pgmphystofile 'w7-nc-shell.bin'Persistence
If you want the debug options to be always available, you can:
export
VBOX_GUI_DBG_ENABLED=truebefore launching the VM orput export
VBOX_GUI_DBG_ENABLED=truein your.bashrcor/etc/environment
Last updated