The nova.virt.vmwareapi.vmware_images Module

Utility functions for Image transfer.

fetch_image(context, image, instance, **kwargs)

Download image from the glance image server.

get_vmdk_size_and_properties(context, image, instance)

Get size of the vmdk file that is to be downloaded for attach in spawn. Need this to create the dummy virtual disk for the meta-data file. The geometry of the disk created depends on the size.

start_transfer(context, read_file_handle, data_size, write_file_handle=None, image_service=None, image_id=None, image_meta=None)

Start the data transfer from the reader to the writer. Reader writes to the pipe and the writer reads from the pipe. This means that the total transfer time boils down to the slower of the read/write and not the addition of the two times.

upload_image(context, image, instance, **kwargs)

Upload the snapshotted vm disk file to Glance image server.

Previous topic

The nova.virt.vmwareapi.vmops Module

Next topic

The nova.virt.vmwareapi.volume_util Module

This Page