{"id":263370,"date":"2015-08-12T07:02:02","date_gmt":"2015-08-12T03:02:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=263370"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=263370","title":{"rendered":"\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 Install Server \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 Linux \u0438 Windows \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 Cobbler"},"content":{"rendered":"<p>     \tCobbler \u2014 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0432 \u043c\u0438\u0440\u0435 Linux, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a Install Server, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u043f\u043e \u0441\u0435\u0442\u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 Linux. \u0415\u0441\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0439 FreeBSD, VMware, Xen \u0438 Nexenta.<\/p>\n<p>  \u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043d\u0435\u0433\u043e \u0442\u0430\u043a\u0436\u0435 \u0433\u0438\u0431\u043a\u043e \u0438 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u0441 \u0440\u0430\u0437\u043d\u044b\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 Windows (XP, 2003, 7, 8, 2008, 2012).<\/p>\n<p>  \u041f\u0440\u043e \u0442\u043e \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c cobbler \u0434\u043b\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 Linux \u0438\u0441\u0447\u0435\u0440\u043f\u044b\u0432\u0430\u044e\u0449\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043d\u0430 \u0435\u0433\u043e \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435 \u2014 <a href=\"https:\/\/cobbler.github.io\">https:\/\/cobbler.github.io<\/a>. \u042f \u0436\u0435 \u0437\u0434\u0435\u0441\u044c \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0443\u0441\u044c \u043d\u0430 \u0441\u0432\u043e\u0435\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e Windows.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0432\u043e\u0435\u0433\u043e \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u0431\u044b\u043b\u0430 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 Windows \u0432 \u0441\u0440\u0435\u0434\u0435 Linux. \u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0443 \u043c\u0435\u043d\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 post-\u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430 cobbler \u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <code>cobbler sync<\/code>:  <\/p>\n<ul>\n<li>\u0447\u0430\u0441\u0442\u044c \u0444\u0430\u0439\u043b\u043e\u0432 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u043f\u0440\u044f\u043c\u043e\u0439 \u0437\u0430\u043c\u0435\u043d\u043e\u0439 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u043d\u0430 \u0434\u0440\u0443\u0433\u0443\u044e \u043f\u0440\u044f\u043c\u043e \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0435.<\/li>\n<li>\u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430 bootmgr.exe \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430 PE \u0444\u0430\u0439\u043b\u0430 \u0438 \u0435\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c. \u0422\u0440\u0438\u0433\u0433\u0435\u0440 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 python-pefile.<\/li>\n<li>\u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0440\u0435\u0435\u0441\u0442\u0440\u043e\u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 BCD \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f hivex.<\/li>\n<li>\u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 wim \u043e\u0431\u0440\u0430\u0437\u043e\u043c\u0438 \u2014 <a href=\"http:\/\/wimlib.net\">wimlib<\/a><\/li>\n<li>\u0444\u0430\u0439\u043b\u044b \u043e\u0442\u0432\u0435\u0442\u043e\u0432 Windows \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 cobbler \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432\u0441\u0435\u0445 \u0435\u0433\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u043f\u043e \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u0434\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u0435\u0440\u0441\u0438\u0438 Windows, \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b (32 \u0438\u043b\u0438 64 \u0431\u0438\u0442\u0430), \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u0438 \u0442.\u00a0\u0434.<\/li>\n<li>\u0441\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0437\u043e\u0432 wim (startnet.cmd) \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u043e\u0433\u043e \u043f\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0438 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 OS (post_install.cmd) \u0442\u0430\u043a\u0436\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0438\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432.<\/li>\n<\/ul>\n<p>  \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0444\u0430\u0439\u043b\u044b \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 Windows \u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0440\u0435\u0434\u043a\u043e, \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0438\u043c\u0435\u043d\u0438 \u043f\u0440\u043e\u0444\u0438\u043b\u044f. \u0422.\u0435. \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0438 \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u043e\u043f\u0446\u0438\u0438 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u0435 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Windows.<\/p>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430 \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u041f\u041e \u0438 \u0442.\u0434. \u043b\u0435\u0436\u0438\u0442 \u043d\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u043a\u0430\u043a kickstart \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u043f\u0440\u043e\u0444\u0438\u043b\u044f cobbler (win.ks) \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 Windows \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c post_install.cmd \u0443\u0436\u0435 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438. Cobbler \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u043a\u043e\u0434 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 win.ks. \u0410 \u0432 \u044d\u0442\u043e\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043a\u043e\u0434\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0443\u0436\u0435 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0438\u043c\u0435\u043d\u0438 \u043f\u0440\u043e\u0444\u0438\u043b\u044f.<\/p>\n<p>  \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435, \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u043f\u0440\u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0435 \u043c\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0434\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b win.ks \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0438 \u0437\u0430\u043d\u043e\u0432\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044e.<\/p>\n<p>  \u0423\u043f\u0440\u043e\u0449\u0430\u044f \u0434\u043e \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0432\u0437\u0430\u0438\u043c\u043e\u0441\u0432\u044f\u0437\u0438 \u0444\u0430\u0439\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f, \u0441\u0435\u0442\u0435\u0432\u0443\u044e \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044e \u0434\u043b\u044f Xp \u0438 2003 \u043c\u043e\u0436\u043d\u043e \u0441\u0445\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u0442\u0430\u043a:<br \/>  <code> pxeboot.n12 \u2192 setupldr.exe \u2192 winnt.sif \u2192 post_install.cmd profile_name <\/code><\/p>\n<p>  \u0414\u043b\u044f Windos 7 \u0438 \u043d\u043e\u0432\u0435\u0435:<br \/>  <code> pxeboot.n12 \u2192 bootmgr.exe \u2192 BCD \u2192 winpe.wim \u2192 startnet.cmd \u2192 autounattended.xml \u2192 post_install.cmd profile_name <\/code><\/p>\n<p>  \u041d\u0435 \u0441\u0430\u043c\u044b\u0439, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u043f\u0443\u0442\u044c \u043e\u0442 \u043f\u0443\u043d\u043a\u0442\u0430 \u0432 PXE \u043c\u0435\u043d\u044e \u0434\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 post_install.cmd \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e \u044d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0435\u0449\u0435 \u0432\u0437\u044f\u0442\u044c \u0443 cobbler \u0441\u0435\u0440\u0432\u0435\u0440\u0430 kickstart \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0444\u0438\u043b\u044e \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0435\u0433\u043e.<\/p>\n<h4>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0431\u043e \u0432\u0441\u0435\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443<\/h4>\n<p>  \u0421\u0447\u0438\u0442\u0430\u0435\u043c \u0447\u0442\u043e cobbler 2.6.9 \u0438 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u0434\u043b\u044f \u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u044b \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043e (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 iptables, SElinux) \u0438 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0435\u0439 Linux.<\/p>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435:  <\/p>\n<ul>\n<li>\n<pre><code class=\"bash\"># dnf install python-pefile hivex ntfs-3g fuse<\/code><\/pre>\n<\/li>\n<li>wimlib \u044f \u0441\u043e\u0431\u0438\u0440\u0430\u043b \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432<\/li>\n<\/ul>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c hivex \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043d\u0435 \u0443\u0434\u043e\u0431\u043d\u043e \u2014 <a href=\"http:\/\/www.ultimatedeployment.org\/win7pxelinux1.html\">\u0437\u0434\u0435\u0441\u044c<\/a> (\u043d\u0435\u043f\u043b\u043e\u0445\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438, \u043d\u043e \u043c\u043d\u0435 \u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0441\u044f \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0430\u043d\u0430\u043b\u0438\u0437 \u043b\u043e\u0433\u043e\u0432 tftp, \u0437\u0430\u0442\u043e \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0438 \u043a\u043e\u0440\u0435\u0436\u0438\u0442\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e) \u044f \u043d\u0430\u0448\u0435\u043b \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 (bcdedit.pl), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u043b\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c BCD. \u041f\u043e \u0441\u0443\u0442\u0438 \u043e\u043d \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u0430\u043c\u0435\u043d\u043e\u0439 Windows \u0443\u0442\u0438\u043b\u0438\u0442\u044b bcdedit. \u041d\u0430\u043f\u0438\u0441\u0430\u043d \u043e\u043d \u043d\u0430 Perl, \u044f \u0435\u0433\u043e \u0438\u0437\u0432\u043b\u0435\u043a \u0438\u0437 \u0430\u0440\u0445\u0438\u0432\u0430 \u0438 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043b \u0432 \/usr\/local\/bin, \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u0438\u0434\u043e\u0438\u0437\u043c\u0435\u043d\u0438\u0432:  <\/p>\n<pre><code class=\"diff\"># diff -c bcdedit.pl.orig bcdedit.pl  *** bcdedit.pl.orig --- bcdedit.pl *************** *** 232,237 **** --- 232,238 ----   &AddElement($BCDFILE,$guids{bootmgr},&quot;25000004&quot;,&quot;hex:3:1e,00,00,00,00,00,00,00&quot;);   &AddElement($BCDFILE,$guids{bootmgr},&quot;12000004&quot;,&quot;string:Windows Boot Manager&quot;);   &AddElement($BCDFILE,$guids{bootmgr},&quot;24000001&quot;,&Guids2MultiSZ($newguid)); + &AddElement($BCDFILE,$guids{bootmgr},&quot;16000048&quot;,&quot;hex:3:01&quot;);      print &quot;Creating New Object\\n&quot;;   &CreateGuid($BCDFILE,$newguid,&quot;0x10200003&quot;); <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b:  <\/p>\n<pre><code class=\"bash\"> bcdedit -set {bootmgr} nointegritychecks Yes <\/code><\/pre>\n<p>  \u0412 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 tftp \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443, \u0433\u0434\u0435 \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u043b\u0435\u0436\u0430\u0442\u044c \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u044b Windows:  <\/p>\n<pre><code class=\"bash\"> # mkdir \/var\/lib\/tftpboot\/winos <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0442\u0430\u043c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430 \u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0442\u0443\u0434\u0430 \u0435\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435.<br \/>  \u0423 \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"bash\"> # ls -l \/var\/lib\/tftpboot\/winos dr-xr-xr-x.  6 root    root               4096 Nov 29  2014 Win2012-Server_EN-x64 dr-xr-xr-x.  6 root    root               4096 Jun  1  2014 Win2012-Server_RU-x64 dr-xr-xr-x. 10 root    root               4096 May  6 19:41 Win2K3-Server_EN-x64 dr-xr-xr-x.  7 root    root               4096 Nov 13  2013 Win2k8-Server_EN-x64 dr-xr-xr-x.  4 root    root               4096 Oct 28  2013 Win7_EN-x64 dr-xr-xr-x.  5 root    root               4096 Sep 25  2014 Win7_RU-x64 dr-xr-xr-x.  6 root    root               4096 Jun 25 10:29 Win8_RU-x64 dr-xr-xr-x.  7 root    root               4096 Dec  8  2011 WinXp_EN-i386 dr-xr-xr-x.  8 root    root               4096 Jul 31 17:12 WinXp_RU-i386 <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0435 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0440\u0430\u0440\u0438\u0442\u0435\u0442\u044b \u043a\u0430\u043a Xp \u0438\u043b\u0438 2003<\/b><\/p>\n<div class=\"spoiler_text\">\n<h4>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432<\/h4>\n<p>  \u0412 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u0445 \u0441 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u043c\u0438 WinXp_EN-i386, WinXp_RU-i386 \u0438 Win2K3-Server_EN-x64 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:  <\/p>\n<pre><code class=\"bash\"> [root@is WinXp_EN-i386]# cabextract i386\/startrom.n1_ [root@is WinXp_EN-i386]# mv startrom.n12 pxeboot.n12 [root@is WinXp_EN-i386]# cabextract i386\/setupldr.ex_ <\/code><\/pre>\n<p>  \u0412 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 \u0441 Xp:  <\/p>\n<pre><code class=\"bash\"> [root@is WinXp_EN-i386]# sed -i 's\/ntdetect\\.com\/ntdetect.wxp\/gi setupldr.exe <\/code><\/pre>\n<p>  \u0412 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 \u0441 2003:  <\/p>\n<pre><code class=\"bash\"> [root@is Win2K3-Server_EN-x64]# sed -i 's\/ntdetect\\.com\/ntdetect.2k3\/gi setupldr.exe <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"> # cp \/var\/lib\/tftpboot\/winos\/WinXp_EN-i386\/i386\/ntdetect.com \/var\/lib\/tftpboot\/winos\/ntdetect.wxp # cp \/var\/lib\/tftpboot\/winos\/Win2K3-Server_EN-x64\/i386\/ntdetect.com \/var\/lib\/tftpboot\/winos\/ntdetect.wxp <\/code><\/pre>\n<p>  <\/p>\n<h4>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 RIS<\/h4>\n<p>  \u041d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f ris-linux. \u0412 \u043c\u043e\u0435\u043c \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0435 \u043e\u043d \u0441\u0442\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"bash\"> # dnf install ris-linux <\/code><\/pre>\n<p>  \u0427\u0442\u043e\u0431\u044b RIS \u043d\u0435 \u043c\u0435\u0448\u0430\u043b \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 Win 7, \u043d\u0443\u0436\u043d\u043e \u0432 \u0444\u0430\u0439\u043b\u0435 \/usr\/share\/ris-linux\/binlsrv.py \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u0447\u0443:  <\/p>\n<pre><code class=\"bash\"> # cd \/usr\/share\/ris-linux # cp binlsrv.py binlsrv.py.orig # sed -i &quot;s\/p = p + chr(252) + chr(len(\/#&\/gi&quot; binlsrv.py <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"diff\"># diff binlsrv.py.orig binlsrv.py  571c571 &lt;     p = p + chr(252) + chr(len('boot\\\\bcd')) + 'boot\\\\bcd' --- &gt;     #p = p + chr(252) + chr(len('boot\\\\bcd')) + 'boot\\\\bcd' <\/code><\/pre>\n<p>  \u041d\u0430\u0439\u0442\u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431, \u0431\u0435\u0437 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043b\u043e\u0433\u043e\u0432 tftpd, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u044c RIS \u043a\u0430\u043a\u043e\u0439 \u0436\u0435 BCD \u043d\u0443\u0436\u0435\u043d, \u043c\u043d\u0435 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u043b.<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 \/var\/lib\/tftpboot\/winos\/inf \u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0442\u0443\u0434\u0430 \u0432\u0441\u0435 .inf \u0444\u0430\u0439\u043b\u044b 32-\u0431\u0438\u0442\u043d\u044b\u0445 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u0432 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043a\u0430\u0440\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:  <\/p>\n<pre><code class=\"bash\"> # \/usr\/share\/ris-linux\/infparser.py \/var\/lib\/tftpboot\/winos\/inf <\/code><\/pre>\n<p>  \u041c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0447\u0442\u043e\u0431\u044b RIS \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043b 32-\u0431\u0438\u0442\u043d\u0443\u044e Xp \u0438 64-\u0431\u0438\u0442\u043d\u044b\u0439 Server 2003. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u043f\u043e\u0440\u0442\u0443:  <\/p>\n<pre><code class=\"bash\"> # cd \/etc\/sysconfig # cp ris-linuxd ris-linuxd64 # sed -i 's\/\\\/inf\/&64\/gi' ris-linuxd64 # sed -i 's\/linuxd\/&64\/gi' ris-linuxd64 # sed -i 's\/BINLSRV_OPTS=\/&--port=4012\/gi' ris-linuxd64 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"diff\"># diff ris-linuxd ris-linuxd64 2c2 &lt; # ris-linuxd service. --- &gt; # ris-linuxd64 service. 6c6 &lt; BINLSRV_INFPATH=\/var\/lib\/tftpboot\/winos\/inf --- &gt; BINLSRV_INFPATH=\/var\/lib\/tftpboot\/winos\/inf64 9c9 &lt; BINLSRV_OPTS= --- &gt; BINLSRV_OPTS=--port=4012 12c12 &lt; BINLSRV_LOGFILE=\/var\/log\/ris-linuxd.log --- &gt; BINLSRV_LOGFILE=\/var\/log\/ris-linuxd64.log 15c15 &lt; BINLSRV_PIDFILE=\/var\/run\/ris-linuxd.pid --- &gt; BINLSRV_PIDFILE=\/var\/run\/ris-linuxd64.pid <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"> # cd \/usr\/sbin # ln -s ris-linuxd ris-linuxd64 <\/code><\/pre>\n<p>  \u041d\u0438\u043a\u0442\u043e \u043d\u0435 \u0443\u0434\u043e\u0441\u0443\u0436\u0438\u043b\u0441\u044f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441 ris-linux \u043f\u043e\u0434 systemd, \u0432\u043f\u0440\u043e\u0447\u0435\u043c \u043d\u0438\u043a\u043e\u043c\u0443 \u044d\u0442\u043e \u0443\u0436\u0435 \u043d\u0435 \u043d\u0430\u0434\u043e.  <\/p>\n<pre><code class=\"bash\"> # cd \/etc\/rc.d\/init.d # cp ris-linuxd ris-linuxd64 # sed -i 's\/ris-linuxd\/&64\/gi' ris-linuxd64 <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 \/var\/lib\/tftpboot\/winos\/inf64 \u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0442\u0443\u0434\u0430 \u0432\u0441\u0435 .inf \u0444\u0430\u0439\u043b\u044b 64-\u0431\u0438\u0442\u043d\u044b\u0445 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u0432 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043a\u0430\u0440\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:  <\/p>\n<pre><code class=\"bash\"> \/usr\/share\/ris-linux\/infparser.py \/var\/lib\/tftpboot\/winos\/inf64 <\/code><\/pre>\n<p>  \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u044b:  <\/p>\n<pre><code class=\"bash\"> # systemctl enable  ris-linuxd # systemctl start  ris-linuxd # systemctl enable  ris-linuxd64 # systemctl start  ris-linuxd64 <\/code><\/pre>\n<p>  \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043f\u043e\u0440\u0442 \u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0435 Win2K3-Server_EN-x64 \u043d\u0430 \u0442\u043e\u0442 \u0447\u0442\u043e \u043c\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438 64-\u0431\u0438\u0442\u043d\u043e\u043c\u0443 RIS.<br \/>  \u0421\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u044b modldr.py \u0438\u0437 \u043f\u0430\u043a\u0435\u0442\u0430 ris-linux:  <\/p>\n<pre><code class=\"bash\"> # \/usr\/share\/ris-linux\/modldr.py -p 4012 \/var\/lib\/tftpboot\/winos\/Win2K3-Server_EN-x64\/setupldr.exe <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u043e\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0448\u0438\u0431\u043a\u043e\u0439, \u0442\u043e \u0432 \u0442\u0435\u043a\u0441\u0442\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 modldr.py \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0443:  <\/p>\n<pre><code class=\"python\">ppattern = re.compile(r'\\x6a\\x04\\x68(..)\\x00\\x00\\xff\\x35', re.DOTALL) <\/code><\/pre>\n<p>  \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443:  <\/p>\n<pre><code class=\"python\">ppattern = re.compile(r'\\x6a\\x64\\x68(..)\\x00\\x00\\xff\\x35', re.DOTALL) <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h4>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 SAMBA<\/h4>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Samba \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0431\u0449\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c\u0438 \u0434\u0432\u0435 \u043f\u0430\u043f\u043a\u0438<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\"> # vi \/etc\/samba\/smb.conf # \u0414\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u044b \u0434\u043b\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 [WINOS] path = \/var\/lib\/tftpboot\/winos guest ok = yes browseable = yes writeable = no public = yes blocking locks = no oplocks = no level2 oplocks = no  # \u0420\u0430\u0437\u043d\u044b\u0439 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 \u0441\u043e\u0444\u0442 [public] comment = Public Stuff path = \/var\/www\/html\/Distr public = yes writable = no printable = no guest ok = yes blocking locks = no oplocks = no level2 oplocks = no <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u0440\u0430\u0432\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438. \u0423 \u043c\u0435\u043d\u044f: install\/install<\/p>\n<h4>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u043b\u044f \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 Win 7, 8, 2008, 2012<\/h4>\n<p>  \u0421\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0441 Win 7, 8, 2008, 2012 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0445\u0443\u0436\u0435 \u0447\u0435\u043c \u0432 Xp. \u0417\u0434\u0435\u0441\u044c \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430\u0445 \u043d\u0435 \u043f\u043e\u043a\u043e\u0432\u044b\u0440\u044f\u0435\u0448\u044c\u0441\u044f \u2014 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0442\u043e\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u0443\u044e \u0441\u0443\u043c\u043c\u0443 \u0432 \u043d\u0435\u043c \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c.<\/p>\n<p>  \u0424\u0430\u0439\u043b \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u0442\u0443\u0442 \u0442\u043e\u0436\u0435 \u0435\u0441\u0442\u044c \u0438 \u0431\u043e\u043b\u0435\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0430 \u2014 \u0432 xml \u0444\u043e\u0440\u043c\u0430\u0442\u0435. \u0412 \u043d\u0435\u043c \u043c\u043d\u043e\u0433\u043e \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a \u043d\u0443\u0436\u043d\u043e \u0434\u0438\u0441\u043a\u0438 \u043d\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u044b \u043f\u043e\u0440\u0435\u0437\u0430\u0442\u044c \u0438 \u0442.\u00a0\u0434. \u041d\u043e \u0435\u0441\u0442\u044c \u0438 \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043b\u043e\u0436\u043a\u0430 \u0434\u0435\u0433\u0442\u044f \u2014 \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0437\u0430\u0448\u0438\u0442\u043e \u0432 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044e. \u0412 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0441\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0437\u0430\u0448\u0438\u0442 \u0432 wim \u043e\u0431\u0440\u0430\u0437.<\/p>\n<p>  \u0422.\u0435. \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u043d\u0435\u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0441 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u043e\u0432, \u0430 \u043a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430 \u044f \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u043b\u0436\u0435\u043d \u0438\u043c\u0435\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 wim \u043e\u0431\u0440\u0430\u0437, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0442\u0430\u043a\u043e\u0433\u043e \u0436\u0435 \u043e\u0431\u0440\u0430\u0437\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043c\u0435\u043d\u0435\u043c \u0444\u0430\u0439\u043b\u0430 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0432 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u043e\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0435.<\/p>\n<p>  \u0412 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0441 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u043c\u0438 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0444\u0430\u0439\u043b\u044b:  <\/p>\n<ul>\n<li>pxeboot.n12<\/li>\n<li>bootmgr.exe<\/li>\n<li>boot\/BCD<\/li>\n<li>boot\/boot.sdi<\/li>\n<li>boot\/Fonts \u0438 \u043d\u0430\u0431\u043e\u0440 \u0448\u0440\u0438\u0444\u0442\u043e\u0432 \u0432 \u043d\u0435\u043c<\/li>\n<\/ul>\n<p>  <\/p>\n<h4>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 Cobbler<\/h4>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043c\u0435\u043d \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u043b\u044f tftp:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 \/etc\/tftpd.rules<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\"> #vi \/etc\/tftpd.rules rg\t\\\\\t\t\t\t\t\/ # Convert backslashes to slashes r\t(BOOTFONT\\.BIN)\t\t\t\t\/winos\/\\1 r\t(\/Boot\/Fonts\/)(.*)\t\t\t\/winos\/Win8_RU-x64\/boot\/Fonts\/\\2  r\t(ntdetect\\.wxp)\t\t\t\t\/winos\/\\1 r\t(ntdetect\\.2k3)\t\t\t\t\/winos\/\\1  r\t(wine.\\.sif)\t\t\t\t\/WinXp_EN-i386\/\\1 r\t(xple.)\t\t\t\t\t\/WinXp_EN-i386\/\\1  r\t(winr.\\.sif)\t\t\t\t\/WinXp_RU-i386\/\\1 r\t(xplr.)\t\t\t\t\t\/WinXp_RU-i386\/\\1  r\t(wi2k.\\.sif)\t\t\t\t\/Win2K3-Server_EN-x64\/\\1 r\t(w2k3.)\t\t\t\t\t\/Win2K3-Server_EN-x64\/\\1 r\t(\/Win2K3-Server_EN-x64\/)(.*)\t\t\/winos\\1\\L\\2  r\t(boot7r..exe)\t\t\t\t\/winos\/Win7_RU-x64\/\\1 r\t(\/Boot\/)(7R.)\t\t\t\t\/winos\/Win7_RU-x64\/boot\/\\2  r\t(boot7e.\\.exe)\t\t\t\t\/winos\/Win7_EN-x64\/\\1 r\t(\/Boot\/)(7E.)\t\t\t\t\/winos\/Win7_EN-x64\/boot\/\\2  r\t(boot28.\\.exe)\t\t\t\t\/winos\/Win2k8-Server_EN-x64\/\\1 r\t(\/Boot\/)(28.)\t\t\t\t\/winos\/Win2k8-Server_EN-x64\/boot\/\\2  r\t(boot2e.\\.exe)\t\t\t\t\/winos\/Win2012-Server_EN-x64\/\\1 r\t(\/Boot\/)(2e.)\t\t\t\t\/winos\/Win2012-Server_EN-x64\/boot\/\\2  r\t(boot2r.\\.exe)\t\t\t\t\/winos\/Win2012-Server_RU-x64\/\\1 r\t(\/Boot\/)(2r.)\t\t\t\t\/winos\/Win2012-Server_RU-x64\/boot\/\\2  r\t(boot81.\\.exe)\t\t\t\t\/winos\/Win8_RU-x64\/\\1 r\t(\/Boot\/)(B8.)\t\t\t\t\/winos\/Win8_RU-x64\/boot\/\\2  r\t(\/WinXp...-i386\/)(.*)\t\t\t\/winos\\1\\L\\2 <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0435 cobbler \u0434\u043b\u044f tftp:  <\/p>\n<pre><code class=\"bash\"> # vi \/etc\/cobbler\/tftpd.template service tftp {         disable                 = no         socket_type             = dgram         protocol                = udp         wait                    = yes         user                    = $user         server                  = $binary         server_args             = -m \/etc\/tftpd.rules --port-range 25000:25030 -v -v -v -s $args         per_source              = 11         cps                     = 100 2         flags                   = IPv4 } <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0444\u0430\u0439\u043b\u0435 \/var\/lib\/cobbler\/distro_signatures.json \u0432 \u0440\u0430\u0437\u0434\u0435\u043b windows \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0432\u0435\u0440\u0441\u0438\u044f\u0445, \u0447\u0442\u043e\u0431\u044b \u0447\u0435\u0440\u0435\u0437 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435 cobbler \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u0445.  <\/p>\n<pre><code class=\"bash\"> # vi \/var\/lib\/cobbler\/distro_signatures.json   &quot;windows&quot;: {    &quot;2003&quot;: {    },    &quot;2008&quot;: {    },    &quot;2012&quot;: {    },    &quot;XP&quot;: {    },    &quot;7&quot;: {    },    &quot;8&quot;: {    }   }, <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 Windows \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 Linux \u0447\u0435\u0440\u0435\u0437 cobbler \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0444\u0430\u0439\u043b\u0430 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0438 \u043f\u043e\u0441\u0442-\u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0438\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432.<\/p>\n<p>  \u0412 \u0441\u043e\u0441\u0442\u0430\u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u0434\u043b\u044f Windows \u0443 \u043c\u0435\u043d\u044f \u0432\u0445\u043e\u0434\u044f\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0444\u0430\u0439\u043b\u044b:  <\/p>\n<ol>\n<li>post_inst_cmd.template \u2014 \u0448\u0430\u0431\u043b\u043e\u043d \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u043e\u0433\u043e \u043f\u043e\u0441\u043b\u0435 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 OS<\/li>\n<li>win.ks \u2014 \u0438\u0433\u0440\u0430\u0435\u0442 \u0440\u043e\u043b\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u0430 post \u0432 kiskstart linux \u0434\u043b\u044f windows<\/li>\n<li>win_sif.template \u2014 \u0448\u0430\u0431\u043b\u043e\u043d \u0444\u0430\u0439\u043b\u043e\u0432 \u043e\u0442\u0432\u0435\u0442\u043e\u0432<\/li>\n<li>startnet.template \u2014 \u0448\u0430\u0431\u043b\u043e\u043d \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0432 wim \u043e\u0431\u0440\u0430\u0437\u0435<\/li>\n<li>winpe7.template \u2014 wim \u0444\u0430\u0439\u043b \u0434\u043b\u044f Win 7 \u0438 Win 2008 Server<\/li>\n<li>winpe8.template \u2014 wim \u0444\u0430\u0439\u043b \u0434\u043b\u044f Win 8 \u0438 Win 2012 Server<\/li>\n<\/ol>\n<p>  <\/p>\n<h4>\u0428\u0430\u0431\u043b\u043e\u043d\u044b post_inst_cmd.template \u0438 win.ks<\/h4>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u043e\u0433\u043e \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 windows (\u043d\u0435\u0432\u0430\u0436\u043d\u043e \u043a\u0430\u043a\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438).<br \/>  \u0421\u043a\u0440\u0438\u043f\u0442\u0443 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0438\u043c\u044f \u043f\u0440\u043e\u0444\u0438\u043b\u044f (\u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438) cobbler \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430.  <\/p>\n<pre><code class=\"bash\"> # cat \/var\/lib\/tftpboot\/winos\/post_inst_cmd.template %systemdrive% CD %systemdrive%\\TMP &gt;nul 2&gt;&1 $SNIPPET('my\/win_wait_network_online') wget.exe http:\/\/@@http_server@@\/cblr\/svc\/op\/ks\/profile\/%1 MOVE %1 install.cmd todos.exe install.cmd start \/wait install.cmd DEL \/F \/Q libeay32.dll &gt;nul 2&gt;&1 DEL \/F \/Q libiconv2.dll &gt;nul 2&gt;&1 DEL \/F \/Q libintl3.dll &gt;nul 2&gt;&1 DEL \/F \/Q libssl32.dll &gt;nul 2&gt;&1 DEL \/F \/Q wget.exe &gt;nul 2&gt;&1 DEL \/F \/Q %0 &gt;nul 2&gt;&1 <\/code><\/pre>\n<p>  <u>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0439 \u043f\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0443:<\/u><br \/>  \u0412 \u043a\u0430\u0436\u0434\u043e\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \u0441 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u043c \u0435\u0441\u0442\u044c \u043f\u0430\u043f\u043a\u0430 $OEM$\/$1\/TMP \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043b\u0435\u0436\u0438\u0442 wget.exe, todos.exe \u0438 dll&#8217;\u043a\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0438\u043c \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430. \u0422\u043e\u0447\u043d\u0435\u0435 \u043b\u0435\u0436\u0430\u0442 \u0432 \u043e\u0434\u043d\u043e\u0439 \u043f\u0430\u043f\u043a\u0435, \u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u043e symlink \u043d\u0430 \u043d\u0435\u0435.  <\/p>\n<pre><code class=\"bash\"> # ls -l '\/var\/lib\/tftpboot\/winos\/Win2K3-Server_EN-x64\/$OEM$\/$1\/TMP' -rwxr-xr-x. 1 root root 1177600 Sep  4  2008 libeay32.dll -rwxr-xr-x. 1 root root 1008128 Mar 15  2008 libiconv2.dll -rwxr-xr-x. 1 root root  103424 May  7  2005 libintl3.dll -rwxr-xr-x. 1 root root  232960 Sep  4  2008 libssl32.dll -rwxr-xr-x. 1 root root    4880 Oct 26  1999 sleep.exe -rwxr-xr-x. 1 root root   52736 Oct 27  2013 todos.exe -rwxr-xr-x. 1 root root  449024 Dec 31  2008 wget.exe  # ls -l '\/var\/lib\/tftpboot\/winos\/Win8_RU-x64\/sources\/$OEM$\/$1\/TMP' lrwxrwxrwx. 1 root root 45 Oct 28  2013 \/var\/lib\/tftpboot\/winos\/Win8_RU-x64\/sources\/$OEM$\/$1\/TMP -&gt; ..\/..\/..\/..\/Win2K3-Server_EN-x64\/$OEM$\/$1\/TMP  # ls -l '\/var\/lib\/tftpboot\/winos\/WinXp_RU-i386\/$OEM$\/$1\/TMP' lrwxrwxrwx. 1 root root 42 May 31  2014 \/var\/lib\/tftpboot\/winos\/WinXp_RU-i386\/$OEM$\/$1\/TMP -&gt; ..\/..\/..\/Win2K3-Server_EN-x64\/$OEM$\/$1\/TMP <\/code><\/pre>\n<p>  <\/p>\n<ul>\n<li>\u041f\u0440\u0438 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 OS \u044d\u0442\u0438 \u0444\u0430\u0439\u043b\u044b \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 C:\\TMP.<\/li>\n<li>\u0421\u043d\u0438\u043f\u0435\u0442 win_wait_network_online \u0434\u043e\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044f \u0433\u043e\u0442\u043e\u0432\u043d\u043e\u0441\u0442\u0438 \u0441\u0435\u0442\u0438 \u043f\u0438\u043d\u0433\u0443\u044f IP \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0433\u0434\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d cobbler.<br \/> \n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 \u0441\u043d\u0438\u043f\u0435\u0442\u0430 \/var\/lib\/cobbler\/snippets\/my\/win_wait_network_online<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\"> :wno10 set n=0  :wno20 ping @@http_server@@ -n 3 set exit_code=%ERRORLEVEL%  IF %exit_code% EQU 0 GOTO wno_exit set \/a n=n+1 IF %n% lss 30 goto wno20 pause goto wno10  :wno_exit <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0438\u043c\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 @@http_server@@ \u0438\u0437 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0445 cobbler \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 IP \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d cobbler.  <\/div>\n<\/div>\n<\/li>\n<li>\u0414\u0430\u043b\u0435\u0435 wget.exe \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442 kickstart \u0444\u0430\u0439\u043b. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 Linux kickstart \u044d\u0442\u043e\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 .cmd \u0444\u0430\u0439\u043b, \u043d\u043e \u0442\u043e\u0436\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u043d\u0430 \u043b\u0435\u0442\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c cobbler \u0438\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 win.ks.<\/li>\n<li>\u042d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0437\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u043a\u043e\u0434\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u0444\u043e\u0440\u043c\u0430\u0442 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 windows \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 cmd \u0441\u043a\u0440\u0438\u043f\u0442.<\/li>\n<li>\u041f\u043e\u0441\u043b\u0435 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0432 C:\\TMP \u0443\u0434\u0430\u043b\u044f\u044e\u0442\u0441\u044f \u0444\u0430\u0439\u043b\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0435\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438 \u0441\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0442\u043e\u0436\u0435.<\/li>\n<\/ul>\n<p>  \u0424\u0430\u0439\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043b\u0438 wget&#8217;\u043e\u043c \u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0433\u0440\u0430\u0435\u0442 \u0440\u043e\u043b\u044c \u043f\u043e\u0441\u0442-\u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 kickstart Linux \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u0442\u0430\u043a:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 \/var\/lib\/cobbler\/kickstarts\/win.ks<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"dos\"># cat \/var\/lib\/cobbler\/kickstarts\/win.ks $SNIPPET('my\/win_wait_network_online')  set n=0  :mount_y net use y: \\\\@@http_server@@\\Public \/user:install install set exit_code=%ERRORLEVEL%  IF %exit_code% EQU 0 GOTO mount_z set \/a n=n+1 IF %n% lss 20 goto mount_y PAUSE goto mount_y  set n=0  :mount_z net use z: \\\\@@http_server@@\\winos \/user:install install set exit_code=%ERRORLEVEL%  IF %exit_code% EQU 0 GOTO mount_exit set \/a n=n+1 IF %n% lss 20 goto mount_z PAUSE goto mount_z  :mount_exit if exist %systemdrive%\\TMP\\stage.dat goto flag005 echo 0 &gt; %systemdrive%\\TMP\\stage.dat  $SNIPPET('my\/win_check_virt')  #if $distro_name in ( 'WinXp_EN-i386', 'WinXp_RU-i386', 'Win2K3-Server_EN-x64' ) z:\\Drivers\\wsname.exe \/N:$DNS \/NOREBOOT #else REM pause #end if echo Windows Registry Editor Version 5.00 &gt; %systemdrive%\\TMP\\install.reg echo [HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce] &gt;&gt; %systemdrive%\\TMP\\install.reg echo &quot;DD&quot;=&quot;C:\\\\TMP\\\\install.cmd&quot; &gt;&gt; %systemdrive%\\TMP\\install.reg $SNIPPET('my\/win_install_drivers')  #if $distro_name == 'Win2K3-Server_EN-x64' start \/wait z:\\Win2K3-Server_EN-x64\\cmpnents\\r2\\setup2.exe \/q \/a \/sr start \/wait y:\\Windows\\Win2003\\IE8-WindowsServer2003-x64-ENU.exe \/passive \/update-no \/norestart if %virt% equ NO REG IMPORT y:\\Windows\\Win2003\\vm.reg #end if REG IMPORT %systemdrive%\\TMP\\install.reg net use Y: \/delete net use Z: \/delete %systemdrive%\\TMP\\sleep.exe 10 exit  :flag005 for \/f &quot;tokens=*&quot; %%i in (%systemdrive%\\TMP\\stage.dat) do set stage=%%i echo 1 &gt; %systemdrive%\\TMP\\stage.dat REG IMPORT %systemdrive%\\TMP\\install.reg if %stage% neq 0 goto flag010 net use Y: \/delete net use Z: \/delete shutdown -r -f -t 5 exit  :flag010 if %stage% gtr 1 goto flag020 echo 2 &gt; %systemdrive%\\TMP\\stage.dat  $SNIPPET('my\/winzip') $SNIPPET('my\/winrar') $SNIPPET('my\/win_install_chrome') $SNIPPET('my\/win_install_ffox') $SNIPPET('my\/win_install_adacr') $SNIPPET('my\/win_install_jdk7-x86') $SNIPPET('my\/win_install_jdk7-x86_64') $SNIPPET('my\/win_install_UltraVNC') #if $distro_name in ( 'WinXp_EN-i386', 'WinXp_RU-i386', 'Win2K3-Server_EN-x64' ) $SNIPPET('my\/win_install_office_2007_ru') #else if $distro_name in (  'Win7_RU-x64', 'Win2012-Server_RU-x64', 'Win8_RU-x64' ) $SNIPPET('my\/win_install_office_2010_ru') #else $SNIPPET('my\/win_install_office_2010_en') #end if  Title Cleaning Temp files DEL &quot;%systemroot%\\*.bmp&quot; &gt;nul 2&gt;&1 DEL &quot;%systemroot%\\Web\\Wallpaper\\*.jpg&quot; &gt;nul 2&gt;&1 DEL &quot;%systemroot%\\system32\\dllcache\\*.scr&quot; &gt;nul 2&gt;&1 DEL &quot;%systemroot%\\system32\\*.scr&quot; &gt;nul 2&gt;&1 DEL &quot;%AllUsersProfile%\\Start Menu\\Windows Update.lnk&quot; &gt;nul 2&gt;&1 DEL &quot;%AllUsersProfile%\\Start Menu\\Set Program Access and Defaults.lnk&quot; &gt;nul 2&gt;&1 DEL &quot;%AllUsersProfile%\\Start Menu\\Windows Catalog.lnk&quot; &gt;nul 2&gt;&1 DEL &quot;%systemdrive%\\Microsoft Office*.txt&quot; &gt;nul 2&gt;&1 net user aspnet \/delete &gt;nul 2&gt;&1 REM %systemdrive%\\TMP\\sleep.exe 60 net use Y: \/delete net use Z: \/delete  shutdown -r -f -t 30 RD \/S \/Q %systemdrive%\\DRIVERS\\ &gt;nul 2&gt;&1 if not defined stage DEL \/F \/Q %systemdrive%\\post_install.cmd DEL \/F \/S \/Q %systemdrive%\\TMP\\*.* exit <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u043d\u0438\u043f\u0435\u0442\u044b \u0437\u0434\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0437\u0430\u0433\u0440\u043e\u043c\u043e\u0436\u0434\u0430\u0442\u044c \u043a\u043e\u0434. \u0412 \u043d\u0438\u0445 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0430 \u0433\u0438\u043f\u0435\u0440\u0432\u0438\u0437\u043e\u0440, \u0441\u0442\u0430\u0432\u044f\u0442\u0441\u044f \u043d\u0443\u0436\u043d\u044b\u0435 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430, \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430 \u0438 \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u0438\u043b\u0438 \u043d\u0435 \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u0442\u043e \u0438\u043b\u0438 \u0438\u043d\u043e\u0435 \u041f\u041e.<\/p>\n<h4>\u0428\u0430\u0431\u043b\u043e\u043d win_sif.template<\/h4>\n<p>  \u042d\u0442\u043e \u0435\u0434\u0438\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0444\u0430\u0439\u043b\u044b \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0432\u0441\u0435\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 windows. \u0412 \u043d\u0435\u043c, \u043a\u0430\u043a \u0438 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u0445 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043c\u0435\u0442\u0430-\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 cobbler.<br \/>  \u0422\u0430\u043a\u0438\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u0430\u043a $arch, $distro_name, $profile_name.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 \/var\/lib\/tftpboot\/winos\/win_sif.template<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\"> #if $distro_name in ( 'WinXp_EN-i386', 'WinXp_RU-i386', 'Win2K3-Server_EN-x64' ) #if $arch == 'x86_64' \t#set $win_arch = 'amd64' #else if $arch == 'i386' \t#set $win_arch = 'i386' #end if  #set $OriSrc = '\\\\\\\\' + $http_server + '\\\\WINOS\\\\' + $distro_name + '\\\\' + $win_arch #set $DevSrc = '\\\\Device\\\\LanmanRedirector\\\\' + $http_server + '\\\\WINOS\\\\' + $distro_name  [Data] floppyless = &quot;1&quot; msdosinitiated = &quot;1&quot; ; Needed for second stage OriSrc=&quot;$OriSrc&quot; OriTyp=&quot;4&quot; LocalSourceOnCD=1 DisableAdminAccountOnDomainJoin=0 AutomaticUpdates=&quot;No&quot; Autopartition=&quot;0&quot; UnattendedInstall=&quot;Yes&quot;  [SetupData] OsLoadOptions = &quot;\/noguiboot \/fastdetect&quot; ; Needed for first stage SetupSourceDevice = &quot;$DevSrc&quot;  [Unattended] CrashDumpSetting=0 FactoryMode=No UnattendMode=FullUnattended UnattendSwitch=&quot;Yes&quot; OemPreinstall=&quot;Yes&quot; OemSkipEula=&quot;Yes&quot; Repartition=No FileSystem=* WaitForReboot=&quot;No&quot; NoWaitAfterTextMode=1 NoWaitAfterGUIMode=1 DriverSigningPolicy=Ignore NonDriverSigningPolicy=Ignore UpdateInstalledDrivers=Yes TargetPath=\\WINDOWS OemPnPDriversPath=DRIVERS\\NIC;DRIVERS\\ACPI;DRIVERS\\CHIPSET\\5520\\All;DRIVERS\\CHIPSET\\C200\\All;DRIVERS\\Storage;DRIVERS\\Virt  #if $os_version == '2003' [LicenseFilePrintData] AutoMode = PerSeat #end if  [Display] BitsPerPel=32 XResolution=1440 YResolution=900 Vrefresh=60  [WindowsFirewall] Profiles = WindowsFirewall.TurnOffFirewall  [WindowsFirewall.TurnOffFirewall] Mode = 0  [PCHealth] RA_AllowToGetHelp=0  [GuiRunOnce] &quot;%Systemdrive%\\post_install.cmd @@profile_name@@&quot;  [GuiUnattended] AdminPassword=* TimeZone=195 OEMSkipRegional=1 OemSkipWelcome=1 #if $os_version != '2003' AutoLogon = Yes AutoLogonCount=1 #end if  [RemoteInstall] Repartition=Yes UseWholeDisk=Yes  [Components] msmsgs=Off msnexplr=Off zonegames=Off Paint=Off #if $os_version == '2003' ; Iis_common=On ; Iis_inetmgr=On ComPlusNetwork=On ; Iis_www=On ; Iis_asp=On IEHardenAdmin=Off IEHardenUser=Off #end if  [TerminalServices] AllowConnections=1  [UserData] #if $os_version == '2003' ProductKey=&quot;XXXXX-XXXXX-XXXXX-XXXXX-XXXXX&quot; #else if $distro_name == 'WinXp_EN-i386' ProductKey=&quot;XXXXX-XXXXX-XXXXX-XXXXX-XXXXX&quot; #else if $distro_name == 'WinXp_RU-i386' ProductKey=&quot;XXXXX-XXXXX-XXXXX-XXXXX-XXXXX&quot; #end if ComputerName=* FullName=&quot;Admin&quot; OrgName=&quot;Microsoft&quot;  [RegionalSettings] LanguageGroup=1,2,3,4,5 #if $distro_name == 'WinXp_RU-i386' SystemLocale=00000419 UserLocale=00000419 #else SystemLocale=00000409 UserLocale=00000409 #end if InputLocale=0409:00000409,0419:00000419  [Shell] CustomDefaultThemeFile=&quot;%WinDir%\\Resources\\Themes\\Windows Classic.Theme&quot;  [Networking] InstallDefaultComponents=&quot;Yes&quot; <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"xml\">#else if $distro_name in ( 'Win7_RU-x64', 'Win7_EN-x64', 'Win2k8-Server_EN-x64', 'Win2012-Server_EN-x64', 'Win2012-Server_RU-x64', 'Win8_RU-x64' ) &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;unattend xmlns=&quot;urn:schemas-microsoft-com:unattend&quot;&gt; #if $distro_name in ( 'Win2012-Server_EN-x64', 'Win2012-Server_RU-x64' )     &lt;servicing&gt;         &lt;package action=&quot;configure&quot;&gt;             &lt;assemblyIdentity name=&quot;Microsoft-Windows-ServerCore-Package&quot; version=&quot;6.3.9600.16384&quot; processorArchitecture=&quot;amd64&quot; publicKeyToken=&quot;31bf3856ad364e35&quot; language=&quot;&quot; \/&gt;             &lt;selection name=&quot;IIS-WebServerRole&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;Microsoft-Hyper-V&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;Microsoft-Hyper-V-Offline&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;Microsoft-Hyper-V-Online&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;Microsoft-Hyper-V-Management-Clients&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;Microsoft-Hyper-V-Management-PowerShell&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;VmHostAgent&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;FailoverCluster-FullServer&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;FailoverCluster-PowerShell&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;FailoverCluster-CmdInterface&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;MultipathIo&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;ServerManager-Core-RSAT-Role-Tools&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;RSAT-Hyper-V-Tools-Feature&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;ServerManager-Core-RSAT&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;ServerMediaFoundation&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;Remote-Desktop-Services&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;IIS-WebServer&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;IIS-ApplicationDevelopment&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;IIS-CommonHttpFeatures&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;IIS-HealthAndDiagnostics&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;IIS-Performance&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;IIS-Security&quot; state=&quot;true&quot; \/&gt;             &lt;selection name=&quot;IIS-WebServerManagementTools&quot; state=&quot;true&quot; \/&gt;         &lt;\/package&gt;     &lt;\/servicing&gt; #end if     &lt;settings pass=&quot;windowsPE&quot;&gt;         &lt;component name=&quot;Microsoft-Windows-International-Core-WinPE&quot; processorArchitecture=&quot;amd64&quot; publicKeyToken=&quot;31bf3856ad364e35&quot; language=&quot;neutral&quot; versionScope=&quot;nonSxS&quot; xmlns:wcm=&quot;http:\/\/schemas.microsoft.com\/WMIConfig\/2002\/State&quot; xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot;&gt; #if $distro_name in ( 'Win7_RU-x64', 'Win2012-Server_RU-x64', 'Win8_RU-x64' )             &lt;InputLocale&gt;0409:00000409;0419:00000419&lt;\/InputLocale&gt;             &lt;SystemLocale&gt;ru-RU&lt;\/SystemLocale&gt;             &lt;UILanguage&gt;ru-RU&lt;\/UILanguage&gt;             &lt;UILanguageFallback&gt;ru-RU&lt;\/UILanguageFallback&gt;             &lt;UserLocale&gt;ru-RU&lt;\/UserLocale&gt; #else             &lt;InputLocale&gt;0409:00000409&lt;\/InputLocale&gt;             &lt;SystemLocale&gt;en-US&lt;\/SystemLocale&gt;             &lt;UILanguage&gt;en-US&lt;\/UILanguage&gt;             &lt;UILanguageFallback&gt;en-US&lt;\/UILanguageFallback&gt;             &lt;UserLocale&gt;en-US&lt;\/UserLocale&gt; #end if         &lt;\/component&gt;         &lt;component name=&quot;Microsoft-Windows-Setup&quot; processorArchitecture=&quot;amd64&quot; publicKeyToken=&quot;31bf3856ad364e35&quot; language=&quot;neutral&quot; versionScope=&quot;nonSxS&quot; xmlns:wcm=&quot;http:\/\/schemas.microsoft.com\/WMIConfig\/2002\/State&quot; xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot;&gt;             &lt;DiskConfiguration&gt;                 &lt;WillShowUI&gt;OnError&lt;\/WillShowUI&gt;                 &lt;Disk wcm:action=&quot;add&quot;&gt;                     &lt;CreatePartitions&gt;                         &lt;CreatePartition wcm:action=&quot;add&quot;&gt;                             &lt;Order&gt;1&lt;\/Order&gt;                             &lt;Extend&gt;true&lt;\/Extend&gt;                             &lt;Type&gt;Primary&lt;\/Type&gt;                         &lt;\/CreatePartition&gt;                     &lt;\/CreatePartitions&gt;                     &lt;DiskID&gt;0&lt;\/DiskID&gt;                     &lt;WillWipeDisk&gt;true&lt;\/WillWipeDisk&gt;                 &lt;\/Disk&gt;             &lt;\/DiskConfiguration&gt;             &lt;ImageInstall&gt;                 &lt;OSImage&gt;                     &lt;InstallFrom&gt;                         &lt;Credentials&gt;                             &lt;Domain&gt;&lt;\/Domain&gt;                         &lt;\/Credentials&gt;                         &lt;MetaData wcm:action=&quot;add&quot;&gt;                             &lt;Key&gt;\/IMAGE\/NAME&lt;\/Key&gt; #if $profile_name == 'IOS'                             &lt;Value&gt;Windows8_VmVare_MacOS_xCode&lt;\/Value&gt; #else if $distro_name in ( 'Win7_RU-x64', 'Win7_EN-x64' )                             &lt;Value&gt;Windows 7 PROFESSIONAL&lt;\/Value&gt; #else if $distro_name in (  'Win2k8-Server_EN-x64' )                             &lt;Value&gt;Windows Server 2008 R2 SERVERENTERPRISE&lt;\/Value&gt; #else if $distro_name in (  'Win2012-Server_EN-x64', 'Win2012-Server_RU-x64' )                             &lt;Value&gt;Windows Server 2012 R2 SERVERDATACENTER&lt;\/Value&gt; #else if $distro_name in (  'Win8_RU-x64' )                             &lt;Value&gt;Windows 8.1 Pro&lt;\/Value&gt; #else if $distro_name in (  'Win8_EN-x64' )                             &lt;Value&gt;Windows 8.1 Enterprise&lt;\/Value&gt; #end if                         &lt;\/MetaData&gt;                     &lt;\/InstallFrom&gt;                     &lt;InstallTo&gt;                         &lt;DiskID&gt;0&lt;\/DiskID&gt;                         &lt;PartitionID&gt;1&lt;\/PartitionID&gt;                     &lt;\/InstallTo&gt;                 &lt;\/OSImage&gt;             &lt;\/ImageInstall&gt;             &lt;UserData&gt;                 &lt;ProductKey&gt; #if $distro_name in ( 'Win2012-Server_EN-x64', 'Win2012-Server_RU-x64' )                     &lt;Key&gt;XXXXX-XXXXX-XXXXX-XXXXX-XXXXX&lt;\/Key&gt; #end if                     &lt;WillShowUI&gt;Never&lt;\/WillShowUI&gt;                 &lt;\/ProductKey&gt;                 &lt;AcceptEula&gt;true&lt;\/AcceptEula&gt;                 &lt;FullName&gt;User&lt;\/FullName&gt;                 &lt;Organization&gt;My Organization&lt;\/Organization&gt;             &lt;\/UserData&gt;             &lt;EnableFirewall&gt;false&lt;\/EnableFirewall&gt;         &lt;\/component&gt;         &lt;component name=&quot;Microsoft-Windows-PnpCustomizationsWinPE&quot; processorArchitecture=&quot;amd64&quot; publicKeyToken=&quot;31bf3856ad364e35&quot; language=&quot;neutral&quot; versionScope=&quot;nonSxS&quot; xmlns:wcm=&quot;http:\/\/schemas.microsoft.com\/WMIConfig\/2002\/State&quot; xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot;&gt;             &lt;DriverPaths&gt; #if $distro_name in ( 'Win2012-Server_EN-x64', 'Win2012-Server_RU-x64', 'Win8_RU-x64' )                 &lt;PathAndCredentials wcm:action=&quot;add&quot; wcm:keyValue=&quot;1&quot;&gt;                     &lt;Path&gt;\\\\@@http_server@@\\WINOS\\Drivers\\CHIPSET\\Win8&lt;\/Path&gt;                 &lt;\/PathAndCredentials&gt; #else                 &lt;PathAndCredentials wcm:action=&quot;add&quot; wcm:keyValue=&quot;1&quot;&gt;                     &lt;Path&gt;\\\\@@http_server@@\\WINOS\\Drivers\\CHIPSET\\5520\\Vista&lt;\/Path&gt;                 &lt;\/PathAndCredentials&gt;                 &lt;PathAndCredentials wcm:action=&quot;add&quot; wcm:keyValue=&quot;2&quot;&gt;                     &lt;Path&gt;\\\\@@http_server@@\\WINOS\\Drivers\\CHIPSET\\C200\\WIN7&lt;\/Path&gt;                 &lt;\/PathAndCredentials&gt; #end if                 &lt;PathAndCredentials wcm:action=&quot;add&quot; wcm:keyValue=&quot;3&quot;&gt; #if $distro_name in ( 'Win2012-Server_EN-x64', 'Win2012-Server_RU-x64', 'Win8_RU-x64' )                     &lt;Path&gt;\\\\@@http_server@@\\WINOS\\Drivers\\NIC\\Win8&lt;\/Path&gt; #else                     &lt;Path&gt;\\\\@@http_server@@\\WINOS\\Drivers\\NIC&lt;\/Path&gt; #end if                 &lt;\/PathAndCredentials&gt; #if $distro_name in ( 'Win7_RU-x64', 'Win7_EN-x64', 'Win2k8-Server_EN-x64' )                 &lt;PathAndCredentials wcm:action=&quot;add&quot; wcm:keyValue=&quot;4&quot;&gt;                     &lt;Path&gt;\\\\@@http_server@@\\WINOS\\Drivers\\ACPI\\64\\WIN7&lt;\/Path&gt;                 &lt;\/PathAndCredentials&gt; #end if                 &lt;PathAndCredentials wcm:action=&quot;add&quot; wcm:keyValue=&quot;5&quot;&gt;                     &lt;Path&gt;\\\\@@http_server@@\\WINOS\\Drivers\\Storage\\64&lt;\/Path&gt;                 &lt;\/PathAndCredentials&gt;                 &lt;PathAndCredentials wcm:action=&quot;add&quot; wcm:keyValue=&quot;6&quot;&gt; #if $distro_name in ( 'Win8_RU-x64' )                     &lt;Path&gt;\\\\@@http_server@@\\WINOS\\Drivers\\Virt\\Win8&lt;\/Path&gt; #else if $distro_name in (  'Win2012-Server_EN-x64', 'Win2012-Server_RU-x64' )                     &lt;Path&gt;\\\\@@http_server@@\\WINOS\\Drivers\\Virt\\2012&lt;\/Path&gt; #else if $distro_name in ( 'Win2k8-Server_EN-x64' )                     &lt;Path&gt;\\\\@@http_server@@\\WINOS\\Drivers\\Virt\\2008&lt;\/Path&gt; #else                     &lt;Path&gt;\\\\@@http_server@@\\WINOS\\Drivers\\Virt\\Win7&lt;\/Path&gt; #end if                 &lt;\/PathAndCredentials&gt;             &lt;\/DriverPaths&gt;         &lt;\/component&gt;     &lt;\/settings&gt;     &lt;settings pass=&quot;offlineServicing&quot;&gt;         &lt;component name=&quot;Microsoft-Windows-LUA-Settings&quot; processorArchitecture=&quot;amd64&quot; publicKeyToken=&quot;31bf3856ad364e35&quot; language=&quot;neutral&quot; versionScope=&quot;nonSxS&quot; xmlns:wcm=&quot;http:\/\/schemas.microsoft.com\/WMIConfig\/2002\/State&quot; xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot;&gt;             &lt;EnableLUA&gt;false&lt;\/EnableLUA&gt;         &lt;\/component&gt;     &lt;\/settings&gt;     &lt;settings pass=&quot;specialize&quot;&gt;         &lt;component name=&quot;Microsoft-Windows-Shell-Setup&quot; processorArchitecture=&quot;amd64&quot; publicKeyToken=&quot;31bf3856ad364e35&quot; language=&quot;neutral&quot; versionScope=&quot;nonSxS&quot; xmlns:wcm=&quot;http:\/\/schemas.microsoft.com\/WMIConfig\/2002\/State&quot; xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot;&gt;             &lt;ComputerName&gt;*&lt;\/ComputerName&gt;             &lt;RegisteredOrganization&gt;My Organization&lt;\/RegisteredOrganization&gt;             &lt;RegisteredOwner&gt;Instructor&lt;\/RegisteredOwner&gt; #if $distro_name == 'Win7_RU-x64'             &lt;ProductKey&gt;XXXXX-XXXXX-XXXXX-XXXXX-XXXXX&lt;\/ProductKey&gt; #else if $distro_name == 'Win7_EN-x64'             &lt;ProductKey&gt;XXXXX-XXXXX-XXXXX-XXXXX-XXXXX&lt;\/ProductKey&gt; #else if $distro_name == 'Win2k8-Server_EN-x64'             &lt;ProductKey&gt;XXXXX-XXXXX-XXXXX-XXXXX-XXXXX&lt;\/ProductKey&gt; #else if $distro_name in ( 'Win2012-Server_EN-x64', 'Win2012-Server_RU-x64' )             &lt;ProductKey&gt;XXXXX-XXXXX-XXXXX-XXXXX-XXXXX&lt;\/ProductKey&gt; #end if         &lt;\/component&gt;         &lt;component name=&quot;Microsoft-Windows-UnattendedJoin&quot; processorArchitecture=&quot;amd64&quot; publicKeyToken=&quot;31bf3856ad364e35&quot; language=&quot;neutral&quot; versionScope=&quot;nonSxS&quot; xmlns:wcm=&quot;http:\/\/schemas.microsoft.com\/WMIConfig\/2002\/State&quot; xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot;&gt;             &lt;Identification&gt;                 &lt;JoinWorkgroup&gt;WORKGROUP&lt;\/JoinWorkgroup&gt;             &lt;\/Identification&gt;         &lt;\/component&gt;         &lt;component name=&quot;Microsoft-Windows-TerminalServices-LocalSessionManager&quot; processorArchitecture=&quot;amd64&quot; publicKeyToken=&quot;31bf3856ad364e35&quot; language=&quot;neutral&quot; versionScope=&quot;nonSxS&quot; xmlns:wcm=&quot;http:\/\/schemas.microsoft.com\/WMIConfig\/2002\/State&quot; xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot;&gt;             &lt;fDenyTSConnections&gt;false&lt;\/fDenyTSConnections&gt;         &lt;\/component&gt;         &lt;component name=&quot;Networking-MPSSVC-Svc&quot; processorArchitecture=&quot;amd64&quot; publicKeyToken=&quot;31bf3856ad364e35&quot; language=&quot;neutral&quot; versionScope=&quot;nonSxS&quot; xmlns:wcm=&quot;http:\/\/schemas.microsoft.com\/WMIConfig\/2002\/State&quot; xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot;&gt;             &lt;FirewallGroups&gt;                 &lt;FirewallGroup wcm:action=&quot;add&quot; wcm:keyValue=&quot;EnableRemoteDesktop&quot;&gt;                     &lt;Active&gt;true&lt;\/Active&gt;                     &lt;Group&gt;Remote Desktop&lt;\/Group&gt;                     &lt;Profile&gt;all&lt;\/Profile&gt;                 &lt;\/FirewallGroup&gt;             &lt;\/FirewallGroups&gt;         &lt;\/component&gt;         &lt;component name=&quot;Microsoft-Windows-TerminalServices-RDP-WinStationExtensions&quot; processorArchitecture=&quot;amd64&quot; publicKeyToken=&quot;31bf3856ad364e35&quot; language=&quot;neutral&quot; versionScope=&quot;nonSxS&quot; xmlns:wcm=&quot;http:\/\/schemas.microsoft.com\/WMIConfig\/2002\/State&quot; xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot;&gt;             &lt;UserAuthentication&gt;0&lt;\/UserAuthentication&gt;         &lt;\/component&gt;     &lt;\/settings&gt;     &lt;settings pass=&quot;oobeSystem&quot;&gt;         &lt;component name=&quot;Microsoft-Windows-Shell-Setup&quot; processorArchitecture=&quot;amd64&quot; publicKeyToken=&quot;31bf3856ad364e35&quot; language=&quot;neutral&quot; versionScope=&quot;nonSxS&quot; xmlns:wcm=&quot;http:\/\/schemas.microsoft.com\/WMIConfig\/2002\/State&quot; xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot;&gt;             &lt;OOBE&gt;                 &lt;ProtectYourPC&gt;3&lt;\/ProtectYourPC&gt;                 &lt;NetworkLocation&gt;Work&lt;\/NetworkLocation&gt;             &lt;\/OOBE&gt;             &lt;UserAccounts&gt;                 &lt;AdministratorPassword&gt;                     &lt;Value&gt;XXXX&lt;\/Value&gt;                     &lt;PlainText&gt;false&lt;\/PlainText&gt;                 &lt;\/AdministratorPassword&gt;                 &lt;LocalAccounts&gt;                     &lt;LocalAccount wcm:action=&quot;add&quot;&gt;                         &lt;Password&gt;                             &lt;Value&gt;XXXXX&lt;\/Value&gt;                             &lt;PlainText&gt;false&lt;\/PlainText&gt;                         &lt;\/Password&gt;                         &lt;Name&gt;User&lt;\/Name&gt;                         &lt;Group&gt;Administrators&lt;\/Group&gt;                     &lt;\/LocalAccount&gt;                 &lt;\/LocalAccounts&gt;                 &lt;DomainAccounts&gt;                     &lt;DomainAccountList wcm:action=&quot;add&quot;&gt;                         &lt;Domain&gt;WORKGOUP&lt;\/Domain&gt;                         &lt;DomainAccount wcm:action=&quot;add&quot;&gt;                             &lt;Name&gt;Domain Admins&lt;\/Name&gt;                             &lt;Group&gt;Administrators&lt;\/Group&gt;                         &lt;\/DomainAccount&gt;                         &lt;DomainAccount wcm:action=&quot;add&quot;&gt;                             &lt;Name&gt;User&lt;\/Name&gt;                             &lt;Group&gt;Administrators&lt;\/Group&gt;                         &lt;\/DomainAccount&gt;                     &lt;\/DomainAccountList&gt;                 &lt;\/DomainAccounts&gt;             &lt;\/UserAccounts&gt;             &lt;TimeZone&gt;Central Asia Standard Time&lt;\/TimeZone&gt;             &lt;RegisteredOrganization&gt;My Organization&lt;\/RegisteredOrganization&gt;             &lt;RegisteredOwner&gt;User&lt;\/RegisteredOwner&gt;             &lt;FirstLogonCommands&gt;                 &lt;SynchronousCommand wcm:action=&quot;add&quot;&gt;                     &lt;RequiresUserInput&gt;false&lt;\/RequiresUserInput&gt;                     &lt;Order&gt;1&lt;\/Order&gt;                     &lt;CommandLine&gt;cmd \/C wmic useraccount where &quot;name='user'&quot; set PasswordExpires=FALSE&lt;\/CommandLine&gt;                 &lt;\/SynchronousCommand&gt;                 &lt;SynchronousCommand wcm:action=&quot;add&quot;&gt;                     &lt;RequiresUserInput&gt;false&lt;\/RequiresUserInput&gt;                     &lt;Order&gt;2&lt;\/Order&gt;                     &lt;CommandLine&gt;c:\\post_install.cmd @@profile_name@@&lt;\/CommandLine&gt;                 &lt;\/SynchronousCommand&gt;             &lt;\/FirstLogonCommands&gt;             &lt;AutoLogon&gt;                 &lt;Password&gt;                     &lt;Value&gt;XXXX&lt;\/Value&gt;                     &lt;PlainText&gt;false&lt;\/PlainText&gt;                 &lt;\/Password&gt;                 &lt;Enabled&gt;true&lt;\/Enabled&gt;                 &lt;Domain&gt;WORKGOUP&lt;\/Domain&gt;                 &lt;Username&gt;User&lt;\/Username&gt;                 &lt;LogonCount&gt;10000&lt;\/LogonCount&gt;             &lt;\/AutoLogon&gt;         &lt;\/component&gt;     &lt;\/settings&gt; #if $distro_name in ( 'Win7_RU-x64', 'Win7_EN-x64' )     &lt;cpi:offlineImage cpi:source=&quot;catalog:d:\/sources\/install_windows 7 professional.clg&quot; xmlns:cpi=&quot;urn:schemas-microsoft-com:cpi&quot; \/&gt; #else if $distro_name in ( 'Win2k8-Server_EN-x64' )     &lt;cpi:offlineImage cpi:source=&quot;catalog:d:\/sources\/install_windows server 2008 r2 serverenterprise.clg&quot; xmlns:cpi=&quot;urn:schemas-microsoft-com:cpi&quot; \/&gt; #else if $distro_name in ( 'Win2012-Server_EN-x64', 'Win2012-Server_RU-x64' )     &lt;cpi:offlineImage cpi:source=&quot;wim:c:\/netboot\/install.wim#Windows Server 2012 R2 SERVERDATACENTER&quot; xmlns:cpi=&quot;urn:schemas-microsoft-com:cpi&quot; \/&gt; #else if $distro_name in ( 'Win8_RU-x64' )     &lt;cpi:offlineImage cpi:source=&quot;catalog:d:\/sources\/install_windows 8.1 Pro.clg&quot; xmlns:cpi=&quot;urn:schemas-microsoft-com:cpi&quot; \/&gt; #end if &lt;\/unattend&gt; #end if <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0437\u0434\u0435\u0441\u044c \u0432 \u0441\u0442\u0440\u043e\u043a\u0430\u0445, \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430:  <\/p>\n<ul>\n<li>\u0434\u043b\u044f Xp, 2003<br \/> \n<pre><code class=\"bash\"> [GuiRunOnce] &quot;%Systemdrive%\\post_install.cmd @@profile_name@@&quot; <\/code><\/pre>\n<\/li>\n<li>\u0434\u043b\u044f 7, 8, 2008, 2012<br \/> \n<pre><code class=\"xml\">                &lt;SynchronousCommand wcm:action=&quot;add&quot;&gt;                     &lt;RequiresUserInput&gt;false&lt;\/RequiresUserInput&gt;                     &lt;Order&gt;2&lt;\/Order&gt;                     &lt;CommandLine&gt;c:\\post_install.cmd @@profile_name@@&lt;\/CommandLine&gt;                 &lt;\/SynchronousCommand&gt; <\/code><\/pre>\n<\/li>\n<\/ul>\n<p>  <\/p>\n<h4>\u0428\u0430\u0431\u043b\u043e\u043d startnet.template<\/h4>\n<p>  \u0428\u0430\u0431\u043b\u043e\u043d \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f wim \u043e\u0431\u0440\u0430\u0437\u043e\u0432.  <\/p>\n<ul>\n<li>\u041f\u043e\u0441\u043b\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0441\u0442\u0435\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442 IP \u0430\u0434\u0440\u0435\u0441 DHCP \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (\u0442\u0430\u043c \u0436\u0435 \u0443 \u043d\u0430\u0441 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0438 cobbler \u0441 samba).<\/li>\n<li>\u041c\u043e\u043d\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b samba.<\/li>\n<li>\u0418\u0437 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0445 cobbler \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 ($kernel_options[\u00absif\u00bb]) \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0444\u0438\u043b\u044f.<\/li>\n<li>\u0417\u0430\u043f\u0440\u043e\u0441\u043e\u043c \u043a DNS \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0438\u043c\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 \u0432 DNS \u0438 \u0437\u0430\u043d\u043e\u0441\u0438\u043c \u0435\u0433\u043e \u0432 \u0444\u0430\u0439\u043b \u043e\u0442\u0432\u0435\u0442\u043e\u0432.<\/li>\n<li>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044e \u0441 \u044d\u0442\u0438\u043c \u0444\u0430\u0439\u043b\u043e\u043c \u043e\u0442\u0432\u0435\u0442\u043e\u0432.<\/li>\n<\/ul>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 \/var\/lib\/cobbler\/kickstarts\/startnet.template<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"dos\">wpeinit  ping 127.0.0.1 -n 10 &gt;nul md \\tmp cd \\tmp ipconfig \/all | find &quot;DHCP Server&quot; &gt; dhcp ipconfig \/all | find &quot;IPv4 Address&quot; &gt; ipaddr FOR \/F &quot;eol=- tokens=2 delims=:&quot; %%i in (dhcp) do set dhcp=%%i FOR  %%i in (%dhcp%) do set dhcp=%%i FOR \/F &quot;eol=- tokens=2 delims=:(&quot; %%i in (ipaddr) do set ipaddr=%%i  net use y: \\\\%dhcp%\\Public \/user:install install net use z: \\\\%dhcp%\\WINOS\\@@distro_name@@ \/user:install install set exit_code=%ERRORLEVEL% IF %exit_code% EQU 0 GOTO GETNAME echo &quot;Can't mount network drive goto EXIT  :GETNAME y:\\windows\\bind\\nslookup.exe %ipaddr% | find &quot;name =&quot; &gt; wsname for \/f &quot;eol=- tokens=2 delims==&quot; %%i in (wsname) do echo %%i &gt; ws for \/f &quot;eol=- tokens=1 delims=.&quot; %%i in (ws) do set wsname=%%i FOR  %%i in (%wsname%) do set wsname=%%i  #set $unattended = &quot;set UNATTENDED_ORIG=Z:\\\\sources\\\\&quot; + $kernel_options[&quot;sif&quot;] $unattended set UNATTENDED=X:\\tmp\\autounattended.xml  echo off FOR \/F &quot;tokens=1 delims=!&quot; %%l in (%UNATTENDED_ORIG%) do (    IF &quot;%%l&quot;==&quot;            &lt;ComputerName&gt;*&lt;\/ComputerName&gt;&quot; (      echo             ^&lt;ComputerName^&gt;%wsname%^&lt;^\/ComputerName^&gt;&gt;&gt; %UNATTENDED%    ) else (      echo %%l&gt;&gt; %UNATTENDED%    ) ) echo on  :INSTALL set n=0 z:\\sources\\setup.exe \/unattend:%UNATTENDED% set \/a n=n+1 ping 127.0.0.1 -n 5 &gt;nul IF %n% lss 20 goto INSTALL  :EXIT <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h4>\u0428\u0430\u0431\u043b\u043e\u043d\u044b winpe7.template \u0438 winpe8.template<\/h4>\n<p>  \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u043e\u0431\u0440\u0430\u0437\u044b \u0434\u043b\u044f \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 Win 7 \u0438 Win 8 \u0441 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430\u043c\u0438.<br \/>  \u041f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0435 <code>cobbler sync<\/code> \u0438\u0445 \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442 \u0432 \u043c\u0435\u0441\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u0440\u043e\u0444\u0438\u043b\u0435.<br \/>  \u041a\u0430\u0436\u0434\u0443\u044e \u0442\u0430\u043a\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u044e\u0442, \u0432 \u043d\u0435\u0435 \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 startnet.template \u0438 \u0434\u0435\u043c\u043e\u043d\u0442\u0438\u0440\u0443\u044e\u0442 \u0432 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0435 \u043d\u0430 post-sync.<\/p>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 wim \u043e\u0431\u0440\u0430\u0437\u0430\u043c\u0438 \u0432 Linux \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e <a href=\"http:\/\/sourceforge.net\/projects\/wimlib\">wimlib<\/a><br \/>  \u0414\u043b\u044f \u0435\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442 ntfs-3g, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 fuse.<br \/>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0441\u043b\u0438 \u043a\u0430\u043a \u044f, \u0431\u0443\u0434\u0435\u0442\u0435 \u0441\u0442\u0430\u0432\u0438\u0442\u044c cobbler \u0432 linux \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435 lxc \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c libvirt, \u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432 xml \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0434\u043e\u043c\u0435\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0438:  <\/p>\n<pre><code class=\"xml\">    &lt;hostdev mode='capabilities' type='misc'&gt;       &lt;source&gt;         &lt;char&gt;\/dev\/fuse&lt;\/char&gt;      &lt;\/source&gt;     &lt;\/hostdev&gt; <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 \u0438 \u043f\u0440\u043e\u0444\u0438\u043b\u0435\u0439<\/h4>\n<p>  <u>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 \u0432 cobbler:<\/u>  <\/p>\n<pre><code class=\"bash\"> # systemctl restart cobblerd # cobbler distro add --name=WinXp_RU-i386 --kernel=\/var\/lib\/tftpboot\/winos\/WinXp_RU-i386\/pxeboot.n12 --initrd=\/var\/lib\/tftpboot\/winos\/add_ram.dat --arch=i386 --breed=windows --os-version=XP --kopts='post_install=\/var\/lib\/tftpboot\/winos\/WinXp_RU-i386\/$OEM$\/$1\/post_install.cmd'  # cobbler distro add --name=Win7_RU-x64 --kernel=\/var\/lib\/tftpboot\/winos\/Win7_RU-x64\/pxeboot.n12 --initrd=\/var\/lib\/tftpboot\/winos\/add_ram.dat --arch=x86_64 --breed=windows --os-version=7 --kopts='post_install=\/var\/lib\/tftpboot\/winos\/Win7_RU-x64\/sources\/$OEM$\/$1\/post_install.cmd'  # cobbler distro add --name=Win8_RU-x64 --kernel=\/var\/lib\/tftpboot\/winos\/Win8_RU-x64\/pxeboot.n12 --initrd=\/var\/lib\/tftpboot\/winos\/add_ram.dat --arch=x86_64 --breed=windows --os-version=8 --kopts='post_install=\/var\/lib\/tftpboot\/winos\/Win8_RU-x64\/sources\/$OEM$\/$1\/post_install.cmd'  \u0438 \u0442.\u0434. <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c kernel \u0444\u0438\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u2014 PXE \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u044d\u0442\u043e\u0433\u043e pxeboot.n12 \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0435 <code>cobbler sync<\/code>.<br \/>  \/var\/lib\/tftpboot\/winos\/add_ram.dat \u0442\u043e\u0436\u0435 \u0444\u0438\u043a\u0442\u0438\u0432\u043d\u044b\u0439 initrd, \u0432 \u0441\u043c\u044b\u0441\u043b\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0441\u0443\u043d\u0443\u0442\u044c \u043b\u044e\u0431\u043e\u0439\u2014 \u0438\u043d\u0430\u0447\u0435 distro \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c.<\/p>\n<p>  <u>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u0435\u0439 \u0432 cobbler:<\/u>  <\/p>\n<pre><code class=\"bash\"> # cobbler profile add --name=WinXp_RU-i386 --distro=WinXp_RU-i386 --kickstart=\/var\/lib\/cobbler\/kickstarts\/win.ks --kopts='pxeboot=winr0.0,bootmgr=xplr0,sif=winr0.sif'  # cobbler profile add --name=Win7_RU-x64 --distro=Win7_RU-x64 --kickstart=\/var\/lib\/cobbler\/kickstarts\/win.ks --kopts='pxeboot=win7ra.0,bootmgr=boot7ra.exe,bcd=7Ra,winpe=winpe.wim,sif=autounattended.xml'  # cobbler profile add --name=Win8_RU-x64 --distro=Win8_RU-x64 --kickstart=\/var\/lib\/cobbler\/kickstarts\/win.ks --kopts='pxeboot=win81a.0,bootmgr=boot81a.exe,bcd=B8a,winpe=winpe.wim,sif=autounattended.xml' <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u043e\u0444\u0438\u043b\u0438 \u0434\u043b\u044f \u0434\u0432\u0443\u0445 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430 Win8_RU-x64.  <\/p>\n<pre><code class=\"bash\"> # cobbler profile add --name=Win8-test1 --distro=Win8_RU-x64 --kickstart=\/var\/lib\/cobbler\/kickstarts\/win.ks --kopts='pxeboot=win81b.0,bootmgr=boot81b.exe,bcd=B8b,winpe=winpb.wim,sif=autounattended01.xml'  # cobbler profile add --name=Win8-test2 --distro=Win8_RU-x64 --kickstart=\/var\/lib\/cobbler\/kickstarts\/win.ks --kopts='pxeboot=win81c.0,bootmgr=boot81c.exe,bcd=B8c,winpe=winpc.wim,sif=autounattended02.xml' <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432 win.ks \u043c\u043e\u0436\u043d\u043e \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0442\u0438\u043f\u0430:  <\/p>\n<pre><code class=\"bash\"> #if $profile_name == ' Win8-test1' &lt;code&gt; #end if #if $profile_name == ' Win8-test2' &lt;code&gt; #end if<\/code><\/pre>\n<p>  \u0418\u043c\u0435\u043d\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u044f\u0445 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u043c, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c \u0432 \/etc\/tftpd.rules \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430. \u0422\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u0442 \u0441\u0430\u043c\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u043e\u043a\u0430 \u0435\u0449\u0435 \u043d\u0435\u0442, \u0438\u0445 \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0442\u0440\u0438\u0433\u0433\u0435\u0440 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>cobbler sync<\/code>.<\/p>\n<h4>\u0428\u0430\u0431\u043b\u043e\u043d \u043c\u0435\u043d\u044e PXE \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438<\/h4>\n<p>  Cobbler \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043c\u0435\u043d\u044e \u0432 \u0432\u0438\u0434\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0438 \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0433\u043e \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u044b\u043c \u043d\u0443\u0436\u043d\u043e \u0435\u0449\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0442\u0440\u0443\u0434\u0438\u0442\u044c\u0441\u044f.<\/p>\n<p>  \u041f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 cobbler \u043f\u0440\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 pxe \u043c\u0435\u043d\u044e \u0438\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 http_server \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>server.example.org<\/code>, \u0430 \u043d\u0435 \u0431\u0435\u0440\u0443\u0442 \u0435\u0433\u043e \u0438\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430. Windows \u043f\u0443\u043d\u043a\u0442\u0430\u043c \u043c\u0435\u043d\u044e \u044d\u0442\u043e \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442, \u0430 \u0432\u043e\u0442 \u0434\u043b\u044f Linux \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u044d\u0442\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 kickstart \u0444\u0430\u0439\u043b\u0430. \u0418\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u044d\u0442\u043e:  <\/p>\n<pre><code class=\"bash\"> # cd \/usr\/lib\/python2.7\/site-packages\/cobbler # cp templar.py templar.py.orig # sed -i 's\/&quot;server.example.org&quot;\/self.settings.server\/gi'  templar.py <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \/etc\/cobbler\/pxe\/pxedefault.template \u0441\u0442\u0440\u043e\u043a\u0443  <\/p>\n<pre><code class=\"bash\"> $pxe_menu_items <\/code><\/pre>\n<p>  \u043c\u043e\u0436\u043d\u043e \u0443\u0431\u0440\u0430\u0442\u044c, \u0430 \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0435\u0435 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u0432\u043e\u0435:  <\/p>\n<pre><code class=\"bash\"> menu begin Linux MENU TITLE Linux \tlabel Fedora-latest-x86_64 \t\tMENU INDENT 5 \t\tMENU LABEL Fedora-latest-x86_64 \t\tkernel \/images\/Fedora-22-x86_64\/vmlinuz \t\tappend initrd=\/images\/Fedora-22-x86_64\/initrd.img ks.device=bootif ks.sendmac lang=en text ks=http:\/\/@@http_server@@\/cblr\/svc\/op\/ks\/profile\/Fedora-latest-x86_64 \t\tipappend 2 \tlabel returntomain \t\tmenu label Return to ^main menu. \t\tmenu exit menu end menu begin Windows MENU TITLE Windows \tlabel  Win8-test1 \t\tMENU INDENT 5 \t\tMENU LABEL  Win8-test1 \t\tkernel \/winos\/Win8_RU-x64\/win81b.0 \tlabel  Win8-test2 \t\tMENU INDENT 5 \t\tMENU LABEL  Win8-test2 \t\tkernel \/winos\/Win8_RU-x64\/win81c.0 \tlabel returntomain \t\tmenu label Return to ^main menu. \t\tmenu exit menu end <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0432\u0441\u0435 \u0432\u043c\u0435\u0441\u0442\u0435<\/h4>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0438\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u0431\u0443\u0434\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b, \u0441\u043a\u0440\u0438\u043f\u0442\u044b, \u043e\u0431\u0440\u0430\u0437\u044b wim \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043c \u0432\u0441\u0435 \u044d\u0442\u043e \u0432 \u043d\u0443\u0436\u043d\u044b\u0435 \u043c\u0435\u0441\u0442\u0430.<\/p>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u044f \u0440\u0435\u0448\u0438\u043b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043e\u043c cobbler \u043d\u0430 post sync:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 \/usr\/lib\/python2.7\/site-packages\/cobbler\/modules\/sync_post_wingen.py<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">import distutils.sysconfig import sys import os import traceback import cexceptions import os import re import xmlrpclib import pefile import cobbler.module_loader as module_loader import cobbler.utils as utils import cobbler.config as config import cobbler.templar as templar  template_dir = &quot;\/var\/lib\/tftpboot\/winos\/&quot; sif_template_name = template_dir + &quot;win_sif.template&quot; post_inst_cmd_template_name = template_dir + &quot;post_inst_cmd.template&quot; startnet_template_name = template_dir + &quot;startnet.template&quot; wim7_template_name = template_dir + &quot;winpe7.template&quot; wim8_template_name = template_dir + &quot;winpe8.template&quot;  wimlib = &quot;\/usr\/bin\/wimlib-imagex&quot; wimlib_mount = wimlib + &quot; mountrw&quot; wimlib_umount = wimlib + &quot; unmount&quot; mount_point = &quot;\/mnt\/wim&quot;  bcdedit = &quot;\/usr\/local\/bin\/bcdedit.pl&quot;  plib = distutils.sysconfig.get_python_lib() mod_path=&quot;%s\/cobbler&quot; % plib sys.path.insert(0, mod_path)  def register():     # this pure python trigger acts as if it were a legacy shell-trigger, but is much faster.     # the return of this method indicates the trigger type     return &quot;\/var\/lib\/cobbler\/triggers\/sync\/post\/*&quot;  def run( api, args, logger ):     settings = api.settings()     images =  api.images()     distros = api.distros()     profiles = api.profiles()     conf = config.Config( api )     templ = templar.Templar( conf )      rc = 0     template_win = open( post_inst_cmd_template_name )     tmpl_data = template_win.read()     template_win.close()      for distro in distros:         if distro.breed == &quot;windows&quot;:             meta = utils.blender( api, False, distro )              if distro.kernel_options.has_key( &quot;post_install&quot; ):                 data = templ.render( tmpl_data, meta, None, distro )                 pi_file = open( distro.kernel_options[&quot;post_install&quot;], &quot;w+&quot; )                 pi_file.write( data )                 pi_file.close()      template_win = open( sif_template_name )     tmpl_data = template_win.read()     template_win.close()      template_start = open( startnet_template_name )     tmplstart_data = template_start.read()     template_start.close()      logger.info( &quot;\\nWindows profiles:&quot; )      for profile in profiles:         distro = profile.get_conceptual_parent()          if distro.breed == &quot;windows&quot;:             logger.info( 'Profile: ' + profile.name )             meta = utils.blender( api, False, profile )             (distro_path, pxeboot_name) = os.path.split( distro.kernel )              if profile.kernel_options.has_key( &quot;sif&quot; ):                 data = templ.render( tmpl_data, meta, None, profile )                  if distro.os_version in ( &quot;7&quot;, &quot;2008&quot;, &quot;8&quot;, &quot;2012&quot; ):                     sif_file_name = os.path.join( distro_path, 'sources', profile.kernel_options[&quot;sif&quot;] )                 else:                     sif_file_name = os.path.join( distro_path, profile.kernel_options[&quot;sif&quot;] )                  sif_file = open(sif_file_name, &quot;w+&quot; )                 sif_file.write( data )                 sif_file.close()                 logger.info( 'Build answer file: ' + sif_file_name )               if profile.kernel_options.has_key( &quot;pxeboot&quot; ) and profile.kernel_options.has_key( &quot;bootmgr&quot; ):                 wk_file_name = os.path.join( distro_path, profile.kernel_options[&quot;pxeboot&quot;] )                 wl_file_name = os.path.join( distro_path, profile.kernel_options[&quot;bootmgr&quot;] )                 logger.info( &quot;Build PXEBoot: &quot; + wk_file_name )                  if distro.os_version in ( &quot;7&quot;, &quot;2008&quot;, &quot;8&quot;, &quot;2012&quot; ):                     if len(profile.kernel_options[&quot;bootmgr&quot;]) != 11:                         logger.error( &quot;The loader  name should be EXACTLY 11 character&quot; )                         return 1                      if profile.kernel_options.has_key( &quot;bcd&quot; ):                         if len(profile.kernel_options[&quot;bcd&quot;]) != 3:                             logger.error( &quot;The BCD name should be EXACTLY 5 character&quot; )                             return 1                      tl_file_name = os.path.join( distro_path, 'bootmgr.exe' )                     pat1 = re.compile( r'bootmgr\\.exe', re.IGNORECASE )                     pat2 = re.compile( r'(\\\\.B.o.o.t.\\\\.)(B)(.)(C)(.)(D)', re.IGNORECASE )                     bcd_name = 'BCD'                      if profile.kernel_options.has_key( &quot;bcd&quot; ):                         bcd_name = profile.kernel_options[&quot;bcd&quot;]                      bcd_name = &quot;\\\\g&lt;1&gt;&quot; + bcd_name[0] + &quot;\\\\g&lt;3&gt;&quot; + bcd_name[1] + &quot;\\\\g&lt;5&gt;&quot; + bcd_name[2]                     data = open( tl_file_name, 'rb').read()                     out = pat2.sub( bcd_name, data )                 else:                     if len(profile.kernel_options[&quot;bootmgr&quot;]) != 5:                         logger.error( &quot;The loader name should be EXACTLY 5 character&quot; )                         return 1                      if len(profile.kernel_options[&quot;sif&quot;]) != 9:                         logger.error( &quot;The response should be EXACTLY 9 character&quot; )                         return 1                      tl_file_name = os.path.join( distro_path, 'setupldr.exe' )                     pat1 = re.compile( r'NTLDR', re.IGNORECASE )                     pat2 = re.compile( r'winnt\\.sif', re.IGNORECASE)                      data = open( tl_file_name, 'rb').read()                     out = pat2.sub( profile.kernel_options[&quot;sif&quot;], data )                  logger.info( 'Build Loader: ' + wl_file_name )                  if out != data:                     open(wl_file_name, 'wb+').write(out)                  if distro.os_version in ( &quot;7&quot;, &quot;2008&quot;, &quot;8&quot;, &quot;2012&quot; ):                     pe =  pefile.PE( wl_file_name, fast_load=True )                     pe.OPTIONAL_HEADER.CheckSum = pe.generate_checksum()                     pe.write( filename=wl_file_name )                  data = open(distro.kernel, 'rb').read()                 out = pat1.sub( profile.kernel_options[&quot;bootmgr&quot;], data )                  if out != data:                     open(wk_file_name, 'wb+').write(out)              if profile.kernel_options.has_key( &quot;bcd&quot; ):                 obcd_file_name = os.path.join( distro_path, 'boot', 'BCD' )                 bcd_file_name = os.path.join( distro_path, 'boot', profile.kernel_options[&quot;bcd&quot;] )                 wim_file_name = 'winpe.wim'                  if profile.kernel_options.has_key( &quot;winpe&quot; ):                     wim_file_name = profile.kernel_options[&quot;winpe&quot;]                  wim_file_name = os.path.join( '\/winos', distro.name, 'boot', wim_file_name )                 sdi_file_name = os.path.join( '\/winos', distro.name, 'boot', 'boot.sdi' )                 logger.info( 'Build BCD: ' + bcd_file_name + ' for ' + wim_file_name )                  cmd = &quot;\/usr\/bin\/cp &quot; + obcd_file_name + &quot; &quot; + bcd_file_name                 rc = utils.subprocess_call( logger, cmd, shell=True )                 cmd = bcdedit + &quot; &quot; + bcd_file_name + &quot; &quot; +  wim_file_name + &quot; &quot; + sdi_file_name                 rc = utils.subprocess_call( logger, cmd, shell=True )                  ps_file_name = os.path.join( distro_path, &quot;boot&quot;,  profile.kernel_options[&quot;winpe&quot;] )                  if distro.os_version in ( &quot;7&quot;, &quot;2008&quot; ):                     wim_pl_name = wim7_template_name                 elif distro.os_version in ( &quot;8&quot;, &quot;2012&quot; ):                     wim_pl_name = wim8_template_name                  cmd = &quot;\/usr\/bin\/cp &quot; + wim_pl_name + &quot; &quot; + ps_file_name                 rc = utils.subprocess_call( logger, cmd, shell=True )                  if os.path.exists( wimlib ):                     cmd = wimlib_mount + &quot; &quot; + ps_file_name + &quot; &quot; + mount_point                     rc = utils.subprocess_call( logger, cmd, shell=True )                      data = templ.render( tmplstart_data, meta, None, profile )                     pi_file = open( mount_point + &quot;\/Windows\/System32\/startnet.cmd&quot;, &quot;w+&quot; )                     pi_file.write( data )                     pi_file.close()                      cmd = wimlib_umount + &quot; &quot; + mount_point + &quot; --commit --rebuild&quot;                     rc = utils.subprocess_get( logger, cmd, shell=True )     return 0 <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u042d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 python \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0439 Cobbler API. \u0414\u043b\u044f \u0441\u0432\u043e\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 pefile \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u043e\u0439 \u0441\u0443\u043c\u043c\u044b \u0432 bootmgr.exe, bcdedit.pl \u0434\u043b\u044f \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 BCD \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 wimlib \u0434\u043b\u044f \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0437\u0430 \u0438 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0438\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0444\u0430\u0439\u043b\u0430 startnet.cmd \u0432 \u043f\u0430\u043f\u043a\u0443 Windows\/System32.<\/p>\n<p>  \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b:  <\/p>\n<pre><code class=\"bash\"> # mkdir \/mnt\/wim # systemctl restart  cobblerd # cobbler sync # systemctl restart xinetd <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0443 \u0441 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0435\u0439 \u043f\u043e \u0441\u0435\u0442\u0438, \u043b\u0438\u0431\u043e \u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u043e\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435 \u0436\u043c\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0438 Reset, F12 (\u043d\u0443 \u0438\u043b\u0438 \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u0432 BIOS \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u0446\u0435\u043b\u0435\u0439 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u043e), \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0439 \u043f\u0443\u043d\u043a\u0442 \u0432 \u043c\u0435\u043d\u044e \u0438 \u043d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0435\u043c\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0435\u0439 \u043a\u0430\u043a Linux \u0442\u0430\u043a \u0438 Windows.<\/p>\n<p>  \u041f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u043d\u0435\u0441\u0442\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0435\u0439 \u043a\u043e\u0434\u0430 \u0432 win.ks. \u0423 \u043c\u0435\u043d\u044f \u0432 \u0448\u0430\u043f\u043a\u0435 \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0434\u0435\u0442 \u043e\u0431\u0449\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043d\u0443\u0436\u043d\u0430\u044f \u043f\u0440\u0438 \u043b\u044e\u0431\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438, \u0432 \u043f\u043e\u0442\u043e\u043c \u0434\u043b\u0438\u043d\u043d\u044b\u0439 if\/else:  <\/p>\n<pre><code class=\"bash\"> #if $profile_name == '&lt;profile_name1&gt;' &lt;code&gt; #elseif $profile_name == '&lt;profile_name2&gt;' &lt;code&gt; . . . #elseif $profile_name == '&lt;profile_nameN&gt;' &lt;code&gt; #end if <\/code><\/pre>\n<p>  \u0414\u0443\u0431\u043b\u0438\u0440\u0443\u044e\u0449\u0435\u0439\u0441\u044f, \u043b\u0438\u0431\u043e \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430\u043c\u043a\u043d\u0443\u0442\u044b\u0439 \u043a\u043e\u0434 \u0432\u044b\u043d\u0435\u0441\u0435\u043d \u0432 \u0441\u043d\u0438\u043f\u0435\u0442\u044b.<\/p>\n<h4>\u0427\u0435\u0433\u043e \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442<\/h4>\n<p>  <\/p>\n<ol>\n<li>\u041d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438\u043c\u043f\u043e\u0440\u0442 Windows \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430. \u041d\u043e\u0432\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 Microsoft \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043d\u0435 \u0442\u0430\u043a \u0443\u0436 \u0438 \u0447\u0430\u0441\u0442\u043e, \u0442\u0430\u043a \u0447\u0442\u043e \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0436\u0438\u0442\u044c.<\/li>\n<li>\u041d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c (\u0434\u0430\u0436\u0435 \u043d\u0435 \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c) \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 ISO \u043e\u0431\u0440\u0430\u0437\u0430 Windows \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430.<\/li>\n<li>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f PXE \u043c\u0435\u043d\u044e \u0432 cobbler \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 Windows \u043f\u0440\u043e\u0444\u0438\u043b\u0435\u0439 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e.<\/li>\n<li>\u0415\u0441\u043b\u0438 \u043d\u0435 \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043c\u0435\u043d \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \/etc\/tftpd.rules. \u0410 \u043f\u0440\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0438 \u0438\u043c\u0435\u043d \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430, \u0444\u0430\u0439\u043b\u044b \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u043c\u043e\u0433\u0443\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043f\u0440\u043e\u0444\u0438\u043b\u044f.<\/li>\n<\/ol>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/263883\/\"> http:\/\/habrahabr.ru\/post\/263883\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \tCobbler \u2014 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0432 \u043c\u0438\u0440\u0435 Linux, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a Install Server, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u043f\u043e \u0441\u0435\u0442\u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 Linux. \u0415\u0441\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0439 FreeBSD, VMware, Xen \u0438 Nexenta.<\/p>\n<p>  \u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043d\u0435\u0433\u043e \u0442\u0430\u043a\u0436\u0435 \u0433\u0438\u0431\u043a\u043e \u0438 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u0441 \u0440\u0430\u0437\u043d\u044b\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 Windows (XP, 2003, 7, 8, 2008, 2012).<\/p>\n<p>  \u041f\u0440\u043e \u0442\u043e \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c cobbler \u0434\u043b\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 Linux \u0438\u0441\u0447\u0435\u0440\u043f\u044b\u0432\u0430\u044e\u0449\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043d\u0430 \u0435\u0433\u043e \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435 \u2014 <a href=\"https:\/\/cobbler.github.io\">https:\/\/cobbler.github.io<\/a>. \u042f \u0436\u0435 \u0437\u0434\u0435\u0441\u044c \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0443\u0441\u044c \u043d\u0430 \u0441\u0432\u043e\u0435\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e Windows.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-263370","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/263370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=263370"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/263370\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=263370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=263370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=263370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}