templating Linux distros

1nerdyguy

Active Member
Apr 17, 2014
119
2
38
I've been using the built in templating for Windows machines for ages, and love it. However, I'd like to learn how to do it for the Linux based distros as well. Could someone point me in the right direction for an idiots setup guide? I've done research into oem-installs on Ubuntu, which seems broken in 14.04, and looking at virt-sysprep, which seems to be more focused on Openstack.

My goal is to be able to have a Debian and/or Ubuntu server template I can just deploy from as needed, to save me the time. I decided with 4.0 being released, I was doing a fresh-start on my home lab and integrating it all with Ansible, so I basically just want to be able to clone, set the hostname and make sure the ansible user exists, and get the ssh-keys installed, all automatically.

Any help would be huge!
 
Create a VM and convert it to a template. ;) I have an in-house ansible module which uses the Proxmox API to create a VM from this template and make some configurations. If you are interested I can share it with you.
 
Create a VM and convert it to a template. ;) I have an in-house ansible module which uses the Proxmox API to create a VM from this template and make some configurations. If you are interested I can share it with you.

I'd be interested in that. I've been doing what you say currently, but I want to be able to like change the hostname and such afterwards, to keep my OCD in check.
 
I'd be interested in that. I've been doing what you say currently, but I want to be able to like change the hostname and such afterwards, to keep my OCD in check.

Yeah that can be done with ansible or any other config management framework. I will scan through the module and clean out any private stuff and upload it to github.

If you are interested in a more robust way of deploying new VMs you might want to take a look at http://fai-project.org and integrate it with ansible or puppet or something.

I am using fai, ansible and puppet to do the hard work for me. ;)
 

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!