{"id":79409,"date":"2026-03-02T00:09:04","date_gmt":"2026-03-01T16:09:04","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/79409.html"},"modified":"2026-03-02T00:09:04","modified_gmt":"2026-03-01T16:09:04","slug":"cobbler%e5%ae%9e%e6%88%98%ef%bc%9a20%e5%8f%b0%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%89%b9%e9%87%8f%e5%ae%89%e8%a3%85centos-7-9%e7%9a%84%e5%ae%8c%e6%95%b4%e9%81%bf%e5%9d%91%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/79409.html","title":{"rendered":"Cobbler\u5b9e\u6218\uff1a20\u53f0\u670d\u52a1\u5668\u6279\u91cf\u5b89\u88c5CentOS 7.9\u7684\u5b8c\u6574\u907f\u5751\u6307\u5357"},"content":{"rendered":"<h2>\u4ece\u96f6\u5230\u4e00&#xff1a;Cobbler\u5b9e\u6218\u90e8\u7f7220\u53f0CentOS 7.9\u670d\u52a1\u5668\u7684\u6df1\u5ea6\u907f\u5751\u624b\u518c<\/h2>\n<p>\u6700\u8fd1\u63a5\u624b\u4e86\u4e00\u4e2a\u9879\u76ee&#xff0c;\u9700\u8981\u4e3a\u5ba2\u6237\u768420\u53f0\u5229\u65e7\u670d\u52a1\u5668\u7edf\u4e00\u90e8\u7f72CentOS 7.9\u3002\u9762\u5bf9\u4e00\u6392\u6392\u7b49\u5f85\u4e0a\u7ebf\u7684\u673a\u5668&#xff0c;\u624b\u52a8\u4e00\u53f0\u53f0\u88c5\u7cfb\u7edf\u663e\u7136\u4e0d\u73b0\u5b9e&#xff0c;\u4e0d\u4ec5\u8017\u65f6\u8017\u529b&#xff0c;\u8fd8\u5bb9\u6613\u51fa\u9519\u3002\u56e2\u961f\u91cc\u6709\u4eba\u63d0\u8bae\u7528PXE&#043;Kickstart&#xff0c;\u8fd9\u786e\u5b9e\u662f\u7ecf\u5178\u65b9\u6848&#xff0c;\u4f46\u914d\u7f6e\u8d77\u6765\u7410\u788e&#xff0c;\u5c24\u5176\u662f\u6df7\u5408\u4e86\u5b9e\u4f53\u673a\u548c\u865a\u62df\u673a\u7684\u73af\u5883&#xff0c;\u7f51\u7edc\u914d\u7f6e\u3001DHCP\u51b2\u7a81\u3001\u955c\u50cf\u5bfc\u5165\u5931\u8d25\u8fd9\u4e9b\u5751&#xff0c;\u8e29\u8fc7\u7684\u4eba\u90fd\u61c2\u3002\u7ecf\u8fc7\u4e00\u756a\u8c03\u7814\u548c\u5bf9\u6bd4&#xff0c;\u6211\u4eec\u6700\u7ec8\u9009\u62e9\u4e86Cobbler\u4f5c\u4e3a\u6838\u5fc3\u5de5\u5177\u3002\u5b83\u4e0d\u4ec5\u4ec5\u662fPXE\u7684\u5c01\u88c5&#xff0c;\u66f4\u662f\u4e00\u4e2a\u96c6\u6210\u4e86DHCP\u3001TFTP\u3001HTTP\u548c\u4ed3\u5e93\u7ba1\u7406\u7684\u201c\u4e00\u7ad9\u5f0f\u201d\u6279\u91cf\u90e8\u7f72\u5e73\u53f0\u3002\u8fd9\u7bc7\u6587\u7ae0&#xff0c;\u6211\u5c31\u7ed3\u5408\u8fd9\u6b21\u5b9e\u6218\u7ecf\u5386&#xff0c;\u628a\u4ece\u73af\u5883\u51c6\u5907\u3001Cobbler\u914d\u7f6e\u3001\u955c\u50cf\u5bfc\u5165&#xff0c;\u5230\u6700\u7ec8\u6279\u91cf\u5b89\u88c5\u3001\u5f00\u673a\u4f18\u5316\u7684\u5168\u6d41\u7a0b&#xff0c;\u4ee5\u53ca\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u90a3\u4e9b\u201c\u5751\u201d\u548c\u89e3\u51b3\u65b9\u6848&#xff0c;\u6beb\u65e0\u4fdd\u7559\u5730\u5206\u4eab\u51fa\u6765\u3002\u65e0\u8bba\u4f60\u662f\u8fd0\u7ef4\u65b0\u624b&#xff0c;\u8fd8\u662f\u6b63\u5728\u4e3a\u89c4\u6a21\u5316\u90e8\u7f72\u5934\u75bc\u7684\u56e2\u961f&#xff0c;\u5e0c\u671b\u8fd9\u4efd\u6307\u5357\u80fd\u5e2e\u4f60\u5c11\u8d70\u5f2f\u8def\u3002<\/p>\n<h3>1. \u73af\u5883\u89c4\u5212\u4e0e\u7f51\u7edc\u9694\u79bb&#xff1a;\u4e3a\u6279\u91cf\u90e8\u7f72\u94fa\u5e73\u9053\u8def<\/h3>\n<p>\u5728\u6309\u4e0b\u7b2c\u4e00\u4e2a\u5b89\u88c5\u547d\u4ee4\u4e4b\u524d&#xff0c;\u5408\u7406\u7684\u73af\u5883\u89c4\u5212\u662f\u6210\u529f\u7684\u4e00\u534a\u3002\u6279\u91cf\u90e8\u7f72\u7684\u6838\u5fc3\u5728\u4e8e\u7f51\u7edc\u73af\u5883\u7684\u7eaf\u51c0\u4e0e\u53ef\u63a7&#xff0c;\u4efb\u4f55\u672a\u7ecf\u7ba1\u7406\u7684DHCP\u670d\u52a1\u90fd\u53ef\u80fd\u8ba9\u6574\u4e2a\u90e8\u7f72\u8fc7\u7a0b\u9677\u5165\u6df7\u4e71\u3002<\/p>\n<h4>1.1 \u90e8\u7f72\u670d\u52a1\u5668\u73af\u5883\u9009\u62e9<\/h4>\n<p>\u6211\u4eec\u7684Cobbler\u670d\u52a1\u5668\u672c\u8eab\u4e5f\u9700\u8981\u4e00\u4e2a\u7a33\u5b9a\u53ef\u9760\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002\u867d\u7136Cobbler\u652f\u6301\u591a\u79cdLinux\u53d1\u884c\u7248&#xff0c;\u4f46\u4e3a\u4e86\u6700\u5927\u7a0b\u5ea6\u517c\u5bb9\u548c\u51cf\u5c11\u672a\u77e5\u95ee\u9898&#xff0c;\u6211\u4eec\u9009\u62e9\u4e86\u4e0e\u76ee\u6807\u7cfb\u7edf\u4e00\u81f4\u7684CentOS 7.9\u4f5c\u4e3aCobbler\u670d\u52a1\u5668\u7684\u5bbf\u4e3b\u673a\u3002<\/p>\n<p>\u6ce8\u610f&#xff1a;\u786e\u4fddCobbler\u670d\u52a1\u5668\u6709\u8db3\u591f\u7684\u78c1\u76d8\u7a7a\u95f4&#xff0c;\u7279\u522b\u662f\/var\/www\/cobbler\u76ee\u5f55&#xff0c;\u56e0\u4e3a\u5b83\u5c06\u5b58\u50a8\u6240\u6709\u5bfc\u5165\u7684\u7cfb\u7edf\u955c\u50cf\u6587\u4ef6\u3002\u4e00\u4e2a\u5b8c\u6574\u7684CentOS 7.9\u955c\u50cf\u5927\u7ea6\u9700\u898110GB\u7a7a\u95f4&#xff0c;\u89c4\u5212\u65f6\u8bf7\u9884\u7559\u4f59\u91cf\u3002<\/p>\n<p>\u9664\u4e86\u57fa\u7840\u7cfb\u7edf&#xff0c;\u8fd8\u9700\u8981\u786e\u8ba4\u670d\u52a1\u5668\u7684\u7f51\u7edc\u914d\u7f6e\u3002\u6211\u4eec\u4e3aCobbler\u670d\u52a1\u5668\u5206\u914d\u4e86\u4e00\u4e2a\u9759\u6001IP\u5730\u5740&#xff1a;192.168.10.10\/24\u3002\u8fd9\u4e2aIP\u5c06\u4f5c\u4e3a\u540e\u7eedDHCP\u3001TFTP\u548cHTTP\u670d\u52a1\u7684\u6838\u5fc3\u5730\u5740\u3002<\/p>\n<h4>1.2 \u5173\u952e\u7684\u7f51\u7edc\u9694\u79bb\u7b56\u7565<\/h4>\n<p>\u8fd9\u662f\u907f\u514d\u90e8\u7f72\u5931\u8d25\u7684\u91cd\u4e2d\u4e4b\u91cd\u3002\u6211\u4eec\u7684\u73af\u5883\u5305\u542b\u4e86\u5b9e\u4f53\u7269\u7406\u670d\u52a1\u5668\u548c\u7528\u4e8e\u6d4b\u8bd5\u7684\u865a\u62df\u673a&#xff0c;\u5b83\u4eec\u5c06\u5904\u4e8e\u540c\u4e00\u4e2a\u4e8c\u5c42\u7f51\u7edc\u4e2d\u8fdb\u884c\u90e8\u7f72\u3002<\/p>\n<ul>\n<li>\u7269\u7406\u7f51\u7edc&#xff1a;\u5c06\u6240\u6709\u5f85\u90e8\u7f72\u768420\u53f0\u5b9e\u4f53\u670d\u52a1\u5668&#xff0c;\u901a\u8fc7\u4e00\u53f0\u72ec\u7acb\u7684\u4ea4\u6362\u673a\u8fde\u63a5\u8d77\u6765\u3002\u52a1\u5fc5\u786e\u4fdd\u8fd9\u4e2a\u4ea4\u6362\u673a\u7684\u7aef\u53e3\u6ca1\u6709\u5212\u5206\u590d\u6742\u7684VLAN&#xff0c;\u5e76\u4e14\u6ca1\u6709\u8fde\u63a5\u5176\u4ed6\u53ef\u80fd\u63d0\u4f9bDHCP\u670d\u52a1\u7684\u7f51\u7edc\u8bbe\u5907&#xff08;\u5982\u5bb6\u7528\u8def\u7531\u5668&#xff09;\u3002\u6211\u4eec\u7684Cobbler\u670d\u52a1\u5668\u4e5f\u8fde\u63a5\u5230\u8fd9\u53f0\u4ea4\u6362\u673a\u4e0a\u3002<\/li>\n<li>\u865a\u62df\u7f51\u7edc&#xff1a;\u7528\u4e8e\u6d4b\u8bd5\u7684\u865a\u62df\u673a&#xff08;\u6211\u4eec\u4f7f\u7528\u4e86VMware Workstation&#xff09;\u5fc5\u987b\u91c7\u7528Host-Only&#xff08;\u4ec5\u4e3b\u673a&#xff09;\u6216NAT\u6a21\u5f0f&#xff0c;\u5e76\u5173\u95ed\u5176\u865a\u62df\u7f51\u7edc\u7f16\u8f91\u5668\u81ea\u5e26\u7684DHCP\u670d\u52a1\u3002\u7edd\u5bf9\u4e0d\u8981\u4f7f\u7528\u201c\u6865\u63a5\u6a21\u5f0f\u201d&#xff0c;\u56e0\u4e3a\u6865\u63a5\u6a21\u5f0f\u4f1a\u8ba9\u865a\u62df\u673a\u76f4\u63a5\u63a5\u5165\u7269\u7406\u7f51\u7edc&#xff0c;\u5982\u679c\u7269\u7406\u7f51\u7edc\u4e2d\u5df2\u5b58\u5728\u5176\u4ed6DHCP\u670d\u52a1\u5668&#xff08;\u5982\u516c\u53f8\u5185\u7f51\u7684\u8def\u7531\u5668&#xff09;&#xff0c;\u5fc5\u7136\u4f1a\u4ea7\u751f\u51b2\u7a81&#xff0c;\u5bfc\u81f4PXE\u542f\u52a8\u5931\u8d25\u3002<\/li>\n<\/ul>\n<p>\u4e3a\u4e86\u66f4\u6e05\u6670\u5730\u7406\u89e3\u7f51\u7edc\u89d2\u8272&#xff0c;\u53ef\u4ee5\u53c2\u8003\u4e0b\u8868&#xff1a;<\/p>\n<table>\n<tr>\u7ec4\u4ef6\u63a8\u8350\u7f51\u7edc\u6a21\u5f0f\u5173\u952e\u914d\u7f6e\u76ee\u7684<\/tr>\n<tbody>\n<tr>\n<td style=\"text-align:left\">Cobbler\u670d\u52a1\u5668<\/td>\n<td style=\"text-align:left\">\u7269\u7406\u7f51\u5361<\/td>\n<td style=\"text-align:left\">\u9759\u6001IP (\u5982 192.168.10.10)<\/td>\n<td style=\"text-align:left\">\u63d0\u4f9b\u6240\u6709\u90e8\u7f72\u670d\u52a1<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u5f85\u90e8\u7f72\u5b9e\u4f53\u673a<\/td>\n<td style=\"text-align:left\">\u7269\u7406\u7f51\u5361<\/td>\n<td style=\"text-align:left\">PXE\u542f\u52a8<\/td>\n<td style=\"text-align:left\">\u63a5\u6536\u90e8\u7f72<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\">\u6d4b\u8bd5\u865a\u62df\u673a<\/td>\n<td style=\"text-align:left\">VMware\/VirtualBox Host-Only\u6216NAT<\/td>\n<td style=\"text-align:left\">\u5173\u95ed\u865a\u62df\u7f51\u7edc\u7684DHCP<\/td>\n<td style=\"text-align:left\">\u5b89\u5168\u6d4b\u8bd5\u90e8\u7f72\u6d41\u7a0b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>1.3 \u524d\u671f\u7cfb\u7edf\u51c6\u5907<\/h4>\n<p>\u5728\u5b89\u88c5Cobbler\u4e4b\u524d&#xff0c;\u9700\u8981\u5bf9CentOS 7.9\u505a\u4e00\u4e9b\u57fa\u7840\u914d\u7f6e&#xff0c;\u4e3b\u8981\u662f\u5173\u95edSELinux\u548c\u9632\u706b\u5899&#xff08;\u4ec5\u9650\u5c01\u95ed\u7684\u90e8\u7f72\u73af\u5883&#xff0c;\u751f\u4ea7\u73af\u5883\u5efa\u8bae\u914d\u7f6e\u7cbe\u786e\u89c4\u5219&#xff09;\u3002<\/p>\n<p># 1. \u5173\u95edSELinux&#xff08;\u6c38\u4e45\u751f\u6548&#xff09;<br \/>\nsed -i &#039;s\/SELINUX&#061;enforcing\/SELINUX&#061;disabled\/&#039; \/etc\/selinux\/config<br \/>\n# \u4e34\u65f6\u5173\u95ed&#xff0c;\u65e0\u9700\u91cd\u542f<br \/>\nsetenforce 0<\/p>\n<p># 2. \u505c\u6b62\u5e76\u7981\u7528\u9632\u706b\u5899&#xff08;\u90e8\u7f72\u671f\u95f4&#xff09;<br \/>\nsystemctl stop firewalld<br \/>\nsystemctl disable firewalld<\/p>\n<p># 3. \u66f4\u65b0\u7cfb\u7edf\u5e76\u5b89\u88c5\u5fc5\u8981\u5de5\u5177<br \/>\nyum install -y epel-release<br \/>\nyum update -y<br \/>\nyum install -y vim wget net-tools<\/p>\n<p>\u5b8c\u6210\u8fd9\u4e9b\u6b65\u9aa4\u540e&#xff0c;\u91cd\u542f\u670d\u52a1\u5668&#xff0c;\u786e\u4fdd\u5728\u4e00\u4e2a\u201c\u5e72\u51c0\u201d\u7684\u7cfb\u7edf\u73af\u5883\u4e0b\u5f00\u59cbCobbler\u7684\u5b89\u88c5\u3002<\/p>\n<h3>2. Cobbler\u670d\u52a1\u90e8\u7f72\u4e0e\u6838\u5fc3\u914d\u7f6e\u8be6\u89e3<\/h3>\n<p>Cobbler\u7684\u5f3a\u5927\u5728\u4e8e\u5176\u96c6\u6210\u6027&#xff0c;\u4f46\u914d\u7f6e\u9879\u4e5f\u76f8\u5bf9\u8f83\u591a\u3002\u7406\u89e3\u6bcf\u4e2a\u914d\u7f6e\u7684\u4f5c\u7528&#xff0c;\u662f\u7075\u6d3b\u8fd0\u7528\u548c\u6392\u9519\u7684\u57fa\u7840\u3002<\/p>\n<h4>2.1 \u4e00\u7ad9\u5f0f\u5b89\u88c5Cobbler\u53ca\u5176\u7ec4\u4ef6<\/h4>\n<p>\u901a\u8fc7Yum\u5b89\u88c5\u975e\u5e38\u7b80\u4fbf&#xff0c;\u5b83\u4f1a\u81ea\u52a8\u5904\u7406\u4f9d\u8d56\u5173\u7cfb&#xff0c;\u5305\u62ecApache\u3001DHCP\u3001TFTP\u7b49\u6838\u5fc3\u670d\u52a1\u3002<\/p>\n<p>yum install -y cobbler cobbler-web dhcp tftp-server pykickstart httpd xinetd syslinux<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u542f\u52a8\u5fc5\u8981\u7684\u670d\u52a1\u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f&#xff1a;<\/p>\n<p>systemctl start httpd<br \/>\nsystemctl start cobblerd<br \/>\nsystemctl enable httpd<br \/>\nsystemctl enable cobblerd<\/p>\n<h4>2.2 \u8fd0\u884c\u914d\u7f6e\u68c0\u67e5\u4e0e\u4fee\u590d<\/h4>\n<p>Cobbler\u63d0\u4f9b\u4e86\u4e00\u4e2a\u6781\u597d\u7684\u5de5\u5177cobbler check&#xff0c;\u5b83\u4f1a\u8bca\u65ad\u5f53\u524d\u914d\u7f6e\u7684\u95ee\u9898\u5e76\u7ed9\u51fa\u4fee\u590d\u5efa\u8bae\u3002\u9996\u6b21\u8fd0\u884c\u65f6&#xff0c;\u901a\u5e38\u4f1a\u62a5\u544a\u4e00\u4e9b\u9700\u8981\u624b\u52a8\u5904\u7406\u7684\u9879\u76ee\u3002<\/p>\n<p>cobbler check<\/p>\n<p>\u5e38\u89c1\u7684\u8f93\u51fa\u548c\u4fee\u590d\u547d\u4ee4\u5982\u4e0b&#xff1a;<\/p>\n<li>The following are potential configuration items that you may want to fix: \u8fd9\u662f\u63d0\u793a\u4fe1\u606f\u5f00\u5934\u3002<\/li>\n<li>1 : SELinux is enabled. Please disable it or set to permissive mode \u6211\u4eec\u5df2\u7ecf\u5904\u7406\u3002<\/li>\n<li>2 : change &#039;disable&#039; to &#039;no&#039; in \/etc\/xinetd.d\/tftp \u7f16\u8f91TFTP\u914d\u7f6e\u6587\u4ef6\u3002vim \/etc\/xinetd.d\/tftp<br \/>\n# \u5c06 &#096;disable &#061; yes&#096; \u6539\u4e3a &#096;disable &#061; no&#096;<\/p>\n<\/li>\n<li>3 : debmirror package is not installed \u5982\u679c\u6211\u4eec\u4e0d\u9700\u8981\u7ba1\u7406Debian\u955c\u50cf&#xff0c;\u53ef\u4ee5\u5ffd\u7565\u3002\u5982\u9700\u5b89\u88c5&#xff1a;yum install -y debmirror\u3002<\/li>\n<li>4 : some network boot-loaders are missing&#8230; \u7f3a\u5c11PXE\u5f15\u5bfc\u6587\u4ef6\u3002\u8fd9\u662f\u6700\u5173\u952e\u7684\u4e00\u6b65\u3002\u5982\u679c\u670d\u52a1\u5668\u53ef\u4ee5\u8bbf\u95ee\u5916\u7f51&#xff0c;\u76f4\u63a5\u8fd0\u884c&#xff1a;cobbler get-loaders\n<p>\u5982\u679c\u5904\u4e8e\u5185\u7f51\u73af\u5883&#xff0c;\u9700\u8981\u4ece\u4e00\u53f0\u80fd\u8054\u7f51\u7684\u673a\u5668\u4e0b\u8f7dsyslinux\u5305&#xff0c;\u5c06\u5176\u4e2d\u7684pxelinux.0\u3001menu.c32\u7b49\u6587\u4ef6\u590d\u5236\u5230\/var\/lib\/cobbler\/loaders\/\u76ee\u5f55\u4e0b\u3002<\/li>\n<li>5 : enable and start rsyncd.service \u542f\u52a8rsync\u670d\u52a1\u3002systemctl start rsyncd<br \/>\nsystemctl enable rsyncd<\/p>\n<\/li>\n<li>6 : the &#039;server&#039; field in \/etc\/cobbler\/settings must be set to something other than localhost \u8bbe\u7f6eCobbler\u670d\u52a1\u5668IP\u3002<\/li>\n<h4>2.3 \u6df1\u5ea6\u914d\u7f6e\/etc\/cobbler\/settings<\/h4>\n<p>\u8fd9\u662fCobbler\u7684\u4e3b\u914d\u7f6e\u6587\u4ef6\u3002\u6211\u4eec\u9700\u8981\u4fee\u6539\u51e0\u4e2a\u6838\u5fc3\u53c2\u6570\u3002\u9996\u5148\u83b7\u53d6\u672c\u673aIP&#xff1a;<\/p>\n<p>IPADDR&#061;$(ip addr show | grep &#039;inet &#039; | grep -v &#039;127.0.0.1&#039; | head -n1 | awk &#039;{print $2}&#039; | cut -d&#039;\/&#039; -f1)<br \/>\necho $IPADDR<\/p>\n<p>\u7136\u540e\u4f7f\u7528sed\u547d\u4ee4\u6279\u91cf\u4fee\u6539\u914d\u7f6e\u6587\u4ef6&#xff1a;<\/p>\n<p># \u8bbe\u7f6eCobbler\u670d\u52a1\u5668\u5730\u5740<br \/>\nsed -i &#034;s\/^server: 127.0.0.1\/server: $IPADDR\/&#034; \/etc\/cobbler\/settings<br \/>\n# \u8bbe\u7f6ePXE\u5f15\u5bfc\u6587\u4ef6\u7684\u4e0b\u4e00\u4e2a\u670d\u52a1\u5668\u5730\u5740&#xff08;\u901a\u5e38\u4e0eserver\u76f8\u540c&#xff09;<br \/>\nsed -i &#034;s\/^next_server: 127.0.0.1\/next_server: $IPADDR\/&#034; \/etc\/cobbler\/settings<br \/>\n# \u542f\u7528Cobbler\u7ba1\u7406DHCP<br \/>\nsed -i &#039;s\/^manage_dhcp: 0\/manage_dhcp: 1\/&#039; \/etc\/cobbler\/settings<br \/>\n# \u8bbe\u7f6e\u5b89\u88c5\u540e\u81ea\u52a8\u4fee\u6539\u542f\u52a8\u987a\u5e8f&#xff0c;\u9632\u6b62\u5faa\u73af\u5b89\u88c5<br \/>\nsed -i &#039;s\/^pxe_just_once: 0\/pxe_just_once: 1\/&#039; \/etc\/cobbler\/settings<br \/>\n# \u4e3a\u6240\u6709\u5b89\u88c5\u7684\u673a\u5668\u8bbe\u7f6e\u9ed8\u8ba4\u52a0\u5bc6\u5bc6\u7801&#xff08;\u4f8b\u5982\u5bc6\u7801\u4e3a&#xff1a;MySecurePass123!&#xff09;<br \/>\n# \u5148\u751f\u6210\u52a0\u5bc6\u5bc6\u7801<br \/>\nCRYPT_PASS&#061;$(openssl passwd -1 -salt &#039;cobbler&#039; &#039;MySecurePass123!&#039;)<br \/>\n# \u518d\u66ff\u6362\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u5360\u4f4d\u7b26<br \/>\nsed -i &#034;s|^default_password_crypted:.*$|default_password_crypted: \\\\&#034;$CRYPT_PASS\\\\&#034;|&#034; \/etc\/cobbler\/settings<\/p>\n<h4>2.4 \u914d\u7f6eDHCP\u670d\u52a1\u6a21\u677f<\/h4>\n<p>Cobbler\u901a\u8fc7\u6a21\u677f\u7ba1\u7406DHCP\u914d\u7f6e\u3002\u7f16\u8f91\/etc\/cobbler\/dhcp.template&#xff0c;\u8fd9\u662f\u6700\u91cd\u8981\u7684\u7f51\u7edc\u914d\u7f6e\u90e8\u5206\u3002\u4f60\u9700\u8981\u6839\u636e\u4f60\u7684\u5b9e\u9645\u7f51\u7edc\u89c4\u5212\u8fdb\u884c\u4fee\u6539\u3002<\/p>\n<p>vim \/etc\/cobbler\/dhcp.template<\/p>\n<p>\u627e\u5230\u7c7b\u4f3c\u4e0b\u9762\u7684\u90e8\u5206\u8fdb\u884c\u4fee\u6539&#xff08;\u793a\u4f8b&#xff0c;\u8bf7\u66ff\u6362\u4e3a\u4f60\u81ea\u5df1\u7684\u7f51\u7edc\u53c2\u6570&#xff09;&#xff1a;<\/p>\n<p>subnet 192.168.10.0 netmask 255.255.255.0 {<br \/>\n     option routers             192.168.10.1;<br \/>\n     option domain-name-servers 192.168.10.1, 8.8.8.8;<br \/>\n     option subnet-mask         255.255.255.0;<br \/>\n     range dynamic-bootp        192.168.10.100 192.168.10.200;<br \/>\n     default-lease-time         21600;<br \/>\n     max-lease-time             43200;<br \/>\n     next-server                $next_server; # \u8fd9\u884c\u5f88\u91cd\u8981&#xff0c;$next_server\u53d8\u91cf\u4f1a\u81ea\u52a8\u66ff\u6362\u4e3a\u4e0a\u9762\u8bbe\u7f6e\u7684IP<br \/>\n     filename                   &#034;\/pxelinux.0&#034;;<br \/>\n}<\/p>\n<ul>\n<li>subnet\u548cnetmask&#xff1a;\u5b9a\u4e49\u4f60\u7684\u90e8\u7f72\u5b50\u7f51\u3002<\/li>\n<li>option routers&#xff1a;\u7f51\u5173\u5730\u5740\u3002<\/li>\n<li>range dynamic-bootp&#xff1a;DHCP\u5730\u5740\u6c60\u8303\u56f4&#xff0c;\u786e\u4fdd\u6709\u8db3\u591fIP\u5206\u914d\u7ed920\u53f0\u673a\u5668\u3002<\/li>\n<li>next-server&#xff1a;\u6307\u5411TFTP\u670d\u52a1\u5668&#xff08;\u5373Cobbler\u670d\u52a1\u5668&#xff09;\u7684IP&#xff0c;$next_server\u53d8\u91cf\u4f1a\u81ea\u52a8\u586b\u5145\u3002<\/li>\n<li>filename \u201c\/pxelinux.0\u201d&#xff1a;\u6307\u5b9aPXE\u5ba2\u6237\u7aef\u8981\u4e0b\u8f7d\u7684\u5f15\u5bfc\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<h4>2.5 \u540c\u6b65\u914d\u7f6e\u5e76\u542f\u52a8\u6240\u6709\u670d\u52a1<\/h4>\n<p>\u5b8c\u6210\u6240\u6709\u914d\u7f6e\u540e&#xff0c;\u8fd0\u884c\u540c\u6b65\u547d\u4ee4&#xff0c;\u8ba9Cobbler\u5c06\u914d\u7f6e\u5e94\u7528\u5230\u5404\u4e2a\u5b50\u670d\u52a1&#xff08;DHCP\u3001TFTP\u7b49&#xff09;\u3002<\/p>\n<p>cobbler sync<br \/>\nsystemctl restart cobblerd httpd dhcpd xinetd rsyncd<br \/>\nsystemctl enable dhcpd xinetd rsyncd<\/p>\n<p>\u73b0\u5728&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee http:\/\/&lt;\u4f60\u7684Cobbler\u670d\u52a1\u5668IP&gt;\/cobbler_web \u6765\u4f7f\u7528Web\u754c\u9762\u8fdb\u884c\u7ba1\u7406&#xff08;\u9996\u6b21\u767b\u5f55\u7528\u6237cobbler&#xff0c;\u5bc6\u7801cobbler&#xff09;&#xff0c;\u4e0d\u8fc7\u5bf9\u4e8e\u81ea\u52a8\u5316\u8fd0\u7ef4&#xff0c;\u547d\u4ee4\u884c\u901a\u5e38\u66f4\u9ad8\u6548\u3002<\/p>\n<h3>3. \u7cfb\u7edf\u955c\u50cf\u5bfc\u5165\u4e0eKickstart\u65e0\u4eba\u503c\u5b88\u914d\u7f6e<\/h3>\n<p>\u6709\u4e86\u670d\u52a1\u5e73\u53f0&#xff0c;\u63a5\u4e0b\u6765\u5c31\u9700\u8981\u201c\u5b89\u88c5\u5305\u201d\u548c\u201c\u5b89\u88c5\u8bf4\u660e\u4e66\u201d\u3002\u8fd9\u5c31\u662f\u53d1\u884c\u7248\u955c\u50cf\u548cKickstart\u6587\u4ef6\u3002<\/p>\n<h4>3.1 \u5bfc\u5165CentOS 7.9\u955c\u50cf<\/h4>\n<p>\u9996\u5148&#xff0c;\u4e0b\u8f7dCentOS 7.9 Minimal ISO\u955c\u50cf&#xff0c;\u5e76\u4e0a\u4f20\u5230Cobbler\u670d\u52a1\u5668\u3002\u7136\u540e\u5c06\u5176\u6302\u8f7d\u5e76\u5bfc\u5165\u3002<\/p>\n<p># \u5047\u8bbe\u955c\u50cf\u5728 \/root \u76ee\u5f55\u4e0b<br \/>\nmount -o loop \/root\/CentOS-7-x86_64-Minimal-2009.iso \/mnt<\/p>\n<p># \u4f7f\u7528cobbler import\u547d\u4ee4\u5bfc\u5165<br \/>\ncobbler import &#8211;path&#061;\/mnt &#8211;name&#061;CentOS-7.9 &#8211;arch&#061;x86_64<\/p>\n<p>\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c&#xff1a;<\/p>\n<ul>\n<li>\u5c06\u955c\u50cf\u5185\u5bb9\u590d\u5236\u5230\/var\/www\/cobbler\/ks_mirror\/CentOS-7.9-x86_64\/\u3002<\/li>\n<li>\u81ea\u52a8\u521b\u5efa\u4e00\u4e2a\u540c\u540d\u7684distro&#xff08;\u53d1\u884c\u7248&#xff09;\u3002<\/li>\n<li>\u81ea\u52a8\u521b\u5efa\u4e00\u4e2a\u5173\u8054\u7684profile&#xff08;\u5b89\u88c5\u914d\u7f6e\u6982\u8981&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u5bfc\u5165\u5b8c\u6210\u540e&#xff0c;\u53ef\u4ee5\u68c0\u67e5\u4e00\u4e0b&#xff1a;<\/p>\n<p>cobbler distro list<br \/>\ncobbler profile list<\/p>\n<h4>3.2 \u5b9a\u5236Kickstart\u65e0\u4eba\u503c\u5b88\u5b89\u88c5\u6587\u4ef6<\/h4>\n<p>Cobbler\u81ea\u5e26\u7684Kickstart\u6587\u4ef6\u53ef\u80fd\u4e0d\u7b26\u5408\u6211\u4eec\u7684\u9700\u6c42\u3002\u6211\u4eec\u9700\u8981\u5b9a\u5236\u4e00\u4e2a\u3002\u9996\u5148\u627e\u5230\u5e76\u590d\u5236\u4e00\u4e2a\u6a21\u677f&#xff1a;<\/p>\n<p>cd \/var\/lib\/cobbler\/kickstarts\/<br \/>\ncp sample.ks my_centos7.9.ks<br \/>\nvim my_centos7.9.ks<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u9488\u5bf9\u6211\u4eec\u573a\u666f\u4f18\u5316\u8fc7\u7684Kickstart\u6587\u4ef6\u793a\u4f8b&#xff0c;\u5305\u542b\u4e86\u78c1\u76d8\u5206\u533a\u3001\u8f6f\u4ef6\u5305\u9009\u62e9\u3001\u7f51\u7edc\u914d\u7f6e\u548c\u540e\u811a\u672c&#xff1a;<\/p>\n<p>#platform&#061;x86, AMD64, or Intel EM64T<br \/>\n#version&#061;DEVEL<br \/>\n# Install OS instead of upgrade<br \/>\ninstall<br \/>\n# \u4f7f\u7528Cobbler\u7ba1\u7406\u7684HTTP\u6e90<br \/>\nurl &#8211;url&#061;$tree<br \/>\n# \u7cfb\u7edf\u8bed\u8a00\u548c\u952e\u76d8<br \/>\nlang en_US.UTF-8<br \/>\nkeyboard us<br \/>\n# \u7f51\u7edc\u914d\u7f6e&#xff08;\u4eceCobbler\u83b7\u53d6&#xff09;<br \/>\n$SNIPPET(&#039;network_config&#039;)<br \/>\n# \u8ba4\u8bc1\u4e0e\u5bc6\u7801<br \/>\nauth &#8211;useshadow &#8211;passalgo&#061;sha512<br \/>\nrootpw &#8211;iscrypted $default_password_crypted<br \/>\n# \u65f6\u533a<br \/>\ntimezone Asia\/Shanghai &#8211;isUtc<br \/>\n# \u6e05\u9664\u78c1\u76d8\u5e76\u521d\u59cb\u5316\u6807\u7b7e<br \/>\nzerombr<br \/>\nclearpart &#8211;all &#8211;initlabel<br \/>\n# \u78c1\u76d8\u5206\u533a\u65b9\u6848&#xff1a;\u6807\u51c6LVM\u5206\u533a<br \/>\npart \/boot &#8211;fstype&#061;&#034;xfs&#034; &#8211;size&#061;1024<br \/>\npart pv.01 &#8211;size&#061;1 &#8211;grow<br \/>\nvolgroup vg_root pv.01<br \/>\nlogvol \/ &#8211;fstype&#061;&#034;xfs&#034; &#8211;name&#061;lv_root &#8211;vgname&#061;vg_root &#8211;size&#061;20480<br \/>\nlogvol swap &#8211;fstype&#061;&#034;swap&#034; &#8211;name&#061;lv_swap &#8211;vgname&#061;vg_root &#8211;size&#061;4096<br \/>\nlogvol \/var &#8211;fstype&#061;&#034;xfs&#034; &#8211;name&#061;lv_var &#8211;vgname&#061;vg_root &#8211;size&#061;10240 &#8211;grow<br \/>\n# \u5f15\u5bfc\u88c5\u8f7d\u7a0b\u5e8f<br \/>\nbootloader &#8211;location&#061;mbr &#8211;boot-drive&#061;sda<br \/>\n# \u5173\u95edSELinux\u548c\u9632\u706b\u5899&#xff08;\u6839\u636e\u9700\u6c42\u8c03\u6574&#xff09;<br \/>\nselinux &#8211;disabled<br \/>\nfirewall &#8211;disabled<br \/>\n# \u5b89\u88c5\u540e\u91cd\u542f<br \/>\nreboot<br \/>\n# \u8981\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u7ec4<br \/>\n%packages<br \/>\n&#064;^minimal-environment<br \/>\n&#064;core<br \/>\nkexec-tools<br \/>\nvim-enhanced<br \/>\nnet-tools<br \/>\nwget<br \/>\n%end<br \/>\n# \u5b89\u88c5\u540e\u811a\u672c&#xff0c;\u53ef\u4ee5\u505a\u4e00\u4e9b\u4e2a\u6027\u5316\u8bbe\u7f6e<br \/>\n%post &#8211;log&#061;\/root\/post-install.log<br \/>\n# \u7981\u7528\u4e0d\u5fc5\u8981\u7684\u670d\u52a1<br \/>\nsystemctl disable postfix.service<br \/>\n# \u914d\u7f6eyum\u6e90&#xff08;\u4f8b\u5982\u6dfb\u52a0\u5185\u90e8\u4ed3\u5e93&#xff09;<br \/>\ncat &gt; \/etc\/yum.repos.d\/internal.repo &lt;&lt; EOF<br \/>\n[internal-base]<br \/>\nname&#061;Internal Base Repo<br \/>\nbaseurl&#061;http:\/\/your-internal-repo\/centos\/7\/os\/x86_64\/<br \/>\nenabled&#061;1<br \/>\ngpgcheck&#061;0<br \/>\nEOF<br \/>\n# \u521b\u5efa\u7ba1\u7406\u5458\u7528\u6237<br \/>\nuseradd -m -G wheel opsadmin<br \/>\necho &#034;MyUserPass123&#034; | passwd &#8211;stdin opsadmin<br \/>\n%end<\/p>\n<h4>3.3 \u5c06Kickstart\u6587\u4ef6\u5173\u8054\u5230Profile<\/h4>\n<p>\u5c06\u6211\u4eec\u5b9a\u5236\u597d\u7684Kickstart\u6587\u4ef6\u6307\u5b9a\u7ed9\u4e4b\u524d\u5bfc\u5165\u955c\u50cf\u65f6\u81ea\u52a8\u521b\u5efa\u7684profile\u3002<\/p>\n<p>cobbler profile edit &#8211;name&#061;CentOS-7.9-x86_64 &#8211;kickstart&#061;\/var\/lib\/cobbler\/kickstarts\/my_centos7.9.ks<\/p>\n<p>\u5982\u679c\u9700\u8981\u4e3a\u4e0d\u540c\u786c\u4ef6&#xff08;\u5982\u865a\u62df\u673a&#xff09;\u4f20\u9012\u7279\u5b9a\u7684\u5185\u6838\u53c2\u6570&#xff0c;\u4e5f\u53ef\u4ee5\u5728\u8fd9\u91cc\u8bbe\u7f6e\u3002\u4f8b\u5982&#xff0c;\u5f3a\u5236\u4f7f\u7528\u4f20\u7edf\u7684\u7f51\u7edc\u8bbe\u5907\u547d\u540d\u65b9\u5f0f&#xff08;eth0&#xff09;&#xff0c;\u8fd9\u5728\u4e00\u4e9b\u8001\u786c\u4ef6\u6216\u7279\u5b9a\u865a\u62df\u5316\u5e73\u53f0\u4e0a\u5f88\u6709\u7528\u3002<\/p>\n<p>cobbler profile edit &#8211;name&#061;CentOS-7.9-x86_64 &#8211;kopts&#061;&#039;net.ifnames&#061;0 biosdevname&#061;0&#039;<\/p>\n<p>\u6700\u540e&#xff0c;\u518d\u6b21\u540c\u6b65\u914d\u7f6e&#xff0c;\u4f7f\u6240\u6709\u66f4\u6539\u751f\u6548\u3002<\/p>\n<p>cobbler sync<\/p>\n<h3>4. \u5b9e\u6218\u6279\u91cf\u5b89\u88c5\u4e0e\u6df7\u5408\u73af\u5883\u8c03\u8bd5<\/h3>\n<p>\u4e00\u5207\u51c6\u5907\u5c31\u7eea&#xff0c;\u771f\u6b63\u7684\u6279\u91cf\u5b89\u88c5\u5f00\u59cb\u4e86\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u9700\u8981\u5728\u5b9e\u4f53\u673a\u548c\u865a\u62df\u673a\u4e0a\u5206\u522b\u9a8c\u8bc1\u3002<\/p>\n<h4>4.1 \u865a\u62df\u673a\u6d4b\u8bd5&#xff1a;\u5feb\u901f\u9a8c\u8bc1\u90e8\u7f72\u6d41\u7a0b<\/h4>\n<p>\u5728\u6295\u5165\u5b9e\u4f53\u673a\u4e4b\u524d&#xff0c;\u5148\u7528\u865a\u62df\u673a\u5b8c\u6574\u8dd1\u4e00\u904d\u6d41\u7a0b\u662f\u6781\u5176\u660e\u667a\u7684\u3002\u4ee5VirtualBox\u4e3a\u4f8b&#xff1a;<\/p>\n<li>\u521b\u5efa\u865a\u62df\u673a&#xff1a;\u4e0d\u6302\u8f7d\u4efb\u4f55ISO\u955c\u50cf&#xff0c;\u5185\u5b58\u5efa\u8bae1GB\u4ee5\u4e0a&#xff0c;\u786c\u76d820GB\u3002<\/li>\n<li>\u7f51\u7edc\u8bbe\u7f6e&#xff1a;\u7f51\u5361\u9009\u62e9 \u201cHost-Only\u7f51\u7edc\u201d&#xff08;\u786e\u4fddVirtualBox\u7684Host-Only\u7f51\u7edcDHCP\u670d\u52a1\u5df2\u5173\u95ed&#xff09;\u3002<\/li>\n<li>\u542f\u52a8\u987a\u5e8f&#xff1a;\u5728\u7cfb\u7edf\u8bbe\u7f6e\u4e2d&#xff0c;\u5c06 \u201c\u7f51\u7edc\u201d \u8c03\u6574\u4e3a\u7b2c\u4e00\u542f\u52a8\u9879\u3002<\/li>\n<li>\u542f\u52a8\u6d4b\u8bd5&#xff1a;\u542f\u52a8\u865a\u62df\u673a&#xff0c;\u5b83\u4f1a\u901a\u8fc7PXE\u4eceCobbler\u670d\u52a1\u5668\u83b7\u53d6\u5f15\u5bfc\u4fe1\u606f\u3002\u5c4f\u5e55\u4e0a\u4f1a\u51fa\u73b0Cobbler\u63d0\u4f9b\u7684\u542f\u52a8\u83dc\u5355&#xff0c;\u9009\u62e9\u6211\u4eec\u914d\u7f6e\u7684CentOS-7.9-x86_64&#xff0c;\u56de\u8f66\u3002<\/li>\n<li>\u89c2\u5bdf\u81ea\u52a8\u5316\u5b89\u88c5&#xff1a;\u63a5\u4e0b\u6765\u5c31\u662f\u5b8c\u5168\u81ea\u52a8\u5316\u7684\u8fc7\u7a0b&#xff0c;\u7cfb\u7edf\u4f1a\u6309\u7167Kickstart\u6587\u4ef6\u8fdb\u884c\u5206\u533a\u3001\u5b89\u88c5\u8f6f\u4ef6\u5305\u3001\u914d\u7f6e\u7cfb\u7edf\u3002\u51e0\u5206\u949f\u540e&#xff0c;\u865a\u62df\u673a\u4f1a\u81ea\u52a8\u91cd\u542f\u3002\u91cd\u542f\u524d&#xff0c;\u9700\u8981\u8fdb\u5165\u865a\u62df\u673aBIOS\u8bbe\u7f6e&#xff08;\u6216VirtualBox\u7684\u201c\u7cfb\u7edf\u201d\u8bbe\u7f6e&#xff09;&#xff0c;\u5c06\u542f\u52a8\u987a\u5e8f\u6539\u56de\u201c\u786c\u76d8\u201d\u7b2c\u4e00&#xff0c;\u5426\u5219\u5b83\u4f1a\u518d\u6b21\u8fdb\u5165PXE\u5b89\u88c5\u5faa\u73af\u3002<\/li>\n<h4>4.2 \u5b9e\u4f53\u673a\u6279\u91cf\u5b89\u88c5&#xff1a;IPMI\u8fdc\u7a0b\u7ba1\u7406\u662f\u5173\u952e<\/h4>\n<p>\u5bf9\u4e8e\u6ca1\u6709\u663e\u793a\u5668\u548c\u952e\u76d8\u7684\u673a\u623f\u670d\u52a1\u5668&#xff0c;IPMI&#xff08;\u667a\u80fd\u5e73\u53f0\u7ba1\u7406\u63a5\u53e3&#xff09; \u662f\u6211\u4eec\u7684\u9065\u63a7\u5668\u3002\u5b83\u5141\u8bb8\u6211\u4eec\u8fdc\u7a0b\u63a7\u5236\u670d\u52a1\u5668\u7684\u7535\u6e90\u3001\u542f\u52a8\u8bbe\u5907\u7b49\u3002<\/p>\n<ul>\n<li>\u524d\u63d0&#xff1a;\u786e\u4fdd\u5f85\u90e8\u7f72\u7684\u5b9e\u4f53\u670d\u52a1\u5668BMC&#xff08;\u57fa\u677f\u7ba1\u7406\u63a7\u5236\u5668&#xff09;\u5df2\u914d\u7f6e\u597dIP\u5730\u5740\u3001\u7528\u6237\u540d\u548c\u5bc6\u7801&#xff0c;\u5e76\u4e14\u7f51\u7edc\u53ef\u8fbe\u3002<\/li>\n<li>\u5de5\u5177&#xff1a;\u5728Cobbler\u670d\u52a1\u5668\u6216\u4efb\u610f\u4e00\u53f0\u7ba1\u7406\u673a\u4e0a\u5b89\u88c5ipmitool\u3002<\/li>\n<\/ul>\n<p>yum install -y ipmitool<\/p>\n<p>\u6279\u91cf\u5b89\u88c5\u7684\u6838\u5fc3\u5c31\u662f\u901a\u8fc7\u811a\u672c\u5faa\u73af\u64cd\u4f5cIPMI\u547d\u4ee4\u3002\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4efd\u670d\u52a1\u5668\u5217\u8868\u6587\u4ef6server_list.txt&#xff0c;\u683c\u5f0f\u4e3aIPMI_IP,\u7528\u6237\u540d,\u5bc6\u7801\u3002<\/p>\n<p>#!\/bin\/bash<br \/>\n# batch_pxe_install.sh<br \/>\nwhile IFS&#061;, read -r ipmi_ip user pass<br \/>\ndo<br \/>\n    echo &#034;Processing server with IPMI IP: $ipmi_ip&#034;<br \/>\n    # 1. \u8bbe\u7f6e\u4ecePXE\u542f\u52a8<br \/>\n    ipmitool -I lanplus -H $ipmi_ip -U $user -P $pass chassis bootdev pxe<br \/>\n    # 2. \u5f3a\u5236\u91cd\u542f&#xff08;\u5f00\u59cb\u5b89\u88c5&#xff09;<br \/>\n    ipmitool -I lanplus -H $ipmi_ip -U $user -P $pass power reset<br \/>\n    # 3. \u7b49\u5f85\u4e00\u6bb5\u65f6\u95f4&#xff08;\u4f8b\u598210\u5206\u949f&#xff09;&#xff0c;\u8ba9\u5b89\u88c5\u8fdb\u884c<br \/>\n    sleep 600<br \/>\n    # 4. \u68c0\u67e5\u7535\u6e90\u72b6\u6001&#xff0c;\u786e\u8ba4\u662f\u5426\u5b89\u88c5\u5b8c\u6210\u5e76\u5173\u673a&#xff08;kickstart\u4e2d\u8bbe\u7f6e\u4e86reboot&#xff0c;\u4f46pxe_just_once\u4f1a\u4f7f\u5176\u4ece\u786c\u76d8\u542f\u52a8\u540e\u4e0d\u518d\u8fdbPXE&#xff09;<br \/>\n    # 5. \u53ef\u9009&#xff1a;\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u518d\u5c06\u5176\u542f\u52a8\u987a\u5e8f\u6539\u56de\u786c\u76d8\u4f18\u5148&#xff0c;\u4e3a\u4e0b\u6b21\u6b63\u5e38\u542f\u52a8\u505a\u51c6\u5907<br \/>\n    ipmitool -I lanplus -H $ipmi_ip -U $user -P $pass chassis bootdev disk<br \/>\n    echo &#034;Server $ipmi_ip installation triggered and set to boot from disk next time.&#034;<br \/>\ndone &lt; server_list.txt<\/p>\n<p>\u8fd0\u884c\u8fd9\u4e2a\u811a\u672c&#xff0c;20\u53f0\u670d\u52a1\u5668\u5c31\u4f1a\u4f9d\u6b21\u5f00\u59cb\u81ea\u52a8\u5b89\u88c5\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7Cobbler\u7684\u65e5\u5fd7(\/var\/log\/cobbler\/install.log)\u6216\u76f4\u63a5\u67e5\u770bDHCP\u79df\u7ea6\u6765\u76d1\u63a7\u5b89\u88c5\u8fdb\u5ea6\u3002<\/p>\n<h4>4.3 \u5b89\u88c5\u540e\u7684\u7edf\u4e00\u914d\u7f6e\u4e0e\u4f18\u5316<\/h4>\n<p>\u7cfb\u7edf\u5b89\u88c5\u5b8c\u6210\u53ea\u662f\u7b2c\u4e00\u6b65\u3002\u6211\u4eec\u901a\u5e38\u8fd8\u9700\u8981\u8fdb\u884c\u4e00\u4e9b\u6279\u91cf\u5316\u7684\u521d\u59cb\u914d\u7f6e&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<ul>\n<li>\u4e3b\u673a\u540d\u6807\u51c6\u5316&#xff1a;\u53ef\u4ee5\u5728Kickstart\u7684%post\u9636\u6bb5&#xff0c;\u901a\u8fc7\u89e3\u6790DHCP\u83b7\u53d6\u7684IP\u6216\u8bfb\u53d6\u5e8f\u5217\u53f7\u6765\u8bbe\u7f6e\u552f\u4e00\u4e3b\u673a\u540d\u3002<\/li>\n<li>\u6ce8\u518c\u5230\u914d\u7f6e\u7ba1\u7406\u7cfb\u7edf&#xff1a;\u5728%post\u811a\u672c\u4e2d&#xff0c;\u52a0\u5165\u81ea\u52a8\u5411Ansible Tower\u3001SaltStack Master\u6216Puppet Server\u6ce8\u518c\u7684\u547d\u4ee4\u3002<\/li>\n<li>\u5b89\u5168\u57fa\u7ebf\u68c0\u67e5&#xff1a;\u5b89\u88c5\u5fc5\u8981\u7684\u5b89\u5168\u5ba1\u8ba1\u5de5\u5177\u5e76\u6267\u884c\u521d\u6b65\u626b\u63cf\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u91cc\u5206\u4eab\u4e00\u4e2a\u5728%post\u9636\u6bb5\u6839\u636eIP\u8bbe\u7f6e\u4e3b\u673a\u540d\u7684\u5c0f\u6280\u5de7&#xff1a;<\/p>\n<p>%post<br \/>\n# \u83b7\u53d6IP\u5730\u5740\u7684\u6700\u540e\u4e00\u6bb5<br \/>\nIP_TAIL&#061;$(ip addr show dev eth0 | grep &#039;inet &#039; | awk &#039;{print $2}&#039; | cut -d&#039;\/&#039; -f1 | cut -d&#039;.&#039; -f4)<br \/>\n# \u8bbe\u7f6e\u4e3b\u673a\u540d&#xff0c;\u4f8b\u5982 node-001<br \/>\nhostnamectl set-hostname node-$IP_TAIL<br \/>\n# \u5199\u5165\/etc\/hosts<br \/>\necho &#034;127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 node-$IP_TAIL&#034; &gt; \/etc\/hosts<br \/>\necho &#034;::1         localhost localhost.localdomain localhost6 localhost6.localdomain6&#034; &gt;&gt; \/etc\/hosts<br \/>\n%end<\/p>\n<h3>5. \u6545\u969c\u6392\u67e5\u4e0e\u6027\u80fd\u8c03\u4f18\u6307\u5357<\/h3>\n<p>\u5373\u4f7f\u89c4\u5212\u5f97\u518d\u597d&#xff0c;\u5728\u5b9e\u9645\u90e8\u7f72\u4e2d\u4e5f\u4f1a\u9047\u5230\u5404\u79cd\u95ee\u9898\u3002\u8fd9\u91cc\u603b\u7ed3\u51e0\u4e2a\u6211\u4eec\u8e29\u8fc7\u7684\u5751\u548c\u89e3\u51b3\u65b9\u6cd5\u3002<\/p>\n<h4>5.1 \u5e38\u89c1\u6545\u969c\u6392\u67e5<\/h4>\n<ul>\n<li>PXE\u542f\u52a8\u5931\u8d25&#xff0c;\u505c\u7559\u5728TFTP timeout&#8230;\u6216PXE-E53: No boot filename received\n<ul>\n<li>\u68c0\u67e5&#xff1a;next_server\u548cfilename\u5728dhcp.template\u4e2d\u914d\u7f6e\u662f\u5426\u6b63\u786e&#xff1b;TFTP\u670d\u52a1\u662f\u5426\u6b63\u5e38\u8fd0\u884c(systemctl status xinetd)&#xff1b;\u9632\u706b\u5899\u662f\u5426\u5173\u95ed\u6216\u653e\u901a\u4e8669\/UDP\u7aef\u53e3&#xff1b;\/var\/lib\/tftpboot\/\u76ee\u5f55\u4e0b\u662f\u5426\u6709pxelinux.0\u7b49\u6587\u4ef6&#xff08;\u7531cobbler sync\u751f\u6210&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u83b7\u53d6\u5230IP\u540e&#xff0c;\u65e0\u6cd5\u4e0b\u8f7d\u5185\u6838(vmlinuz)\u6216\u955c\u50cf\n<ul>\n<li>\u68c0\u67e5&#xff1a;HTTP\u670d\u52a1&#xff08;Apache&#xff09;\u662f\u5426\u6b63\u5e38&#xff1b;cobbler sync\u662f\u5426\u6210\u529f&#xff1b;\u955c\u50cf\u662f\u5426\u5b8c\u6574\u5bfc\u5165(ls \/var\/www\/cobbler\/ks_mirror\/)&#xff1b;SELinux\u662f\u5426\u88ab\u5f7b\u5e95\u7981\u7528\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u63d0\u793a\u627e\u4e0d\u5230\u5b89\u88c5\u6e90&#xff08;Repository&#xff09;\n<ul>\n<li>\u68c0\u67e5&#xff1a;Kickstart\u6587\u4ef6\u4e2d\u7684url &#8211;url&#061;$tree\u662f\u5426\u6b63\u786e&#xff1b;$tree\u53d8\u91cf\u662f\u5426\u80fd\u5728Cobbler\u73af\u5883\u4e2d\u6b63\u786e\u89e3\u6790\u3002\u53ef\u4ee5\u624b\u52a8\u5728\u5b89\u88c5\u5931\u8d25\u7684\u673a\u5668\u4e0a&#xff0c;\u5c1d\u8bd5curl http:\/\/&lt;cobbler_ip&gt;\/cobbler\/ks_mirror\/CentOS-7.9-x86_64\/\u770b\u80fd\u5426\u8bbf\u95ee\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5b89\u88c5\u5b8c\u6210\u540e\u65e0\u9650\u5faa\u73af\u5b89\u88c5\n<ul>\n<li>\u68c0\u67e5&#xff1a;\/etc\/cobbler\/settings\u4e2dpxe_just_once\u662f\u5426\u8bbe\u7f6e\u4e3a1&#xff1b;\u5b9e\u4f53\u673aBIOS\u6216IPMI\u542f\u52a8\u987a\u5e8f\u662f\u5426\u5728\u5b89\u88c5\u4e00\u6b21\u540e\u6ca1\u6709\u6539\u56de\u786c\u76d8\u4f18\u5148\u3002<\/li>\n<\/ul>\n<\/li>\n<li>DHCP\u5730\u5740\u6c60\u8017\u5c3d\n<ul>\n<li>\u8c03\u6574&#xff1a;\u6269\u5927\/etc\/cobbler\/dhcp.template\u4e2d\u7684range\u8303\u56f4&#xff0c;\u786e\u4fddIP\u6570\u91cf\u5927\u4e8e\u5f85\u90e8\u7f72\u673a\u5668\u6570\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>5.2 Cobbler\u6027\u80fd\u4e0e\u7ef4\u62a4\u5efa\u8bae<\/h4>\n<p>\u5f53\u90e8\u7f72\u89c4\u6a21\u66f4\u5927\u65f6&#xff0c;\u8fd9\u4e9b\u4f18\u5316\u70b9\u4f1a\u5f88\u6709\u5e2e\u52a9&#xff1a;<\/p>\n<ul>\n<li>\u4f7f\u7528\u672c\u5730Yum\u955c\u50cf\u4ed3\u5e93&#xff1a;\u4e0d\u8981\u8ba9\u6bcf\u53f0\u5b89\u88c5\u7684\u673a\u5668\u90fd\u4ece\u5916\u7f51\u4e0b\u8f7d\u66f4\u65b0\u3002\u5728Cobbler\u670d\u52a1\u5668\u4e0a\u4f7f\u7528reposync\u540c\u6b65CentOS\u5b98\u65b9\u4ed3\u5e93&#xff0c;\u5e76\u5728Kickstart\u4e2d\u6307\u5411\u8fd9\u4e2a\u672c\u5730\u4ed3\u5e93&#xff0c;\u53ef\u4ee5\u6781\u5927\u63d0\u5347\u5b89\u88c5\u901f\u5ea6\u548c\u7a33\u5b9a\u6027\u3002<\/li>\n<li>\u5206\u79bb\u670d\u52a1&#xff1a;\u5bf9\u4e8e\u8d85\u5927\u89c4\u6a21\u90e8\u7f72&#xff08;\u6570\u767e\u53f0&#xff09;&#xff0c;\u53ef\u4ee5\u8003\u8651\u5c06Cobbler\u7684DHCP\u3001TFTP\u3001HTTP\u670d\u52a1\u5206\u79bb\u5230\u4e0d\u540c\u670d\u52a1\u5668\u4e0a&#xff0c;\u4ee5\u5206\u62c5\u8d1f\u8f7d\u3002<\/li>\n<li>\u5b9a\u671f\u6e05\u7406&#xff1a;\/var\/log\/cobbler\/\u4e0b\u7684\u65e5\u5fd7\u6587\u4ef6\u4f1a\u589e\u957f&#xff0c;\u5b9a\u671f\u6309\u9700\u6e05\u7406\u3002\/var\/www\/cobbler\/ks_mirror\/\u4e0b\u7684\u65e7\u955c\u50cf\u4e5f\u53ef\u4ee5\u9002\u65f6\u5220\u9664\u3002<\/li>\n<li>\u7248\u672c\u63a7\u5236Kickstart&#xff1a;\u5c06\u5b9a\u5236\u597d\u7684Kickstart\u6587\u4ef6\u7eb3\u5165Git\u7248\u672c\u63a7\u5236&#xff0c;\u65b9\u4fbf\u8ffd\u8e2a\u66f4\u6539\u548c\u56de\u6eda\u3002<\/li>\n<\/ul>\n<p>\u6574\u4e2a20\u53f0\u670d\u52a1\u5668\u7684\u90e8\u7f72\u8fc7\u7a0b&#xff0c;\u4ece\u73af\u5883\u51c6\u5907\u5230\u6700\u540e\u4e00\u53f0\u673a\u5668\u9a8c\u6536&#xff0c;\u6211\u4eec\u5927\u6982\u7528\u4e86\u4e00\u5929\u534a\u7684\u65f6\u95f4&#xff0c;\u5176\u4e2d\u5927\u90e8\u5206\u65f6\u95f4\u82b1\u5728\u4e86\u524d\u671f\u7684\u73af\u5883\u9694\u79bb\u548c\u914d\u7f6e\u8c03\u8bd5\u4e0a\u3002\u4e00\u65e6Cobbler\u670d\u52a1\u7a33\u5b9a\u8fd0\u884c&#xff0c;\u6279\u91cf\u5b89\u88c5\u672c\u8eab\u5c31\u50cf\u6309\u4e0b\u4e86\u201c\u590d\u5236\u201d\u952e\u4e00\u6837\u5feb\u901f\u3002\u6700\u6df1\u7684\u4f53\u4f1a\u662f&#xff0c;\u81ea\u52a8\u5316\u8fd0\u7ef4\u5de5\u5177\u7684\u4ef7\u503c\u4e0d\u5728\u4e8e\u66ff\u4ee3\u4eba\u5de5&#xff0c;\u800c\u5728\u4e8e\u5c06\u4eba\u4ece\u91cd\u590d\u3001\u6613\u9519\u7684\u52b3\u52a8\u4e2d\u89e3\u653e\u51fa\u6765&#xff0c;\u53bb\u5904\u7406\u66f4\u590d\u6742\u7684\u67b6\u6784\u548c\u5f02\u5e38\u95ee\u9898\u3002\u73b0\u5728&#xff0c;\u8fd9\u5957Cobbler\u73af\u5883\u5df2\u7ecf\u6210\u4e3a\u4e86\u6211\u4eec\u5185\u90e8\u7684\u4e00\u4e2a\u6807\u51c6\u670d\u52a1&#xff0c;\u540e\u7eed\u4efb\u4f55\u76f8\u540c\u7cfb\u7edf\u7684\u90e8\u7f72\u9700\u6c42&#xff0c;\u51e0\u4e4e\u90fd\u53ef\u4ee5\u5728\u534a\u5c0f\u65f6\u5185\u51c6\u5907\u5c31\u7eea\u3002\u5982\u679c\u4f60\u4e5f\u5728\u9762\u4e34\u7c7b\u4f3c\u7684\u6279\u91cf\u90e8\u7f72\u6311\u6218&#xff0c;\u4e0d\u59a8\u4ece\u642d\u5efa\u4e00\u4e2a\u6d4b\u8bd5\u73af\u5883\u5f00\u59cb&#xff0c;\u4eb2\u624b\u8d70\u4e00\u904d\u8fd9\u4e2a\u6d41\u7a0b&#xff0c;\u76f8\u4fe1\u4f60\u4f1a\u6709\u81ea\u5df1\u7684\u6536\u83b7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ece\u96f6\u5230\u4e00&#xff1a;Cobbler\u5b9e\u6218\u90e8\u7f7220\u53f0CentOS 7.9\u670d\u52a1\u5668\u7684\u6df1\u5ea6\u907f\u5751\u624b\u518c<br \/>\n\u6700\u8fd1\u63a5\u624b\u4e86\u4e00\u4e2a\u9879\u76ee&#xff0c;\u9700\u8981\u4e3a\u5ba2\u6237\u768420\u53f0\u5229\u65e7\u670d\u52a1\u5668\u7edf\u4e00\u90e8\u7f72CentOS 7.9\u3002\u9762\u5bf9\u4e00\u6392\u6392\u7b49\u5f85\u4e0a\u7ebf\u7684\u673a\u5668&#xff0c;\u624b\u52a8\u4e00\u53f0\u53f0\u88c5\u7cfb\u7edf\u663e\u7136\u4e0d\u73b0\u5b9e&#xff0c;\u4e0d\u4ec5\u8017\u65f6\u8017\u529b&#xff0c;\u8fd8\u5bb9\u6613\u51fa\u9519\u3002\u56e2\u961f\u91cc\u6709\u4eba\u63d0\u8bae\u7528PXEKickstart&#xff0c;\u8fd9\u786e\u5b9e\u662f\u7ecf\u5178\u65b9\u6848&#xff0c;\u4f46\u914d\u7f6e\u8d77\u6765\u7410\u788e&#xff0c;\u5c24\u5176\u662f\u6df7\u5408\u4e86\u5b9e\u4f53\u673a\u548c\u865a\u62df\u673a\u7684\u73af\u5883&#xff0c;\u7f51\u7edc\u914d<\/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":[8847,2429,58,118],"topic":[],"class_list":["post-79409","post","type-post","status-publish","format-standard","hentry","category-server","tag-8847","tag-cobbler","tag-linux","tag-118"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cobbler\u5b9e\u6218\uff1a20\u53f0\u670d\u52a1\u5668\u6279\u91cf\u5b89\u88c5CentOS 7.9\u7684\u5b8c\u6574\u907f\u5751\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/79409.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cobbler\u5b9e\u6218\uff1a20\u53f0\u670d\u52a1\u5668\u6279\u91cf\u5b89\u88c5CentOS 7.9\u7684\u5b8c\u6574\u907f\u5751\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4ece\u96f6\u5230\u4e00&#xff1a;Cobbler\u5b9e\u6218\u90e8\u7f7220\u53f0CentOS 7.9\u670d\u52a1\u5668\u7684\u6df1\u5ea6\u907f\u5751\u624b\u518c \u6700\u8fd1\u63a5\u624b\u4e86\u4e00\u4e2a\u9879\u76ee&#xff0c;\u9700\u8981\u4e3a\u5ba2\u6237\u768420\u53f0\u5229\u65e7\u670d\u52a1\u5668\u7edf\u4e00\u90e8\u7f72CentOS 7.9\u3002\u9762\u5bf9\u4e00\u6392\u6392\u7b49\u5f85\u4e0a\u7ebf\u7684\u673a\u5668&#xff0c;\u624b\u52a8\u4e00\u53f0\u53f0\u88c5\u7cfb\u7edf\u663e\u7136\u4e0d\u73b0\u5b9e&#xff0c;\u4e0d\u4ec5\u8017\u65f6\u8017\u529b&#xff0c;\u8fd8\u5bb9\u6613\u51fa\u9519\u3002\u56e2\u961f\u91cc\u6709\u4eba\u63d0\u8bae\u7528PXEKickstart&#xff0c;\u8fd9\u786e\u5b9e\u662f\u7ecf\u5178\u65b9\u6848&#xff0c;\u4f46\u914d\u7f6e\u8d77\u6765\u7410\u788e&#xff0c;\u5c24\u5176\u662f\u6df7\u5408\u4e86\u5b9e\u4f53\u673a\u548c\u865a\u62df\u673a\u7684\u73af\u5883&#xff0c;\u7f51\u7edc\u914d\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/79409.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-01T16:09:04+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/79409.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/79409.html\",\"name\":\"Cobbler\u5b9e\u6218\uff1a20\u53f0\u670d\u52a1\u5668\u6279\u91cf\u5b89\u88c5CentOS 7.9\u7684\u5b8c\u6574\u907f\u5751\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-03-01T16:09:04+00:00\",\"dateModified\":\"2026-03-01T16:09:04+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/79409.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/79409.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/79409.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cobbler\u5b9e\u6218\uff1a20\u53f0\u670d\u52a1\u5668\u6279\u91cf\u5b89\u88c5CentOS 7.9\u7684\u5b8c\u6574\u907f\u5751\u6307\u5357\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cobbler\u5b9e\u6218\uff1a20\u53f0\u670d\u52a1\u5668\u6279\u91cf\u5b89\u88c5CentOS 7.9\u7684\u5b8c\u6574\u907f\u5751\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/79409.html","og_locale":"zh_CN","og_type":"article","og_title":"Cobbler\u5b9e\u6218\uff1a20\u53f0\u670d\u52a1\u5668\u6279\u91cf\u5b89\u88c5CentOS 7.9\u7684\u5b8c\u6574\u907f\u5751\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4ece\u96f6\u5230\u4e00&#xff1a;Cobbler\u5b9e\u6218\u90e8\u7f7220\u53f0CentOS 7.9\u670d\u52a1\u5668\u7684\u6df1\u5ea6\u907f\u5751\u624b\u518c \u6700\u8fd1\u63a5\u624b\u4e86\u4e00\u4e2a\u9879\u76ee&#xff0c;\u9700\u8981\u4e3a\u5ba2\u6237\u768420\u53f0\u5229\u65e7\u670d\u52a1\u5668\u7edf\u4e00\u90e8\u7f72CentOS 7.9\u3002\u9762\u5bf9\u4e00\u6392\u6392\u7b49\u5f85\u4e0a\u7ebf\u7684\u673a\u5668&#xff0c;\u624b\u52a8\u4e00\u53f0\u53f0\u88c5\u7cfb\u7edf\u663e\u7136\u4e0d\u73b0\u5b9e&#xff0c;\u4e0d\u4ec5\u8017\u65f6\u8017\u529b&#xff0c;\u8fd8\u5bb9\u6613\u51fa\u9519\u3002\u56e2\u961f\u91cc\u6709\u4eba\u63d0\u8bae\u7528PXEKickstart&#xff0c;\u8fd9\u786e\u5b9e\u662f\u7ecf\u5178\u65b9\u6848&#xff0c;\u4f46\u914d\u7f6e\u8d77\u6765\u7410\u788e&#xff0c;\u5c24\u5176\u662f\u6df7\u5408\u4e86\u5b9e\u4f53\u673a\u548c\u865a\u62df\u673a\u7684\u73af\u5883&#xff0c;\u7f51\u7edc\u914d","og_url":"https:\/\/www.wsisp.com\/helps\/79409.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-03-01T16:09:04+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/79409.html","url":"https:\/\/www.wsisp.com\/helps\/79409.html","name":"Cobbler\u5b9e\u6218\uff1a20\u53f0\u670d\u52a1\u5668\u6279\u91cf\u5b89\u88c5CentOS 7.9\u7684\u5b8c\u6574\u907f\u5751\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-03-01T16:09:04+00:00","dateModified":"2026-03-01T16:09:04+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/79409.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/79409.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/79409.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Cobbler\u5b9e\u6218\uff1a20\u53f0\u670d\u52a1\u5668\u6279\u91cf\u5b89\u88c5CentOS 7.9\u7684\u5b8c\u6574\u907f\u5751\u6307\u5357"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/79409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=79409"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/79409\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=79409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=79409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=79409"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=79409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}