Re: Question on how to setup iscsi boot via a menu, to be able to boot disk images and .iso images
Shao Miller <[email protected]> Sat, 19 Dec 2009 17:20:33 -0500
| Newsgroups | gmane.network.etherboot.user |
|---|---|
| Message-ID | <[email protected]> |
Joe Landman wrote:
> Hi folks:
Hello. You might prefer the gPXE mailing-list at
http://etherboot.org/mailman/listinfo/gpxe
> Using gpxe without problems as a basic PXE loader, and it is working
> well. What I want to do is setup menu entries to setup iscsi boot
> from the menu. I am using memdisk for bios boot updates like this:
>
> LABEL Bios Update
> kernel memdisk
> append initrd=biosupdate/16MB-bios-update.img
>
What a minute... gPXE doesn't use such. Did you forget to mention
PXELINUX? Are you doing gPXE -> PXELINUX?
> What I'd like to do is understand how to do the same thing with iSCSI
> boot. Say I have a .iso image from a boot CD/DVD. I'd like to do
> something like this:
>
> LABEL BootCD
> kernel undionly.kpxe
> append sanboot scsi:crunch::::iqn.2009-12.jr4:BootCD
>
This looks like you are doing PXELINUX -> gPXE. Is that so? If so, I
think you are after my cmdline and initrd feature which you could use
with undionly.lkrn. The patch is not in main-line yet, so you'd have to
apply it yourself. Then you could do the following from your PXELINUX
config-file:
LABEL BootCD
KERNEL undionly.lkrn
APPEND sanboot iscsi:crunch::::iqn.2009-12.jr4:BootCD
Note ".lkrn" instead of ".kpxe" and the "i" added before "scsi". The
patch is here:
http://git.etherboot.org/?p=people/sha0/gpxe.git;a=shortlog;h=refs/heads/lkrn_initrd-sha0
Also note that this will yield the exact same results as if you DD your
.ISO file to an HDD and try to boot the HDD (it's not going to work). A
sector-size of 512 bytes will be used and an appropriate MBR-style
boot-loader would be expected, not a typical El Torito .ISO. Currently,
you could have an HDD image with a single partition with your .ISO as a
file inside the filesystem on that partition. If you install GRUB4DOS
onto this HDD, you can use it to map the .ISO as a virtual CD-ROM drive.
grub> root (hd0,0)
grub> map /bootcd.iso (hd32)
grub> map --hook
grub> root (hd32)
grub> chainloader +1
grub> boot
- Shao Miller
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Etherboot-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/etherboot-discuss