Boot LTSP from FOG
-
Hello,
I have seen a post similar to this one on the forums ([url]http://fogproject.org/forum/threads/adding-ltsp-to-fog-menu.3634/#post-8894[/url]). However it does not explain if this is possible or not and the info given does not seem to work.
I currently have fog up and running, but I would like to add options to boot multiple thin client environments. The LTSP images are currently stored in /opt/ltsp/. Can fog grab images from there or does everything need to be moved to /tftpboot/? My current configuration is as follows
[CODE]
LABEL Ubuntu LTSP 12.04
MENU LABEL LTSP - Ubuntu Desktop
KERNEL linux.c32
append tftp:/192.168.1.145/opt/ltsp/i386/boot/vmlinuz initrd=tftp:/192.168.1.145/opt/ltsp/images/i386.img ro quiet splash
[/CODE]When trying to boot I get “tftp:/192.168.1.145/ltsp/i386/boot/vmlinuz” file not found. So I did a loopback mount and mounted /opt/ltsp on /tftpboot/ltsp then changed the configuration to
[CODE] append tftp:/192.168.1.145/ltsp/i386/boot/vmlinuz initrd=tftp:/192.168.1.145/ltsp/images/i386.img ro quiet splash[/CODE]
I am still having the same issue. Has anyone been successful with this in the past? Or is there anyway to verify FOG is able to see the directory I am trying load the image from?
Thanks
-
darkapec,
What type of pxe setup are you using? gpxelinux or pxelinux. In either case, your file should not be setup, as far as I can tell, with a prefix of: tftp:/ . Even if this is an okay header portion, try tftp://. If that isn’t working, and you’re using gpxelinux, make sure your file is accessible via a webserver. Then change the tftp:/ parts to http://
One other think that’s standing out, is the kernel line.
[FONT=Consolas]KERNEL linux.c32[/FONT]
[FONT=Consolas] [/FONT]
[FONT=Consolas]Is this actually your kernel? It doesn’t look like it to me. Usually the kernel is vmlinuz or bzImage[/FONT]
Try using:
[FONT=Consolas]LABEL Ubuntu LTSP 12.04[/FONT]
[FONT=Consolas] MENU LABEL LTSP - Ubuntu Desktop[/FONT]
[FONT=Consolas] KERNEL tftp:/192.168.1.145/opt/ltsp/i386/boot/vmlinuz[/FONT]
[FONT=Consolas] append initrd=tftp:/192.168.1.145/opt/ltsp/images/i386.img ro quiet splash[/FONT]
If this doesn’t work try:
[FONT=Consolas]LABEL Ubuntu LTSP 12.04[/FONT]
[FONT=Consolas] MENU LABEL LTSP - Ubuntu Desktop[/FONT]
[FONT=Consolas] KERNEL [url]http://192.168.1.145/opt/ltsp/i386/boot/vmlinuz[/url][/FONT]
[FONT=Consolas] append initrd=[url]http://192.168.1.145/opt/ltsp/images/i386.img[/url] ro quiet splash[/FONT] -
[quote=“Tom Elliott, post: 14178, member: 7271”]darkapec,
What type of pxe setup are you using? gpxelinux or pxelinux. In either case, your file should not be setup, as far as I can tell, with a prefix of: tftp:/ . Even if this is an okay header portion, try tftp://. If that isn’t working, and you’re using gpxelinux, make sure your file is accessible via a webserver. Then change the tftp:/ parts to http://
One other think that’s standing out, is the kernel line.
[FONT=Consolas]KERNEL linux.c32[/FONT][FONT=Consolas]Is this actually your kernel? It doesn’t look like it to me. Usually the kernel is vmlinuz or bzImage[/FONT]
Try using:
[FONT=Consolas]LABEL Ubuntu LTSP 12.04[/FONT]
[FONT=Consolas] MENU LABEL LTSP - Ubuntu Desktop[/FONT]
[FONT=Consolas] KERNEL tftp:/192.168.1.145/opt/ltsp/i386/boot/vmlinuz[/FONT]
[FONT=Consolas] append initrd=tftp:/192.168.1.145/opt/ltsp/images/i386.img ro quiet splash[/FONT]
If this doesn’t work try:
[FONT=Consolas]LABEL Ubuntu LTSP 12.04[/FONT]
[FONT=Consolas] MENU LABEL LTSP - Ubuntu Desktop[/FONT]
[FONT=Consolas] KERNEL [url]http://192.168.1.145/opt/ltsp/i386/boot/vmlinuz[/url][/FONT]
[FONT=Consolas] append initrd=[url]http://192.168.1.145/opt/ltsp/images/i386.img[/url] ro quiet splash[/FONT][/quote]Also, just as I’m reading a little bit more, if this chainload is supposed to be happening as such maybe the lines should read:
[FONT=Consolas]LABEL Ubuntu LTSP 12.04[/FONT]
[FONT=Consolas]MENU LABEL LTSP - Ubuntu Desktop[/FONT]
[FONT=Consolas]KERNEL linux.c32[/FONT]
[FONT=Consolas]append initrd=tftp:/192.168.1.145/opt/ltsp/images/i386.img ro quiet splash[/FONT][FONT=Consolas]Remember, that you’ve already loaded a kernel, so loading vmlinuz shouldn’t work to my knowledge[/FONT]
-
Hi Tom,
Thanks for the response. I do seem to have made some headway with this.
I currently have:
[CODE]
LABEL LTSP
MENU LABEL LTSP 12.04 x32
KERNEL ltsp/i386/boot/linux.c32
APPEND ltsp/i386/boot/vmlinuz initrd=ltsp/i386/boot/initrd.img ro quiet splash
[/CODE]Using the config above I am able to boot to the ubuntu loading page but then the kernel crashes and dumps to a busy box shell. If I try to exit the shell I get a kernel panic error and the system hangs.
I think I maybe trying to do something that is not technically possible. One thing I forgot to mention in the original post is the FOG server and LTSP server are on the same machine. I am currently experimenting with KVM to see if that will allow me to solve all of my needs.
-
[QUOTE][FONT=Consolas]Remember, that you’ve already loaded a kernel, so loading vmlinuz shouldn’t work to my knowledge[/FONT][/QUOTE]
Are you saying I should leave [CODE] ltsp/i386/boot/vmlinuz[/CODE] completely out or does that need to be replaced by something else? -
[quote=“darkapec, post: 14184, member: 11250”]Are you saying I should leave [CODE] ltsp/i386/boot/vmlinuz[/CODE] completely out or does that need to be replaced by something else?[/quote]
Yes, I think Your menu option should look like this:
[FONT=Consolas]LABEL LTSP
MENU LABEL LTSP 12.04 x32
KERNEL ltsp/i386/boot/linux.c32
APPEND initrd=ltsp/i386/boot/initrd.img ro quiet splash[/FONT]
[FONT=Consolas] [/FONT]
[FONT=Consolas]If that still doesn’t work, try:[/FONT]
[FONT=Consolas]LABEL LTSP
MENU LABEL LTSP 12.04 x32
KERNEL ltsp/i386/boot/vmlinuz
APPEND initrd=ltsp/i386/boot/initrd.img ro quiet splash[/FONT]