{"id":609,"date":"2011-10-25T23:01:20","date_gmt":"2011-10-25T14:01:20","guid":{"rendered":"http:\/\/www.asfit.net\/blog\/kan\/?p=609"},"modified":"2011-11-15T09:20:24","modified_gmt":"2011-11-15T00:20:24","slug":"ubuntu-netboot-install","status":"publish","type":"post","link":"https:\/\/www.asfit.net\/blog\/kan\/?p=609","title":{"rendered":"Ubuntu NetBoot Install"},"content":{"rendered":"<p>\u30d1\u30c3\u30b1\u30fc\u30b8<br \/>\nii  dhcp3-server                        3.1.3-2ubuntu3.3                  DHCP server for automatic IP address assignm<br \/>\nii  tftpd-hpa                           5.0-11ubuntu2.1                   HPA&#8217;s tftp server<\/p>\n<p>$ vi \/etc\/dhcp3\/dhcpd.conf<\/p>\n<pre>\r\noption domain-name-servers 192.168.11.116;\r\ndefault-lease-time 86400;\r\nmax-lease-time 86400;\r\nsubnet 192.168.0.0 netmask 255.255.255.0 {\r\nnext-server 192.168.0.1;\r\noption subnet-mask 255.255.255.0;\r\noption broadcast-address 192.168.0.255;\r\nrange 192.168.11.80 192.168.0.89;\r\noption domain-name-servers 192.168.0.1;\r\noption routers 192.168.0.200;\r\n}\r\n# Test PC\r\nhost vmpc141 {\r\nhardware ethernet 00:11:22:33:44:55;\r\nfixed-address 192.168.0.88;\r\nfilename \"\/pxelinux.0\";\r\noption host-name vmpc141;\r\n}\r\nhost vmpc142 {\r\nhardware ethernet 01:23:45:67:89:ab;\r\nfixed-address 192.168.0.89;\r\nfilename \"\/pxelinux.0\";\r\noption host-name vmpc142;\r\n}\r\n<\/pre>\n<p>$ vi \/etc\/default\/tftpd-hpa<\/p>\n<pre>\r\nTFTP_USERNAME=\"tftp\"\r\nTFTP_DIRECTORY=\"\/tftpboot\/Ubuntu\"\r\nTFTP_ADDRESS=\"0.0.0.0:69\"\r\nTFTP_OPTIONS=\"--secure\"\r\nRUN_DAEMON=\"yes\"\r\n<\/pre>\n<p>Ubuntu\u306enetboot\u4ee5\u4e0b\u3092\u30ed\u30fc\u30ab\u30eb\u306e\/tftpboot\/Ubuntu\u4ee5\u4e0b\u306b\u30b3\u30d4\u30fc<br \/>\n\u4ee5\u524d\u306f\u3001lftp\u306emirror\u30b3\u30de\u30f3\u30c9\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u6bce\u30b3\u30d4\u30fc\u3067\u304d\u305f\u3066\u3044\u305f\u304c\u3001\u4eca\u56de\u306f\u51fa\u6765\u306a\u304b\u3063\u305f\u306e\u3067<br \/>\n\u624b\u52d5\u3067\u30b3\u30d4\u30fc\u3092\u3057\u305f\u3002<\/p>\n<pre>\r\n  ftp:\/\/ftp.jaist.ac.jp\/pub\/Linux\/ubuntu\/dists\/oneiric\/main\/installer-i386\/20101020ubuntu72\/images\/netboot\/\r\nncftp ...current\/images\/netboot > ls -la\r\ndrwxr-xr-x    5 ftp      ftp            10 Oct 08 11:04 .\r\ndrwxr-xr-x    5 ftp      ftp            11 Oct 08 11:04 ..\r\n-rw-r--r--    1 ftp      ftp      16108726 Oct 08 11:04 boot.img.gz\r\ndrwxr-xr-x    3 ftp      ftp             7 Oct 08 11:04 gtk\r\n-rw-r--r--    1 ftp      ftp      24117248 Oct 08 11:04 mini.iso\r\n-rw-r--r--    1 ftp      ftp      16090684 Oct 08 11:04 netboot.tar.gz\r\nlrwxrwxrwx    1 ftp      ftp            32 Oct 08 11:50 pxelinux.0 -> ubuntu-installer\/i386\/pxelinux.0\r\nlrwxrwxrwx    1 ftp      ftp            34 Oct 08 11:50 pxelinux.cfg -> ubuntu-installer\/i386\/pxelinux.cfg\r\ndrwxr-xr-x    3 ftp      ftp             3 Oct 08 11:04 ubuntu-installer\r\ndrwxr-xr-x    2 ftp      ftp             5 Oct 08 11:04 xen\r\nncftp ...current\/images\/netboot > \r\nInterrupted.\r\nubuntu:\/tftpboot\/Ubuntu# \r\n<\/pre>\n<pre>\r\n$ ls -laR \/tftpboot\/Ubuntu\r\n.:\r\ntotal 55020\r\ndrwxr-xr-x 5 root root     4096 Oct 25 19:35 .\r\ndrwxr-xr-x 3 root root     4096 Oct 25 18:56 ..\r\n-rw-r--r-- 1 root root 16108726 Oct  8 20:04 boot.img.gz\r\ndrwxr-xr-x 3 root root     4096 Oct 25 19:37 gtk\r\n-rw-r--r-- 1 root root 24117248 Oct  8 20:04 mini.iso\r\n-rw-r--r-- 1 root root 16090684 Oct  8 20:04 netboot.tar.gz\r\nlrwxrwxrwx 1 root root       32 Oct 25 19:34 pxelinux.0 -> ubuntu-installer\/i386\/pxelinux.0\r\nlrwxrwxrwx 1 root root       34 Oct 25 19:35 pxelinux.cfg -> ubuntu-installer\/i386\/pxelinux.cfg\r\ndrwxr-xr-x 3 root root     4096 Oct 25 19:30 ubuntu-installer\r\ndrwxr-xr-x 2 root root     4096 Oct 25 19:29 xen\r\n\r\n.\/gtk:\r\ntotal 65916\r\ndrwxr-xr-x 3 root root     4096 Oct 25 19:37 .\r\ndrwxr-xr-x 5 root root     4096 Oct 25 19:35 ..\r\n-rw-r--r-- 1 root root 37748736 Oct  8 20:04 mini.iso\r\n-rw-r--r-- 1 root root 29736707 Oct  8 20:04 netboot.tar.gz\r\nlrwxrwxrwx 1 root root       32 Oct 25 19:36 pxelinux.0 -> ubuntu-installer\/i386\/pxelinux.0\r\nlrwxrwxrwx 1 root root       34 Oct 25 19:37 pxelinux.cfg -> ubuntu-installer\/i386\/pxelinux.cfg\r\ndrwxr-xr-x 3 root root     4096 Oct 25 19:37 ubuntu-installer\r\n\r\n.\/gtk\/ubuntu-installer:\r\ntotal 12\r\ndrwxr-xr-x 3 root root 4096 Oct 25 19:37 .\r\ndrwxr-xr-x 3 root root 4096 Oct 25 19:37 ..\r\ndrwxr-xr-x 4 root root 4096 Oct 25 19:38 i386\r\n\r\n.\/gtk\/ubuntu-installer\/i386:\r\ntotal 29268\r\ndrwxr-xr-x 4 root root     4096 Oct 25 19:38 .\r\ndrwxr-xr-x 3 root root     4096 Oct 25 19:37 ..\r\ndrwxr-xr-x 2 root root     4096 Oct 25 19:39 boot-screens\r\n-rw-r--r-- 1 root root 25292298 Oct  8 20:04 initrd.gz\r\n-rw-r--r-- 1 root root  4632128 Oct  8 20:04 linux\r\n-rw-r--r-- 1 root root    26449 Oct  8 20:04 pxelinux.0\r\ndrwxr-xr-x 2 root root     4096 Oct 25 19:39 pxelinux.cfg\r\n\r\n.\/gtk\/ubuntu-installer\/i386\/boot-screens:\r\ntotal 248\r\ndrwxr-xr-x 2 root root   4096 Oct 25 19:39 .\r\ndrwxr-xr-x 4 root root   4096 Oct 25 19:38 ..\r\n-rw-r--r-- 1 root root    496 Oct  8 20:04 adtxt.cfg\r\n-rw-r--r-- 1 root root    123 Oct  8 20:04 exithelp.cfg\r\n-rw-r--r-- 1 root root    874 Oct  8 20:04 f1.txt\r\n-rw-r--r-- 1 root root    723 Oct  8 20:04 f10.txt\r\n-rw-r--r-- 1 root root    739 Oct  8 20:04 f2.txt\r\n-rw-r--r-- 1 root root    782 Oct  8 20:04 f3.txt\r\n-rw-r--r-- 1 root root    417 Oct  8 20:04 f4.txt\r\n-rw-r--r-- 1 root root    806 Oct  8 20:04 f5.txt\r\n-rw-r--r-- 1 root root   1212 Oct  8 20:04 f6.txt\r\n-rw-r--r-- 1 root root    916 Oct  8 20:04 f7.txt\r\n-rw-r--r-- 1 root root   1051 Oct  8 20:04 f8.txt\r\n-rw-r--r-- 1 root root    765 Oct  8 20:04 f9.txt\r\n-rw-r--r-- 1 root root    682 Oct  8 20:04 menu.cfg\r\n-rw-r--r-- 1 root root    629 Oct  8 20:04 prompt.cfg\r\n-rw-r--r-- 1 root root    180 Oct  8 20:04 rqtxt.cfg\r\n-rw-r--r-- 1 root root   8264 Oct  8 20:04 splash.png\r\n-rw-r--r-- 1 root root    543 Oct  8 20:04 stdmenu.cfg\r\n-rw-r--r-- 1 root root    152 Oct  8 20:04 syslinux.cfg\r\n-rw-r--r-- 1 root root    439 Oct  8 20:04 txt.cfg\r\n-rw-r--r-- 1 root root 155792 Oct  8 20:04 vesamenu.c32\r\n\r\n.\/gtk\/ubuntu-installer\/i386\/pxelinux.cfg:\r\ntotal 8\r\ndrwxr-xr-x 2 root root 4096 Oct 25 19:39 .\r\ndrwxr-xr-x 4 root root 4096 Oct 25 19:38 ..\r\nlrwxrwxrwx 1 root root   28 Oct 25 19:39 default -> ..\/boot-screens\/syslinux.cfg\r\n\r\n.\/ubuntu-installer:\r\ntotal 12\r\ndrwxr-xr-x 3 root root 4096 Oct 25 19:30 .\r\ndrwxr-xr-x 5 root root 4096 Oct 25 19:35 ..\r\ndrwxr-xr-x 4 root root 4096 Oct 25 19:32 i386\r\n\r\n.\/ubuntu-installer\/i386:\r\ntotal 15860\r\ndrwxr-xr-x 4 root root     4096 Oct 25 19:32 .\r\ndrwxr-xr-x 3 root root     4096 Oct 25 19:30 ..\r\ndrwxr-xr-x 2 root root     4096 Oct 25 19:31 boot-screens\r\n-rw-r--r-- 1 root root 11561014 Oct  8 20:04 initrd.gz\r\n-rw-r--r-- 1 root root  4632128 Oct  8 20:04 linux\r\n-rw-r--r-- 1 root root    26449 Oct  8 20:04 pxelinux.0\r\ndrwxr-xr-x 2 root root     4096 Oct 25 19:31 pxelinux.cfg\r\n\r\n.\/ubuntu-installer\/i386\/boot-screens:\r\ntotal 248\r\ndrwxr-xr-x 2 root root   4096 Oct 25 19:31 .\r\ndrwxr-xr-x 4 root root   4096 Oct 25 19:32 ..\r\n-rw-r--r-- 1 root root    452 Oct  8 20:04 adtxt.cfg\r\n-rw-r--r-- 1 root root    123 Oct  8 20:04 exithelp.cfg\r\n-rw-r--r-- 1 root root    874 Oct  8 20:04 f1.txt\r\n-rw-r--r-- 1 root root    723 Oct  8 20:04 f10.txt\r\n-rw-r--r-- 1 root root    739 Oct  8 20:04 f2.txt\r\n-rw-r--r-- 1 root root    782 Oct  8 20:04 f3.txt\r\n-rw-r--r-- 1 root root    417 Oct  8 20:04 f4.txt\r\n-rw-r--r-- 1 root root    806 Oct  8 20:04 f5.txt\r\n-rw-r--r-- 1 root root   1212 Oct  8 20:04 f6.txt\r\n-rw-r--r-- 1 root root    916 Oct  8 20:04 f7.txt\r\n-rw-r--r-- 1 root root   1051 Oct  8 20:04 f8.txt\r\n-rw-r--r-- 1 root root    765 Oct  8 20:04 f9.txt\r\n-rw-r--r-- 1 root root    682 Oct  8 20:04 menu.cfg\r\n-rw-r--r-- 1 root root    629 Oct  8 20:04 prompt.cfg\r\n-rw-r--r-- 1 root root    158 Oct  8 20:04 rqtxt.cfg\r\n-rw-r--r-- 1 root root   8264 Oct  8 20:04 splash.png\r\n-rw-r--r-- 1 root root    543 Oct  8 20:04 stdmenu.cfg\r\n-rw-r--r-- 1 root root    152 Oct  8 20:04 syslinux.cfg\r\n-rw-r--r-- 1 root root    395 Oct  8 20:04 txt.cfg\r\n-rw-r--r-- 1 root root 155792 Oct  8 20:04 vesamenu.c32\r\n\r\n.\/ubuntu-installer\/i386\/pxelinux.cfg:\r\ntotal 12\r\ndrwxr-xr-x 2 root root 4096 Oct 25 19:31 .\r\ndrwxr-xr-x 4 root root 4096 Oct 25 19:32 ..\r\n-rw-r--r-- 1 root root  152 Oct  8 20:04 default\r\n\r\n.\/xen:\r\ntotal 8\r\ndrwxr-xr-x 2 root root 4096 Oct 25 19:29 .\r\ndrwxr-xr-x 5 root root 4096 Oct 25 19:35 ..\r\nkan@ubuntu:\/tftpboot\/Ubuntu$ \r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u30d1\u30c3\u30b1\u30fc\u30b8 ii dhcp3-server 3.1.3-2ubuntu3.3 DHCP server for automatic IP address assignm ii tftpd-hpa 5.0-11ubuntu2&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-609","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/www.asfit.net\/blog\/kan\/index.php?rest_route=\/wp\/v2\/posts\/609","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.asfit.net\/blog\/kan\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.asfit.net\/blog\/kan\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.asfit.net\/blog\/kan\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.asfit.net\/blog\/kan\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=609"}],"version-history":[{"count":4,"href":"https:\/\/www.asfit.net\/blog\/kan\/index.php?rest_route=\/wp\/v2\/posts\/609\/revisions"}],"predecessor-version":[{"id":657,"href":"https:\/\/www.asfit.net\/blog\/kan\/index.php?rest_route=\/wp\/v2\/posts\/609\/revisions\/657"}],"wp:attachment":[{"href":"https:\/\/www.asfit.net\/blog\/kan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=609"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.asfit.net\/blog\/kan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=609"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.asfit.net\/blog\/kan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=609"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}