Below xm dump-core command can be used to generate VM core from Linux Virtual Machine
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:
Below is example console output when running xm dump-core command.
VM Core file generated will typically be same size of total RAM memory of VM. So make sure that you save VM core in a location which has free space. Please note with using "-C" option we are crashing the VM as part of the VM core collection process. If you want the dump-core to be captured with VM running, you will have to use "-L" option (live) instead of "-C".
xm dump-core -C <VM UUID> <location of dump core>/<dump core filename>
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 -C 0004fb0000060000d39b625749c489c7 /ssd/0004fb0000060000d39b625749c489c7-core
Below is example console output when running xm dump-core command.
# xm dump-core -C 0004fb0000060000d39b625749c489c7 /ssd/0004fb0000060000d39b625749c489c7-core
Dumping core of domain: 0004fb0000060000d39b625749c489c7 ...
Dumping core of domain: 0004fb0000060000d39b625749c489c7 ...
VM Core file generated will typically be same size of total RAM memory of VM. So make sure that you save VM core in a location which has free space. Please note with using "-C" option we are crashing the VM as part of the VM core collection process. If you want the dump-core to be captured with VM running, you will have to use "-L" option (live) instead of "-C".
Products to which Article Applies
All Linux Virtual Machines (VM's).
tarun boyella
No comments:
Post a Comment