'Create and spawn the VM.'

def _create_vm(self, node=None, num_instances=1, uuid=None, instance_type='m1.large', powered_on=True, ephemeral=None, bdi=None, instance_type_updates=None):

    if (not node):
        node = self.node_name
    self._create_instance(node=node, uuid=uuid, instance_type=instance_type, ephemeral=ephemeral, instance_type_updates=instance_type_updates)
    self.assertIsNone(vm_util.vm_ref_cache_get(self.uuid))
    self.conn.spawn(self.context, self.instance, self.image, injected_files=[], admin_password=None, network_info=self.network_info, block_device_info=bdi)
    self._check_vm_record(num_instances=num_instances, powered_on=powered_on, uuid=uuid)
    self.assertIsNotNone(vm_util.vm_ref_cache_get(self.uuid))
