iPXE discussion forum
Set arguments of Grub bootloader from iPXE - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Set arguments of Grub bootloader from iPXE (/showthread.php?tid=8254)



Set arguments of Grub bootloader from iPXE - sumitk - 2016-12-16 07:38

Hi,

I am planning to use iPXE sanboot method to boot a disk-less client. To start with, I created a image by installation ubuntu on a local disk and exported it using the iscsi protocol. I am able to boot with this image using iPXE sanboot (by attaching iPXE iso with client and booting from it) but each time when I boot the machine, I need to edit the grub command line argument to pass the ISCSI related parameters. To avoid this, I want to create a iPXE embed custom script which should download the iscsi related information (ISCSI_INITIATOR, ISCSI_TARGET_NAME, ISCSI_TARGET_IP, ISCSI_TARGET_PORT) from a remote http server and then somehow pass it to the grub boot loader as command line arguments. Is it possible to pass argument to grub boot loader from the iPXE environment ?

Thanks.


RE: Set arguments of Grub bootloader from iPXE - b4us - 2016-12-22 09:41

https://heathpaddock.com/2012/04/08/install-configure-ubuntu-to-boot-from-an-iscsi-disk/

Recently I have also tried this, this article very detailed introduction to the entire installation process you can refer to.