[SOLVED] Problem convert template!

Discussion in 'Proxmox VE: Installation and configuration' started by jimmy57000, Jul 26, 2018.

  1. jimmy57000

    jimmy57000 New Member

    Joined:
    Feb 21, 2016
    Messages:
    22
    Likes Received:
    1
    Hello,

    I have this error with convert my VM (LXC) to template

    Directory storage 'local' does not support container templates! (500)

    Ideas ?


    Thanks you !
     
    Jaime Hablutzel likes this.
  2. wolfgang

    wolfgang Proxmox Staff Member
    Staff Member

    Joined:
    Oct 1, 2014
    Messages:
    4,709
    Likes Received:
    313
    Hi,

    As the error message says
    You need a store that supports snapshots.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. jimmy57000

    jimmy57000 New Member

    Joined:
    Feb 21, 2016
    Messages:
    22
    Likes Received:
    1
    Thanks, you don't have a documentation for this ?
     
  4. wolfgang

    wolfgang Proxmox Staff Member
    Staff Member

    Joined:
    Oct 1, 2014
    Messages:
    4,709
    Likes Received:
    313
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. jimmy57000

    jimmy57000 New Member

    Joined:
    Feb 21, 2016
    Messages:
    22
    Likes Received:
    1
    I can not understand the documentation ..

    I need to reinstall my node or run some commands?

    Thanks again !
     
  6. jimmy57000

    jimmy57000 New Member

    Joined:
    Feb 21, 2016
    Messages:
    22
    Likes Received:
    1
    In fact, I do not know if I have to create a template.
    Distributions (linux) proposed not root enabled.

    Do you have a solution for it to be activated automatically?

    I did not actually find an answer to my question on google.

    Thanks!
     
  7. wolfgang

    wolfgang Proxmox Staff Member
    Staff Member

    Joined:
    Oct 1, 2014
    Messages:
    4,709
    Likes Received:
    313
    What you try to do?
    Do you have a default PVE installation with default settings or did you change anything?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. doman18

    doman18 New Member

    Joined:
    Oct 20, 2018
    Messages:
    4
    Likes Received:
    0
    Well i have similar problem. My storage with ext4 already contains some container templates but i cant make my own. Its not big issue but i have such preconfigured templates on other machine and its handy to have such nonwriteable clones for making new containers
     

    Attached Files:

  9. wolfgang

    wolfgang Proxmox Staff Member
    Staff Member

    Joined:
    Oct 1, 2014
    Messages:
    4,709
    Likes Received:
    313
    Hi doman18
    LXC container needs a storage what supports snapshots. Dir Storages do only support snapshots if you use qcow2, but cow2 is not working with LXC.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Jaime Hablutzel

    Jaime Hablutzel New Member

    Joined:
    Jun 21, 2018
    Messages:
    6
    Likes Received:
    4
    I had the same problem after installing PVE on top of a regular Debian (i.e. without using the PVE ISO Image), so I had to do something like this to be able to create templates:

    1. Reduce the size of my root partition (this was providing the Directory Storage).
    2. Use the newly freed space to create a new blank partition.
    3. Set up the new partition with LVM.
    4. Transform LVM to LVM Thin (not sure what I did here).
    5. Allow this new storage to be used for "Disk image" and "Container" in the PVE Datacenter level.
     
    jimmy57000 likes this.
  11. jimmy57000

    jimmy57000 New Member

    Joined:
    Feb 21, 2016
    Messages:
    22
    Likes Received:
    1
    Hello,

    Do you have more information?
    I have created a partition for templates !

    /dev/sda6 5277487104 5860533134 583046031 278G Linux LVM

    Unfortunately, after I do not know what to do ..!

    Thanks you advance !
     
  12. Jaime Hablutzel

    Jaime Hablutzel New Member

    Joined:
    Jun 21, 2018
    Messages:
    6
    Likes Received:
    4
    I'm not an expert on this matter neither but I think that you completed:

    So you already have a new LVM logical volume (LV), don't you?. Anyway, read https://www.digitalocean.com/commun...on-to-lvm-concepts-terminology-and-operations just to be sure you understand the LVM concepts.

    And then...

    For this, follow the instructions (only the introduction) at https://pve.proxmox.com/wiki/Storage:_LVM_Thin.

    You can make it from the PVE GUI. Take a look at the following attached image:

    2019-05-18 21_59_03-blobfish-30 - Proxmox Virtual Environment.png
     
    jimmy57000 likes this.
  13. jimmy57000

    jimmy57000 New Member

    Joined:
    Feb 21, 2016
    Messages:
    22
    Likes Received:
    1
    Hello,
    Created !
    After template créated, can not use the templates..
    It's complicated anyway ^^

    In any case your method works
     
    #13 jimmy57000, May 19, 2019
    Last edited: May 19, 2019
  14. Jaime Hablutzel

    Jaime Hablutzel New Member

    Joined:
    Jun 21, 2018
    Messages:
    6
    Likes Received:
    4
    Can you send an screenshot of the "Storage" section at the "Datacenter" level?.
     
  15. jimmy57000

    jimmy57000 New Member

    Joined:
    Feb 21, 2016
    Messages:
    22
    Likes Received:
    1
  16. Jaime Hablutzel

    Jaime Hablutzel New Member

    Joined:
    Jun 21, 2018
    Messages:
    6
    Likes Received:
    4
    Try creating a new CT using your new "templates" Storage (picture attached) and then convert this CT to a template. It should work.
     

    Attached Files:

    jimmy57000 likes this.
  17. jimmy57000

    jimmy57000 New Member

    Joined:
    Feb 21, 2016
    Messages:
    22
    Likes Received:
    1
    #17 jimmy57000, May 19, 2019
    Last edited: May 19, 2019
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice