Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想转储在 vagrant 上运行在 VBox 上的虚拟机的全部物理内存。我想知道流浪者是否可以为我做到这一点?似乎 vagrant 命令非常有限。谢谢
您可以在 VM 内部执行此操作:
sudo dd if=/dev/fmem of=/tmp/fmem_dump.dd bs=1MB count=10
如果要转储一个进程的内存,可以使用:
$ cat /proc/[pid]/maps