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
sanboot reboots the pc if i use something else than 0x80
2017-11-11, 20:10
Post: #1
sanboot reboots the pc if i use something else than 0x80
Hi,
im attemping to make the iPXE boot from iSCSI target and if fails, to boot from a iSCSI attached virtual DVD.

This is petty much it

Code:
#!ipxe
set server-ip 192.168.88.254
set target-name iqn.2006-03.com.kernsafe:Shivan-PC.VhdDisk0
set dvd-target iqn.2006-03.com.kernsafe:Shivan-PC.VirtualCD0

dhcp
set keep-san 1
sanboot iscsi:${server-ip}::::${target-name} || sanboot --drive 0x81 iscsi:${server-ip}::::${dvd-target}

The idea is to first attempt to boot from the iscsi hdd, if fails (because is a new disk and its empty), to boot from the virtual iscsi dvd to install the O.S.

But as soon as the sanboot --drive 0x81 is executed the pc reboots, no matter if is a real pc or virtualbox.

The only way that it boots the dvd image is using 0x80 for it, and hook the iscsi hdd to 0x81

Code:
#!ipxe
set server-ip 192.168.88.254
set target-name iqn.2006-03.com.kernsafe:Shivan-PC.VhdDisk0
set dvd-target iqn.2006-03.com.kernsafe:Shivan-PC.VirtualCD0

dhcp
set keep-san 1
sanboot iscsi:${server-ip}::::${target-name} || goto start

:start
set keep-san 0
sanunhook
set keep-san 1
sanhook --drive 0x81 iscsi:${server-ip}::::${target-name}
sanboot --drive 0x80 iscsi:${server-ip}::::${dvd-target}

But then the windows installer does not work, it says it cant install on that drive because the hardware may not be able to boot from it.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
sanboot reboots the pc if i use something else than 0x80 - shivansps - 2017-11-11 20:10



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