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:
parent
abe7df34fc
commit
fb89e6f275
@ -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
|
||||
|
@ -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
|
||||
|
@ -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__
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user