Seeing the updates to storage for containers and such I created a NFS share to hold ISO and Template files that I figured could be used by all of the nodes on the cluster. However, I have not figured out where to actually place files so that they are recognized. The systems do all have the share mounted under /mnt/pve and I see it created a directory structure with template as the root directory. Under that are cache and iso, which I am assuming are for the template gz files and iso files respectively. I can put files on their from the command line so no read/write issues. However, no matter where I seem to put them (trying templates at the moment) the system does not see any available templates when I create a container.
Also, the storage/content view in the web interface never seems to show the files. Uploading them from the web interface does work, and puts them where I would expect. However, they continue to remain unseen when we try to create either a container or VM. Did notice that originally the NFS share was showing all UID/GID as 4294967294. This was corrected by editing the /etc/default/nfs-common file and setting NEED_IDMAPD=yes along with restart. Still no access, even though mapping to users and groups. Removed all files in the share and then removed the share from web interface. Added it back in and tried again figuring maybe perms were wrong. Here is the current dir structure / perms:
# ls -alR
.:
total 12
drwxrws--- 3 nobody nogroup 21 Nov 22 14:57 .
drwxr-xr-x 3 root root 4096 Nov 22 11:30 ..
drwxr-s--- 4 root nogroup 28 Nov 22 14:57 template
./template:
total 16
drwxr-s--- 4 root nogroup 28 Nov 22 14:57 .
drwxrws--- 3 nobody nogroup 21 Nov 22 14:57 ..
drwxr-s--- 2 root nogroup 100 Nov 22 15:15 cache
drwxr-s--- 2 root nogroup 6 Nov 22 14:57 iso
./template/cache:
total 493376
drwxr-s--- 2 root nogroup 100 Nov 22 15:15 .
drwxr-s--- 4 root nogroup 28 Nov 22 14:57 ..
-rw-r----- 1 root nogroup 158132562 Nov 22 15:14 debian-6.0-x86_64.tar.gz
-rw-r----- 1 root nogroup 213870547 Nov 22 15:14 fedora-15-x86_64.tar.gz
-rw-r----- 1 root nogroup 133198636 Nov 22 15:15 ubuntu-11.04-x86_64.tar.gz
./template/iso:
Did try assigning other permissions to the directory / files and that did not help. Apache2 seems to be running threads as www-data which seems normal.
Any help on how to use this new feature would be great. Thanks!
Also, the storage/content view in the web interface never seems to show the files. Uploading them from the web interface does work, and puts them where I would expect. However, they continue to remain unseen when we try to create either a container or VM. Did notice that originally the NFS share was showing all UID/GID as 4294967294. This was corrected by editing the /etc/default/nfs-common file and setting NEED_IDMAPD=yes along with restart. Still no access, even though mapping to users and groups. Removed all files in the share and then removed the share from web interface. Added it back in and tried again figuring maybe perms were wrong. Here is the current dir structure / perms:
# ls -alR
.:
total 12
drwxrws--- 3 nobody nogroup 21 Nov 22 14:57 .
drwxr-xr-x 3 root root 4096 Nov 22 11:30 ..
drwxr-s--- 4 root nogroup 28 Nov 22 14:57 template
./template:
total 16
drwxr-s--- 4 root nogroup 28 Nov 22 14:57 .
drwxrws--- 3 nobody nogroup 21 Nov 22 14:57 ..
drwxr-s--- 2 root nogroup 100 Nov 22 15:15 cache
drwxr-s--- 2 root nogroup 6 Nov 22 14:57 iso
./template/cache:
total 493376
drwxr-s--- 2 root nogroup 100 Nov 22 15:15 .
drwxr-s--- 4 root nogroup 28 Nov 22 14:57 ..
-rw-r----- 1 root nogroup 158132562 Nov 22 15:14 debian-6.0-x86_64.tar.gz
-rw-r----- 1 root nogroup 213870547 Nov 22 15:14 fedora-15-x86_64.tar.gz
-rw-r----- 1 root nogroup 133198636 Nov 22 15:15 ubuntu-11.04-x86_64.tar.gz
./template/iso:
Did try assigning other permissions to the directory / files and that did not help. Apache2 seems to be running threads as www-data which seems normal.
Any help on how to use this new feature would be great. Thanks!
Last edited: