The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Boot ESXi installer and install to iSCSI
2013-05-20, 23:42
Post: #1
Boot ESXi installer and install to iSCSI
Pulling my hair out with this one a little. As previously I got this up and running in under an hour with little to no hassle.

Setup PXE on pfSense to chainload iPXE with the following command on a script on a webserver...

sanhook --drive 0x91 iscsi:10.0.0.30:::5:iqn.2013-04.home.nas:esxi4
sanboot --no-describe iscsi:10.0.0.30:::1:iqn.2013-04.home.nas:installer

Worked perfectly!

Skip forward a month I'm starting from fresh, slightly different this time though as I am now using VLANs and the network port to the host is a trunk port so ESXi has access to multiple VLANs (Tried to PXE chain load using native VLAN but just couldn't get DHCP to find an IP so gave up).
Built a bootable USB image with VLAN support enabled using the below script and seems to start the VLAN fine, accesses the web scripts no problem but I am having an issue with the booting of the ESXi 5.1 U1 image as shown in the image below.

What am I doing wrong? Must have missed something somewhere Rolleyes

Compiled script on the USB key taken from https://gist.github.com/robinsmidsrod/2234639 and slightly modified
Code:
#!ipxe

# Setup the VLANs for my network
vcreate --tag 40 net0
dhcp net0-40

set boot-url http://10.0.5.10/pxe
set bootstrap-url ${boot-url}/bootstrap
set menu-url ${boot-url}/menu.ipxe

# Boot <boot-url>/bootstrap/hostname/<hostname>
# if hostname DHCP variable is set and script is present
isset ${hostname} && chain --replace --autofree ${bootstrap-url}/hostname/${hostname} && exit ||

# Boot <boot-url>/bootstrap/uuid/<UUID>
# if uuid SMBIOS variable is set and script is present
isset ${uuid} && chain --replace --autofree ${bootstrap-url}/uuid/${uuid} && exit ||

# Boot <boot-url>/bootstrap/mac/01-02-03-04-05-06 if script is present
chain --replace --autofree ${bootstrap-url}/mac/${mac:hexhyp} && exit ||

# Boot <boot-url>/bootstrap/bus/01-80-86-10-0e if PCI Intel adapter
# is present and script is present
chain --replace --autofree ${bootstrap-url}/bus/${busid:hexhyp} && exit ||

# Boot <boot-url>/menu.ipxe script if all other options have been exhausted
chain --replace --autofree ${menu-url}

Code inside
pxe/bootstrap/mac/00-24-21-1d-35-e8

Code:
#!ipxe

sanboot --drive 0x90 iscsi:10.0.5.10:::2:iqn.2013-05.home.server:n6esxi
sanboot --drive 0x91 --no-describe iscsi:10.0.5.10:::3:iqn.2013-05.home.server:installer

I have also tried
Code:
#!ipxe

sanboot --drive 0x90 iscsi:10.0.5.10:::2:iqn.2013-05.home.server:n6esxi
sanboot --drive 0x91 --no-describe http://10.0.5.10/pxe/esxiinstaller.iso

Both which result in the below

[Image: photo_4.jpg]

I have also tried using memdisk using

Code:
#!ipxe

sanboot --drive 0x90 iscsi:10.0.5.10:::2:iqn.2013-05.home.server:n6esxi
initrd http://10.0.5.10/pxe/esxiinstaller.iso
chain http://10.0.5.10/pxe/memdisk iso

But this just resulted with it loading and placing many ... on the screen, gave up after leaving it for 10 minutes.

Any help/suggestions would be much appreciated.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Boot ESXi installer and install to iSCSI - nry - 2013-05-20 23:42



User(s) browsing this thread: 4 Guest(s)