QEMU main repository: Please see https://www.qemu.org/docs/master/devel/submitting-a-patch.html for how to submit changes to QEMU. Pull Requests are ignored. Please only use release tarballs from the QEMU website. http://www.qemu.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
981 B
30 lines
981 B
.. _direct_005flinux_005fboot:
|
|
|
|
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:
|
|
|
|
.. parsed-literal::
|
|
|
|
|qemu_system| -kernel bzImage -drive file=rootdisk.img,format=raw -append "root=/dev/sda"
|
|
|
|
Use ``-kernel`` to provide the Linux kernel image and ``-append`` to
|
|
give the kernel command line arguments. The ``-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
|
|
``-nographic`` option. The typical command line is:
|
|
|
|
.. parsed-literal::
|
|
|
|
|qemu_system| -kernel bzImage -drive file=rootdisk.img,format=raw \
|
|
-append "root=/dev/sda console=ttyS0" -nographic
|
|
|
|
Use :kbd:`Ctrl+a c` to switch between the serial console and the monitor (see
|
|
:ref:`GUI_keys`).
|
|
|