
In order to facilitate the reorganization of qemu-doc.texi content, as well as the conversion to rST/Sphinx, split it in multiple .texi files that are included from docs/system. The "other devices" section is renamed to ivshmem and placed last. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Tested-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20200228153619.9906-6-peter.maydell@linaro.org Message-id: 20200226113034.6741-6-pbonzini@redhat.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
28 lines
950 B
Plaintext
28 lines
950 B
Plaintext
@node direct_linux_boot
|
|
@section Direct Linux Boot
|
|
|
|
This section explains how to launch a Linux kernel inside QEMU without
|
|
having to make a full bootable image. It is very useful for fast Linux
|
|
kernel testing.
|
|
|
|
The syntax is:
|
|
@example
|
|
@value{qemu_system} -kernel bzImage -hda rootdisk.img -append "root=/dev/hda"
|
|
@end example
|
|
|
|
Use @option{-kernel} to provide the Linux kernel image and
|
|
@option{-append} to give the kernel command line arguments. The
|
|
@option{-initrd} option can be used to provide an INITRD image.
|
|
|
|
If you do not need graphical output, you can disable it and redirect
|
|
the virtual serial port and the QEMU monitor to the console with the
|
|
@option{-nographic} option. The typical command line is:
|
|
@example
|
|
@value{qemu_system} -kernel bzImage -hda rootdisk.img \
|
|
-append "root=/dev/hda console=ttyS0" -nographic
|
|
@end example
|
|
|
|
Use @key{Ctrl-a c} to switch between the serial console and the
|
|
monitor (@pxref{pcsys_keys}).
|
|
|