iPXE discussion forum

Full Version: ubuntu livecd iso net boot
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I tryed to learn usage of ipxe but i cannot get a ubuntu.iso cd image able to boot a livecd image via ipxe.

i tryed out many configs but i cannot get one working.

there are some others info: http://fogproject.org/forum/threads/live...oot.12044/
You can do it by using the example provided here: https://gist.github.com/robinsmidsrod/22...-ipxe-L512
(2014-12-09 14:23)robinsmidsrod Wrote: [ -> ]You can do it by using the example provided here: https://gist.github.com/robinsmidsrod/22...-ipxe-L512

finally i get a working config:

Code:
:UBUNTU
# See http://manpages.ubuntu.com/manpages/precise/man7/casper.7.html for casper cmdline details
kernel http://192.168.0.3/fog/iso/ubuntu/casper/vmlinuz
initrd http://192.168.0.3/fog/iso/ubuntu/casper/initrd.lz
imgargs vmlinuz root=/dev/nfs boot=casper netboot=nfs nfsroot=192.168.0.3:/var/www/fog/iso/ubuntu/ locale=en_US.UTF-8 keyboard-configuration/layoutcode=no mirror/country=NO
boot || goto failed
goto start

Code:
$ cat /etc/exports
/images *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)
/images/dev *(rw,sync,no_wdelay,no_root_squash,insecure)
/var/www/fog/iso/ubuntu/ *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)

Code:
administrator@fog:/var/www/fog/iso/ubuntu$ ls -la
totale 32
dr-xr-xr-x 5 root root 4096 dic 5 12:48 .
drwxr-xr-x 3 root root 4096 dic 5 12:47 ..
dr-xr-xr-x 3 root root 4096 dic 9 08:37 casper
dr-xr-xr-x 2 root root 4096 ago 9 22:19 .disk
dr-xr-xr-x 2 root root 4096 ago 9 22:19 isolinux
-r-xr-xr-x 1 root root 8351 ago 9 22:20 SHA256SUMS
Thank You!

I've been looking for the answer to this for quite some time. I'm not very good at understanding the parameters, but maybe one day I'll digest the man page.

Not to hijack the thread, but could someone explain why sanboot wouldn't work in this case? I thought sanboot was very versatile when it came to iso files, but maybe my understanding of sanboot is in question? When I tried to sanboot the iso it looked like smooth sailing but if you look at terminal output it can't find contents of /dev/sr0. Does sanboot not actually attach anything? Is there any link to sanboot documentation internals other than the code itself so I can get a grasp of what it actually is doing?

Thanks again
James: The virtual CD that sanboot gives you access to is only available until the operating system kernel starts. At that point it is no longer available. This is completely normal with most operating systems (except DOS). The OS takes over completely control over the hardware, so you need to tell it again where to find the network resources you want access to (like a mounted ISO). In most cases (unless you're dealing with DOS) it is best to unpack the ISO and boot the kernel/ramdisk directly from iPXE or another boot loader (like grub/syslinux).
Reference URL's