• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. x9rok
    X
    • Profile
    • Following 0
    • Followers 1
    • Topics 2
    • Posts 13
    • Best 0
    • Controversial 0
    • Groups 0

    x9rok

    @x9rok

    0
    Reputation
    565
    Profile views
    13
    Posts
    1
    Followers
    0
    Following
    Joined Last Online

    x9rok Unfollow Follow

    Latest posts made by x9rok

    • RE: Boot from USB-Stick to get FOG menu for machines without PXE

      @all

      Here some new information.

      I tried another way to build my ipxe.iso. I tested rom-o-matic and included my ipxescript. It works but tomorrow i have to do further tests. But i’m still interested for some tips how to build it on centos.

      @jbsclm

      I used your script for some tests. For example:

      1. Removable USB-Stick is set to the first boot-device in Bios --> OK
      2. Hard Disk is set to second boot-device in Bios --> OK
      3. Boot from USB-Stick to get an IP and FOG menu --> OK
      4. If a task was generated on the FOG-Server, the task will run. -->
      5. If no Task was generated on the FOG-Server, the client should boot from local hard disk. After 20 seconds the clients tries to start again from the usb-flashdisk.

      ISOLINUX …
      iPXE ISO boot image
      Loading ipxe.krn…ready.

      And then nothing.

      @jbsclm Did you have the same problem ?

      Thank.

      posted in FOG Problems
      X
      x9rok
    • RE: Boot from USB-Stick to get FOG menu for machines without PXE

      First of all thanks for all answers.

      @Sebastian Roth

      i tried your solution and it fails. But i’m sure that is running. Because i tried the ISO from jbsclm --> “0_1448223513202_ipxe_ask33.zip” this works. It is nearly the same with some modifications (echos, reads, gotos and so on, and at the end of the code, there is also the command chain tftp://…). So this problem is solved.

      The ISO from “jbsclm” is very good (Thanks! FYI it still works) but for my requirements it’s not enough.
      Because of this i want to create my own ipxe script.
      Now i think the way how i’m building / creating the ipxe.iso is wrong.

      Here some basic information:

      • CentOS 6.7
      • cloned git repository ipxe

      Here are my steps, how i’m building the ipxe.iso

      1. editing the ipxescript for example:
      !#ipxe
      dhcp && goto bootup || 
      echo FAIL
      
      :bootup
      echo Enter the IP-Address of the FOG-Server
      read fog-server
      chain http://${fog-server}/fog/service/ipxe/boot.php$mac=${net0/mac}
      

      Everything as root…
      2. make bin/ipxe.iso EMBED=ipxescript

      1. copy created ipxe.iso from /ipxe/src/bin/ipxe.iso to some temp folder

      2. create bootable stick or CD/DVD

      3. try the ISO

      My result: When i’m booting from the stick i see:

      ISOLINUX …
      iPXE ISO boot image
      Loading ipxe.krn…ready.
      _

      And then the machine reboot automatically and this never stops.

      Do i’m making something wrong ?

      Thanks.

      Richi

      posted in FOG Problems
      X
      x9rok
    • Boot from USB-Stick to get FOG menu for machines without PXE

      Hi,

      i’m looking for a solution to boot machines without PXE-function and get the FOG-menu. (Register Host, Imaging Restoring and so on)

      At first i tried it with gpxe (iso which emulate a pxe boot process), but this doesn’t work.
      Then i read that it’s better to realize this with ipxe. So i followed this article: https://forums.fogproject.org/topic/4782/help-usb-boot-fog/27 but it don’t works full.

      I get an IP via dhcp, this is ok. But what i have to do to get the FOG-menu ?

      I cloned the ipxe repository from git and so on.

      Editing the ipxescript

      #!ipxe
      dhcp
      –> And now what i have to put there ? bzImage, init.xz or boot.php ???
      –> My knowledge fails here 😄

      After this i would create the the iso for my bootable stick with make bin/ipxe.iso EMBED=ipxescript.

      Have anyone some ideas ?
      Is there someone with the same requirement ?

      About an answer or help i would be very happy.

      Thanks.

      Richi

      posted in FOG Problems
      X
      x9rok
    • RE: Virus History is empty after Clamav-Scan

      @all

      Hi,

      i think we can close this topic to solved.
      I’ve found anouther solution to generate reports after a clamav-virus scan.

      I will publish this when it’s ready.

      Thanks for all answers and support 🙂

      Richi

      posted in FOG Problems
      X
      x9rok
    • RE: Virus History is empty after Clamav-Scan

      @x9rok fog.av

      posted in FOG Problems
      X
      x9rok
    • RE: Virus History is empty after Clamav-Scan

      @ Tom Elliot

      Hi,

      to be sure i’ve done a fresh Fog-Server installation again.

      1. Prepared CentOS for FOG (disbale iptables, selinux and so on…)
      2. Installed FOG 1.2.0 and backup the database
      3. Installed GIT and cloned the newest FOG-Trunk version

      Now the FOG-Server installation has the version 5565.

      Kernel Versions are:

      • bzImage Version: 4.2.3
      • bzImage32 Version: 4.2.3

      Installation runs without errors.
      So again i tried to register a host via “Perform full Host registration and Inventory”. This time it runs without an error 🙂 At the end of this procedure i get the message “Done without imaging”. That’s ok. After this, “Attempting to send inventory” but no reboot will starts like before with the version 1.2.0.
      On the Management console i can see a registered Host. Better then before ^^. With the trunk version before, this was not possible.

      Then i started to run some Tasks. I tested for example the “Hardware Inventory Task”, this fails and the testclient goes into a loop. I opened the Logviewer to look for some errors --> white screen and nothing hanppens.

      FOG 1.2.0

      Now i think i really should go back to 1.2.0 without trunk. Everything what i need works fine with this version. Imaging, Restoring, all possible Tasks and Clamav, but only without reporting ^^

      In our production environment our machines should have no internet connection. So for the Clamav-Scan i created a directory in /var/www/html/fog/clamav. A crontab-Job runs every day and download the newest virus signatures (main.cvd, daily.cvd, bytecode.cvd) and put it to these directory.

      I’ve modifed the fog.av in /var/www/html/fog/service/ipxe.

      Added some wget commands to download the virus signatures from the FOG-Server and not from the internet. So this works.

      Here is the fog.av script with a comment in line 84.
      I compared this script with the newest trunk update. It’s nearly the same. So i’m sure, that the Clamav-Scan with the newest trunk-version also won’t report a virus. You can see it only local on the machine at created directory /fog/log.txt.

      I hope you can start something with these information.

      @Sebastian Roth

      Yes, my dhcp works. Client gets an IP and so on after iPXE.
      Have done some tests with FOG 1.2.0 (Imaging, Restoring, Scanning, …) That’s ok.

      Thanks. Richi

      posted in FOG Problems
      X
      x9rok
    • RE: Virus History is empty after Clamav-Scan

      @george1421

      Here is the error_log:

      error_log

      Richi

      posted in FOG Problems
      X
      x9rok
    • RE: Virus History is empty after Clamav-Scan

      @Wayne-Workman @Tom Elliot

      I have installed an upgrade like in the wiki described. Now the version of FOG is 5229.

      So still i get the message “Unable to register for following reasons and then --> BLANK”.
      I cannot test the clamav functionality cause i have no registered hosts in my database.

      I have read the article “(r5207) Host Management bugs” but it doesn’t helped me. Is this an open bug too ? Is there anyone with the same problem ?

      My last idea is to go back to FOG 1.2.0 without Trunk and to modify the fog.av-script to upload a virus found and add it to the database. Before i would try this, i hope to find some help or special tips here.

      Thanks.

      Richi

      posted in FOG Problems
      X
      x9rok
    • RE: Virus History is empty after Clamav-Scan

      @Wayne-Workman

      Okay, i will try this. Thanks for your answer.

      posted in FOG Problems
      X
      x9rok
    • RE: Virus History is empty after Clamav-Scan

      @Tom Elliott

      So i have done an upgrade via wget like you said.
      Now the FOG-Server installation has the version 5209.

      Kernel Versions are:

      • bzImage Version: 3.15.6
      • bzImage32 Version: 3.15.6

      To be sure i removed the testclient from the hostlist and tried to add it again via “Perform full Host registration and inventory”. This procedure fails with following message: “Unable to register for the following reasons: and then --> BLANK…”.

      I tried to use an existing host from the Hostlist and create a task (Clamav Virusscan). The task doesn’t run.
      I started the testclient and you could see the FOG-Boot-Menu (Boot from local hard disk, Memtest and so on…)

      When i try to delete a task, nothing happens and the task is still in the list.

      So Tom do you have another idea ?
      Is there a newer Version than 5209 ? If yes, how can i check this ?
      Maybe there some other updates available ?

      Thanks.

      Richi

      posted in FOG Problems
      X
      x9rok