Template from an OpenVZ container using the WebUI

Jul 3, 2014
99
1
6
Toronto, Ontario, Canada
Hi,
I want to convert an OpenVZ container into a template. I can see how to do this for KVM (there is a menu item) but there is no similar menu for OpenVZ.

http://www.jamescoyle.net/how-to/29...emplate-from-an-existing-template-for-proxmox shows how to do this on the command line

http://www.jamescoyle.net/how-to/1336-add-create-openvz-template-to-the-proxmox-web-gui provides a patch stating:

The changes were declined by the Proxmox team on the grounds that creating a template is a technical process and may not result in creating a working, cloned instance. In addition, it is very easy to leave sensitive information in the CT which is the source of the template – all data on the CTs file system will be archived into the template making it available the next time a CT is created. If SSH keys are left on the CT, for example, then they will be available in the new CT also.


  1. Why is this okay for KVM and not for OpenVZ?
  2. Users of template containers are typically savvy administrators. A warning would suffice.
  3. There are some common scenarios, such as SSH keys. These can be detected and further warned about.

External patches proliferates use-case fragmentation, risks code drift and legitimizes the practice of more patching. That leads to unstability, hampers upgrades and can affect reputation of both stability and ease of use.

It seems to me that it's better to incorporate this feature and mark as caveats than leave it out in patch-land.

Regards, Martin.
 
I agree to the route of implementing it into the GUI. A warning sign may be appropriate, that's for the dev team to decide since they know the target group. On the other hand, it's a virt platform. Does the average Joe use such a platform? Highly unlikely.

And in my opinion it's not rocket science to implement
rm /etc/ssh/*key*
rm /var/log/*.log
etc.
into the script.
 

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!