{"id":19698,"date":"2017-09-08T06:53:28","date_gmt":"2017-09-07T22:53:28","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/09\/08\/%e4%bd%bf%e7%94%a8-pxe-server-%e4%be%86%e5%ae%89%e8%a3%9d-ubuntu-server-16-04-2\/"},"modified":"2021-03-18T17:25:09","modified_gmt":"2021-03-18T09:25:09","slug":"%e4%bd%bf%e7%94%a8-pxe-server-%e4%be%86%e5%ae%89%e8%a3%9d-ubuntu-server-16-04-2","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/09\/08\/%e4%bd%bf%e7%94%a8-pxe-server-%e4%be%86%e5%ae%89%e8%a3%9d-ubuntu-server-16-04-2\/","title":{"rendered":"\u4f7f\u7528 PXE Server \u4f86\u5b89\u88dd Ubuntu Server 16.04.2"},"content":{"rendered":"<p>\u53c3\u8003\u7db2\u9801\uff1a<br \/><a href=\"https:\/\/www.hiroom2.com\/2016\/05\/19\/ubuntu-16-04-debian-8-run-pxe-boot-server-for-automated-install\/\" target=\"_blank\" rel=\"noopener noreferrer\">Ubuntu 16.04 \/ Debian 8: Run PXE boot server for automated install &#8211; Narrow Escape<\/a><\/p>\n<p>CentOS 7 PXE Server\uff1a<span style=\"color: #0000ff\">192.168.131.241<\/span><br \/>1. \u4e0b\u8f09 Ubuntu Server netboot image \u7db2\u8def\u958b\u6a5f\u6a94<br \/># <span style=\"color: #ff0000\">wget http:\/\/archive.ubuntu.com\/ubuntu\/ubuntu\/dists\/xenial\/main\/installer-amd64\/current\/images\/netboot\/netboot.tar.gz -O ubuntu-16.04-netboot.tar.gz<\/span><\/p>\n<p>2. \u5efa\u7acb\u76ee\u9304<br \/># <span style=\"color: #ff0000\">mkdir \/var\/lib\/tftpboot\/ubuntu_server<\/span><br \/># <span style=\"color: #ff0000\">mkdir ubuntu-16.04-netboot<\/span><\/p>\n<p>3. \u89e3\u58d3\u7e2e\uff0c\u4e26\u79fb\u52d5\u5230 <span style=\"color: #0000ff\">\/var\/lib\/tftpboot\/ubuntu_server<\/span> \u76ee\u9304\u4e0b<br \/># <span style=\"color: #ff0000\">tar zxf ubuntu-16.04-netboot.tar.gz -C ubuntu-16.04-netboot<\/span><br \/># <span style=\"color: #ff0000\">mv ubuntu-16.04-netboot\/ubuntu-installer \/var\/lib\/tftpboot\/ubuntu_server<\/span>[@more@]<br \/>4. \u4fee\u6539\u8a2d\u5b9a\u6a94 <span style=\"color: #0000ff\">\/var\/lib\/tftpboot\/pxelinux.cfg\/default<strong><br \/><span style=\"color: #000000\">#<\/span> <\/strong><span style=\"color: #ff0000\">vim <\/span><\/span><span style=\"color: #ff0000\">\/var\/lib\/tftpboot\/pxelinux.cfg\/default<\/span><strong><br \/><\/strong><span style=\"color: #0000ff\">LABEL Ubuntu Server 16.04.2 x64 FTP Install<\/span><br \/><span style=\"color: #0000ff\">MENU LABEL Ubuntu Server 16.04.2 FTP Install<\/span><br \/><span style=\"color: #0000ff\">kERNEL \/netboot\/ubuntu_server\/ubuntu-installer\/amd64\/linux<\/span><br \/><span style=\"color: #0000ff\">APPEND initrd=\/netboot\/ubuntu_server\/ubuntu-installer\/amd64\/initrd.gz url=ftp:\/\/192.168.131.241\/pub\/Ubuntu16042\/preseed\/ubuntu-server.seed<\/span><strong><\/p>\n<p><\/strong><span style=\"color: #000000\">5. \u4e0b\u8f09 Ubuntu Server 16.04.2 ISO<\/span><br \/><span style=\"color: #ff0000\"><span style=\"color: #000000\">#<\/span> wget http:\/\/debian.linux.org.tw\/ubuntu-releases\/16.04.2\/ubuntu-16.04.2-server-amd64.iso<\/span><strong><\/p>\n<p><\/strong><span style=\"color: #000000\">6. \u639b\u8f09\u5149\u789f<\/span><br \/><span style=\"color: #ff0000\"><span style=\"color: #000000\">#<\/span> mount -o loop<\/span> <span style=\"color: #ff0000\">ubuntu-16.04.2-server-amd64.iso \/mnt<\/span><\/p>\n<p>7. \u8907\u88fd\u6a94\u6848\u5230 FTP Server<br \/># <span style=\"color: #ff0000\">mkdir \/var\/ftp\/pub\/<\/span><span style=\"color: #ff0000\">Ubuntu16042<\/span><br \/># <span style=\"color: #ff0000\">cp -a \/mnt\/* <\/span><span style=\"color: #ff0000\">\/var\/ftp\/pub\/Ubuntu16042<\/span><\/p>\n<p>8. \u8655\u7406 SELinux<br \/># <span style=\"color: #ff0000\">restorecon -R -F -v \/var\/lib\/tftpboot\/<\/span><br \/># <span style=\"color: #ff0000\">restorecon -R -F -v \/var\/ftp\/pub\/<\/span><strong><br \/><\/strong><br \/>9. Client \u7aef\u4ee5 PXE \u7db2\u8def\u958b\u6a5f<strong><br \/><a id=\"res_3829335\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3829335.png\"><img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3829335.png\" border=\"0\" alt=\"\" \/><\/a><\/p>\n<p><a id=\"res_3829334\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-3829334.png\"><img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-3829334.png\" border=\"0\" alt=\"\" \/><\/a><\/p>\n<p><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53c3\u8003\u7db2\u9801\uff1aUbuntu 16.04 \/ Debian 8: Run PXE boot server for a &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/09\/08\/%e4%bd%bf%e7%94%a8-pxe-server-%e4%be%86%e5%ae%89%e8%a3%9d-ubuntu-server-16-04-2\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008\u4f7f\u7528 PXE Server \u4f86\u5b89\u88dd Ubuntu Server 16.04.2\u3009<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[126,119],"tags":[],"class_list":["post-19698","post","type-post","status-publish","format-standard","hentry","category-c-78471","category-c-78464"],"meta_key":{"_pingme":["1"],"_encloseme":["1"],"lt_post_id":["694019"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19698"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/comments?post=19698"}],"version-history":[{"count":1,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19698\/revisions"}],"predecessor-version":[{"id":21193,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19698\/revisions\/21193"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=19698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=19698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=19698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}