how to boot debian from network(lan rom) pxe - love debian - come back
Thanks to http://wiki.debian.org/PXEBootInstall and http://www.debian-administration.org/articles/478 !
192.168.x.4 - ip of the debian server from where i can boot!
192.168.x.1 - ip of the router!
#apt-get install isc-dhcp-server
#nano /etc/dhcp/dhcpd.conf
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
allow booting;
allow bootp;
authoritative;
subnet 192.168.x.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.x.5 192.168.x.7;
filename "pxelinux.0";
next-server 192.168.x.4;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.x.255;
option domain-name-servers 192.168.x.1;
option routers 192.168.x.1;
}
#apt-get install tftp-hpa
#nano /etc/default/tftpdd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure"
#cat /etc/network/interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.x.4
netmask 255.255.255.0
#network 192.168.x.0
#broadcast 192.168.3.255
gateway 192.168.x.1
# dns-* options are implemented by the resolvconf package, if installed
# dns-nameservers 192.168.x.1
#allow-hotplug wlan0
#auto wlan0
#iface wlan0 inet dhcp
# address 192.168.x.17
# netmask 255.255.255.0
# gateway 192.168.x.1
# wpa-ssid profesionala
# wpa-psk
# wpa-ssid alin2
# wpa-psk
# wpa-ssid alin
# wpa-psk
# wpa-ssid lttv
# wpa-psk
# wpa-ssid Cristine_Cafe
# wpa-psk cristinecafe
#cd /srv/tftp/
PUT THERE: 1) pxelinux.cfg(directory mkdir ..., then cd pxelinux.cfg,
then:
#nano default
DISPLAY boot.txt
DEFAULT Debian
LABEL Debian
kernel debian/linux
append vga=normal initrd=debian/initrd.gz --
prompt 1
timeout 1
2)#mkdir debian and put there linux
3)#nano boot.txt(with pxelinux.0 and the other 2 directories, debian and
pxelinux.cfg)
=Boot Menu=
===========
Debian
Thats all folks!
Please leave a comment!
192.168.x.4 - ip of the debian server from where i can boot!
192.168.x.1 - ip of the router!
#apt-get install isc-dhcp-server
#nano /etc/dhcp/dhcpd.conf
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
allow booting;
allow bootp;
authoritative;
subnet 192.168.x.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.x.5 192.168.x.7;
filename "pxelinux.0";
next-server 192.168.x.4;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.x.255;
option domain-name-servers 192.168.x.1;
option routers 192.168.x.1;
}
#apt-get install tftp-hpa
#nano /etc/default/tftpdd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure"
#cat /etc/network/interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.x.4
netmask 255.255.255.0
#network 192.168.x.0
#broadcast 192.168.3.255
gateway 192.168.x.1
# dns-* options are implemented by the resolvconf package, if installed
# dns-nameservers 192.168.x.1
#allow-hotplug wlan0
#auto wlan0
#iface wlan0 inet dhcp
# address 192.168.x.17
# netmask 255.255.255.0
# gateway 192.168.x.1
# wpa-ssid profesionala
# wpa-psk
# wpa-ssid alin2
# wpa-psk
# wpa-ssid alin
# wpa-psk
# wpa-ssid lttv
# wpa-psk
# wpa-ssid Cristine_Cafe
# wpa-psk cristinecafe
#cd /srv/tftp/
PUT THERE: 1) pxelinux.cfg(directory mkdir ..., then cd pxelinux.cfg,
then:
#nano default
DISPLAY boot.txt
DEFAULT Debian
LABEL Debian
kernel debian/linux
append vga=normal initrd=debian/initrd.gz --
prompt 1
timeout 1
2)#mkdir debian and put there linux
3)#nano boot.txt(with pxelinux.0 and the other 2 directories, debian and
pxelinux.cfg)
=Boot Menu=
===========
Debian
Thats all folks!
Please leave a comment!
Comments
Post a Comment