Reputation: 4198
I want to take a dump of the entirety of the physical memory of a virtual machine running on VBox on vagrant. I was wondering if vagrant can do that for me? It seems like the vagrant commands are pretty limited. Thanks
Upvotes: 1
Views: 180
Reputation: 45295
You can do it inside of VM:
sudo dd if=/dev/fmem of=/tmp/fmem_dump.dd bs=1MB count=10
If you want to dump the memory of one process you can use:
$ cat /proc/[pid]/maps
Upvotes: 2