ISO and Templates

lweidig

Active Member
Oct 20, 2011
104
2
38
Sheboygan, WI
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!
 
Last edited:
I have a similar question.

I have my ISOs stored on a NAS. In the PROXMOX host console, I have mounted (SMB) the ISOs folder to Proxmox. Where should I link/remount these to the Proxmox filesystem so that Proxmox can use these for booting in the clients?

Thanks in advance.
 
Yes, I figured that out after that is where the uploads placed them. HOWEVER, then when we go to either create a container of VM and select that storage location the list has NO items listed even though we see them in the directories. As mentioned we even tried making the files world (other) readable and that did not help.
 
works here. post your 'pveversion -v'
 
Not here! Here is the information, thanks!

# pveversion -v
pve-manager: 2.0-10 (pve-manager/2.0/7a10f3e6)
running kernel: 2.6.32-6-pve
proxmox-ve-2.6.32: 2.0-52
pve-kernel-2.6.32-6-pve: 2.6.32-52
lvm2: 2.02.86-1pve1
clvm: 2.02.86-1pve1
corosync-pve: 1.4.1-1
openais-pve: 1.1.4-1
libqb: 0.6.0-1
redhat-cluster-pve: 3.1.7-1
pve-cluster: 1.0-11
qemu-server: 2.0-5
pve-firmware: 1.0-13
libpve-common-perl: 1.0-7
libpve-access-control: 1.0-2
libpve-storage-perl: 2.0-6
vncterm: 1.0-2
vzctl: 3.0.29-3pve3
vzprocps: 2.0.11-2
vzquota: 3.0.12-3
pve-qemu-kvm: 0.15.0-1
ksm-control-daemon: 1.1-1
 
just to note, a with a VM (KVM guest) needs an ISO image to install. A container (OpenVZ) needs a template.

maybe there is some misunderstanding here.?
 
Nope, no misunderstanding, have production Proxmox servers using both and understand the differences. I have both ISO and gz template files uploaded and in the correct spots, per discussion. The problem is VM (KVM) sees none of the ISO files and containers (OpenVZ) sees none of the template files. Is there no way to troubleshoot why this is not working?
 
provide screenhshots showing the issue.
 
kvm-iso.pngopenvz-templates.png
 
To insure correctness, my ISOs for my KVM VPC should be in /mnt/pve/template/iso. Is that correct?

PVE Version
Code:
pve-manager: 2.0-10 (pve-manager/2.0/7a10f3e6)
running kernel: 2.6.32-6-pve
proxmox-ve-2.6.32: 2.0-52
pve-kernel-2.6.32-6-pve: 2.6.32-52
lvm2: 2.02.86-1pve1
clvm: 2.02.86-1pve1
corosync-pve: 1.4.1-1
openais-pve: 1.1.4-1
libqb: 0.6.0-1
redhat-cluster-pve: 3.1.7-1
pve-cluster: 1.0-11
qemu-server: 2.0-3
pve-firmware: 1.0-13
libpve-common-perl: 1.0-7
libpve-access-control: 1.0-2
libpve-storage-perl: 2.0-6
vncterm: 1.0-2
vzctl: 3.0.29-3pve3
vzprocps: 2.0.11-2
vzquota: 3.0.12-3
pve-qemu-kvm: 0.15.0-1
ksm-control-daemon: 1.1-1
 
Ok, here is the directory structure from an SSH connection showing that we are even running with relaxed file permissions to try and get this working:
DirStruct-RelaxedPerms.png



However, the file display from the web interface shows nothing and does not know about the NFS size:

Storage-Nothing.png


And below are the container and VM creation showing no ISO's and no templates:

Container-NoItems.png
 

Attachments

  • VM-NoItems.png
    VM-NoItems.png
    12.2 KB · Views: 15
# pvesm list storageRep0
mount.nfs: /mnt/pve/storageRep0 is busy or already mounted
command '/bin/mount -t nfs 172.16.224.1:/mnt/volgroup0/storagerep/images/ /mnt/pve/storageRep0' failed: exit code 32
 
Is this correct layout you expect?
Code:
# ls -la /mnt/pve/template/iso 
total 1050932 
drwxr-xr-x 2 root root      4096 Nov 23 10:48 . 
drwxr-xr-x 3 root root      4096 Nov 22 22:07 .. 
-rwxr-xr-x 1 root root 108679168 Nov 23 10:48 guydog-5.0.1.iso 
-rwxr-xr-x 1 root root 376559616 Nov 23 10:48 LH64-512_Remaster4Servers.iso 
-rw-r--r-- 1 root root 373293056 Nov 22 22:12 proxmox-ve_2.0-7a10f3e6-17.iso 
-rwxr-xr-x 1 root root 216543232 Nov 23 10:49 Puppy528-002M.iso
I am trying to upload the Proxmox Host viewer image of the Installation media tab on Create VM to show that "no ISOs are showing" but the attach image feature no longer is working for me on this thread. (I get a red flag when I try)

Let me ask this differently. Since I have created and populated the pve folder. Is there some step in the PRoxmox screen that is required to make ISO visible and available for Create VM to see them?

Thanks in advance
 
Last edited:
Started with a Pristine Proxmox beta 2. No ISOs showing ???No ISOs.pngStart-Over.pngStart-Over2.pngStart-Over1.png
 
Last edited:
your nfs storage is not active, that seems to be the problem. do you see the ISO on the content tab?
 
# pvesm list storageRep0
mount.nfs: /mnt/pve/storageRep0 is busy or already mounted
command '/bin/mount -t nfs 172.16.224.1:/mnt/volgroup0/storagerep/images/ /mnt/pve/storageRep0' failed: exit code 32

Please can you also post the contents of /proc/mounts:

# cat /proc/mounts
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!