'Uses cached image disk by copying it into the VM directory.'

def _use_disk_image_as_full_clone(self, vm_ref, vi):

    instance_folder = vi.instance.uuid
    root_disk_name = ('%s.vmdk' % vi.instance.uuid)
    root_disk_ds_loc = vi.datastore.build_path(instance_folder, root_disk_name)
    vm_util.copy_virtual_disk(self._session, vi.dc_info.ref, str(vi.cache_image_path), str(root_disk_ds_loc))
    self._extend_if_required(vi.dc_info, vi.ii, vi.instance, str(root_disk_ds_loc))
    self._volumeops.attach_disk_to_vm(vm_ref, vi.instance, vi.ii.adapter_type, vi.ii.disk_type, str(root_disk_ds_loc), (vi.root_gb * units.Mi), False, disk_io_limits=vi._extra_specs.disk_io_limits)
