Browse Source

[contrib] Update qemu documentation

tags/v0.9.7
Michael Brown 16 years ago
parent
commit
0171098212
1 changed files with 11 additions and 18 deletions
  1. 11
    18
      contrib/bochs/README.qemu

+ 11
- 18
contrib/bochs/README.qemu View File

1
-Running Etherboot within qemu
2
-=============================
1
+Running gPXE within qemu
2
+========================
3
 
3
 
4
 Michael Brown <mbrown@fensystems.co.uk>
4
 Michael Brown <mbrown@fensystems.co.uk>
5
 
5
 
9
       make
9
       make
10
 
10
 
11
 2.  Get the qemu source code:
11
 2.  Get the qemu source code:
12
-      cvs -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/qemu \
13
-           login
14
-      cvs -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/qemu \
15
-           co qemu
12
+      svn co svn://svn.savannah.nongnu.org/qemu/trunk qemu
16
 
13
 
17
 2a. Patch the qemu code.  There is currently a bug that causes qemu to
14
 2a. Patch the qemu code.  There is currently a bug that causes qemu to
18
-    execute Etherboot incredibly slowly.  The bug seems to be related
15
+    execute gPXE incredibly slowly.  The bug seems to be related
19
     to the relative prioritisation of CPU and I/O operations within
16
     to the relative prioritisation of CPU and I/O operations within
20
     qemu.  This patch (which I found via Google) isn't a proper fix,
17
     qemu.  This patch (which I found via Google) isn't a proper fix,
21
     but it does work around the problem:
18
     but it does work around the problem:
23
 
20
 
24
 3.  Configure qemu with
21
 3.  Configure qemu with
25
       pushd qemu
22
       pushd qemu
26
-      ./configure --enable-system
23
+      ./configure --target-list=i386-softmmu,x86_64-softmmu
27
       popd
24
       popd
28
 
25
 
29
-    Note that qemu will not compile with gcc4; if your system's
30
-    default compiler is gcc4 then specify the path to gcc3 using
31
-    e.g. --cc=gcc-3.3.6
32
-
33
 4.  Build qemu:
26
 4.  Build qemu:
34
       make -C qemu
27
       make -C qemu
35
 
28
 
44
         range dynamic-bootp 10.254.254.1 10.254.254.1;
37
         range dynamic-bootp 10.254.254.1 10.254.254.1;
45
       }
38
       }
46
     You will also need to add in any of your usual declarations for
39
     You will also need to add in any of your usual declarations for
47
-    Etherboot, e.g. 'filename "vmlinuz.ltsp";'.  Note that this setup
40
+    gPXE, e.g. 'filename "vmlinuz.ltsp";'.  Note that this setup
48
     assumes that your DHCP server, TFTP server etc. all live on the
41
     assumes that your DHCP server, TFTP server etc. all live on the
49
     machine you are using for running qemu.  If not, then you're on
42
     machine you are using for running qemu.  If not, then you're on
50
     your own.
43
     your own.
52
 7.  As root, restart dhcpd
45
 7.  As root, restart dhcpd
53
       /etc/init.d/dhcpd restart
46
       /etc/init.d/dhcpd restart
54
 
47
 
55
-8.  Build Etherboot floppy disk images and pad to 1.44MB
48
+8.  Build gPXE floppy disk images and pad to 1.44MB
56
       pushd ../../src
49
       pushd ../../src
57
       make bin/rtl8139.pdsk
50
       make bin/rtl8139.pdsk
58
       popd
51
       popd
62
 			       -net nic,model=rtl8139 -net tap,ifname=tap0 \
55
 			       -net nic,model=rtl8139 -net tap,ifname=tap0 \
63
 			       -boot a -fda ../../src/bin/rtl8139.pdsk 
56
 			       -boot a -fda ../../src/bin/rtl8139.pdsk 
64
 
57
 
65
-You should see qemu start up, load up Etherboot and attempt to boot
66
-from the network.
58
+You should see qemu start up, load up gPXE and attempt to boot from
59
+the network.
67
 
60
 
68
 
61
 
69
 
62
 
71
 ==============
64
 ==============
72
 
65
 
73
 You can use the program "serial-console" to obtain a virtual serial
66
 You can use the program "serial-console" to obtain a virtual serial
74
-console for Etherboot running within qemu.  Run "./serial-console" on
75
-a spare tty (e.g. a separate xterm window) before starting qemu, and
67
+console for gPXE running within qemu.  Run "./serial-console" on a
68
+spare tty (e.g. a separate xterm window) before starting qemu, and
76
 ensure that you have enabled CONSOLE_SERIAL in config.h.
69
 ensure that you have enabled CONSOLE_SERIAL in config.h.
77
 
70
 
78
 When serial-console starts, it will print out the message "Slave pty
71
 When serial-console starts, it will print out the message "Slave pty

Loading…
Cancel
Save