Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Qemu hang silently on failed boot
Ticket: JIRA-344 Problem: When QEMU was failing to boot the hard drive file image provided by the user, for example we have cases of user using an ext4 image for firefracker instead of a qemu disk image (this was facilitated by an oversight in the typescript sdk), the qemu process and hence the controller would hang indefinetly without showing an error message. Analysis 1. the Boot process was not part of the logs or the process output. (even inside the server) which is part of what was making it hard to debug. 2. QEMU try to boot via the network even if it is useless 3. After failing all boot method the qemu process and thus the controller is still running indefinitely Solution: Change the option for qemu -nographics make it output the boot process on the standard output (and thus the logs) -boot order=c only boot the first hard drive (not sure if this actually work) -boot reboot-timeout=1 make it reboot if if fail to boot, but since we have -no-reboot the process just stop (default is -1 no reboot)
- Loading branch information