How to make linux boot from network
2006-10-19 15:17
701 查看
1. Enable dhcp server on a linux server, the /etc/dhcpd.conf should be looked like this:
ddns-update-style interim;
ignore client-updates;
allow bootp;
allow booting;
subnet 192.168.253.0 netmask 255.255.255.0 {
option routers 192.168.253.9;
option subnet-mask 255.255.255.0;
option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 192.168.253.9;
option time-offset -18000; # Eastern Standard Time
}
group {
next-server 192.168.253.9;
filename "pxelinux.0";
host klinux {
hardware ethernet 00:0C:29:17:B8:92;
fixed-address 192.168.253.10;
}
}
2. Start tftp server and create a directory named "/tftpboot"
3. Install syslinux and copy /usr/lib/syslinux/pxelinux.o into /tftpboot
4. Then let's go in the /tftpboot and create a directory named pxelinux.cfg
5. Create a file named as your target pc's ip address which must be written as uppercase hex format such like C0A8FD0A that means 192.168.0.10.
6. Wrtie something in this file like this:
DEFAULT 192.168.253.10/bzImage root=/dev/ram initrd=192.168.253.10/initrd.gz
This config file means using ramdisk for root filesystem and the ramdisk image's name is initrd.gz
7. Now put your target and server pc into the same network, make the target boot as network method, good luck !
ddns-update-style interim;
ignore client-updates;
allow bootp;
allow booting;
subnet 192.168.253.0 netmask 255.255.255.0 {
option routers 192.168.253.9;
option subnet-mask 255.255.255.0;
option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 192.168.253.9;
option time-offset -18000; # Eastern Standard Time
}
group {
next-server 192.168.253.9;
filename "pxelinux.0";
host klinux {
hardware ethernet 00:0C:29:17:B8:92;
fixed-address 192.168.253.10;
}
}
2. Start tftp server and create a directory named "/tftpboot"
3. Install syslinux and copy /usr/lib/syslinux/pxelinux.o into /tftpboot
4. Then let's go in the /tftpboot and create a directory named pxelinux.cfg
5. Create a file named as your target pc's ip address which must be written as uppercase hex format such like C0A8FD0A that means 192.168.0.10.
6. Wrtie something in this file like this:
DEFAULT 192.168.253.10/bzImage root=/dev/ram initrd=192.168.253.10/initrd.gz
This config file means using ramdisk for root filesystem and the ramdisk image's name is initrd.gz
7. Now put your target and server pc into the same network, make the target boot as network method, good luck !
相关文章推荐
- How to change Red Hat Linux to boot to command line mode from Gnome
- How to Work with the Network from the Linux Terminal
- How to make 9-patch image downloaded from the Network
- [Guide] Mac OS X Lion: How To Boot A Linux Live System From An USB Drive & How To Update Any OCZ SSD
- How to get a notification from Linux when the set of network interfaces changes
- How to make 9-patch image downloaded from the Network
- How to view or edit pdf/image metadata from command line on Linux
- How to Boot a VMware Virtual Machine from a USB Drive
- How to use the PECL HTTP (PECL_HTTP) Extension to make HTTP requests from PHP
- How to auto start Apache during boot time – Linux
- how to get toolchain from android source -make windows sdk
- Linux恢复被删除的文件 How To Recover Deleted Files From Your Linux System
- How to make transparent bridge with Slackware Linux.
- 源自人脑的神奇算法 -- 读《How to make your own neural network》有感
- cannot boot the linux, because of grub,how to do!
- 360iDev: How to make money from a free app
- Spring Boot MongoDB How to remove _class from spring data mongodb collection
- How to make a sprite from URL in cocos2d-x
- Socket programing(make a chat software) summary 1:How to accsess LAN from WAN
- Install an RPM Package on Ubuntu Linux(from how to geek)