Subversion Repositories shark

Rev

Rev 1676 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1676 tullio 1
Network Shark application execution through PXE
2
 
3
Download the GRUB source (I used version 0.97) and run a command like this:
4
 
5
./configure -enable-diskless --enable-preset-menu="menu.lst" --enable-3c90x --disable-ffs --disable-minix --disable-reiserfs --disable-xfs --disable-ufs2 --disable-vstafs
6
 
7
The -enable-diskless option asks to build the PXE compliant GRUB image pxegrub (you will find it in (GRUB_DIR)/stage2).
8
 
9
The --enable-3c90x option enables the support for specific 3Com card. You may need to change this option to support your network card.
10
 
11
The --enable-preset-menu="menu.lst" option says to the building procedure to embed the following menu.lst file:
12
 
13
-----------------------------------------------------
14
The menu.lst file used while building GRUB
15
-----------------------------------------------------
16
#  default - boot the first entry.
17
default 0
18
 
19
# after 0 sec boot default.
20
timeout 0
21
 
22
fallback 0
23
 
24
title  Shark
25
 
26
ifconfig --address=192.168.0.201 --mask=255.255.255.0 --server=192.168.0.130
27
tftpserver 192.168.0.130
28
rootnoverify (nd)
29
configfile (nd)/remote-menu.lst
30
-----------------------------------------------------
31
 
32
Do change the network information, like IP addresse and server address, to comply with your network.
33
 
34
Then execute "make" and copy the pxegrub image from (GRUB_DIR)/stage2 to your TFTP server directory (for example /tftpboot).
35
 
36
The suggested GRUB configuration can be improved by disabling other filesystems support (i.e., ext2) or, in case of need, to support more than one network card. The latter point is quite delicate, since many GRUB users experienced some problems when including too much network card drivers in a single image.
37
 
38
The embedded menu.lst configuration file points to the remote-menu.lst:
39
 
40
-----------------------------------------------------
41
The remote-menu.lst file
42
-----------------------------------------------------
43
default 0
44
timeout 0
45
 
46
title Remote Shark
47
kernel (nd)/shark
48
boot
49
-----------------------------------------------------
50
 
51
The remote-menu.lst file says to GRUB to load the "shark" executable application.
52
ATTENTION: Shark kernel and applications must be built with the VM86 option turned on in shark.cfg.
53
 
54
The following lines are an example of the DHCP server configuration file needed to tell to the PXE boot process where to get the PXE image. Of course, again, you may need to adapt network parameters to your needs.
55
 
56
-----------------------------------------------------
57
The dhcpd.conf file (using dhcp3)
58
-----------------------------------------------------
59
option domain-name "mydomain.net";
60
option subnet-mask 255.255.255.0;
61
default-lease-time 600;
62
max-lease-time 7200;
63
server-name "server-name";
64
 
65
subnet 192.168.0.0 netmask 255.255.255.0 {
66
  range 192.168.0.200 192.168.0.205;
67
  option routers 192.168.0.255;
68
}
69
 
70
host shark-client1 {
71
    # MAC address of the machine where the Shark application will run
72
    hardware ethernet 00:0A:5E:3C:97:14;
73
    # IP address assigned to that machine
74
    fixed-address 192.168.0.201;
75
    # PXE image to be served from the TFTP server
76
    filename "pxegrub";
77
    # TFTP server address
78
    next-server 192.168.0.130;
79
}
80
-----------------------------------------------------