Utility methods to resize, repartition, and modify disk images.
Includes injection of SSH PGP keys into authorized_keys file.
Destroy the container once it terminates.
It will umount the container that is mounted, and delete any linked devices.
LXC does not support qcow2 images yet.
Increase image to size
Injects a ssh key and optionally net data into a disk image.
it will mount the image as a fully partitioned disk and attempt to inject into the specified partition number.
If partition is not specified it mounts the image as a single partition.
Injects data into a filesystem already mounted by the caller. Virt connections can call this directly if they mount their fs in a different way to inject_data
Setup the LXC container.
It will mount the loopback image to the container directory in order to create the root filesystem for the container.
LXC does not support qcow2 images yet.