• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. G0dzilla
    G
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 31
    • Best 0
    • Controversial 0
    • Groups 0

    G0dzilla

    @G0dzilla

    7
    Reputation
    524
    Profile views
    31
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Age 38

    G0dzilla Unfollow Follow

    Latest posts made by G0dzilla

    • RE: SSDs and FOG

      Perhaps try upload an image from the HDD - Single Disk Resizeable, and try deploy that to SSD.

      Other things that come to mind, from a recovery environment;
      bootrec /fixmbr
      bootrec /fixboot
      bootrec /rebuildbcd

      You may be able to find a “Windows 7 Repair iso” somewhere if you need one.

      posted in FOG Problems
      G
      G0dzilla
    • RE: CentOS ClamAV and Fog 1.2.0.

      [quote=“Tom Elliott, post: 35972, member: 7271”]The way FOG does fog.av, I make /usr/share/clamav a mount point with a size in memory of 100M.

      This should be plenty large enough to hold your main.cvd file.[/quote]

      Thanks - That’s handy to know.

      [quote=“albion, post: 35957, member: 25750”]The main.cvd download got to about 10% then failed on a full disk. “getfile: Can’t write 1440 bytes to /usr/share/clamav/…”[/quote]

      I do not know why you receive that error then.
      Perhaps troubleshoot with another debug task.
      You can start a scan task with “avmode=q /bin/fog.av” , this may help troubleshoot further.

      In my setup, I have switched to client updating the .cvd files from the fog server directly and changed to use a static resolv.conf.
      If anyone is interested;

      Commands:

      cd /var/www/html/fog/services/ipxe
      xz -d init.xz
      mkdir mountdir
      mount -o loop init mountdir
      cd mountdir
      rm etc/resolv.conf [should ask to delete a symbolic link]
      touch etc/resolv.conf
      echo “nameserver MyInternalDNSServer” > etc/resolv.conf
      echo “nameserver MyInternalDNSServer2” >> etc/resolv.conf
      vim bin/fog.av [comment out line 8 - #setupDNS ${dns}; ]
      echo “DatabaseMirror IPAddressOfFogServer” > etc/freshclam"
      echo “DatabaseOwner root” >> etc/freshclam"
      cd …
      umount mountdir
      rmdir mountdir
      xz -z -9 -C crc32 init

      cd /var/www/html
      ln -s /var/clamav/bytecode.cvd
      ln -s /var/clamav/daily.cvd
      ln -s /var/clamav/main.cvd

      This assumes the .cvd files are located in /var/clamav
      FOG server runs freshclam daily with cron

      posted in Linux Problems
      G
      G0dzilla
    • RE: CentOS ClamAV and Fog 1.2.0.

      [quote=“albion, post: 35957, member: 25750”]The main.cvd download got to about 10% then failed on a full disk. “getfile: Can’t write 1440 bytes to /usr/share/clamav/…”[/quote]

      If you increase the size of the initrd you should be able to download the files.
      [url]http://fogproject.org/forum/threads/change-initrd-size.3920/[/url]

      [quote=“albion, post: 35915, member: 25750”]
      Although the link for resolv.conf was in /etc, the file I created in /tmp didn’t exist. When I tried to ping google.com I got the response “ping: bad address ‘google.com’”.[/quote]

      Maybe try delete the link for /etc/resolv.conf -> /tmp/resolv.conf, then touch /etc/resolv.conf, add your DNS settings in there to - this got DNS working for me in my testing.

      I would think after both of these things it will work for you.

      [quote=“albion, post: 35953, member: 25750”]I can freshclam once I add /tmp/resolv.conf in debug mode, although the download is rather slow. 5 minutes and only at 3% of the main.cvd download. I have 10meg, so I am assuming the download server is not in the US.[/quote]

      You could change the setting in the initrd of the /etc/freshclam file to use a US mirror to see if that helps.

      [SIZE=4][B]Closest mirrors[/B][/SIZE]

      The DatabaseMirror directive in the config file specifies the database server freshclam will attempt (up to MaxAttempts times) to download the database from. The default database mirror is [URL=‘http://www.clamav.net/doc/latest/html/database.clamav.net’]database.clamav.net[/URL] but multiple directives are allowed. In order to download the database from the closest mirror you should configure freshclam to use [URL=‘http://www.clamav.net/doc/latest/html/db.xx.clamav.net’]db.xx.clamav.net[/URL] where xx represents your country code. For example, if your server is in “Ascension Island” you should have the following lines included in freshclam.conf:
      DNSDatabaseInfo current.cvd.clamav.net
      DatabaseMirror db.ac.clamav.net
      DatabaseMirror database.clamav.net

      The second entry acts as a fallback in case the connection to the first mirror fails for some reason. The full list of two-letters country codes is available at [url]http://www.iana.org/cctld/cctld-whois.htm[/url]

      posted in Linux Problems
      G
      G0dzilla
    • RE: CentOS ClamAV and Fog 1.2.0.

      I have similar behaviour on my production FOG server.
      My resolv.conf is fine in the init.xz, I have DNS working + internet connectivity, but I can’t run freshclam to update the client.
      I also can’t run freshclam on the FOG server.
      I don’t have my lab at home running at the moment for more testing.

      Do you have a firewall ?
      Can you run freshclam on the server?

      posted in Linux Problems
      G
      G0dzilla
    • RE: CentOS ClamAV and Fog 1.2.0.

      [quote=“albion, post: 35863, member: 25750”]After finally figuring out how to uncompress and mount the init file I was able to add the resolv.conf. That made no difference. But I also noticed that the error message is telling me there are no database files in /usr/share/clamav. I check that out as well and noticed there are no database files there. When I try to add the files from another install I am met with a “No space left on device” error.[/quote]

      After the resolv.conf file is added to the init.xz it still needs entries in it for DNS to work.
      This can be done manually or with a program like udhcpc.
      This can all be done in a debug task - followed by the command “freshclam” to see if clamav can update. This may not work still, but should get the DNS working at least.

      I believe the database files are left out to save space in the init.xz .
      The init.xz file is currently limited to 57MB I think.
      Here is info on increasing it - [url]http://fogproject.org/forum/threads/change-initrd-size.3920/[/url]

      I think a more ideal solution for Clam with FOG would be for the clients to download the database files from the local fog server instead of going out on the internet for them. It would involve a bit more manual customizing for each server tho. I think virus scanning with FOG is just a cool feature - but isn’t really important.

      You can always try Trinity Rescue Kit for scanning, that has 4-5 scanners built in and can be PXE booted.
      There is also a script available to run all the scanners.
      [url]http://code.remyservices.net/trk_scripts/wiki/Home[/url]

      remy_virusscan - Offers the ability to update all scanners at once and then scan all attached drives with the updated scanners in a silent mode. Scanners include Avast!, BDE, CHKRootkit, ClamAV, F-Prot, RKHunter and Vexira.

      posted in Linux Problems
      G
      G0dzilla
    • RE: CentOS ClamAV and Fog 1.2.0.

      Here is some info I have found that I think may be related.

      From what I can see, there is no /etc/resolv.conf file in the init.xz, and no default program to add entries to resolv.conf [dhclient, wicd etc, I don’t know what program is currently used to get a DHCP address] .

      Inside the init.xz there is a sym link;

      /etc/resolv.conf -> /tmp/resolv.conf

      /tmp/:
      total 1.0K
      ldconfig

      /tmp/resolv.conf does not exist.

      Things that may help testing/fixing;

      You can edit the init.xz and add the /etc/resolv.conf [or /tmp/resolv.conf].
      You can run udhcpc to automatically add DNS servers to resolv.conf

      posted in Linux Problems
      G
      G0dzilla
    • RE: CentOS ClamAV and Fog 1.2.0.

      Is this the error ?

      [ATTACH=full]1309[/ATTACH]

      I’m also running Centos 6.5 + FOG 1.2.0.

      The init.xz [i think its this file] doesn’t have a database in it to use already, and it cant go out and download one hence the error. Need a file for clamav to use in the init.xz, or verify your client has connectivity to the internet, can test this with a debug task.

      I’ll look more into it later.

      [url=“/_imported_xf_attachments/1/1309_FOGClamAV.png?:”]FOGClamAV.png[/url]

      posted in Linux Problems
      G
      G0dzilla
    • RE: CentOS 6.5 and fog 1.2.0

      Upload = Upload will pull an image from a client computer that will be saved on the server.
      Download = Deploy action will send an image saved on the FOG server to the client computer with all included snapins.

      Upload is for creating.
      You cant download/deploy an image because you don’t have one.

      Try an upload task.

      posted in FOG Problems
      G
      G0dzilla
    • RE: CentOS 6.5 and fog 1.2.0

      Have you uploaded an image ?

      posted in FOG Problems
      G
      G0dzilla
    • RE: IPXE help

      Building A successfully gets DHCP addresses etc as well ?

      posted in FOG Problems
      G
      G0dzilla