SOLVED rc 13 uploading image problem.

  • Server
    • FOG Version: 1.3.0 rc13
    • OS: unbuntu 14.04
    • Service Version: na
    • OS: na

    i am uploading images from a PC i have here on my bench called testpc in the hosts table to the fog server, i plug in various harddrives and image from it, but when i image back down using deploy image its replacing the computername on the image with “testpc” . I dont want this to happen. Anyway to stop it?

  • as for the “replacing the computer name” issue check the testpc primary mac address for “Ignore client” and this should prevent changing the hostname to testpc.

  • @irishfoguser There’s also this wiki article for your problem:

  • Moderator

    @irishfoguser This second error sounds like your FTP user is not setup correctly.

    There is a linux user account that FOG uses called fog this unfortunately is the same name as the default admin user for FOG (fog). They are not the same in function. You need to ensure the linux fog user account password matched what you have setup for the ftp account. This is access in the storage node configuration.

    How this works is that when you capture an image to the FOG server, the image is sent via NFS to the /image/dev/<mac_address> directory. When the image upload is complete the files are move to /images/<image_name> directory. Instead of copying these huge files around, the developers use FTP running on the FOG server to just change the pointer location of the files. This saves time and effort to physically move around multi GB of data. That is how FTP comes into the process. Its only used to quickly change the file pointers after the upload is complete.

  • @george1421 Yeah i found that and disabled it.

    just trying it now.

    another issue i am having is i cant update an image i have already created, its gives the following error in apache

    PHP Warning: ftp_delete(): Delete operation failed in /var/www/html/fog/lib/fog/fogftp.class on line 243
    PHP Warning: ftp_rmdir(): remove directory operation failed in /var/www/html/fog/lib/fog/fogftp.class on line 784

  • Moderator

    @irishfoguser Is the FOG client installed on the image before you captured the reference image? The FOG Client will do this if that option is turned on.

    If the FOG client is not in stalled there is a early host name change option in fog that might be doing this.