VM Templates and Clones - Proxmox VE (https://pve.proxmox.com/mediawiki/opensearch_desc.php) (Proxmox VE (en)) (https://pve.proxmox.com/mediawiki/api.php?action=rsd) (Proxmox VE Atom feed) (https://pve.proxmox.com/mediawiki/index.php?title=Special:RecentChanges&feed=atom) (https://pve.proxmox.com/wiki/VM_Templates_and_Clones) VM Templates and Clones From Proxmox VE Jump to navigation Jump to search Contents 1 Introduction 2 Definitions 3 Create VM Template 3.1 OS specific notes for Templates 3.1.1 GNU/Linux 3.1.2 Windows 7 4 Deploy a VM from a Template 4.1 Full Clone 4.2 Linked Clone 5 Video Tutorials 6 Troubleshooting Introduction A template is a fully pre-configured operating system image that can used to deploy KVM virtual machines. Creating a special template is usually preferred over (https://pve.proxmox.com/wiki/Duplicate_Virtual_Machines) (Duplicate Virtual Machines) cloning an existing VM . Deploying virtual machines from templates is blazing fast, very comfortable and if you use linked clones you can optimize your storage by using base images and thin-provisioning. Proxmox VE includes container based templates since 2008 and beginning with the V3.x series, additionally KVM templates can be created and deployed. Definitions VM - KVM based virtual machine Templates - Templates are pre-configured operating system environments that deploy in a couple of clicks Linked Clone - A linked clone VM requires less disk space but cannot run without access to the base VM Template Full Clone - A full clone VM is a complete copy and is fully independant to the original VM or VM Template, but requires the same disk space as the original. Create VM Template Templates are created by converting a VM to a template. Install your VM with all drivers and needed software packages Remove all user data, passwords and keys - In order to do this run sysprep on Windows or similar tools or scripts on Linux and just power-off the VM. Right-click the VM and select "Convert to template" Note As soon as the VM is converted, it cannot be started anymore and the icon changes. If you want to modify an existing template, you need to deploy a full clone from this template and do the steps above again. OS specific notes for Templates For productive usage it is highly recommended that a template does not include any data, user accounts or SSH keys so you should remove all before you convert the VM to a template. On Linux systems you should remove SSH host keys, persistent network MAC configuration and user accounts and user data. Windows offers a bunch of tools for this, e.g. sysprep. For testing purposes it may be useful to use a fully installed OS as a template. GNU/Linux Ubuntu: e.g. install with 'OEM mode' (press F4) CentOS7: Most steps in this (https://github.com/rharmonson/richtech/wiki/CentOS-7-1511-Minimal-oVirt-Template) guide are valid for PVE too. Windows 7 (http://technet.microsoft.com/en-us/library/ee523217(v=ws.10).aspx) Building a Standard Image of Windows 7: Step-by-Step Guide Deploy a VM from a Template Right-click the template, and select "Clone". Full Clone A full clone VM is a complete copy and is fully independent from the original VM or VM Template, but it requires the same disk space as the original. Linked Clone A linked clone VM requires less disk space but cannot run without access to the base VM Template. Linked Clones works for theses storages: files in raw, qcow2, vmdk format (either on local storage or nfs); LVM-thin, ZFS, rbd, sheepdog, nexenta. It's not supported with LVM & ISCSI storage. Video Tutorials tbd: (http://www.youtube.com/user/ProxmoxVE) Proxmox VE Youtube channel Troubleshooting Retrieved from "" (https://pve.proxmox.com/wiki/Special:Categories) (Special:Categories) Category : (https://pve.proxmox.com/wiki/Category:HOWTO) (Category:HOWTO) HOWTO Cookies help us deliver our services. By using our services, you agree to our use of cookies. (https://www.proxmox.com/en/privacy-policy) More information (OK) OK Navigation menu (https://pve.proxmox.com/mediawiki/index.php?title=Special:UserLogin&returnto=VM+Templates+and+Clones) (You are encouraged to log in; however, it is not mandatory [alt-shift-o]) Log in (https://pve.proxmox.com/wiki/VM_Templates_and_Clones) (View the content page [alt-shift-c]) Page (https://pve.proxmox.com/mediawiki/index.php?title=Talk:VM_Templates_and_Clones&action=edit&redlink=1) (Discussion about the content page (page does not exist) [alt-shift-t]) Discussion (https://pve.proxmox.com/wiki/VM_Templates_and_Clones) Read (https://pve.proxmox.com/mediawiki/index.php?title=VM_Templates_and_Clones&action=edit) (This page is protected. You can view its source [alt-shift-e]) View source (https://pve.proxmox.com/mediawiki/index.php?title=VM_Templates_and_Clones&action=history) (Past revisions of this page [alt-shift-h]) View history (More options) Search (Search Proxmox VE) (Search Proxmox VE [alt-shift-f]) (Search the pages for this text) (Search) (Go to a page with this exact name if it exists) (Go) (https://pve.proxmox.com/wiki/Main_Page) (Visit the main page) (https://pve.proxmox.com/wiki/Main_Page) Proxmox VE (https://pve.proxmox.com/pve-docs/) Documentation (current) (https://pve.proxmox.com/pve-docs-7/) Documentation (7.x) (https://pve.proxmox.com/wiki/Downloads) Downloads (https://pve.proxmox.com/wiki/Installation) Installation (https://pve.proxmox.com/wiki/Get_support) Get support Sites (https://www.proxmox.com/) proxmox.com (https://forum.proxmox.com/) Support forum (https://bugzilla.proxmox.com/) Bugtracker (https://git.proxmox.com/) Source code (https://pve.proxmox.com/wiki/FAQ) FAQ Tools (https://pve.proxmox.com/wiki/Special:WhatLinksHere/VM_Templates_and_Clones) (A list of all wiki pages that link here [alt-shift-j]) What links here (https://pve.proxmox.com/wiki/Special:RecentChangesLinked/VM_Templates_and_Clones) (Recent changes in pages linked from this page [alt-shift-k]) Related changes (https://pve.proxmox.com/wiki/Special:SpecialPages) (A list of all special pages [alt-shift-q]) Special pages (Printable version of this page [alt-shift-p]) Printable version (https://pve.proxmox.com/mediawiki/index.php?title=VM_Templates_and_Clones&oldid=10049) (Permanent link to this revision of this page) Permanent link (https://pve.proxmox.com/mediawiki/index.php?title=VM_Templates_and_Clones&action=info) (More information about this page) Page information (https://pve.proxmox.com/mediawiki/index.php?title=Special:CiteThisPage&page=VM_Templates_and_Clones&id=10049&wpFormIdentifier=titleform) (Information on how to cite this page) Cite this page This page was last edited on 31 January 2018, at 14:40. (https://pve.proxmox.com/wiki/Proxmox_VE:Privacy_policy) Privacy policy (https://pve.proxmox.com/wiki/Proxmox_VE:About) About Proxmox VE (https://pve.proxmox.com/wiki/Proxmox_VE:General_disclaimer) Disclaimers (https://www.mediawiki.org/) (Powered by MediaWiki) ()