Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
qemu [2008/06/23 08:02] stefanha |
qemu [2009/04/15 19:55] (current) warthog9 Flip from .usb to pdsk as .usb no longer works |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== How to use gPXE with QEMU ====== | ====== How to use gPXE with QEMU ====== | ||
+ | |||
+ | ===== Step by step ===== | ||
+ | |||
+ | - Install Qemu | ||
+ | - Compile or download gpxe.pdsk. | ||
+ | - Type on the command line: <code> qemu -fda gpxe.pdsk -net nic -net user -bootp http://etherboot.org/gtest/gtest.gpxe </code> | ||
===== Quick start ===== | ===== Quick start ===== | ||
- | First make sure you have ''gpxe.usb'' or ''ns8390.usb''. You can download them from [[http://rom-o-matic.net/|ROM-o-matic.net]] or [[download|build them yourself]]. | + | First make sure you have ''gpxe.pdsk'' or ''ns8390.pdsk''. You can download them from [[http://rom-o-matic.net/|ROM-o-matic.net]] or [[download|build them yourself]]. |
Here is how to **boot over HTTP**: | Here is how to **boot over HTTP**: | ||
<code> | <code> | ||
- | qemu -bootp http://server/file gpxe.usb | + | qemu -bootp http://server/file gpxe.pdsk |
</code> | </code> | ||
Or to **boot using PXE**: | Or to **boot using PXE**: | ||
<code> | <code> | ||
- | qemu -bootp tftp://10.0.2.2/pxefile -tftp /path/to/pxedir gpxe.usb | + | qemu -bootp tftp://10.0.2.2//pxefile -tftp /path/to/pxedir -fda gpxe.pdsk |
</code> | </code> | ||
QEMU's built-in TFTP server serves files from ''/path/to/pxedir'' at IP address 10.0.2.2. | QEMU's built-in TFTP server serves files from ''/path/to/pxedir'' at IP address 10.0.2.2. | ||
- | Note the ''-bootp'' option was added in QEMU 0.9.1. For versions of QEMU before 0.9.1, the instructions from [[http://git.etherboot.org/?p=gpxe.git;a=blob;f=contrib/bochs/README.qemu;hb=HEAD|contrib/bochs/README.qemu]] can be used. | + | NOTES: |
+ | |||
+ | The ''-bootp'' option was added in QEMU 0.9.1. For versions of QEMU before 0.9.1, the instructions from [[http://git.etherboot.org/?p=gpxe.git;a=blob;f=contrib/bochs/README.qemu;hb=HEAD|contrib/bochs/README.qemu]] can be used. | ||
+ | |||
+ | gPXE will strip one of the slashes immediately to the left of the actual filename in the -bootp URI you see above. QEMU 0.9.1 //demands// that there be a leading slash before the filename, so use the two slashes as you see them above unless your QEMU behaves differently. | ||
===== Debugging gPXE with QEMU ===== | ===== Debugging gPXE with QEMU ===== |