1. A method comprising: identifying, for each of one or more configuration files in a pre-configured source virtual machine, a corresponding configuration file in a target virtual machine; identifying one or more mis-configured and/or missing points of variability in the one or more identified configuration files in the target virtual machine based on information derived from the one or more configuration files in the source virtual machine; and reconfiguring the target virtual machine by replacing each identified mis-configured point of variability with a given value based on the information derived from the one or more configuration files in the source virtual machine, and adding each identified missing point of variability at a given location with a given value and a given format based on the information derived from the one or more configuration files in the source virtual machine; wherein at least one of the steps is carried out by a computer device.