def create_virtual_machine(self, vapp, template):
        log.info(("Creating virtual machine from "
                "template: %s...") % template.getName())
        vm = VirtualMachine.builder(self.__context, vapp, template).build()
        vm.save()
        return vm
Create a virtual machine based on the given template
dataset/ETHPy150Open nacx/kahuna/kahuna/plugins/environment/cloud/compute.py/CloudCompute.create_virtual_machine