Krokodox, thank you for the excellent instruction. I made a small modification to it. Here are my results:
This is instruction for modification of Debian Squeeze standard PXE network install (http://www.debian.org/releases/stabl...h04s05.html.en).
menu.c32 from first post replaced by a standard vesamenu.c32, initrd.img and linux26 are loaded from a TFTP server.
initrd.img and linux26 prepared as written in the first post.
10.10.10.10 - dhcp, tftp, dns server address. They may be different, but I have everything on one server.
10.10.1.1 - default router
Set up a DHCP server, configure the address pool
Code:
root@dhcp:/srv# aptitude install dhcp3-server
root@dhcp:/srv# nano /etc/dhcp/dhcpd.conf:
...
root@dhcp:/srv# cat /etc/dhcp/dhcpd.conf:
Code:
option domain-name "local";
option domain-name-servers 10.10.10.10;
option subnet-mask 255.255.0.0;
subnet 10.10.0.0 netmask 255.255.0.0 {
pool {
range 10.10.1.2 10.10.1.200;
next-server 10.10.10.10;
filename "pxelinux.0";
option routers 10.10.1.1;
option domain-name-servers 10.10.10.10;
}
}
Set up a TFTP server.
Read http://www.debian.org/releases/stabl...ru#where-files,
download and unpack netboot.tar.gz
Code:
root@dhcp:/srv# aptitude install tftpd-hpa
root@dhcp:/srv# cd /srv/tftp
root@dhcp:/srv/tftp# wget http://http.us.debian.org/debian/dists/squeeze/main/installer-amd64/current/images/netboot/netboot.tar.gz
root@dhcp:/srv/tftp# tar zxf netboot.tar.gz
Code:
root@dhcp:/srv/tftp# ls -la
total 9180
drwxr-xr-x 3 root root 4096 May 8 21:19 .
drwxr-xr-x 3 root root 4096 Jun 2 22:32 ..
drwxr-xr-x 3 root root 4096 May 8 21:19 debian-installer
-rw-r--r-- 1 root root 9366606 Jun 2 22:35 netboot.tar.gz
lrwxrwxrwx 1 root root 33 Jun 2 22:37 pxelinux.0 -> debian-installer/amd64/pxelinux.0
lrwxrwxrwx 1 root root 35 Jun 2 22:37 pxelinux.cfg -> debian-installer/amd64/pxelinux.cfg
-rw-r--r-- 1 root root 69 May 8 21:19 version.info
Put on the TFTP server previously created files:
Code:
cp initrd.img /srv/tftp/
cp linux26 /srv/tftp/
Edit /srv/tftp/debian-installer/amd64/pxelinux.cfg/default.
This is a standard file from the distribution Debian, need to comment out the line "include debian-installer/amd64/boot-screens/menu.cfg"
and add a boot Proxmox, as described in the first post. The only difference is that the files are taken not from the HTTP, and from a TFTP server.
Code:
root@dhcp:/srv/tftp# cat /srv/tftp/debian-installer/amd64/pxelinux.cfg/default
Code:
# D-I config version 2.0
#include debian-installer/amd64/boot-screens/menu.cfg
default debian-installer/amd64/boot-screens/vesamenu.c32
PROMPT 0
DEFAULT Proxmox
MENU TITLE ..:: My PXE Menu ::..
MENU CLEAR
LABEL Proxmox
MENU LABEL Proxmox
LINUX /linux26
APPEND vga=791 video=vesafb:ywrap,mtrr ramdisk_size=16777216
INITRD /initrd.img splash=verbose
Reatart DHCP server...
Code:
root@dhcp:/srv/tftp# /etc/init.d/isc-dhcp-server restart
Code:
Stopping ISC DHCP server: dhcpd failed!
Starting ISC DHCP server: dhcpd.
Now you can load the server to install Proxmox - it should boot from PXE
Bookmarks