Create multiple Debian templates in VMware with different disk sizes

vmware-esxi

I have vmware infrastructure deployed, now I'm planning to create Debian templates with different disk sizes (5,20,50,100GB). Are there any vmware templates available which can be customized , or do I have to create 4 different virtual machines and do the same things with them? (install base system, fw, basic utils, etc.)

EDIT: I have Essentials Plus kit.

Best Answer

Well I'm certain that there won't be any prebuilt 'templates' setup exactly as you'd like - and certainly not the same template with varying disk sizes.

There's a number of ways you can go about this easily however;

  • Build the smallest VM you want, use LVM and then simply duplicate the template for each larger template required, changing the disk size on each version and using LVM to 'stretch' whichever filesystems you want changed.
  • If you can afford the minor IO performance hit on writes you could just make a thin-provisioned VM at its largest required size. This was VMs all think they have say 100GB each but only actually take up the real space required.
  • Build them all manually - this idea sucks unless you have a scripted build, which in itself might be a cool idea to have to hand anyway - depends on your skills in this area of course.

The choice is yours.