Skip to content

Commit a74f718

Browse files
committed
gen_nodes: add device vmcoreinfo to guestfs q35
This enables dumping the coredump of the VM in case of crash in the kernel. Note that CONFIG_FW_CFG_SYSFS and CONFIG_KDUMP needs to enabled. Once the crash happens, run: virsh dump --memory-only <vmname> ../vmcore Signed-off-by: Pankaj Raghav <[email protected]>
1 parent 6ddeb69 commit a74f718

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

playbooks/roles/gen_nodes/templates/guestfs_q35.j2.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@
183183
<qemu:arg value='-global'/>
184184
<qemu:arg value='ICH9-LPC.disable_s4=0'/>
185185
<qemu:arg value='-device'/>
186+
<qemu:arg value='vmcoreinfo'/>
187+
<qemu:arg value='-device'/>
186188
<qemu:arg value='pxb-pcie,id=pcie.1,bus_nr=32,bus=pcie.0,addr=0x8'/>
187189
{% if libvirt_enable_gdb %}
188190
<qemu:arg value='-gdb'/>

0 commit comments

Comments
 (0)