• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Moving FOG server online

Scheduled Pinned Locked Moved
Tutorials
3
4
2.5k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    Jimmy Hansen
    last edited by Feb 27, 2014, 9:20 AM

    [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]

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Feb 27, 2014, 11:48 AM

      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.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • J
        Jimmy Hansen
        last edited by Feb 27, 2014, 1:07 PM

        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] ??

        1 Reply Last reply Reply Quote 0
        • L
          Lee Rowlett Developer
          last edited by Feb 28, 2014, 1:18 AM

          [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 🙂

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            2/4
            Last post

          165

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project