• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. george1421
    3. Posts
    • Profile
    • Following 1
    • Followers 65
    • Topics 113
    • Posts 15,347
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: SELinux Policy

      No luck compiling for me on Centos 6.7

      [root@centtest SELinux]# make -f /usr/share/selinux/devel/Makefile fog.pp
      Compiling targeted fog module
      /usr/bin/checkmodule:  loading policy configuration from tmp/fog.tmp
      fog.te":50:ERROR 'unknown class service used in rule' at token ';' on line 3260:
      allow unconfined_t init_t:service enable;
      #============= unconfined_t ==============
      /usr/bin/checkmodule:  error(s) encountered while parsing configuration
      make: *** [tmp/fog.mod] Error 1
      
      
      posted in General
      george1421G
      george1421
    • RE: Firewall Configuration

      During the install of FOG, it asks to make fog a dns and dhcp server but those ports are not listed in the script.

      For clarity, I took and rebuilt a clean centos box. I set the firewall rules and then installed the latest SVN trunk. I just remembered that I need to set the selinux policy since it is centos defaults. But any way the plan is to apply your settings to a clean install install your policies and then install the latest SVN trunk.

      posted in General
      george1421G
      george1421
    • RE: Firewall Configuration

      Ok a couple of things that hit me right away.

      The instructions above for rhel is for Centos 7.X and newer. The firewalld function is not available on Centos 5 and 6. Centos 5 iptables is a mess so I wouldn’t even recommend installing FOG on Centos/rhel 5. So for Cento/rhel 6 you must use the “Other” instructions.

      The second thing I ran into using the Other instructions is the first line for adding the modules to the iptables-config. The last IPTABLES_MODULES entry config wins. So after running that first line and restarting iptables I only had one new module loaded “nf_conntrack_netbios_ns” The product of that line looks like this in the iptables-config file.

      IPTABLES_MODULES=“nf_conntract_tftp”
      IPTABLES_MODULES=“nf_conntrack_ftp”
      IPTABLES_MODULES=“nf_conntrack_netbios_ns”

      The correct syntax should be

      IPTABLES_MODULES=“nf_conntract_tftp nf_conntrack_ftp nf_conntrack_netbios_ns”

      I have the screen shots if you need them but I think that info should get you pretty close.

      posted in General
      george1421G
      george1421
    • RE: Debian 8, Fog trunk, PXELinux on MS Server and MS DHCP help

      @FlowLive said:

      Took longer than expected, had the FOGFTP error and had to fix that.

      Now I try the option in the menu but unfortunately all I got is a blinking cursor 😞

      crud, I just noticed that the forum ate some of my command line. Lets try it as code. You have to pay attention to the double forward and back slashes.

      Menu Item: wds.BootIt
      Description: Launch WDS Boot x86
      Parameters:
      set wdsserver:ipv4 192.168.1.88
      set next-server ${wdsserver}
      chain tftp://${wdsserver}/Boot\\x86\\wdsnbp.com
      
      

      The slowness in the forum is driving me a bit nuts today. Its taking me almost 12 minutes to post this.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Debian 8, Fog trunk, PXELinux on MS Server and MS DHCP help

      The typical workflow for a fully configured but blank FOG server is this

      1. Before you build your reference image, pxe boot your reference image computer (VM) into the FOG pxe menu and select full registration. Enter the computer name and any other parameters necessary and submit the registration to the FOG server.
      2. Reboot the reference image computer and then build your reference image.
      3. Once your reference image is built then sysprep and power off your reference image.
      4. From the FOG menu locate the reference image computer that you registered before and setup a upload task to capture the image from the reference computer. Don’t forget to check the box to power off the reference computer after the capture is done.
      5. PXE boot the reference computer and the upload will begin automatically. Once the upload is done the reference computer will power off. Set this aside for now.
      6. PXE boot your first target computer into the FOG menu and register it. Once it is registered you can select quick image to download the captured image to the first target computer.
      7. Fine tune and repeat.
      posted in FOG Problems
      george1421G
      george1421
    • RE: Debian 8, Fog trunk, PXELinux on MS Server and MS DHCP help

      @FlowLive No boot option: ?? I said it was a guess.

      But that should build the FOG PXE menu correctly for chaining. Since the documentation for the new fog pxe menu management is not written yet, I could only try to reverse engineer what the fields are and what they do to the pxe menu. It should work, but no promises.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Debian 8, Fog trunk, PXELinux on MS Server and MS DHCP help

      I’m going to take a SWAG at it.

      If you go into FOG settings and add a new PXE Menu item, and enter these settings.

      Menu Item: wds.BootIt
      Description: Launch WDS Boot x86
      Parameters:
      set wdsserver:ipv4 <ip_addr_wds_server>
      set next-server ${wdsserver}
      chain tftp://${wdsserver}/Boot\x86\wdsnbp.com

      In the example above replace <ip_addr_wds_server> with the real IP address of your wds server. Then PXE boot your client and see if it chains correctly.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Debian 8, Fog trunk, PXELinux on MS Server and MS DHCP help

      As I mentioned before, I haven’t use WDS. Can you answer what do you need to enter in options 66 and 67 to make WDS work?

      Can we make fog chain to WDS probably.

      Can I make FOG boot the MDT lighttouch image (which your deploying with WDS), yes.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Debian 8, Fog trunk, PXELinux on MS Server and MS DHCP help

      @FlowLive First let me apologize for hijacking this thread a bit. But in the end I think I have a workable solution for your environment to allow you to run FOG along side MDT. I understand what you are trying to do by chaining FOG and MDT/WDS. Wayne has provided a way for you to mesh WDS and FOG into a pxelinux boot menu here.
      http://www.vcritical.com/2011/06/peaceful-coexistence-wds-and-linux-pxe-servers/

      And in my case I have worked out a way to launch a MDT install from the FOG pxe boot menu. This would allow you to launch and install MDT as you do today, but though FOG. It would provide a smooth transition path from MDT deployment to eventually a FOG deployment.

      I’m going to say this with the most sincerity. The path you are on is kind of a waste of time to building your own kernel. You can do it that way if you want, but there are now documented ways to get it done without having to mess with syslinux. One of the issues with PXELinux (at least the last time I looked at it) was it only supports tftp booting and all the restrictions round that. Where iPXE can use other boot methods like http. Now if you use ipxe for your boot loader then chaining would work better. Then you could chain to fog using something like a call to

      kernel ipxe.krn dhcp && chain http://<fog_ip_address>/fog/service/ipxe/boot.php?mac=${net0/mac}

      (stolen from the fog pxe default configuration)

      posted in FOG Problems
      george1421G
      george1421
    • RE: Debian 8, Fog trunk, PXELinux on MS Server and MS DHCP help

      Bingo, I have it.

      I have two ways to boot a MDT litetouch image via FOG.

      1. The first way is how I stated to take the iso image created by MDT and move that to your FOG server (on rhel variants) in /var/www/html/iso folder. The file I used was to move LiteTouchPE_x86.iso from the MDT deployment share to that …/iso folder as ltpe_x86.iso. Then to create the PXE boot menu as I outlined below. The freeze issue I had was related to how I created the VM. I created it as a linux VM not a windows VM (shame on me). Once I reset it to a windows 7 VM the system booted to the lite touch menu.

      2. By using instructions found in Wayne’s link below. http://ipxe.org/howto/winpe I used this as the bases of option 2. I’ve created WinPE USB boot drives so I already had WAIK installed and already had a boot.wim created, so I’m not going into that part. But in the target winpe environement I took the ISO folder and moved it to the fog server in /var/www/html/ISO (which is different than the <lowercase> iso folder from option 1). I placed the wimboot file (downloaded from the link provided by Wayne) in the web root folder /var/www/html. Then copied the LiteTouchPE_x86.wim from MDT deployment share to /var/www/html/ISO as boot.wim. And finally created the FOG PXE menu with these settings.
        Menu Item: winpe.BootMDT_x86
        Description: Boot MDT LiteTouch x86
        Parameters:
        kernel http://<fog_server_ip>/wimboot
        initrd http://<fog_server_ip>/ISO/boot/bcd BCD
        initrd http://<fog_server_ip>/ISO/boot/boot.sdi boot.sdi
        initrd -n boot.wim http://<fog_server_ip>/ISO/boot.wim boot.wim
        boot

      I still would like to understand how I can use the variables to the fog server IP address so I don’t have to hard code the IP address into the boot menu. That would make the instructions a bit more dynamic.

      Understand what I’ve done is a first pass attempt to make FOG deploy both FOG images and to launch MDT’s litetouch image without the need of a WDS server (which would have made things a bit easier in one respect)

      posted in FOG Problems
      george1421G
      george1421
    • RE: Debian 8, Fog trunk, PXELinux on MS Server and MS DHCP help

      @Wayne-Workman said:

      I would disagree with where the ISO is being kept - the installer blasts the fog web root every time it runs. I would suggest using /var/www/html/iso or creating an /iso directory and then doing a symbolic link to /var/www/html

      Lets not get what I’ve done so far confused with the finished and working solution. Right now I’m in the mode, “Can I just make it work”. The next phase is; “How should it be setup for production”. I agree with you that the container should not be in the …/html/fog directory. It should probably be a symbolic link from /var/www/html/iso to /opt/fog/iso or something similar to keep the big files on the /opt partition (if setup that way) and off the / partition.

      I am going through this for selfish reasons since with our old (non-FOG) pxe server we had utilities setup (like dban and bart-pe) that I need to bring those forward and launch them from the FOG server. I now have a slightly better understanding of the fog pxe boot menu so I think I can do this without a whole lot of pain.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Debian 8, Fog trunk, PXELinux on MS Server and MS DHCP help

      I have had some successes and a failure with this approach but I think I’m on to something.

      What I found so far (through a bit of hacking) is that I can create a new PXE menu using the FOG management GUI.

      Menu Item: winpe.x86
      Description: WinPE LiteTouch x86
      Parameters:
      initrd http://<fog_server_ip>/fog/iso/ltpe_x86.iso
      chain memdisk iso raw

      I created a directory /var/www/html/fog/iso
      Then I copied the MDT LiteTouchPE_x86.iso to that iso folder as ltpe_x86.iso

      I then created a new VM with 4GB of ram and configured it to boot via pxe.

      I was able to pxe boot into the iso image but somewhere during the boot the system hung. The GUI came up and I did have a user surface before the system froze.

      The other thing I found is that in the boot menu, I would have thought that the following variable ${boot-url} would have expanded but it did not, so I had to use a text literal ‘<fog_server_ip>/fog’ to get the system to boot. While this wasn’t a total success (because the image did not fully boot), it isn’t a total failure either because it started to work.

      I’m going to have to table this for tonight, but I have a few other ideas I’ll try in the AM.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Debian 8, Fog trunk, PXELinux on MS Server and MS DHCP help

      @Wayne-Workman said:

      http://ipxe.org/howto/winpe

      I didn’t want to go that route because of the number of files needed in the /tftpboot folder. I was holding that as a plan B. The iso image is just one file, plus changes to the ipxe boot menu. Do you know of a wiki that discusses the menu management? I’m having an issue finding much details on it.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Debian 8, Fog trunk, PXELinux on MS Server and MS DHCP help

      In researching how to make pxe boot menu changes with the new system I found this link.

      https://wiki.fogproject.org/wiki/index.php/Advanced_Boot_Menu_Configuration_options

      The second frame under “Examples Basic Menu” shows exactly what needs to be done in the old menu to boot a winpe.iso image. So I’m not swimming in uncharted waters.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Debian 8, Fog trunk, PXELinux on MS Server and MS DHCP help

      @Wayne-Workman Actually I think I figured out another way.

      Understand I don’t have WDS setup and we build our reference images in a vm via an litetouch iso image. So the only pxe booting we do is into FOG. I’m kind of winging it here, but I know what needs to be done. I have found a reference to allow me to boot ISO images via tftp (I did this a while ago for diskless booting linux and a few other iso based utilities). If fog would use the traditional pxelinux menu I know how to get it done. Right now I’m trying understand how I can add these options to the fog pxe menu.

      kernel memdisk
      append iso initrd=litetouchpe_x64.iso raw

      Once that is done, I think all I need to do is copy the iso image to /tftpboot directory on the fog server. Again this is a bit of guessing that it should work. The target computers will have 4GB of ram so there is enough room for the iso image to exist in memory as well as the WinPE environment (in theory)

      posted in FOG Problems
      george1421G
      george1421
    • RE: Debian 8, Fog trunk, PXELinux on MS Server and MS DHCP help

      I kind of have a similar setup as you, but not quite a chaotic.

      Before I go too deep, I’m wondering if you have a separate subnet (vlan) away from your MDT environment you can use for testing? If have a subnet you could change the pxe boot settings just for that subnet to point to FOG. That way you would have a good test lab setup to ensure that everything deploys correctly before going live.

      How I would go about this (be aware I have not needed to do it this way), is just as you stated to chain load MDT from FOG. Let the client pxe boot into the FOG menu and then add FOG menu item to chain load into MDT.

      In our environment we use MDT to build the reference image, sysprep the image, and then capture the image with FOG for deployment. We do not deploy using MDT because of the volume of systems we manage.

      If I can figure out how to chain load MDT from FOG I have the kit in place to test this concept.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Is this a problem in my database?

      We should first start out with what version of FOG are you using? Are you using the 1.2.0 release or a SVN trunk version. If it is a SVN trunk version what is the version number?

      As for is this a problem, I’ll have to defer to the developers. Just off the top of my head, I would have to say yes this should be concerning.

      1. Since they are checking for it, there may have been a problem in the past with this being set to 0
      2. The function of an auto increment column is to generate a sequential number, typically starting at 1.

      But, only the @Developers know if it WILL BE a problem moving forward.

      posted in FOG Problems
      george1421G
      george1421
    • RE: init.xz issue?

      @KKTwenty101 Interesting, I also do a minimal install for Cento 6 and 7 and fog installs no problem. As long as you remember to disable iptables and selinux. I know that FOG installs mysql during the initial install because the password for mysql root user is blank. If you are doing something outside of the normal FOG install then something is broken either with the system or the FOG installer.

      My FOG server is behind a proxy server so I have to create a few envron variables and update wgetrc and subversion with the proxy server settings, but the basic workflow is

      1. Install centos 6.5
      2. yum upgrade -y
      3. yum install subversion wget -y
      4. reboot
      5. disable selinux and iptables
      6. reboot
      7. mkdir /opt/fog_trunk
      8. cd to the fog_trunk and use subversion to copy the current build
      9. cd /opt/fog_trunk/bin
      10. ./install.sh

      That’s all I’ve done and it works correctly right out of the box, so to speak.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Mounting File System Failed

      @Rusty It would be interesting to know if this computer’s bios is up to date. From Wayne’s suggestion, it would be great to know what SVN worked so then we could go back to the devs and say what’s different between then and now, why did this stop working? I’m still leaning towards the hardware on this issue though.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Mounting File System Failed

      @Rusty said:

      Updating to SVN 4367 didn’t help with this Dell Inspiron I have here. The second laptop I have here boots into FOG menu everytime.

      Not to fork this thread, but just so I can get this clear in my head.

      You have two computers that are exactly alike. They are the same models, with the same bios release and the same bios settings. But one boots to the fog menu and the other hangs at the init devices?

      Have you tried to reset the bios back to defaults on the one that doesn’t work, save and reboot, then make any changes necessary for your image (uefi, legacy, roms, etc.) save then pxe boot. If it still hangs. Power it off, remove the battery and charging cable. Then power everything back up. If it still hangs then I might consider the mobo has issues. There may be a way (kernel parameter) that the developers can set to tell exactly where its hanging.

      posted in FOG Problems
      george1421G
      george1421
    • 1
    • 2
    • 758
    • 759
    • 760
    • 761
    • 762
    • 767
    • 768
    • 760 / 768