Moving FOG server online
-
[SIZE=4]As a part of my studies in IT Technology, I have been working on how to get an FOG server on the cloud. One of many problems was PXE booting, since the next server now was on an online server. [/SIZE]
[SIZE=4]what I did was make an flash drive which could contact the next server, but for this to work you have to boot from FLASH not NIC.[/SIZE]
[SIZE=4]So here is my 2 cent on how to do it.[/SIZE][SIZE=4]First thing first, change pxelinux.0 to gpxelinux.0 for http and speed. You can follow my guide on how to do this here: [url]http://fogproject.org/forum/threads/change-to-gpxelinux-0.10088/[/url][/SIZE]
[SIZE=4]Now we are ready to begin making the flash drive which the client will pxe boot from.[/SIZE]
[INDENT=1][LIST]
[][SIZE=4]Download the HP usb format program [url]http://download.cnet.com/HP-USB-Disk-Storage-Format-Tool/3000-2094_4-10974082.html[/url][/SIZE]
[][SIZE=4]Download Grub4dos [url]http://www.themudcrab.com/acronis_grub4dos.php#tagInstall[/url][FONT=Arial] [/FONT][/SIZE]
[][SIZE=4]Download win32diskmaker [url]http://sourceforge.net/projects/win32diskimager/[/url][FONT=Arial] [/FONT][/SIZE]
[][SIZE=4]Go the the web page [url]http://rom-o-matic.net/gpxe/gpxe-1.0.1/contrib/rom-o-matic/[/url][FONT=Arial] [/FONT][/SIZE]
[][SIZE=4][FONT=Arial]Choose what kind of output you want (usb, iso), add custom script and download.[/FONT][/SIZE]
[/LIST]
[SIZE=4] [FONT=Arial] [/FONT][I][B][FONT=Arial]But Change extension to .img[/FONT][/B][/I][/SIZE]
[FONT=Arial] [/FONT]
[SIZE=4][FONT=Arial]#!gpxe[/FONT][/SIZE]
[SIZE=4][FONT=Arial] [/FONT][/SIZE]
[SIZE=4][FONT=Arial]echo Performing DHCP on first network interface[/FONT][/SIZE]
[SIZE=4][FONT=Arial]dhcp net0[/FONT][/SIZE]
[SIZE=4][FONT=Arial]set 209:string Myfogserver.com/pxe/pxelinux.cfg/default[/FONT][/SIZE]
[SIZE=4][FONT=Arial]set 210:string [/FONT][URL=‘http://Myfogserver.com/pxe/’][FONT=Arial]http://Myfogserver.com/pxe/[/FONT][/URL][/SIZE]
[SIZE=4][FONT=Arial]chain ${210:string}gpxelinux.0[/FONT][/SIZE]
[SIZE=4][FONT=Arial] [/FONT][/SIZE]
[SIZE=4][FONT=Arial](URL can be changed with IP’s)[/FONT][/SIZE]
[SIZE=4][FONT=Arial] [/FONT][/SIZE]
[LIST]
[][SIZE=4]Run the usb_format tool, check off “quick”[/SIZE]
[][SIZE=4]Run the Grub4dos.exe[/SIZE]
[/LIST]
[LIST=1]
[][SIZE=4][FONT=Arial]Under disk choose the flash drive[/FONT][/SIZE]
[][SIZE=4][FONT=Arial]Press refresh next to “part list”, and from the dropdown choose “whole disk”[/FONT][/SIZE]
[][SIZE=4][FONT=Arial]Press install[/FONT][/SIZE]
[/LIST]
[LIST]
[]Go the Grub4dos folder and locate the GRLDR file and copy it to the flash drive.
[]Now open win32diskimager.exe
[]Navigate to the file you got from rom-o-matic (gpxe file) (check file extension is .img)
[]press write
[/LIST]
[INDENT=1] [/INDENT]
[INDENT=1] [/INDENT]
[INDENT=1] [/INDENT]
[INDENT=1][FONT=Arial] [/FONT]
[SIZE=4][FONT=Arial]Your flash is now ready to pxe boot your client machine[/FONT][/SIZE][/INDENT]
[FONT=Arial] [/FONT]
[FONT=Arial] [/FONT]
[SIZE=4][FONT=Arial] [/FONT][/SIZE]
[SIZE=4][FONT=Arial]#!gpxe[/FONT][/SIZE]
[SIZE=4][FONT=Arial] [/FONT][/SIZE]
[SIZE=4][FONT=Arial]echo Performing DHCP on first network interface[/FONT][/SIZE]
[SIZE=4][FONT=Arial]dhcp net0[/FONT][/SIZE]
[SIZE=4][FONT=Arial]set 209:string Myfogserver.com/pxe/pxelinux.cfg/default[/FONT][/SIZE]
[SIZE=4][FONT=Arial]set 210:string [/FONT][URL=‘http://Myfogserver.com/pxe/’][FONT=Arial]http://Myfogserver.com/pxe/[/FONT][/URL][/SIZE]
[SIZE=4][FONT=Arial]chain ${210:string}gpxelinux.0[/FONT][/SIZE]
[FONT=Arial] [/FONT]
[SIZE=4][FONT=Arial](URL’s can be changed with IP’s)[/FONT][/SIZE]
[SIZE=4]I hope this is helpfull to someone, and if there is any questions, I will do my best to answer them.[/SIZE]
[LEFT][SIZE=4]/Jimmy S. Hansen[/SIZE][/LEFT]
[FONT=Arial] [/FONT]
[FONT=Arial] [/FONT]
[FONT=Arial] [/FONT][/INDENT] -
If you want, can you test with the latest 0.33b as well. While I’m not using gpxe, the basic premise of your actions are already supported in the latest of fog.
-
I will have a look at it for sure, but I can’t seem to find 0.33b on:
[url]http://sourceforge.net/projects/freeghost/files/[/url] ?? -
[url]http://www.fogproject.org/wiki/index.php/SVN[/url]
that wiki will show you how to install svn version of fog (the very latest i.e. 0.33b)
DO NOT use this to upgrade any production version of fog.
would recommend setting up a test environment for you to play around with