{"id":350684,"date":"2023-07-24T09:00:37","date_gmt":"2023-07-24T09:00:37","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=350684"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=350684","title":{"rendered":"<span>PXE \u0434\u0435\u043f\u043b\u043e\u0439 ESXI-Foreman<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e98\/f31\/96d\/e98f3196dca3fb11a99f6f3c8f46f152.png\" width=\"1600\" height=\"900\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e98\/f31\/96d\/e98f3196dca3fb11a99f6f3c8f46f152.png\"\/><\/figure>\n<p><strong>\u0410\u0432\u0442\u043e\u0440: \u0410\u0432\u0442\u043e\u0440 \u2014 \u0421\u0443\u043b\u0442\u0430\u043d \u0423\u0441\u043c\u0430\u043d\u043e\u0432, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442 \u043e\u0442\u0434\u0435\u043b\u0430 DevOps \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 <\/strong><a href=\"https:\/\/hostkey.ru\/\"><strong><u>Hostkey<\/u><\/strong><\/a><strong>\u00a0<\/strong><\/p>\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439 \u0448\u0438\u0440\u043e\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0432 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432. \u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u044d\u0442\u0438\u043c \u043c\u044b \u043f\u0440\u0438\u043d\u044f\u043b\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e VMware ESXi. \u041f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u0434\u0432\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430: Legacy \u0438 UEFI.<\/p>\n<p>\u0414\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043c\u044b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c <a href=\"https:\/\/theforeman.org\/\"><u>Foreman<\/u><\/a> \u2014 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u043c \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u043d\u044b\u043c \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u044b\u043c \u0446\u0438\u043a\u043b\u043e\u043c \u0441\u0438\u0441\u0442\u0435\u043c. \u041e\u043d \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432.\u00a0<\/p>\n<h2>\u0420\u0435\u0436\u0438\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 Legacy<\/h2>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0433\u0438\u043f\u0435\u0440\u0432\u0438\u0437\u043e\u0440\u0430 <a href=\"https:\/\/docs.vmware.com\/en\/VMware-vSphere\/8.0\/rn\/vsphere-esxi-80a-release-notes\/index.html\"><u>VMware ESXi 8.0<\/u><\/a>. \u0411\u044b\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/778\/ca2\/833\/778ca28334d15e13de3ab89017755fc5.png\" width=\"786\" height=\"388\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/778\/ca2\/833\/778ca28334d15e13de3ab89017755fc5.png\"\/><\/figure>\n<p>\u0417\u0430\u0442\u0435\u043c \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u044b \u0448\u0430\u0431\u043b\u043e\u043d\u044b:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d3a\/67c\/583\/d3a67c583106048e9f2d3ff964907d99.png\" width=\"746\" height=\"200\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d3a\/67c\/583\/d3a67c583106048e9f2d3ff964907d99.png\"\/><\/figure>\n<h4>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u043c<\/h4>\n<p>\u0428\u0430\u0431\u043b\u043e\u043d \u2014 default_provision_ESXi. \u041e\u0441\u043d\u043e\u0432\u0430\u043d \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441 <a href=\"https:\/\/theforeman.org\/2018\/08\/deploying-esxi-through-foreman.html\"><u>\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 Foreman<\/u><\/a> <strong>(\u0440\u0430\u0437\u0434\u0435\u043b Create the Kickstart Template)<\/strong> \u0438 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u043f\u043e\u0434 \u043d\u0430\u0448 \u0434\u0435\u043f\u043b\u043e\u0439:<\/p>\n<pre><code class=\"ruby\">&lt;%# kind: provision name: default_provision_ESXi model: ProvisioningTemplate oses: - ESXi -%> #Accept VMware License agreement accepteula # Set the root password rootpw &lt;%= host_param('password')%> # Install ESXi on the first disk (Local first, then remote then USB) install --firstdisk=local --overwritevmfs --ignoreprereqwarnings --ignoreprereqerrors --forceunsupportedinstall # Set the keyboard #keyboard French #vmserialnum --esx=PUT IN YOUR LICENSE KEY # Set the network network --bootproto=dhcp # reboot the host after installation is completed reboot %pre --interpreter=busybox  #esxcli network firewall set --enabled false # run the following command only on the firstboot %firstboot --interpreter=busybox sleep 10 # enable &amp; start remote ESXi Shell (SSH) vim-cmd hostsvc\/enable_ssh vim-cmd hostsvc\/start_ssh # enable &amp; start ESXi Shell (TSM) vim-cmd hostsvc\/enable_esx_shell vim-cmd hostsvc\/start_esx_shell # supress ESXi Shell shell warning \u2014 Thanks to Duncan (http:\/\/www.yellow-bricks.com\/2011\/07\/21\/esxi-5-suppressing-the-localremote-shell-warning\/) esxcli network firewall set --enabled false esxcli system settings advanced set -o \/UserVars\/SuppressShellWarning -i 1 #FQDN=\"${HostName}.${SuffixDNS}\" # set static IP + default route + DNS sleep 10 esxcli network ip interface ipv4 set --interface-name=vmk0 --type=static --ipv4=&lt;%= host_param('ip')%> --netmask=&lt;%= host_param('netmask')%> esxcli network ip route ipv4 add --gateway &lt;%= host_param('gateway')%> --network 0.0.0.0\/0 esxcli network ip dns server add --server &lt;%= @host.subnet.dns_primary %> # Set VLAN ID #esxcli network vswitch standard portgroup set --portgroup-name \"Management Network\" --vlan-id 50 #Disable ipv6 esxcli network ip set --ipv6-enabled=0 # set suffix and FQDN host configuration esxcli system hostname set --fqdn=&lt;%= @host.name %> esxcli network ip dns search add --domain=&lt;%= @host.name %>} #user creation esxcli system account add -i user -p &lt;%= host_param('password')%> -c &lt;%= host_param('password')%> esxcli system permission set --id user -r Admin # NTP Configuration (thanks to http:\/\/www.virtuallyghetto.com) cat > \/etc\/ntp.conf &lt;&lt; __NTP_CONFIG__ restrict default kod nomodify notrap noquerynopeer restrict 127.0.0.1 server &lt;%= host_param('ntp_server1')%> server &lt;%= host_param('ntp_server2')%> __NTP_CONFIG__ \/sbin\/chkconfig ntpd on # rename local datastore to something more meaningful vim-cmd hostsvc\/datastore\/rename datastore1 \"Local \u2014 $(hostname -s)\" esxcli network firewall set --enabled true # restart a last time reboot<\/code><\/pre>\n<p><strong>\u042d\u0442\u043e\u0442 \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/strong><\/p>\n<ol>\n<li>\n<p>\u0417\u0430\u0434\u0430\u0435\u0442 \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f root.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u0438\u0441\u043a, \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0435\u0442\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0438\u043c\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 root \u0438 \u043f\u0430\u0440\u043e\u043b\u0435\u043c.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u044b \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0418\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u0438\u043c\u044f \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u0440\u0432\u043e\u043b.<\/p>\n<\/li>\n<\/ol>\n<p>\u0428\u0430\u0431\u043b\u043e\u043d \u2014 <strong>default_PXELinux_ESXi<\/strong>. \u041e\u0441\u043d\u043e\u0432\u0430\u043d \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441 <a href=\"https:\/\/theforeman.org\/2018\/08\/deploying-esxi-through-foreman.html\"><u>\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 Foreman<\/u><\/a> (\u0440\u0430\u0437\u0434\u0435\u043b <strong>Create provisioning templates<\/strong>) \u0438 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u043f\u043e\u0434 \u043d\u0430\u0448 \u0434\u0435\u043f\u043b\u043e\u0439:<\/p>\n<pre><code>TIMEOUT 10 DEFAULT default_PXELinux_ESXI  LABEL default_PXELinux_ESXI    KERNEL boot\/esxi\/8.0\/mboot.c32    APPEND -c boot\/esxi\/8.0\/boot2.cfg ks=http:\/\/\u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043e\u0442\u043a\u0443\u0434\u0430 \u043c\u044b \u0437\u0430\u0431\u0438\u0440\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0441 \u0430\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\/unattended\/provision   IPAPPEND 2<\/code><\/pre>\n<p>\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430:<\/p>\n<ul>\n<li>\n<p>\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 Legacy-\u043e\u0431\u0440\u0430\u0437\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043c\u044b \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u043b\u0438 \u0435\u0433\u043e \u043f\u043e \u043f\u0443\u0442\u0438 <strong>\/var\/lib\/tftpboot\/boot\/esxi\/8.0<\/strong>. \u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0430 \u043d\u0430\u0448 Foreman, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0438\u0437 ISO-\u043e\u0431\u0440\u0430\u0437\u0430. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0432\u0430\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0438 \u043f\u0430\u043f\u043a\u0438 \u0432 \u043d\u0438\u0436\u043d\u0438\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440, \u0442\u0430\u043a \u043a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u044c \u0444\u0430\u0439\u043b\u044b, \u0435\u0441\u043b\u0438 \u0438\u0445 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u044b\u0435 \u0431\u0443\u043a\u0432\u044b. \u041e\u0441\u043e\u0431\u043e\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0443\u0434\u0435\u043b\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0443 boot.cfg, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043e\u0442\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443:<\/p>\n<pre><code>bootstate=0 title=Loading ESXi installer timeout=5 prefix= kernel=.\/b.b00 kernelopt=runweasel cdromBoot  allowLegacyCPU=true modules=.\/jumpstrt.gz --- .\/useropts.gz --- .\/features.gz --- .\/k.b00 --- .\/uc_intel.b00 --- .\/uc_amd.b00 --- .\/uc_hygon.b00 --- .\/procfs.b00 --- .\/vmx.v00 --- .\/vim.v00 --- .\/tpm.v00 --- .\/sb.v00 --- .\/s.v00 --- .\/atlantic.v00 --- .\/bcm_mpi3.v00 --- .\/bnxtnet.v00 --- .\/bnxtroce.v00 --- .\/brcmfcoe.v00 --- .\/cndi_igc.v00 --- .\/dwi2c.v00 --- .\/elxiscsi.v00 --- .\/elxnet.v00 --- .\/i40en.v00 --- .\/iavmd.v00 --- .\/icen.v00 --- .\/igbn.v00 --- .\/intelgpi.v00 --- .\/ionic_en.v00 --- .\/irdman.v00 --- .\/iser.v00 --- .\/ixgben.v00 --- .\/lpfc.v00 --- .\/lpnic.v00 --- .\/lsi_mr3.v00 --- .\/lsi_msgp.v00 --- .\/lsi_msgp.v01 --- .\/lsi_msgp.v02 --- .\/mtip32xx.v00 --- .\/ne1000.v00 --- .\/nenic.v00 --- .\/nfnic.v00 --- .\/nhpsa.v00 --- .\/nmlx5_co.v00 --- .\/nmlx5_rd.v00 --- .\/ntg3.v00 --- .\/nvme_pci.v00 --- .\/nvmerdma.v00 --- .\/nvmetcp.v00 --- .\/nvmxnet3.v00 --- .\/nvmxnet3.v01 --- .\/pvscsi.v00 --- .\/qcnic.v00 --- .\/qedentv.v00 --- .\/qedrntv.v00 --- .\/qfle3.v00 --- .\/qfle3f.v00 --- .\/qfle3i.v00 --- .\/qflge.v00 --- .\/rdmahl.v00 --- .\/rste.v00 --- .\/sfvmk.v00 --- .\/smartpqi.v00 --- .\/vmkata.v00 --- .\/vmksdhci.v00 --- .\/vmkusb.v00 --- .\/vmw_ahci.v00 --- .\/bmcal.v00 --- .\/clusters.v00 --- .\/crx.v00 --- .\/elx_esx_.v00 --- .\/btldr.v00 --- .\/esx_dvfi.v00 --- .\/esx_ui.v00 --- .\/esxupdt.v00 --- .\/tpmesxup.v00 --- .\/weaselin.v00 --- .\/esxio_co.v00 --- .\/loadesx.v00 --- .\/lsuv2_hp.v00 --- .\/lsuv2_in.v00 --- .\/lsuv2_ls.v00 --- .\/lsuv2_nv.v00 --- .\/lsuv2_oe.v00 --- .\/lsuv2_oe.v01 --- .\/lsuv2_sm.v00 --- .\/native_m.v00 --- .\/qlnative.v00 --- .\/trx.v00 --- .\/vdfs.v00 --- .\/vds_vsip.v00 --- .\/vmware_e.v00 --- .\/vsan.v00 --- .\/vsanheal.v00 --- .\/vsanmgmt.v00 --- .\/tools.t00 --- .\/xorg.v00 --- .\/gc.v00 --- .\/imgdb.tgz --- .\/basemisc.tgz --- .\/resvibs.tgz --- .\/esxiodpt.tgz --- .\/imgpayld.tgz build=8.0.1-0.0.21495797 updated=0<\/code><\/pre>\n<p>\u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0442\u0430\u043a\u0436\u0435 \u043e\u043f\u0438\u0441\u0430\u043d \u043d\u0430<a href=\"https:\/\/theforeman.org\/2018\/08\/deploying-esxi-through-foreman.html\"><u> \u0441\u0430\u0439\u0442\u0435 Foreman<\/u><\/a> \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <strong>ESXi installation in Legacy BIOS mode. <\/strong>\u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432<strong>, <\/strong>\u043c\u044b \u043d\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0438 bootloader \u0438 \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438. \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u2014 <strong>\/usr\/share\/foreman\/app\/models\/concerns\/pxe_loader_support.rb<\/strong>.<\/p>\n<pre><code class=\"ruby\">def all_loaders_map(precision = 'x64')   {     \"None\" => \"\",     \"PXELinux BIOS\" => \"pxelinux.0\",     \"PXELinux UEFI\" => \"pxelinux.efi\",     \"PXELinux Alt BIOS\" => \"syslinux386\/pxelinux.0\", # Add this line     ...<\/code><\/pre>\n<p>\u0412 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043c\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043b\u0438 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u043c\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438. \u041e\u0434\u043d\u0430\u043a\u043e \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <strong>Family<\/strong> \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043c\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438 <strong>RedHat<\/strong>. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0435\u043d\u0438\u044e \u043d\u0430\u043c \u043d\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0432\u043d\u043e\u0441\u0438\u0442\u044c \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f77\/228\/645\/f77228645dd17616fc1b2d8e7914a03b.png\" width=\"671\" height=\"235\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f77\/228\/645\/f77228645dd17616fc1b2d8e7914a03b.png\"\/><\/figure>\n<p>\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 \u0432 Legacy:<strong> \/var\/lib\/tftpboot\/pxelinux.cfg\/ MAC-\u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/strong>:<\/p>\n<pre><code>TIMEOUT 10 DEFAULT default_PXELinux_ESXI  LABEL default_PXELinux_ESXI    KERNEL boot\/esxi\/8.0\/mboot.c32    APPEND -c boot\/esxi\/8.0\/boot2.cfg ks=http:\/\/\u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043e\u0442\u043a\u0443\u0434\u0430 \u043c\u044b \u0437\u0430\u0431\u0438\u0440\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0441 \u0430\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\/unattended\/provision   IPAPPEND 2<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e49\/8a3\/a79\/e498a3a7993272fd3ccea390dc3ce638.png\" width=\"638\" height=\"153\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e49\/8a3\/a79\/e498a3a7993272fd3ccea390dc3ce638.png\"\/><\/figure>\n<p>\u0417\u0430\u0442\u0435\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d \u0444\u0430\u0439\u043b kickstart (ks=http:\/\/\u0430\u0434\u0440\u0435\u0441_\u0441\u0435\u0440\u0432\u0435\u0440\u0430\/unattended\/provision). \u042d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0430\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <strong>APPEND<\/strong> \u0444\u0430\u0439\u043b\u0430 default_PXELinux_ESXI.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0433\u0438\u043f\u0435\u0440\u0432\u0438\u0437\u043e\u0440\u043e\u043c ESXi, \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0443\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0435 <strong>default_provision_ESXi<\/strong>:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/01d\/b12\/7b9\/01db127b9564b5634aef9cd7ec12707a.png\" width=\"482\" height=\"382\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/01d\/b12\/7b9\/01db127b9564b5634aef9cd7ec12707a.png\"\/><\/figure>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432 UEFI-\u0440\u0435\u0436\u0438\u043c\u0435<\/h2>\n<p>\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 VMware ESXi \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0430 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043a\u0430\u043a \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 Legacy, \u0442\u0430\u043a \u0438 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 UEFI. \u041d\u0430 \u0440\u0430\u043d\u0435\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430\u0445 \u043c\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 <strong>Grub2_Default<\/strong>, \u043d\u043e \u043d\u0435 \u0434\u0430\u043b\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e \u043d\u0435\u043c\u0443. \u041e\u043d \u0441\u043b\u0443\u0436\u0438\u0442 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 UEFI. Foreman \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0438\u043c\u0435\u043d\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b: \u0435\u0441\u043b\u0438 \u043e\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 ESXi, \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u0432\u0438\u0434\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 LiveCD.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 LiveCD \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438:<\/p>\n<ol>\n<li>\n<p>\u0422\u0438\u043f \u0434\u0438\u0441\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0438\u0441\u043a \u0434\u0438\u0441\u043a\u0430 \u0441 \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0438\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c, \u043d\u043e \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 20 \u0413\u0411.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0442\u043e\u043c\u0430 (logical volume) \u0438\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0442\u043e\u043c\u043e\u0432 (volume group) \u043d\u0430 \u0434\u0438\u0441\u043a\u0435. \u0415\u0441\u043b\u0438 \u0442\u0430\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442, \u043e\u043d\u0438 \u0443\u0434\u0430\u043b\u044f\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u0434\u0438\u0441\u043a\u0430.<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0434\u0438\u0441\u043a\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0440\u0430\u0437\u0434\u0435\u043b \u0434\u043b\u044f \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f UEFI-\u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430. \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0430 \u0447\u0430\u0441\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u0430:<\/p>\n<pre><code class=\"bash\">    parted -s \/dev\/${INST_DRIVE} mklabel gpt mkpart fat32 1MiB 1GiB set 1 esp on     EFI_PART=$(lsblk -l | grep \"${INST_DRIVE}\" | grep part | awk '{print $1}')     mkdir -p \/mnt\/{iso,efipart,wim}     wget ${medium_uri}\/${branch}\/esxi${os_version}pe.iso     mount -o loop esxi${os_version}pe.iso \/mnt\/iso     mkfs.fat -F32 \/dev\/$EFI_PART     mount \/dev\/$EFI_PART \/mnt\/efipart     mkdir -p \/mnt\/efipart\/EFI\/redhat\/     mkdir -p \/mnt\/efipart\/kickstart     rsync -r \/mnt\/iso\/ \/mnt\/efipart\/      cp \/mnt\/efipart\/EFI\/BOOT\/BOOTX64.EFI \/mnt\/efipart\/EFI\/redhat\/grubx64.efi     cp \/mnt\/efipart\/EFI\/BOOT\/CRYPTO64.EFI \/mnt\/efipart\/EFI\/redhat\/crypto64.efi     cp \/mnt\/efipart\/EFI\/BOOT\/SAFEBOOT.EFI \/mnt\/efipart\/EFI\/redhat\/safeboot.efi     cp \/mnt\/efipart\/boot.cfg \/mnt\/efipart\/EFI\/redhat\/boot.cfg      curl -s \"http:\/\/${foreman_fqdn}\/unattended\/provision?token=${foreman_token}\" >> \/mnt\/efipart\/kickstart\/ks.cfg     tar -czf \/mnt\/efipart\/kickstart.gz --directory=\/mnt\/efipart kickstart        ###sed -i \"s#kernelopt=runweasel cdromBoot#kernelopt=ks=file:\/\/kickstart\/ks.cfg#g\" \/mnt\/efipart\/EFI\/redhat\/boot.cfg ##for 7.3     sed -i \"s#^kernelopt.*#kernelopt=ks=file:\/\/kickstart\/ks.cfg#g\" \/mnt\/efipart\/EFI\/redhat\/boot.cfg     sed -ie 's#^modules.*$#&amp; --- \/kickstart.gz#g' \/mnt\/efipart\/EFI\/redhat\/boot.cfg      umount \/mnt\/iso     rm esxi${os_version}pe.iso     \/usr\/bin\/env wget --no-proxy --quiet --output-document=\/dev\/null --no-check-certificate \"http:\/\/${foreman_fqdn}\/unattended\/built?token=${foreman_token}\"     umount \/mnt\/efipart  sync fi reboot <\/code><\/pre>\n<p><strong>\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442:<\/strong><\/p>\n<ol>\n<li>\n<p>\u041d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0440\u0430\u0437\u0434\u0435\u043b FAT32 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 1 \u0413\u0431.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u0442 \u0442\u043e\u0447\u043a\u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f: iso, efipart, wim \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \/mnt.<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u043f\u0438\u0440\u0443\u0435\u0442 \u0441 \u043d\u0430\u0448\u0435\u0433\u043e \u0437\u0435\u0440\u043a\u0430\u043b\u0430 ISO-\u043e\u0431\u0440\u0430\u0437 \u0441 ESXi 8.0 \u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u0442 \u0435\u0433\u043e \u0432 \u00a0\/mnt\/iso.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u0442 \u0440\u0430\u0437\u0434\u0435\u043b FAT32\u00a0 \u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u0442 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b \/mnt\/efipart.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 Foreman \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439: \/mnt\/efipart\/EFI\/redhat\/ \u0438 \/mnt\/efipart\/kickstart.<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u043f\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 ISO-\u043e\u0431\u0440\u0430\u0437\u0430 \u0432 \/mnt\/efipart\/.<\/p>\n<\/li>\n<li>\n<p>\u0412 \u0440\u0430\u043d\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442\u0441\u044f:<\/p>\n<ul>\n<li>\n<p>cp \/mnt\/efipart\/EFI\/BOOT\/BOOTX64.EFI \/mnt\/efipart\/EFI\/redhat\/grubx64.efi \u2014 EFI-\u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a;<\/p>\n<\/li>\n<li>\n<p>cp \/mnt\/efipart\/EFI\/BOOT\/CRYPTO64.EFI \/mnt\/efipart\/EFI\/redhat\/crypto64.efi \u2014 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043c\u043e\u0434\u0443\u043b\u044c;<\/p>\n<\/li>\n<li>\n<p>cp \/mnt\/efipart\/EFI\/BOOT\/SAFEBOOT.EFI \/mnt\/efipart\/EFI\/redhat\/safeboot.efi \u2014 \u0444\u0430\u0439\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438. \u041c\u0430\u0448\u0438\u043d\u0430 \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u043b\u0438\u0431\u043e \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u0438\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 UEFI, \u0435\u0441\u043b\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u0438;<\/p>\n<\/li>\n<li>\n<p>cp \/mnt\/efipart\/boot.cfg \/mnt\/efipart\/EFI\/redhat\/boot.cfg \u2014 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u044f\u0434\u0440\u0430.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0441 \u043d\u0430\u0448\u0435\u0433\u043e Foreman \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d <strong>default_provision_ESXi <\/strong>\u0441\u043e \u0432\u0441\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442 \u0435\u0433\u043e \u0432 \u0444\u0430\u0439\u043b \/mnt\/efipart\/kickstart\/ks.cfg.<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u0432 \u0430\u0440\u0445\u0438\u0432 \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <strong>kickstart.gz <\/strong>\u0438 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442 \u0435\u0433\u043e \u0432\u043c\u0435\u0441\u0442\u0435 \u0441\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c\u0438 \u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438<strong> ESXI<\/strong> \u0432 \u0440\u0430\u0437\u0434\u0435\u043b<strong> UEFI \u2014 \/mnt\/efipart<\/strong>.<\/p>\n<\/li>\n<li>\n<p>\u00a0\u041f\u043e\u0434\u043c\u0435\u043d\u044f\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 <strong>kernelopt <\/strong>\u0441\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u2014 <strong>runweasel cdromBoot<\/strong> \u043d\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u043d\u0430\u0448\u0435\u0433\u043e<strong> kickstart<\/strong> \u0444\u0430\u0439\u043b\u0430<strong> ks.cfg<\/strong> \u0432 <strong>boot.cfg<\/strong>.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 <strong>boot.cfg <\/strong>\u0444\u0430\u0439\u043b \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043d\u043e\u0432\u043e\u043c \u043c\u043e\u0434\u0443\u043b\u0435 <strong>kickstart.gz<\/strong>.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u0442 \u0440\u0430\u0437\u0434\u0435\u043b \/mnt\/iso.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0434\u0430\u043b\u044f\u0435\u0442 ISO-\u043e\u0431\u0440\u0430\u0437.<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432 Foreman \u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u0432 \u0441\u0442\u0430\u0442\u0443\u0441 Installed.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u0442 \u0440\u0430\u0437\u0434\u0435\u043b \/mnt\/efipart.<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443.<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u0440\u0430\u0437\u0434\u0435\u043b UEFI \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0441 \u043d\u0435\u0433\u043e. \u0417\u0430\u0442\u0435\u043c \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u0435\u043d\u044e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 Foreman, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u043d \u0438\u0449\u0435\u0442 \u0440\u0430\u0437\u0434\u0435\u043b, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2014 <strong>redhat<\/strong>.<\/p>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0440 \u043c\u0435\u043d\u044e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u043d\u0438\u0436\u0435:<\/strong><\/p>\n<pre><code>set default=local set timeout=20 echo Default PXE local template entry is set to 'local'  insmod part_gpt insmod fat insmod chain  echo \"VMWare hosts with QuickBoot feature enabled may not find the local ESP\" echo \"partition due to not initializing all the EFI devices. To workaround, upgrade\" echo \"to the latest grub2 (*) and uncomment \"connectefi scsi\" statement in the\" echo \"grub2_chainload template.\" echo echo \"Virtual or physical hosts using Software RAID for the ESP partition may try\" echo \"booting on the Software RAID, which will fail. To workaround, upgrade to the\" echo \"latest grub2 (*) and add \"--efidisk-only\" argument to the \"search\" command in\" echo \"the grub2_chainload template.\" echo echo \"(*) grub2-efi-x64-2.02-122.el8 (upstream doesn't have the patches yet)\" echo #connectefi scsi  menuentry 'Chainload Grub2 EFI from ESP' --id local_chain_hd0 {   echo \"Chainloading Grub2 EFI from ESP, enabled devices for booting:\"   ls   echo \"Trying \/EFI\/fedora\/shim.efi \"   unset chroot   # add --efidisk-only when using Software RAID   search --file --no-floppy --set=chroot \/EFI\/fedora\/shim.efi   if [ -f ($chroot)\/EFI\/fedora\/shim.efi ]; then     chainloader ($chroot)\/EFI\/fedora\/shim.efi     echo \"Found \/EFI\/fedora\/shim.efi at $chroot, attempting to chainboot it...\"     sleep 2     boot   fi   echo \"Trying \/EFI\/fedora\/grubx64.efi \"   unset chroot   # add --efidisk-only when using Software RAID   search --file --no-floppy --set=chroot \/EFI\/fedora\/grubx64.efi   if [ -f ($chroot)\/EFI\/fedora\/grubx64.efi ]; then     chainloader ($chroot)\/EFI\/fedora\/grubx64.efi     echo \"Found \/EFI\/fedora\/grubx64.efi at $chroot, attempting to chainboot it...\"     sleep 2     boot   fi   echo \"Trying \/EFI\/redhat\/shim.efi \"   unset chroot   # add --efidisk-only when using Software RAID   search --file --no-floppy --set=chroot \/EFI\/redhat\/shim.efi   if [ -f ($chroot)\/EFI\/redhat\/shim.efi ]; then     chainloader ($chroot)\/EFI\/redhat\/shim.efi     echo \"Found \/EFI\/redhat\/shim.efi at $chroot, attempting to chainboot it...\"     sleep 2     boot   fi   echo \"Trying \/EFI\/redhat\/grubx64.efi \"   unset chroot   # add --efidisk-only when using Software RAID   search --file --no-floppy --set=chroot \/EFI\/redhat\/grubx64.efi   if [ -f ($chroot)\/EFI\/redhat\/grubx64.efi ]; then     chainloader ($chroot)\/EFI\/redhat\/grubx64.efi     echo \"Found \/EFI\/redhat\/grubx64.efi at $chroot, attempting to chainboot it...\"     sleep 2     boot   fi   echo \"Trying \/EFI\/centos\/shim.efi \"   unset chroot   # add --efidisk-only when using Software RAID   search --file --no-floppy --set=chroot \/EFI\/centos\/shim.efi   if [ -f ($chroot)\/EFI\/centos\/shim.efi ]; then     chainloader ($chroot)\/EFI\/centos\/shim.efi     echo \"Found \/EFI\/centos\/shim.efi at $chroot, attempting to chainboot it...\"     sleep 2     boot   fi   echo \"Trying \/EFI\/centos\/grubx64.efi \"   unset chroot   # add --efidisk-only when using Software RAID   search --file --no-floppy --set=chroot \/EFI\/centos\/grubx64.efi   if [ -f ($chroot)\/EFI\/centos\/grubx64.efi ]; then     chainloader ($chroot)\/EFI\/centos\/grubx64.efi     echo \"Found \/EFI\/centos\/grubx64.efi at $chroot, attempting to chainboot it...\"     sleep 2     boot   fi   echo \"Trying \/EFI\/rocky\/shim.efi \"   unset chroot   # add --efidisk-only when using Software RAID   search --file --no-floppy --set=chroot \/EFI\/rocky\/shim.efi   if [ -f ($chroot)\/EFI\/rocky\/shim.efi ]; then     chainloader ($chroot)\/EFI\/rocky\/shim.efi     echo \"Found \/EFI\/rocky\/shim.efi at $chroot, attempting to chainboot it...\"     sleep 2     boot   fi   echo \"Trying \/EFI\/rocky\/grubx64.efi \"   unset chroot   # add --efidisk-only when using Software RAID   search --file --no-floppy --set=chroot \/EFI\/rocky\/grubx64.efi   if [ -f ($chroot)\/EFI\/rocky\/grubx64.efi ]; then     chainloader ($chroot)\/EFI\/rocky\/grubx64.efi     echo \"Found \/EFI\/rocky\/grubx64.efi at $chroot, attempting to chainboot it...\"     sleep 2     boot   fi   echo \"Trying \/EFI\/debian\/grubx64.efi \"   unset chroot   # add --efidisk-only when using Software RAID   search --file --no-floppy --set=chroot \/EFI\/debian\/grubx64.efi   if [ -f ($chroot)\/EFI\/debian\/grubx64.efi ]; then     chainloader ($chroot)\/EFI\/debian\/grubx64.efi     echo \"Found \/EFI\/debian\/grubx64.efi at $chroot, attempting to chainboot it...\"     sleep 2     boot   fi   echo \"Trying \/EFI\/ubuntu\/grubx64.efi \"   unset chroot   # add --efidisk-only when using Software RAID   search --file --no-floppy --set=chroot \/EFI\/ubuntu\/grubx64.efi   if [ -f ($chroot)\/EFI\/ubuntu\/grubx64.efi ]; then     chainloader ($chroot)\/EFI\/ubuntu\/grubx64.efi     echo \"Found \/EFI\/ubuntu\/grubx64.efi at $chroot, attempting to chainboot it...\"     sleep 2     boot   fi   echo \"Trying \/EFI\/sles\/grubx64.efi \"   unset chroot   # add --efidisk-only when using Software RAID   search --file --no-floppy --set=chroot \/EFI\/sles\/grubx64.efi   if [ -f ($chroot)\/EFI\/sles\/grubx64.efi ]; then     chainloader ($chroot)\/EFI\/sles\/grubx64.efi     echo \"Found \/EFI\/sles\/grubx64.efi at $chroot, attempting to chainboot it...\"     sleep 2     boot   fi   echo \"Trying \/EFI\/opensuse\/grubx64.efi \"   unset chroot   # add --efidisk-only when using Software RAID   search --file --no-floppy --set=chroot \/EFI\/opensuse\/grubx64.efi   if [ -f ($chroot)\/EFI\/opensuse\/grubx64.efi ]; then     chainloader ($chroot)\/EFI\/opensuse\/grubx64.efi     echo \"Found \/EFI\/opensuse\/grubx64.efi at $chroot, attempting to chainboot it...\"     sleep 2     boot   fi   echo \"Trying \/EFI\/Microsoft\/boot\/bootmgfw.efi \"   unset chroot   # add --efidisk-only when using Software RAID   search --file --no-floppy --set=chroot \/EFI\/Microsoft\/boot\/bootmgfw.efi   if [ -f ($chroot)\/EFI\/Microsoft\/boot\/bootmgfw.efi ]; then     chainloader ($chroot)\/EFI\/Microsoft\/boot\/bootmgfw.efi     echo \"Found \/EFI\/Microsoft\/boot\/bootmgfw.efi at $chroot, attempting to chainboot it...\"     sleep 2     boot   fi   echo \"Partition with known EFI file not found, you may want to drop to grub shell\"   echo \"and investigate available files updating 'pxegrub2_chainload' template and\"   echo \"the list of known filepaths for probing. Available devices are:\"   echo   ls   echo   echo \"If you cannot see the HDD, make sure the drive is marked as bootable in EFI and\"   echo \"not hidden. Boot order must be the following:\"   echo \"1) NETWORK\"   echo \"2) HDD\"   echo   echo \"The system will poweroff in 2 minutes or press ESC to poweroff immediately.\"   sleep -i 120   halt }  menuentry 'Chainload into BIOS bootloader on first disk' --id local_chain_legacy_hd0 {   set root=(hd0,0)   chainloader +1   boot }  menuentry 'Chainload into BIOS bootloader on second disk' --id local_chain_legacy_hd1 {   set root=(hd1,0)   chainloader +1   boot }  common=\"rootflags=loop root=live:\/fdi.iso rootfstype=auto ro rd.live.image acpi=force rd.luks=0 rd.md=0 rd.dm=0 rd.lvm=0 rd.bootif=0 rd.neednet=0 nokaslr nomodeset proxy.url=https:\/\/foreman.hostkey.com proxy.type=foreman BOOTIF=01-$net_default_mac\"  if [ ${grub_platform} == \"pc\" ]; then   menuentry 'Foreman Discovery Image' --id discovery {     linux boot\/fdi-image\/vmlinuz0 ${common}     initrd boot\/fdi-image\/initrd0.img   } else   menuentry 'Foreman Discovery Image EFI' --id discovery {     linuxefi boot\/fdi-image\/vmlinuz0 ${common}     initrdefi boot\/fdi-image\/initrd0.img   } fi<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a Foreman \u043f\u0440\u043e\u0448\u0435\u043b \u043f\u043e \u043c\u0435\u043d\u044e \u0438 \u0443\u0432\u0438\u0434\u0435\u043b, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0434\u0435\u043b <strong>redhat <\/strong>\u043d\u0430 \u0434\u0438\u0441\u043a\u0435, \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 ESXi-\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443, \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u043c\u043e\u0434\u0443\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432 \/mnt\/efipart, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0448 <strong>kickstart.gz \u2014 kickstart\/ks.cfg <\/strong>\u0438 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u043a\u0430\u0437\u0430\u043d\u043e, \u043a\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/015\/41a\/01f\/01541a01fbbcf3d9021ca1ce09458e50.png\" width=\"345\" height=\"146\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/015\/41a\/01f\/01541a01fbbcf3d9021ca1ce09458e50.png\"\/><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0433\u0438\u043f\u0435\u0440\u0432\u0438\u0437\u043e\u0440\u043e\u043c ESXi, \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0443\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0435 <strong>default_provision_ESXi<\/strong>:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f21\/a04\/4c2\/f21a044c23ed49acc260ef957f115b46.png\" width=\"482\" height=\"382\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f21\/a04\/4c2\/f21a044c23ed49acc260ef957f115b46.png\"\/><\/figure>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>PXE-\u0434\u0435\u043f\u043b\u043e\u0439 ESXi-Foreman \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 ESXi. \u042d\u0442\u0430 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430\u043c \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>ESXi-Foreman \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 \u0432\u0441\u0435\u043c\u0438 \u044d\u0442\u0430\u043f\u0430\u043c\u0438 \u0434\u0435\u043f\u043b\u043e\u044f \u2014 \u043e\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0434\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e PXE-\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u044b \u043c\u043e\u0433\u0443\u0442 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 ESXi-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0443\u0437\u043b\u0443.<\/p>\n<p>\u042d\u0442\u043e\u0442 \u043f\u043e\u0434\u0445\u043e\u0434 \u0442\u0430\u043a\u0436\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044e \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f, \u0447\u0442\u043e \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0438 \u0441\u043d\u0438\u0436\u0430\u0435\u0442 \u0432\u0440\u0435\u043c\u044f, \u0437\u0430\u0442\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u043e\u0435 \u043d\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, ESXi-Foreman \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0448\u0438\u0440\u043e\u043a\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0435\u0433\u043e \u0433\u0438\u0431\u043a\u0438\u043c \u0438 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0434\u043b\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/companies\/hostkey\/articles\/749482\/\"> https:\/\/habr.com\/ru\/companies\/hostkey\/articles\/749482\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><\/figure>\n<p><strong>\u0410\u0432\u0442\u043e\u0440: \u0410\u0432\u0442\u043e\u0440 \u2014 \u0421\u0443\u043b\u0442\u0430\u043d \u0423\u0441\u043c\u0430\u043d\u043e\u0432, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442 \u043e\u0442\u0434\u0435\u043b\u0430 DevOps \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 <\/strong><a href=\"https:\/\/hostkey.ru\/\"><strong><u>Hostkey<\/u><\/strong><\/a><strong>\u00a0<\/strong><\/p>\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439 \u0448\u0438\u0440\u043e\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0432 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432. \u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u044d\u0442\u0438\u043c \u043c\u044b \u043f\u0440\u0438\u043d\u044f\u043b\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e VMware ESXi. \u041f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u0434\u0432\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430: Legacy \u0438 UEFI.<\/p>\n<p>\u0414\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043c\u044b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c <a href=\"https:\/\/theforeman.org\/\"><u>Foreman<\/u><\/a> \u2014 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u043c \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u043d\u044b\u043c \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u044b\u043c \u0446\u0438\u043a\u043b\u043e\u043c \u0441\u0438\u0441\u0442\u0435\u043c. \u041e\u043d \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432.\u00a0<\/p>\n<h2>\u0420\u0435\u0436\u0438\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 Legacy<\/h2>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0433\u0438\u043f\u0435\u0440\u0432\u0438\u0437\u043e\u0440\u0430 <a href=\"https:\/\/docs.vmware.com\/en\/VMware-vSphere\/8.0\/rn\/vsphere-esxi-80a-release-notes\/index.html\"><u>VMware ESXi 8.0<\/u><\/a>. \u0411\u044b\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0417\u0430\u0442\u0435\u043c \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u044b \u0448\u0430\u0431\u043b\u043e\u043d\u044b:<\/p>\n<figure class=\"full-width\"><\/figure>\n<h4>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u043c<\/h4>\n<p>\u0428\u0430\u0431\u043b\u043e\u043d \u2014 default_provision_ESXi. \u041e\u0441\u043d\u043e\u0432\u0430\u043d \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441 <a href=\"https:\/\/theforeman.org\/2018\/08\/deploying-esxi-through-foreman.html\"><u>\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 Foreman<\/u><\/a> <strong>(\u0440\u0430\u0437\u0434\u0435\u043b Create the Kickstart Template)<\/strong> \u0438 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u043f\u043e\u0434 \u043d\u0430\u0448 \u0434\u0435\u043f\u043b\u043e\u0439:<\/p>\n<pre><code class=\"ruby\">&lt;%# kind: provision name: default_provision_ESXi model: ProvisioningTemplate oses: - ESXi -%> #Accept VMware License agreement accepteula # Set the root password rootpw &lt;%= host_param('password')%> # Install ESXi on the first disk (Local first, then remote then USB) install --firstdisk=local --overwritevmfs --ignoreprereqwarnings --ignoreprereqerrors --forceunsupportedinstall # Set the keyboard #keyboard French #vmserialnum --esx=PUT IN YOUR LICENSE KEY # Set the network network --bootproto=dhcp # reboot the host after installation is completed reboot %pre --interpreter=busybox  #esxcli network firewall set --enabled false # run the following command only on the firstboot %firstboot --interpreter=busybox sleep 10 # enable &amp; start remote ESXi Shell (SSH) vim-cmd hostsvc\/enable_ssh vim-cmd hostsvc\/start_ssh # enable &amp; start ESXi Shell (TSM) vim-cmd hostsvc\/enable_esx_shell vim-cmd hostsvc\/start_esx_shell # supress ESXi Shell shell warning \u2014 Thanks to Duncan (http:\/\/www.yellow-bricks.com\/2011\/07\/21\/esxi-5-suppressing-the-localremote-shell-warning\/) esxcli network firewall set --enabled false esxcli system settings advanced set -o \/UserVars\/SuppressShellWarning -i 1 #FQDN=\"${HostName}.${SuffixDNS}\" # set static IP + default route + DNS sleep 10 esxcli network ip interface ipv4 set --interface-name=vmk0 --type=static --ipv4=&lt;%= host_param('ip')%> --netmask=&lt;%= host_param('netmask')%> esxcli network ip route ipv4 add --gateway &lt;%= host_param('gateway')%> --network 0.0.0.0\/0 esxcli network ip dns server add --server &lt;%= @host.subnet.dns_primary %> # Set VLAN ID #esxcli network vswitch standard portgroup set --portgroup-name \"Management Network\" --vlan-id 50 #Disable ipv6 esxcli network ip set --ipv6-enabled=0 # set suffix and FQDN host configuration esxcli system hostname set --fqdn=&lt;%= @host.name %> esxcli network ip dns search add --domain=&lt;%= @host.name %>} #user creation esxcli system account add -i user -p &lt;%= host_param('password')%> -c &lt;%= host_param('password')%> esxcli system permission set --id user -r Admin # NTP Configuration (thanks to http:\/\/www.virtuallyghetto.com) cat > \/etc\/ntp.conf &lt;&lt; __NTP_CONFIG__ restrict default kod nomodify notrap noquerynopeer restrict 127.0.0.1 server &lt;%= host_param('ntp_server1')%> server &lt;%= host_param('ntp_server2')%> __NTP_CONFIG__ \/sbin\/chkconfig ntpd on # rename local datastore to something more meaningful vim-cmd hostsvc\/datastore\/rename datastore1 \"Local \u2014 $(hostname -s)\" esxcli network firewall set --enabled true # restart a last time reboot<\/code><\/pre>\n<p><strong>\u042d\u0442\u043e\u0442 \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/strong><\/p>\n<ol>\n<li>\n<p>\u0417\u0430\u0434\u0430\u0435\u0442 \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f root.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u0438\u0441\u043a, \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0435\u0442\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0438\u043c\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 root \u0438 \u043f\u0430\u0440\u043e\u043b\u0435\u043c.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u044b \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0418\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u0438\u043c\u044f \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u0440\u0432\u043e\u043b.<\/p>\n<\/li>\n<\/ol>\n<p>\u0428\u0430\u0431\u043b\u043e\u043d \u2014 <strong>default_PXELinux_ESXi<\/strong>. \u041e\u0441\u043d\u043e\u0432\u0430\u043d \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441 <a href=\"https:\/\/theforeman.org\/2018\/08\/deploying-esxi-through-foreman.html\"><u>\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 Foreman<\/u><\/a> (\u0440\u0430\u0437\u0434\u0435\u043b <strong>Create provisioning templates<\/strong>) \u0438 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u043f\u043e\u0434 \u043d\u0430\u0448 \u0434\u0435\u043f\u043b\u043e\u0439:<\/p>\n<pre><code>TIMEOUT 10 DEFAULT default_PXELinux_ESXI  LABEL default_PXELinux_ESXI    KERNEL boot\/esxi\/8.0\/mboot.c32    APPEND -c boot\/esxi\/8.0\/boot2.cfg ks=http:\/\/\u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043e\u0442\u043a\u0443\u0434\u0430 \u043c\u044b \u0437\u0430\u0431\u0438\u0440\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0441 \u0430\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\/unattended\/provision   IPAPPEND 2<\/code><\/pre>\n<p>\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430:<\/p>\n<ul>\n<li>\n<p>\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 Legacy-\u043e\u0431\u0440\u0430\u0437\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043c\u044b \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u043b\u0438 \u0435\u0433\u043e \u043f\u043e \u043f\u0443\u0442\u0438 <strong>\/var\/lib\/tftpboot\/boot\/esxi\/8.0<\/strong>. \u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0430 \u043d\u0430\u0448 Foreman, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0438\u0437 ISO-\u043e\u0431\u0440\u0430\u0437\u0430. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0432\u0430\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0438 \u043f\u0430\u043f\u043a\u0438 \u0432 \u043d\u0438\u0436\u043d\u0438\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440, \u0442\u0430\u043a \u043a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u044c \u0444\u0430\u0439\u043b\u044b, \u0435\u0441\u043b\u0438 \u0438\u0445 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u044b\u0435 \u0431\u0443\u043a\u0432\u044b. \u041e\u0441\u043e\u0431\u043e\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0443\u0434\u0435\u043b\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0443 boot.cfg, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043e\u0442\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443:<\/p>\n<pre><code>bootstate=0 title=Loading ESXi installer timeout=5 prefix= kernel=.\/b.b00 kernelopt=runweasel cdromBoot  allowLegacyCPU=true modules=.\/jumpstrt.gz --- .\/useropts.gz --- .\/features.gz --- .\/k.b00 --- .\/uc_intel.b00 --- .\/uc_amd.b00 --- .\/uc_hygon.b00 --- .\/procfs.b00 --- .\/vmx.v00 --- .\/vim.v00 --- .\/tpm.v00 --- .\/sb.v00 --- .\/s.v00 --- .\/atlantic.v00 --- .\/bcm_mpi3.v00 --- .\/bnxtnet.v00 --- .\/bnxtroce.v00 --- .\/brcmfcoe.v00 --- .\/cndi_igc.v00 --- .\/dwi2c.v00 --- .\/elxiscsi.v00 --- .\/elxnet.v00 --- .\/i40en.v00 --- .\/iavmd.v00 --- .\/icen.v00 --- .\/igbn.v00 --- .\/intelgpi.v00 --- .\/ionic_en.v00 --- .\/irdman.v00 --- .\/iser.v00 --- .\/ixgben.v00 --- .\/lpfc.v00 --- .\/lpnic.v00 --- .\/lsi_mr3.v00 --- .\/lsi_msgp.v00 --- .\/lsi_msgp.v01 --- .\/lsi_msgp.v02 --- .\/mtip32xx.v00 --- .\/ne1000.v00 --- .\/nenic.v00 --- .\/nfnic.v00 --- .\/nhpsa.v00 --- .\/nmlx5_co.v00 --- .\/nmlx5_rd.v00 --- .\/ntg3.v00 --- .\/nvme_pci.v00 --- .\/nvmerdma.v00 --- .\/nvmetcp.v00 --- .\/nvmxnet3.v00 --- .\/nvmxnet3.v01 --- .\/pvscsi.v00 --- .\/qcnic.v00 --- .\/qedentv.v00 --- .\/qedrntv.v00 --- .\/qfle3.v00 --- .\/qfle3f.v00 --- .\/qfle3i.v00 --- .\/qflge.v00 --- .\/rdmahl.v00 --- .\/rste.v00 --- .\/sfvmk.v00 --- .\/smartpqi.v00 --- .\/vmkata.v00 --- .\/vmksdhci.v00 --- .\/vmkusb.v00 --- .\/vmw_ahci.v00 --- .\/bmcal.v00 --- .\/clusters.v00 --- .\/crx.v00 --- .\/elx_esx_.v00 --- .\/btldr.v00 --- .\/esx_dvfi.v00 --- .\/esx_ui.v00 --- .\/esxupdt.v00 --- .\/tpmesxup.v00 --- .\/weaselin.v00 --- .\/esxio_co.v00 --- .\/loadesx.v00 --- .\/lsuv2_hp.v00 --- .\/lsuv2_in.v00 --- .\/lsuv2_ls.v00 --- .\/lsuv2_nv.v00 --- .\/lsuv2_oe.v00 --- .\/lsuv2_oe.v01 --- .\/lsuv2_sm.v00 --- .\/native_m.v00 --- .\/qlnative.v00 --- .\/trx.v00 --- .\/vdfs.v00 --- .\/vds_vsip.v00 --- .\/vmware_e.v00 --- .\/vsan.v00 --- .\/vsanheal.v00 --- .\/vsanmgmt.v00 --- .\/tools.t00 --- .\/xorg.v00 --- .\/gc.v00 --- .\/imgdb.tgz --- .\/basemisc.tgz --- .\/resvibs.tgz --- .\/esxiodpt.tgz --- .\/imgpayld.tgz build=8.0.1-0.0.21495797 updated=0<\/code><\/pre>\n<p>\u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0442\u0430\u043a\u0436\u0435 \u043e\u043f\u0438\u0441\u0430\u043d \u043d\u0430<a href=\"https:\/\/theforeman.org\/2018\/08\/deploying-esxi-through-foreman.html\"><u> \u0441\u0430\u0439\u0442\u0435 Foreman<\/u><\/a> \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <strong>ESXi installation in Legacy BIOS mode. <\/strong>\u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432<strong>, <\/strong>\u043c\u044b \u043d\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0438 bootloader \u0438 \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438. \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u2014 <strong>\/usr\/share\/foreman\/app\/models\/concerns\/pxe_loader_support.rb<\/strong>.<\/p>\n<pre><code class=\"ruby\">def all_loaders_map(precision = 'x64')   {     \"None\" => \"\",     \"PXELinux BIOS\" => \"pxelinux.0\",     \"PXELinux UEFI\" => \"pxelinux.efi\",     \"PXELinux Alt BIOS\" => \"syslinux386\/pxelinux.0\", # Add this line     ...<\/code><\/pre>\n<p>\u0412 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043c\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043b\u0438 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u043c\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438. \u041e\u0434\u043d\u0430\u043a\u043e \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <strong>Family<\/strong> \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043c\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438 <strong>RedHat<\/strong>. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0435\u043d\u0438\u044e \u043d\u0430\u043c \u043d\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0432\u043d\u043e\u0441\u0438\u0442\u044c \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 \u0432 Legacy:<strong> \/var\/lib\/tftpboot\/pxelinux.cfg\/ MAC-\u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/strong>:<\/p>\n<pre><code>TIMEOUT 10 DEFAULT default_PXELinux_ESXI  LABEL default_PXELinux_ESXI    KERNEL boot\/esxi\/8.0\/mboot.c32    APPEND -c boot\/esxi\/8.0\/boot2.cfg ks=http:\/\/\u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043e\u0442\u043a\u0443\u0434\u0430 \u043c\u044b \u0437\u0430\u0431\u0438\u0440\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0441 \u0430\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\/unattended\/provision   IPAPPEND 2<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0417\u0430\u0442\u0435\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d \u0444\u0430\u0439\u043b kickstart (ks=http:\/\/\u0430\u0434\u0440\u0435\u0441_\u0441\u0435\u0440\u0432\u0435\u0440\u0430\/unattended\/provision). \u042d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0430\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <strong>APPEND<\/strong> \u0444\u0430\u0439\u043b\u0430 default_PXELinux_ESXI.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0433\u0438\u043f\u0435\u0440\u0432\u0438\u0437\u043e\u0440\u043e\u043c ESXi, \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0443\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0435 <strong>default_provision_ESXi<\/strong>:<\/p>\n<figure class=\"\"><\/figure>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432 UEFI-\u0440\u0435\u0436\u0438\u043c\u0435<\/h2>\n<p>\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 VMware ESXi \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0430 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043a\u0430\u043a \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 Legacy, \u0442\u0430\u043a \u0438 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 UEFI. \u041d\u0430 \u0440\u0430\u043d\u0435\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430\u0445 \u043c\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 <strong>Grub2_Default<\/strong>, \u043d\u043e \u043d\u0435 \u0434\u0430\u043b\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e \u043d\u0435\u043c\u0443. \u041e\u043d \u0441\u043b\u0443\u0436\u0438\u0442 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 UEFI. Foreman \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0438\u043c\u0435\u043d\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b: \u0435\u0441\u043b\u0438 \u043e\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 ESXi, \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u0432\u0438\u0434\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 LiveCD.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 LiveCD \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438:<\/p>\n<ol>\n<li>\n<p>\u0422\u0438\u043f \u0434\u0438\u0441\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0438\u0441\u043a \u0434\u0438\u0441\u043a\u0430 \u0441 \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0438\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c, \u043d\u043e \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 20 \u0413\u0411.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0442\u043e\u043c\u0430 (logical volume) \u0438\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0442\u043e\u043c\u043e\u0432 (volume group) \u043d\u0430 \u0434\u0438\u0441\u043a\u0435. \u0415\u0441\u043b\u0438 \u0442\u0430\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442, \u043e\u043d\u0438 \u0443\u0434\u0430\u043b\u044f\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u0434\u0438\u0441\u043a\u0430.<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0434\u0438\u0441\u043a\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0440\u0430\u0437\u0434\u0435\u043b \u0434\u043b\u044f \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f UEFI-\u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430. \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0430 \u0447\u0430\u0441\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u0430:<\/p>\n<pre><code class=\"bash\">    parted -s \/dev\/${INST_DRIVE} mklabel gpt mkpart fat32 1MiB 1GiB set 1 esp on     EFI_PART=$(lsblk -l | grep \"${INST_DRIVE}\" | grep part | awk '{print $1}')     mkdir -p \/mnt\/{iso,efipart,wim}     wget ${medium_uri}\/${branch}\/esxi${os_version}pe.iso     mount -o loop esxi${os_version}pe.iso \/mnt\/iso     mkfs.fat -F32 \/dev\/$EFI_PART     mount \/dev\/$EFI_PART \/mnt\/efipart     mkdir -p \/mnt\/efipart\/EFI\/redhat\/     mkdir -p \/mnt\/efipart\/kickstart     rsync -r \/mnt\/iso\/ \/mnt\/efipart\/      cp \/mnt\/efipart\/EFI\/BOOT\/BOOTX64.EFI \/mnt\/efipart\/EFI\/redhat\/grubx64.efi     cp \/mnt\/efipart\/EFI\/BOOT\/CRYPTO64.EFI \/mnt\/efipart\/EFI\/redhat\/crypto64.efi     cp<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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-350684","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/350684","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=350684"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/350684\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=350684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=350684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=350684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}