DescriptionAdd support for saving VM state when a test fails.
VM state information is stored in a copy-on-write QCOW2 file that is
created based on the chromiumos_qemu_image.bin file. Only changes are
written to this file.
The guest VM triggers the save VM command by writing "savevm" to its
/dev/ttyUSB0. This USB serial device is a virtual USB serial device
created by QEMU and is redirected to the QEMU monitor.
Since QEMU USB serial device emulates an FTDI UART, image_to_vm.sh
modifies the kernel command-line parameter to force the
usbserial_generic driver to claim the QEMU USB serial device.
BUG=9577
TEST=Run cros_run_vm_test with various parameter combinations, force a
test failure in the middle of smoke_Suite to ensure a snapshot is
created and verify snapshot is correct by loading it, run
cros_run_vm_test without new parameters to ensure existing
functionalities
Change-Id: I776968a61e25efffca2ab761aa5f8a24b80a7369
Patch Set 1 #
Total comments: 2
Patch Set 2 : Change monitor redirection to use unix socket instead of TCP socket #Patch Set 3 : Fix nit #
Messages
Total messages: 11 (0 generated)
|