{"id":239,"date":"2023-10-14T18:07:29","date_gmt":"2023-10-14T23:07:29","guid":{"rendered":"https:\/\/blog.mctechnologies.net\/?p=239"},"modified":"2023-10-14T18:07:29","modified_gmt":"2023-10-14T23:07:29","slug":"proxmox-8-0-and-iscsi-boot","status":"publish","type":"post","link":"https:\/\/blog.mctechnologies.net\/?p=239","title":{"rendered":"Proxmox 8.0 and iSCSI boot"},"content":{"rendered":"\n<p>I&#8217;m trying out Proxmox on my ESXi servers, so as before, I&#8217;m trying to install on an iSCSI boot drive.<\/p>\n\n\n\n<p>I used this the following websites for reference:<br><a href=\"https:\/\/forum.proxmox.com\/threads\/install-pve-directly-on-iscsi-target.101750\/\">https:\/\/forum.proxmox.com\/threads\/install-pve-directly-on-iscsi-target.101750\/<\/a><br><a href=\"https:\/\/library.netapp.com\/ecmdocs\/ECMP1217221\/html\/GUID-2A8546C7-347A-40B0-B937-4B31DAAA16DA.html\">https:\/\/library.netapp.com\/ecmdocs\/ECMP1217221\/html\/GUID-2A8546C7-347A-40B0-B937-4B31DAAA16DA.html<\/a><\/p>\n\n\n\n<p>First step, make sure your LUN target has ID of 0.  ESXi didn&#8217;t need this, so it was set to a random number, and the LUN would NOT show up in \/dev.  This took a long time to figure out.  So enjoy that.<\/p>\n\n\n\n<p>I&#8217;ll assume iSCSI target is set to what it needs to be (I allowed all IPs\/IQNs to see the LUN for setup), your network card is set to boot (you can use iPXE as well, but I&#8217;m not basic), and your LUN ID is 0.  See the first few steps of this post: https:\/\/blog.mctechnologies.net\/?p=145<\/p>\n\n\n\n<p>Step 1: Boot your Proxmox install ISO, and get to a command line.<\/p>\n\n\n\n<p>Select &#8220;Advanced Options&#8221; <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"767\" src=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-1-1024x767.png\" alt=\"\" class=\"wp-image-241\" srcset=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-1-1024x767.png 1024w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-1-300x225.png 300w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-1-768x575.png 768w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-1-200x150.png 200w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-1-80x60.png 80w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-1.png 1535w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Select either of the Debug modes<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"769\" src=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-2-1024x769.png\" alt=\"\" class=\"wp-image-242\" srcset=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-2-1024x769.png 1024w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-2-300x225.png 300w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-2-768x577.png 768w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-2-200x150.png 200w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-2-80x60.png 80w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-2.png 1536w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p> On your first prompt hit &#8220;Ctrl-D&#8221;.  This will get you to a second prompt with your network card driver loaded.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"570\" src=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-3-1024x570.png\" alt=\"\" class=\"wp-image-243\" srcset=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-3-1024x570.png 1024w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-3-300x167.png 300w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-3-768x427.png 768w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-3-80x44.png 80w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-3.png 1077w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"769\" src=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-4-1024x769.png\" alt=\"\" class=\"wp-image-244\" srcset=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-4-1024x769.png 1024w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-4-300x225.png 300w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-4-768x577.png 768w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-4-200x150.png 200w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-4-80x60.png 80w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-4.png 1534w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Step 2: Set up networking, install necessary packages for iSCSI, add your target:<\/p>\n\n\n\n<p>Find your network card name (I&#8217;m using the second NIC): <code> <\/code>ip a<br>Get it up:  ip link set <em>enp4s0f1<\/em> up<br>Set to an IP address that is right for you: <code>ip addr add <em>10.1.60.5<\/em>\/24 dev <em>enp4s0f1<\/em><\/code><br>Check if its working right: ip a<br>Ping your iSCSI target&#8230;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"762\" src=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-5-1024x762.png\" alt=\"\" class=\"wp-image-245\" srcset=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-5-1024x762.png 1024w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-5-300x223.png 300w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-5-768x572.png 768w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-5-1536x1144.png 1536w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-5-200x150.png 200w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-5-80x60.png 80w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-5.png 1542w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Step 3: Install iSCSI packages needed to see the LUN (the versions might be different, just tab the last bit of the file name):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>dpkg -i \/cdrom\/debian\/proxmox\/packages\/libisns0_0.101-2+b1_adm64.deb\ndpkg -i \/cdrom\/debian\/proxmox\/packages\/libopeniscsiusr_2.1.8-1_adm64.deb\ndpkg -i \/cdrom\/debian\/proxmox\/packages\/open-iscsi_2.1.8-1_adm64.deb<\/code>\n(errors are ok, doesn't matter)<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1022\" height=\"768\" src=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-6.png\" alt=\"\" class=\"wp-image-247\" srcset=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-6.png 1022w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-6-300x225.png 300w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-6-768x577.png 768w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-6-200x150.png 200w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-6-80x60.png 80w\" sizes=\"auto, (max-width: 1022px) 100vw, 1022px\" \/><\/figure>\n\n\n\n<p>Step 4: Add the LUN<\/p>\n\n\n\n<p>Create a folder structure needed for iscsiadm to use:  <\/p>\n\n\n\n<p><code>mkdir \/run\/lock<br>mkdir \/run\/lock\/iscsi<\/code><\/p>\n\n\n\n<p>Set your initiator name in Proxmox, or in your iSCSI target by using this file \/etc\/iscsi\/initatorname.iscsi<br><code>InitiatorName=<em>iqn.1991-05.com:vmh2<\/em><\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"676\" height=\"294\" src=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-9.png\" alt=\"\" class=\"wp-image-250\" srcset=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-9.png 676w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-9-300x130.png 300w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-9-80x35.png 80w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><\/figure>\n\n\n\n<p>Start iscsid:  <code>service iscsid start<\/code><\/p>\n\n\n\n<p>(These next steps will mount all available nodes, this works for me)<\/p>\n\n\n\n<p>Discovery available LUNS (change the IP): <br>iscsiadm &#8211;mode discovery &#8211;op update &#8211;type sendtargets &#8211;portal&nbsp;<var>10.1.60.2<\/var><\/p>\n\n\n\n<p>Add all the nodes:<br>iscsiadm &#8211;mode node -l all<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"973\" height=\"282\" src=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-7.png\" alt=\"\" class=\"wp-image-248\" srcset=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-7.png 973w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-7-300x87.png 300w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-7-768x223.png 768w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-7-80x23.png 80w\" sizes=\"auto, (max-width: 973px) 100vw, 973px\" \/><\/figure>\n\n\n\n<p>Get back to installing Proxmox by typing CTRL-D<\/p>\n\n\n\n<p>Do not Automatically reboot after install (Not exactly sure if this is necessary)!<\/p>\n\n\n\n<p>Install as usual, but there is one more step at the end..<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1022\" height=\"767\" src=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-8.png\" alt=\"\" class=\"wp-image-249\" srcset=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-8.png 1022w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-8-300x225.png 300w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-8-768x576.png 768w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-8-200x150.png 200w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-8-80x60.png 80w\" sizes=\"auto, (max-width: 1022px) 100vw, 1022px\" \/><\/figure>\n\n\n\n<p>It&#8217;ll ask you to reboot as the only option, itll actually take you to a command prompt<\/p>\n\n\n\n<p>Step 5: Need to configure one last thing before reboot<\/p>\n\n\n\n<p>Mount the new file systems<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>mount \/dev\/pve\/root \/mnt\nmount -o bind \/dev \/mnt\/dev\nmount -o bind \/proc \/mnt\/proc\nmount -o bind \/sys \/mnt\/sys<\/code>chroot \/mnt \/bin\/bash<\/code><\/pre>\n\n\n\n<p>Add and modify iscsi.initramfs:<\/p>\n\n\n\n<p><code>vi \/etc\/iscsi\/iscsi.initramfs<\/code><\/p>\n\n\n\n<p>Add the following line:<br><code>ISCSI_AUTO=true<\/code><\/p>\n\n\n\n<p>Update GRUB, run:<br><code>update-grub &amp;&amp; update-initramfs -u -k all<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"726\" height=\"221\" src=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-10.png\" alt=\"\" class=\"wp-image-252\" srcset=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-10.png 726w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-10-300x91.png 300w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-10-80x24.png 80w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/figure>\n\n\n\n<p>Hit CTRL-D (2x) and it will reboot!  It SHOULD load into Proxmox<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"276\" src=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-11.png\" alt=\"\" class=\"wp-image-254\" srcset=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-11.png 729w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-11-300x114.png 300w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-11-80x30.png 80w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"784\" height=\"383\" src=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-12.png\" alt=\"\" class=\"wp-image-255\" srcset=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-12.png 784w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-12-300x147.png 300w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-12-768x375.png 768w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2023\/10\/image-12-80x39.png 80w\" sizes=\"auto, (max-width: 784px) 100vw, 784px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying out Proxmox on my ESXi servers, so as before, I&#8217;m trying to install on an iSCSI boot drive. I used this the following websites for reference:https:\/\/forum.proxmox.com\/threads\/install-pve-directly-on-iscsi-target.101750\/https:\/\/library.netapp.com\/ecmdocs\/ECMP1217221\/html\/GUID-2A8546C7-347A-40B0-B937-4B31DAAA16DA.html First step, make sure your LUN target has ID of&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-239","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.mctechnologies.net\/index.php?rest_route=\/wp\/v2\/posts\/239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.mctechnologies.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mctechnologies.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mctechnologies.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mctechnologies.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=239"}],"version-history":[{"count":4,"href":"https:\/\/blog.mctechnologies.net\/index.php?rest_route=\/wp\/v2\/posts\/239\/revisions"}],"predecessor-version":[{"id":256,"href":"https:\/\/blog.mctechnologies.net\/index.php?rest_route=\/wp\/v2\/posts\/239\/revisions\/256"}],"wp:attachment":[{"href":"https:\/\/blog.mctechnologies.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mctechnologies.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mctechnologies.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}