linuxboot.rst 944 B

123456789101112131415161718192021222324252627282930
  1. .. _direct_005flinux_005fboot:
  2. Direct Linux Boot
  3. -----------------
  4. This section explains how to launch a Linux kernel inside QEMU without
  5. having to make a full bootable image. It is very useful for fast Linux
  6. kernel testing.
  7. The syntax is:
  8. .. parsed-literal::
  9. |qemu_system| -kernel bzImage -hda rootdisk.img -append "root=/dev/hda"
  10. Use ``-kernel`` to provide the Linux kernel image and ``-append`` to
  11. give the kernel command line arguments. The ``-initrd`` option can be
  12. used to provide an INITRD image.
  13. If you do not need graphical output, you can disable it and redirect the
  14. virtual serial port and the QEMU monitor to the console with the
  15. ``-nographic`` option. The typical command line is:
  16. .. parsed-literal::
  17. |qemu_system| -kernel bzImage -hda rootdisk.img \
  18. -append "root=/dev/hda console=ttyS0" -nographic
  19. Use Ctrl-a c to switch between the serial console and the monitor (see
  20. :ref:`pcsys_005fkeys`).