| 426 |
replace the bzImage in qemu.sh to try it. |
replace the bzImage in qemu.sh to try it. |
| 427 |
|
|
| 428 |
@item |
@item |
| 429 |
vl creates a temporary file in @var{$QEMU_TMPDIR} (@file{/tmp} is the |
qemu creates a temporary file in @var{$QEMU_TMPDIR} (@file{/tmp} is the |
| 430 |
default) containing all the simulated PC memory. If possible, try to use |
default) containing all the simulated PC memory. If possible, try to use |
| 431 |
a temporary directory using the tmpfs filesystem to avoid too many |
a temporary directory using the tmpfs filesystem to avoid too many |
| 432 |
unnecessary disk accesses. |
unnecessary disk accesses. |
| 433 |
|
|
| 434 |
@item |
@item |
| 435 |
In order to exit cleanly for vl, you can do a @emph{shutdown} inside |
In order to exit cleanly from qemu, you can do a @emph{shutdown} inside |
| 436 |
vl. vl will automatically exit when the Linux shutdown is done. |
qemu. qemu will automatically exit when the Linux shutdown is done. |
| 437 |
|
|
| 438 |
@item |
@item |
| 439 |
You can boot slightly faster by disabling the probe of non present IDE |
You can boot slightly faster by disabling the probe of non present IDE |
| 458 |
@end example |
@end example |
| 459 |
|
|
| 460 |
@c man begin OPTIONS |
@c man begin OPTIONS |
| 461 |
@var{disk_image} is a raw hard image image for IDE hard disk 0. |
@var{disk_image} is a raw hard disk image for IDE hard disk 0. |
| 462 |
|
|
| 463 |
General options: |
General options: |
| 464 |
@table @option |
@table @option |
| 476 |
Set virtual RAM size to @var{megs} megabytes. |
Set virtual RAM size to @var{megs} megabytes. |
| 477 |
|
|
| 478 |
@item -n script |
@item -n script |
| 479 |
Set network init script [default=/etc/vl-ifup]. This script is |
Set network init script [default=/etc/qemu-ifup]. This script is |
| 480 |
launched to configure the host network interface (usually tun0) |
launched to configure the host network interface (usually tun0) |
| 481 |
corresponding to the virtual NE2000 card. |
corresponding to the virtual NE2000 card. |
| 482 |
|
|
| 519 |
@item -p port |
@item -p port |
| 520 |
Change gdb connection port. |
Change gdb connection port. |
| 521 |
@item -d |
@item -d |
| 522 |
Output log in /tmp/vl.log |
Output log in /tmp/qemu.log |
| 523 |
@end table |
@end table |
| 524 |
|
|
| 525 |
During emulation, use @key{C-a h} to get terminal commands: |
During emulation, use @key{C-a h} to get terminal commands: |
| 704 |
QEMU has a primitive support to work with gdb, so that you can do |
QEMU has a primitive support to work with gdb, so that you can do |
| 705 |
'Ctrl-C' while the virtual machine is running and inspect its state. |
'Ctrl-C' while the virtual machine is running and inspect its state. |
| 706 |
|
|
| 707 |
In order to use gdb, launch vl with the '-s' option. It will wait for a |
In order to use gdb, launch qemu with the '-s' option. It will wait for a |
| 708 |
gdb connection: |
gdb connection: |
| 709 |
@example |
@example |
| 710 |
> vl -s arch/i386/boot/bzImage -hda root-2.4.20.img root=/dev/hda |
> qemu -s arch/i386/boot/bzImage -hda root-2.4.20.img root=/dev/hda |
| 711 |
Connected to host network interface: tun0 |
Connected to host network interface: tun0 |
| 712 |
Waiting gdb connection on port 1234 |
Waiting gdb connection on port 1234 |
| 713 |
@end example |
@end example |