パッケージ
ii dhcp3-server 3.1.3-2ubuntu3.3 DHCP server for automatic IP address assignm
ii tftpd-hpa 5.0-11ubuntu2.1 HPA’s tftp server
$ vi /etc/dhcp3/dhcpd.conf
option domain-name-servers 192.168.11.116; default-lease-time 86400; max-lease-time 86400; subnet 192.168.0.0 netmask 255.255.255.0 { next-server 192.168.0.1; option subnet-mask 255.255.255.0; option broadcast-address 192.168.0.255; range 192.168.11.80 192.168.0.89; option domain-name-servers 192.168.0.1; option routers 192.168.0.200; } # Test PC host vmpc141 { hardware ethernet 00:11:22:33:44:55; fixed-address 192.168.0.88; filename "/pxelinux.0"; option host-name vmpc141; } host vmpc142 { hardware ethernet 01:23:45:67:89:ab; fixed-address 192.168.0.89; filename "/pxelinux.0"; option host-name vmpc142; }
$ vi /etc/default/tftpd-hpa
TFTP_USERNAME="tftp" TFTP_DIRECTORY="/tftpboot/Ubuntu" TFTP_ADDRESS="0.0.0.0:69" TFTP_OPTIONS="--secure" RUN_DAEMON="yes"
Ubuntuのnetboot以下をローカルの/tftpboot/Ubuntu以下にコピー
以前は、lftpのmirrorコマンドでディレクトリ毎コピーできたていたが、今回は出来なかったので
手動でコピーをした。
ftp://ftp.jaist.ac.jp/pub/Linux/ubuntu/dists/oneiric/main/installer-i386/20101020ubuntu72/images/netboot/ ncftp ...current/images/netboot > ls -la drwxr-xr-x 5 ftp ftp 10 Oct 08 11:04 . drwxr-xr-x 5 ftp ftp 11 Oct 08 11:04 .. -rw-r--r-- 1 ftp ftp 16108726 Oct 08 11:04 boot.img.gz drwxr-xr-x 3 ftp ftp 7 Oct 08 11:04 gtk -rw-r--r-- 1 ftp ftp 24117248 Oct 08 11:04 mini.iso -rw-r--r-- 1 ftp ftp 16090684 Oct 08 11:04 netboot.tar.gz lrwxrwxrwx 1 ftp ftp 32 Oct 08 11:50 pxelinux.0 -> ubuntu-installer/i386/pxelinux.0 lrwxrwxrwx 1 ftp ftp 34 Oct 08 11:50 pxelinux.cfg -> ubuntu-installer/i386/pxelinux.cfg drwxr-xr-x 3 ftp ftp 3 Oct 08 11:04 ubuntu-installer drwxr-xr-x 2 ftp ftp 5 Oct 08 11:04 xen ncftp ...current/images/netboot > Interrupted. ubuntu:/tftpboot/Ubuntu#
$ ls -laR /tftpboot/Ubuntu .: total 55020 drwxr-xr-x 5 root root 4096 Oct 25 19:35 . drwxr-xr-x 3 root root 4096 Oct 25 18:56 .. -rw-r--r-- 1 root root 16108726 Oct 8 20:04 boot.img.gz drwxr-xr-x 3 root root 4096 Oct 25 19:37 gtk -rw-r--r-- 1 root root 24117248 Oct 8 20:04 mini.iso -rw-r--r-- 1 root root 16090684 Oct 8 20:04 netboot.tar.gz lrwxrwxrwx 1 root root 32 Oct 25 19:34 pxelinux.0 -> ubuntu-installer/i386/pxelinux.0 lrwxrwxrwx 1 root root 34 Oct 25 19:35 pxelinux.cfg -> ubuntu-installer/i386/pxelinux.cfg drwxr-xr-x 3 root root 4096 Oct 25 19:30 ubuntu-installer drwxr-xr-x 2 root root 4096 Oct 25 19:29 xen ./gtk: total 65916 drwxr-xr-x 3 root root 4096 Oct 25 19:37 . drwxr-xr-x 5 root root 4096 Oct 25 19:35 .. -rw-r--r-- 1 root root 37748736 Oct 8 20:04 mini.iso -rw-r--r-- 1 root root 29736707 Oct 8 20:04 netboot.tar.gz lrwxrwxrwx 1 root root 32 Oct 25 19:36 pxelinux.0 -> ubuntu-installer/i386/pxelinux.0 lrwxrwxrwx 1 root root 34 Oct 25 19:37 pxelinux.cfg -> ubuntu-installer/i386/pxelinux.cfg drwxr-xr-x 3 root root 4096 Oct 25 19:37 ubuntu-installer ./gtk/ubuntu-installer: total 12 drwxr-xr-x 3 root root 4096 Oct 25 19:37 . drwxr-xr-x 3 root root 4096 Oct 25 19:37 .. drwxr-xr-x 4 root root 4096 Oct 25 19:38 i386 ./gtk/ubuntu-installer/i386: total 29268 drwxr-xr-x 4 root root 4096 Oct 25 19:38 . drwxr-xr-x 3 root root 4096 Oct 25 19:37 .. drwxr-xr-x 2 root root 4096 Oct 25 19:39 boot-screens -rw-r--r-- 1 root root 25292298 Oct 8 20:04 initrd.gz -rw-r--r-- 1 root root 4632128 Oct 8 20:04 linux -rw-r--r-- 1 root root 26449 Oct 8 20:04 pxelinux.0 drwxr-xr-x 2 root root 4096 Oct 25 19:39 pxelinux.cfg ./gtk/ubuntu-installer/i386/boot-screens: total 248 drwxr-xr-x 2 root root 4096 Oct 25 19:39 . drwxr-xr-x 4 root root 4096 Oct 25 19:38 .. -rw-r--r-- 1 root root 496 Oct 8 20:04 adtxt.cfg -rw-r--r-- 1 root root 123 Oct 8 20:04 exithelp.cfg -rw-r--r-- 1 root root 874 Oct 8 20:04 f1.txt -rw-r--r-- 1 root root 723 Oct 8 20:04 f10.txt -rw-r--r-- 1 root root 739 Oct 8 20:04 f2.txt -rw-r--r-- 1 root root 782 Oct 8 20:04 f3.txt -rw-r--r-- 1 root root 417 Oct 8 20:04 f4.txt -rw-r--r-- 1 root root 806 Oct 8 20:04 f5.txt -rw-r--r-- 1 root root 1212 Oct 8 20:04 f6.txt -rw-r--r-- 1 root root 916 Oct 8 20:04 f7.txt -rw-r--r-- 1 root root 1051 Oct 8 20:04 f8.txt -rw-r--r-- 1 root root 765 Oct 8 20:04 f9.txt -rw-r--r-- 1 root root 682 Oct 8 20:04 menu.cfg -rw-r--r-- 1 root root 629 Oct 8 20:04 prompt.cfg -rw-r--r-- 1 root root 180 Oct 8 20:04 rqtxt.cfg -rw-r--r-- 1 root root 8264 Oct 8 20:04 splash.png -rw-r--r-- 1 root root 543 Oct 8 20:04 stdmenu.cfg -rw-r--r-- 1 root root 152 Oct 8 20:04 syslinux.cfg -rw-r--r-- 1 root root 439 Oct 8 20:04 txt.cfg -rw-r--r-- 1 root root 155792 Oct 8 20:04 vesamenu.c32 ./gtk/ubuntu-installer/i386/pxelinux.cfg: total 8 drwxr-xr-x 2 root root 4096 Oct 25 19:39 . drwxr-xr-x 4 root root 4096 Oct 25 19:38 .. lrwxrwxrwx 1 root root 28 Oct 25 19:39 default -> ../boot-screens/syslinux.cfg ./ubuntu-installer: total 12 drwxr-xr-x 3 root root 4096 Oct 25 19:30 . drwxr-xr-x 5 root root 4096 Oct 25 19:35 .. drwxr-xr-x 4 root root 4096 Oct 25 19:32 i386 ./ubuntu-installer/i386: total 15860 drwxr-xr-x 4 root root 4096 Oct 25 19:32 . drwxr-xr-x 3 root root 4096 Oct 25 19:30 .. drwxr-xr-x 2 root root 4096 Oct 25 19:31 boot-screens -rw-r--r-- 1 root root 11561014 Oct 8 20:04 initrd.gz -rw-r--r-- 1 root root 4632128 Oct 8 20:04 linux -rw-r--r-- 1 root root 26449 Oct 8 20:04 pxelinux.0 drwxr-xr-x 2 root root 4096 Oct 25 19:31 pxelinux.cfg ./ubuntu-installer/i386/boot-screens: total 248 drwxr-xr-x 2 root root 4096 Oct 25 19:31 . drwxr-xr-x 4 root root 4096 Oct 25 19:32 .. -rw-r--r-- 1 root root 452 Oct 8 20:04 adtxt.cfg -rw-r--r-- 1 root root 123 Oct 8 20:04 exithelp.cfg -rw-r--r-- 1 root root 874 Oct 8 20:04 f1.txt -rw-r--r-- 1 root root 723 Oct 8 20:04 f10.txt -rw-r--r-- 1 root root 739 Oct 8 20:04 f2.txt -rw-r--r-- 1 root root 782 Oct 8 20:04 f3.txt -rw-r--r-- 1 root root 417 Oct 8 20:04 f4.txt -rw-r--r-- 1 root root 806 Oct 8 20:04 f5.txt -rw-r--r-- 1 root root 1212 Oct 8 20:04 f6.txt -rw-r--r-- 1 root root 916 Oct 8 20:04 f7.txt -rw-r--r-- 1 root root 1051 Oct 8 20:04 f8.txt -rw-r--r-- 1 root root 765 Oct 8 20:04 f9.txt -rw-r--r-- 1 root root 682 Oct 8 20:04 menu.cfg -rw-r--r-- 1 root root 629 Oct 8 20:04 prompt.cfg -rw-r--r-- 1 root root 158 Oct 8 20:04 rqtxt.cfg -rw-r--r-- 1 root root 8264 Oct 8 20:04 splash.png -rw-r--r-- 1 root root 543 Oct 8 20:04 stdmenu.cfg -rw-r--r-- 1 root root 152 Oct 8 20:04 syslinux.cfg -rw-r--r-- 1 root root 395 Oct 8 20:04 txt.cfg -rw-r--r-- 1 root root 155792 Oct 8 20:04 vesamenu.c32 ./ubuntu-installer/i386/pxelinux.cfg: total 12 drwxr-xr-x 2 root root 4096 Oct 25 19:31 . drwxr-xr-x 4 root root 4096 Oct 25 19:32 .. -rw-r--r-- 1 root root 152 Oct 8 20:04 default ./xen: total 8 drwxr-xr-x 2 root root 4096 Oct 25 19:29 . drwxr-xr-x 5 root root 4096 Oct 25 19:35 .. kan@ubuntu:/tftpboot/Ubuntu$