{"id":7564,"date":"2023-12-27T19:19:55","date_gmt":"2023-12-27T11:19:55","guid":{"rendered":"https:\/\/www.5x44.cn\/?p=7564"},"modified":"2023-12-27T19:19:55","modified_gmt":"2023-12-27T11:19:55","slug":"pxe%e5%bc%95%e5%af%bc%e5%ae%89%e8%a3%85%e9%ba%92%e9%ba%9f%e7%b3%bb%e7%bb%9f","status":"publish","type":"post","link":"https:\/\/www.5x44.cn\/?p=7564","title":{"rendered":"pxe\u5f15\u5bfc\u5b89\u88c5\u9e92\u9e9f\u7cfb\u7edf"},"content":{"rendered":"\n<p>\u9ed8\u8ba4\u7cfb\u7edf\u4e2d\u5e76\u6ca1\u6709\u652f\u6301 cifs \u7684\u5de5\u5177\uff0c\u901a\u8fc7 apt \u5b89\u88c5\uff1asudo apt install cifs-utils\u3002<br>\u63a5\u4e0b\u6765\u5c31\u53ef\u4ee5\u901a\u8fc7 mount \u547d\u4ee4\u6765\u6302\u8f7d\u4e86\uff1asudo mount -t cifs \/\/192.168.0.100\/share \/mnt -o username=username, password=password\u3002<\/p>\n\n\n\n<p>1\u3001\u5b89\u88c5\u8f6f\u4ef6\u5305\uff1aisc-dhcp-server,tftpd-hpa<\/p>\n\n\n\n<p>2\u3001dhcp\u914d\u7f6e\u6587\u4ef6\u4f4d\u7f6e\u5728\/etc\/dhcp\/\u76ee\u5f55\u4e0b\uff0ctftpd-hpa\u914d\u7f6e\u6587\u4ef6\u5728\/etc\/default\/tftpd-hpa<\/p>\n\n\n\n<p>3\u3001dhcpd.conf\u914d\u7f6e\u9700\u8981\u6ce8\u610frange dynamic-bootp \u548crange\u8981\u628a\u5206\u914dIP\u7684\u8303\u56f4\u5212\u5206\u597d\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>subnet 192.168.0.0 netmask 255.255.255.0 {\n    range dynamic-bootp 192.168.0.40 192.168.0.50;\n    range 192.168.0.20 192.168.0.30;\n    option routers 192.168.0.254;\n    option subnet-mask 255.255.255.0;\n    option broadcast-address 192.168.0.255;\n    next-server 192.168.0.254;   #tftp server\n    filename \"x86_uefi\/BOOTX64.EFI\"; #bootstarp file in the TFTP directory.\n}<\/code><\/pre>\n\n\n\n<p>4\u3001tftpd-hpa\u6587\u4ef6\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>TFTP_USERNAME=\"tftp\"\nTFTP_DIRECTORY=\"\/tftp\"\nTFTP_ADDRESS=\":69\"\nTFTP_OPTIONS=\"--secure\"<\/code><\/pre>\n\n\n\n<p>\u7591\u96be\u89e3\u7b54\uff1a(1)\u5728\u865a\u62df\u673a\u5b9e\u9a8c\u73af\u5883\u4f1a\u9047\u5230\u5982\u4e0b\u95ee\u9898<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;   29.947321] dracut: FATAL: Failed to find a root filesystem in \/tmp\/curl_fetch_url1\/install.img.\n&#91;   29.952413] dracut: Refusing to continue\n&#91;   29.962341] dracut-initqueue&#91;1100]: \/lib\/dracut-lib.sh: line 465: echo: write error: No space left on device\n&#91;   29.974241] dracut-initqueue&#91;1100]: \/lib\/dracut-lib.sh: line 466: echo: write error: No space left on device\n&#91;   29.983985] dracut-initqueue&#91;1100]: \/lib\/anaconda-lib.sh: line 142: printf: write error: No space left on device\n&#91;   29.983985] dracut-initqueue&#91;1100]: \/\/lib\/dracut\/hooks\/initqueue\/online\/80-anaconda-netroot.sh: line 92: echo: write error: No space left on device<\/code><\/pre>\n\n\n\n<p>\u8fd9\u662f\u56e0\u4e3a\u865a\u62df\u673a\u73af\u5883\u5185\u5b58\u592a\u5c0f\uff0c\u5728PXE\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u4f1a\u5c06\u4e0b\u8f7d\u7684\u4e34\u65f6\u7cfb\u7edf\u6302\u8f7d\u5230\u5185\u5b58\u4e2d\u3002\uff08\u8fd9\u91cc\u662f\u5728\uff1ahttps:\/\/www.vvave.net\/archives\/assembly-preparing-for-a-network-install-legacy-centos.html \u627e\u5230\u7684\u89e3\u51b3\u529e\u6cd5\uff09<\/p>\n\n\n\n<p>(2)\u5728\u5b89\u88c5centos7.9\u65f6\uff0c\u7cfb\u7edf\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u7a81\u7136\u4e0d\u80fd\u4e0b\u8f7d\u5b89\u88c5\u5305\uff0c\u7ecf\u8fc7\u6392\u67e5\u53d1\u73b0\u662fdhcp\u8bbe\u7f6e\u7684\u79df\u7ea6\u65f6\u95f4\u592a\u77ed\uff0c\u5bfc\u81f4\u7cfb\u7edf\u8fd8\u6ca1\u5b89\u88c5\u5b8cIP\u79df\u7ea6\u5230\u671f\u88ab\u56de\u6536\u4e86\uff0c\u89e3\u51b3\u529e\u6cd5\u4e5f\u5f88\u7b80\u5355\u5c31\u662f\u628adhcp\u670d\u52a1\u5668\u7684\u79df\u7ea6\u65f6\u95f4\u5ef6\u957f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9ed8\u8ba4\u7cfb\u7edf\u4e2d\u5e76\u6ca1\u6709\u652f\u6301 cifs \u7684\u5de5\u5177\uff0c\u901a\u8fc7 apt \u5b89\u88c5\uff1asudo apt install cifs-utils\u3002\u63a5\u4e0b\u6765\u5c31\u53ef\u4ee5\u901a\u8fc7 mount \u547d\u4ee4\u6765\u6302\u8f7d\u4e86\uff1a&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.5x44.cn\/?p=7564\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,25,22],"tags":[],"class_list":["post-7564","post","type-post","status-publish","format-standard","hentry","category-it","category-25","category-22"],"_links":{"self":[{"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/posts\/7564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7564"}],"version-history":[{"count":6,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/posts\/7564\/revisions"}],"predecessor-version":[{"id":7572,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/posts\/7564\/revisions\/7572"}],"wp:attachment":[{"href":"https:\/\/www.5x44.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}