How can I boot a live image with iPXE?
-
I’m running Fog 1.2.0 with iPXE
I’d like to boot a live version of Debian from the Advanced menu, is this possible?
I’ve prepared Debian 7.6.0 for live booting, and I have the image on the server
Thanks
-
I haven’t done it with Debian, but I have with Hiren’s and the principle is the same. Make sure you place the ISO in the location you reference within the Advanced Configuration box. You can also require login to access the advanced menu
From the FOG Web Interface:
‘FOG Configuration’ -> ‘PXE Settings’ or ‘iPXE Boot Menu’ -> ‘Advanced Configuration Options’Example entry:
:MENU
menu
item --gap – ---------------- iPXE boot menu ----------------
item LIVEDEBIAN7 Boot Debian 7 Live Version
item return Return To Previous Menu
choose --default LIVEDEBIAN7 --timeout 5000 target && goto ${target}:LIVEDEBIAN7
initrd [url]http://${fog-ip}/ISO/DEBIAN7.ISO[/url]
chain memdisk iso raw ||
goto MENU:return
chain [url]http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac}[/url] ||
prompt
goto MENUautoboot
Source: [url]http://www.fogproject.org/wiki/index.php/Advanced_Boot_Menu_Configuration_options[/url]
-
Thanks for your reply.
The iso loads, but when trying to boot the live image, I get the error:“Unable to find a medium containing a live file system”
-
I got debian to boot using these options in the menu:
:debianlive2
kernel [url]http://${fog-ip}/fog/debian/7.6.0/live/vmlinuz1[/url]
initrd [url]http://${fog-ip}/fog/debian/7.6.0/live/initrd1.img[/url]
imgargs vmlinuz1 root=/dev/nfs boot=live netboot=nfs fetch=[url]http://${fog-ip}/fog/debian/7.6.0/live/filesystem.squashfs[/url]
bootbut it is now asking for some uname/password which i dont have and giving some strange firmware error once in a while…
-
[quote=“dvaldez, post: 38658, member: 26961”]I got debian to boot using these options in the menu:
:debianlive2
kernel [url]http://${fog-ip}/fog/debian/7.6.0/live/vmlinuz1[/url]
initrd [url]http://${fog-ip}/fog/debian/7.6.0/live/initrd1.img[/url]
imgargs vmlinuz1 root=/dev/nfs boot=live netboot=nfs fetch=[url]http://${fog-ip}/fog/debian/7.6.0/live/filesystem.squashfs[/url]
bootbut it is now asking for some uname/password which i dont have and giving some strange firmware error once in a while…[/quote]
This is happening within Debian or FOG?
-
Debian boots, gives a login prompt, and the firmware error is also a debian error, I think I have some configuration incorrect but I don’t know what it is.
-
I was able to boot using this configuration:
kernel [url]http://${fog-ip}/fog/debian/7.6.0/live/vmlinuz1[/url]
initrd [url]http://${fog-ip}/fog/debian/7.6.0/live/initrd1.img[/url]
imgargs vmlinuz1 boot=live config console=ttyS0 username=live fetch=[url]http://${fog-ip}/fog/debian/7.6.0/live/filesystem.squashfs[/url]
boot