I’ve search the forums and can’t find any article that list specific steps for creating a SMB share and mounting it.
I tried using NFS. However, our external storage is a Buffalo Terastation. From the forums, I found out that NFS doesn’t work with this device. I read suggestions for setting up SMB connection to the external storage. However, there are not a lot of specific articles that say how.
I’m also running CentOS 6.5 with Fog version 1.2.0 on a Proxmox VM.
Here is what I have pieced together so far.
Prior to installing FOG, do this:
- I setup a share on the Terastation called images. I assigned no file restrictions to it.
- I created a password file called secret.txt in /root. I put in it:
username=fog
password=(my local fog user in linux password)
- mkdir /images
- sudo chmod -R 777 images
- chown -R fog.root /images
- vi /etc/fstab
I added the following line:
//x.x.x.x/images /images cifs credentials=/root/secret.txt,noperm,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
- I installed fog
- The home screen shows the full storage of my remote storage device.
- I create an image in Image configuration
- I registered a host computer
- I assigned the image for upload
- I booted up the host and I receive the following error message:
mounting x.x.x.x:/images/dev on /images failed: permission denied
Checking Mounted File System
An error has been detected.
Fatal error: Failed to mount NFS Volume
Computer will reboot in 1 minute.
If I open the share in Windows explorer and attempt and on CentOS - I can see the directory structure. If I create a folder or file, I can see those folders and files appear in the Windows share. So, I believe I have the file permissions correct.
I also saw an article that you needed to create the .mntcheck file. I see this file in the dev directory already with 777 access for everyone. I read somewhere else that this file needs to exist in the /images directory as well. So, I copied the file from /images/dev to /images
So, why is Fog not able to connect and create the image?
Any help would be greatly appreciated!