mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
vm_image_util.sh: use -display curses for QEMU 7.1+
The -curses option was removed in QEMU 7.1, use -display curses as the replacement. Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
This commit is contained in:
parent
02ea97d938
commit
73caf995db
@ -806,12 +806,12 @@ _write_qemu_common() {
|
||||
cat >"${VM_README}" <<EOF
|
||||
If you have qemu installed (or in the SDK), you can start the image with:
|
||||
cd path/to/image
|
||||
./$(basename "${script}") -curses
|
||||
./$(basename "${script}") -display curses
|
||||
|
||||
If you need to use a different ssh key or different ssh port:
|
||||
./$(basename "${script}") -a ~/.ssh/authorized_keys -p 2223 -- -curses
|
||||
./$(basename "${script}") -a ~/.ssh/authorized_keys -p 2223 -- -display curses
|
||||
|
||||
If you rather you can use the -nographic option instad of -curses. In this
|
||||
If you rather you can use the -nographic option instad of '-display curses'. In this
|
||||
mode you can switch from the vm to the qemu monitor console with: Ctrl-a c
|
||||
See the qemu man page for more details on the monitor console.
|
||||
|
||||
@ -911,7 +911,7 @@ _write_pxe_conf() {
|
||||
cat >>"${VM_README}" <<EOF
|
||||
|
||||
You can pass extra kernel parameters with -append, for example:
|
||||
./$(basename "${script}") -curses -append 'sshkey="PUT AN SSH KEY HERE"'
|
||||
./$(basename "${script}") -display curses -append 'sshkey="PUT AN SSH KEY HERE"'
|
||||
|
||||
When using -nographic or -serial you must also enable the serial console:
|
||||
./$(basename "${script}") -nographic -append 'console=ttyS0,115200n8'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user