Differences between version 2 and previous revision of QemuNotes.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Sunday, October 8, 2006 7:35:39 pm | by AlastairPorter | Revert |
Older page: | version 1 | Last edited on Sunday, October 8, 2006 6:38:56 pm | by AlastairPorter | Revert |
@@ -16,4 +16,19 @@
qemu -hda hd.img -boot c
</verbatim>
However this created problems getting files in and out so better to create a loopback file system. For more on this see UserModeLinux.
+
+!!Qemu and networking
+Qemu can present a network device to the guest operating system via tuntap.%%%
+You should boot it like:
+<verbatim>
+qemu -boot c -hda hd.img -net nic,model=ne2k_pci -net tap,ifname=tap0,script=/path/to/tunconfig
+</verbatim>
+
+the file tunconfig should contain something like:
+<verbatim>
+#!/bin/bash
+/sbin/ifconfig ${1##/*/} 192.168.1.1
+</verbatim>
+
+The above command appears to create an NE2K device at address 0xc100, irq 10.