Skip to content

Making a template for cloning

Sean Walberg edited this page Nov 29, 2016 · 4 revisions

An easy way to create a VM is from a template.

That template must be running the VMWare tools, as we first clone it to a template with a specification, start the machine, and then the communication happens through the agent (through vmware)

  • ideally the NICs are unconfigured in the template, which lets vmware do what it needs to. Otherwise you end up with race conditions (see #130). This means removing any config files before saving the template:
  • /etc/udev/rules.d/70-persistent-net.rules
  • /etc/sysconfig/network-scripts/ifcfg-eth*
  • The NIC on the template should be attached to a distributed switch, not a standard switch. The VLAN doesn't matter as you can override that during customization
  • make sure perl is installed
  • Disable SELinux (your cookbook can enable it later, but it seems to cause problems with configuring)
Clone this wiki locally