1. An apparatus for enforcing policies to manage and control one or more virtual machines, the apparatus comprising: a memory storing instructions; and a processor operably coupled to the memory, the processor configured to execute the instructions to: receive a virtual machine event request, wherein the virtual machine event request includes a start virtual machine request of a first virtual machine; detect non-compliance of the first virtual machine in a pre-execution state by applying a policy-based compliance scheme of a managed system in response to receiving the virtual machine event request, wherein the policy-based compliance scheme of the managed system includes a plurality of compliance policies which are defined to enforce system wide control of execution of virtual machines within the managed system; adapt the first virtual machine in the pre-execution state to comply with the policy-based compliance scheme; process the virtual machine event request after adapting the first virtual machine; detect non-compliance of the first virtual machine in a post-execution state; adapt the first virtual machine in the post-execution state to comply with the policy-based compliance scheme; and analyze adaptations made to the first virtual machine in the post-execution state and derive a new optimized variant virtual machine that has at least one adaptation different from (i) the first virtual machine in the pre-execution state and (ii) the adapted first virtual machine in the post-execution state, to create a second different virtual machine, wherein deriving the new optimized variant virtual machine comprises analyzing adaptations made to respective virtual machines of a virtual machine group in post-execution states, wherein the virtual machine group comprises the adapted first virtual machine and multiple other virtual machines, and based on the analyzing, adapting the virtual machine group including the adapted first virtual machine based on commonality of adaptations made to the virtual machine group after a single or multiple executions of each virtual machine in the virtual machine group.