FOG ClamAV Task Mount Permission Denied on Ubuntu.
Hi there, I’ve taken myself on a crash course journey in to Linux (Ubuntu in this case) and deployments with FOG over the last few days. Normally I’m windows sysadmin but want to expand my skillset so I’ve been running some VM’s and decided FOG would be a great implementation and cool task to wipe and redeploy servers I’ve been messing with.
After following some guide and a lot of restarting I finally managed to get FOG working yesterday in a new Ubuntu VM.
I have tested registering a host, uploading the image and redeploying and all is working fine. The fog set up is on a fresh ubuntu build and fog is standard, apart from having issues with the FTP client whereby I had to change the username/password, then change it back again from the password listed in the fog configuration file (can’t remember where this was located now, still a bit lost with Linux file systems, somewhere in /opt/fog irrc).
Anyway, the problem right now is that I added a CLAMAV task to my win server host and set to run asap. I rebooted the VM’d host and it picks up the task but encounters a problem loading the NFS share and reboots after a minute. I’m not sure if this is because of the password I changed earlier or something else. The username/password in the fog storage is the same as the fog linux user account. I am guessing that the the fact I can upload and deploy images means the user/pass for the /images dir is fine but there is some mismatch somewhere with the /bin/fog.av dir.
Error message is:
Unable to mount location. (/bin/fog.av)
Reason: mount : mounting 192.168.1.46:/opt/fog/clamav on /opt/fog/clamav failed Permission denied
I would appreciate some help here as I think it’s a neat feature and this problem is probably going to occur with other mounted tasks if I need to use them (disk wipe seems very handy also and WOL).
@foggystarz You might want to look through this thread for ideas for pxe booting recovery media with FOG: https://forums.fogproject.org/topic/10944/using-fog-to-pxe-boot-into-your-favorite-installer-images/3?_=1590418175520
Thanks for reply @Sebastian-Roth. I’ll create a Win PE recovery image or something like that instead.
@foggystarz Hi and welcome to the forums.
I am guessing that the the fact I can upload and deploy images means the user/pass for the /images dir is fine but there is some mismatch somewhere with the /bin/fog.av dir.
The AV feature of FOG has been dropped some time ago but never fully been removed from the code. Find more information on this here: https://github.com/FOGProject/fogproject/issues/328
Now that you bring it up I might look into fixing this soon so new users like you don’t run into this again.