1. Configure nfs server on host
http://blog.csdn.net/stevenliyong/archive/2009/12/01/4914673.aspx
2. Configure dhcp server on host
修改 /etc/dhcp3/dhcpd.conf
ddns-update-style ad-hoc;
default-lease-time 14400;
subnet 192.168.0.0 netmask 255.255.255.0 {
default-lease-time 14400;
max-lease-time 172800;
next-server 192.168.0.10
host smartq7 {
fixed-address 192.168.0.199;
hardware ethernet 00:80:c8:e4:c1:e4;
option root-path "192.168.0.10:/tftp/smartq7";
next-server 192.168.0.10;
}
}
#sudo /etc/init.d/dhcp3-server restart
3. Configure smartq7 Kernel
-> Networking
-> Networking options
[*] IP: kernel level autoconfiguration
[*] IP: DHCP support
[*] IP: BOOTP support
-> File systems
<*> Network File Systems
<*> NFS file system support
<*> Root file system on NFS
4. Configure kernel command lin
root=/dev/nfs nfsroot=192.168.0.10:/tftp/smartq7 ip=dhcp console=ttySAC0 init=/init rootwait