[SOLVED] Uploaded template cache missed in dropdown menu

aaksarin

New Member
Dec 18, 2014
3
0
1
Hello. I have problem with creating new CT from uploaded template
cache. I can see template cache
file (ubuntu-14.04-i386-tgt-chef-v1412.tar.gz) in content tab of
server storage.
template-in-content.png
But when I try to create new CT from this template in dropdown
menu I don't see option with this template.
no-template-in-menu.png
Renaming file accordingly to this convention https://pve.proxmox.com/wiki/Template_naming_convention don't help.

What am I doing wrong?

Some tech info:
On server installed proxmox 3.3 with active subscription and enterprise updates.

Code:
root@copper:~# pveversion 
pve-manager/3.3-5/bfebec03 (running kernel: 2.6.32-34-pve)

Code:
root@copper:~# dpkg -l |grep pve
ii  clvm                             2.02.98-pve4                  amd64        Cluster LVM Daemon for lvm2
ii  corosync-pve                     1.4.7-1                       amd64        Standards-based cluster framework (daemon and modules)
ii  dmsetup                          2:1.02.77-pve4                amd64        Linux Kernel Device Mapper userspace library
ii  fence-agents-pve                 4.0.10-1                      amd64        fence agents for redhat cluster suite
ii  libcorosync4-pve                 1.4.7-1                       amd64        Standards-based cluster framework (libraries)
ii  libdevmapper-event1.02.1:amd64   2:1.02.77-pve4                amd64        Linux Kernel Device Mapper event support library
ii  libdevmapper1.02.1:amd64         2:1.02.77-pve4                amd64        Linux Kernel Device Mapper userspace library
ii  liblvm2app2.2:amd64              2.02.98-pve4                  amd64        LVM2 application library
ii  libopenais3-pve                  1.1.4-3                       amd64        Standards-based cluster framework (libraries)
ii  libpve-access-control            3.0-15                        amd64        Proxmox VE access control library
ii  libpve-common-perl               3.0-19                        all          Proxmox VE base library
ii  libpve-storage-perl              3.0-25                        all          Proxmox VE storage management library
ii  lvm2                             2.02.98-pve4                  amd64        Linux Logical Volume Manager
ii  novnc-pve                        0.4-7                         amd64        HTML5 VNC client
ii  openais-pve                      1.1.4-3                       amd64        Standards-based cluster framework (daemon and modules)
ii  pve-cluster                      3.0-15                        amd64        Cluster Infrastructure for Proxmox Virtual Environment
ii  pve-firewall                     1.0-9                         amd64        Proxmox VE Firewall
ii  pve-firmware                     1.1-3                         all          Binary firmware code for the pve-kernel
ii  pve-kernel-2.6.32-29-pve         2.6.32-126                    amd64        The Proxmox PVE Kernel Image
ii  pve-kernel-2.6.32-34-pve         2.6.32-139                    amd64        The Proxmox PVE Kernel Image
ii  pve-libspice-server1             0.12.4-3                      amd64        SPICE remote display system server library
ii  pve-manager                      3.3-5                         amd64        The Proxmox Virtual Environment
ii  pve-qemu-kvm                     2.1-10                        amd64        Full virtualization on x86 hardware
ii  redhat-cluster-pve               3.2.0-2                       amd64        Red Hat cluster suite
ii  resource-agents-pve              3.9.2-4                       amd64        resource agents for redhat cluster suite
ii  tar                              1.27.1+pve.1                  amd64        GNU version of the tar archiving utility
ii  vzctl                            4.0-1pve6                     amd64        OpenVZ - server virtualization solution - control tools

Code:
root@copper:~# ll /var/lib/vz/template/cache/
total 613496
drwxr-xr-x 2 root root      4096 Dec 16 15:35 ./
drwxr-xr-x 5 root root      4096 Nov 19 15:53 ../
-rw-r----- 1 root root 137744633 Nov 20 16:28 ubuntu-12.04-amd64-tgt-chef-v1402.tar.gz
-rw-r----- 1 root root 273089471 Dec 16 15:28 ubuntu-12.04-i386-tgt-chef-v1402.tar.gz
-rw------- 1 root root 217369684 Dec 16 15:35 ubuntu-14.04-i386-tgt-chef-v1412.tar.gz

Code:
root@copper:~# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=2046897,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=1639480k,mode=755)
/dev/mapper/pve-root on / type ext4 (rw,relatime,errors=remount-ro,barrier=1,data=ordered)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=3278940k)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/mapper/pve-data on /var/lib/vz type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/sda2 on /boot type ext4 (rw,relatime,barrier=1,data=ordered)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
/dev/fuse on /etc/pve type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other)
none on /sys/kernel/config type configfs (rw,relatime)
beancounter on /proc/vz/beancounter type cgroup (rw,relatime,blkio,name=beancounter)
container on /proc/vz/container type cgroup (rw,relatime,freezer,devices,name=container)
fairsched on /proc/vz/fairsched type cgroup (rw,relatime,cpuacct,cpu,cpuset,name=fairsched)
backup.tgt72.ru:/mnt/backups/proxmox on /mnt/pve/backup type nfs (rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.66.83,mountvers=3,mountport=37368,mountproto=udp,local_lock=none,addr=192.168.66.83)

UPDATED: I put template on one node, but tried to create CT on second. My fault.
 
Last edited:
Do a "chmod 540" on the template that isn't visible.

Code:
chmod 540 /var/lib/vz/template/cache/ubuntu-14.04-i386-tgt-chef-v1412.tar.gz

That is the immediate visible difference I can see.

Serge
 
Do a "chmod 540" on the template that isn't visible.

Code:
chmod 540 /var/lib/vz/template/cache/ubuntu-14.04-i386-tgt-chef-v1412.tar.gz

That is the immediate visible difference I can see.

Serge

I did
Code:
chmod 0640 /var/lib/vz/template/cache/ubuntu-14.04-i386-tgt-chef-v1412.tar.gz

now
Code:
root@copper:~# ll /var/lib/vz/template/cache/
total 613496
drwxr-xr-x 2 root root      4096 Dec 16 15:35 ./
drwxr-xr-x 5 root root      4096 Nov 19 15:53 ../
-rw-r----- 1 root root 137744633 Nov 20 16:28 ubuntu-12.04-amd64-tgt-chef-v1402.tar.gz
-rw-r----- 1 root root 273089471 Dec 16 15:28 ubuntu-12.04-i386-tgt-chef-v1402.tar.gz
-rw-r----- 1 root root 217369684 Dec 16 15:35 ubuntu-14.04-i386-tgt-chef-v1412.tar.gz

It did not help, all the same in menu only two templates.
 
I founded what I did wrong. In CT creating dialog I don't notice
node select menu. I put template on *copper* node, but by default
selected node *borum*. *borum* do not have this template and
because of that I don't see it in menu.
 

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!