Skip to content
Snippets Groups Projects
Commit eac587b7 authored by Timmy Chan's avatar Timmy Chan
Browse files

Add qemu booting readme

parent 41680aef
Branches
No related tags found
1 merge request!5Feat/cve linux kernel
#!/bin/bash
# Boots a VM with a kernel and disk image in background.
#
# Assumes there is a kernel image called bzImage, and
# an OS disk image called disk.img.
#
# This script is not robust as it cannot check if a kernel or
# os image is properly compiled before running it on QEMU.
# It basically fires everything up and checks if the ssh port is
# open. Sometimes the ssh port may be open, but the kernel has crashed.
# This script does not do an additional check to cover that case.
#
# Kernel crash happen often on 2.6.x kernels.
#
# Example run:
# $ bash qemu_background_boot.sh -p <port>
set -eu
while [[ "$#" > 0 ]]; do case $1 in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment