Main Menu

Search

LINUX: How To Generate VM Core on Linux VM (Virtual Machine) Without Stopping Or Rebooting the VM? (xm commands)

Below xm dump-core command with "-L" live option can be used to generate VM core from Linux Virtual Machine.
xm dump-core -L <VM UUID> <location of dump core>/<dump core filename>

With "-L" live option the VM core will be generated when the VM is running. Replace <VM UUID> with Virtual Machine UUID in above command and specific the location where you want to save VM core and filename for VM core.

For e.g. if you want to create VM core for VM with UUID 0004fb0000060000d39b625749c489c7 under /ssd/ directory with name 0004fb0000060000d39b625749c489c7-core, your xm dump core command looks as follows:

xm dump-core -L 0004fb0000060000d39b625749c489c7 /ssd/0004fb0000060000d39b625749c489c7-core
Below is example console output when running xm dump-core command.
# xm dump-core -L 0004fb0000060000d39b625749c489c7 /ssd/0004fb0000060000d39b625749c489c7-core
Dumping core of domain: 0004fb0000060000d39b625749c489c7 ...


Products to which Article Applies

All Linux Virtual Machines (VM's).



tarun boyella


No comments:

Post a Comment