Update qemu arguments to work correctly with nographic

Add -monitor none to turn off the qemu monitor multiplexing.
Pass -boot d for -cdrom booting instead of 'c'.

Add 'console=ttyS0,115200n8' to the boot arguments so that kernel output
will show up on the serial port.
This commit is contained in:
Brian C. Lane 2019-05-24 16:44:37 -07:00
parent abe7df34fc
commit fb89e6f275
3 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ rlJournalStart
rlPhaseEnd
rlPhaseStartTest "Start VM instance"
rlRun -t -c "$QEMU -m 2048 -boot c -cdrom $IMAGE -nographic \
rlRun -t -c "$QEMU -m 2048 -boot d -cdrom $IMAGE -nographic -monitor none \
-net user,id=nic0,hostfwd=tcp::2222-:22 -net nic &"
# 60 seconds timeout at boot menu screen
# then media check + boot ~ 30 seconds

View File

@ -74,7 +74,7 @@ __EOF__
rlPhaseEnd
rlPhaseStartTest "Start VM instance"
rlRun -t -c "$QEMU -m 2048 -boot c -hda $IMAGE -nographic \
rlRun -t -c "$QEMU -m 2048 -boot c -hda $IMAGE -nographic -monitor none \
-net user,id=nic0,hostfwd=tcp::2222-:22 -net nic &"
sleep 60
rlPhaseEnd

View File

@ -32,7 +32,7 @@ function setup_tests {
cat >> $blueprints_dir/example-http-server.toml << __EOF__
[customizations.kernel]
append = "custom_cmdline_arg"
append = "custom_cmdline_arg console=ttyS0,115200n8"
__EOF__
}