- Dec 17, 2014
-
-
Nikos Skalkotos authored
The base class is named Output. Having a method with the same makes the code confusing.
-
- Dec 15, 2014
-
-
Nikos Skalkotos authored
-
- Nov 04, 2014
-
-
Nikos Skalkotos authored
If qemu-nbd is not present at the host system, only accept raw images as input media. This is a workaround for ancient systems like CentOS 6.x where the nbd module is not compiled in the default kernel and the qemu package does not include the qemu-nbd executable.
-
- Nov 03, 2014
-
-
Nikos Skalkotos authored
Do not use qcow2 to snapshot images that are raw. qemu-nbd is not present in some old systems like CentOS 6.x. All we can do to support those systems is to use the device mapper in as many cases as possible.
-
Nikos Skalkotos authored
-
Nikos Skalkotos authored
This complies better with the python conventions
-
- Sep 12, 2014
-
-
Nikos Skalkotos authored
If you print the snapshotting message before disk.file is referenced, you may end up outputting messages like this: Snapshotting media source ... Examining source media `<image_file>' ... Instead of: Examining source media `<image_file>' ... looks like a block device Snapshotting media source ... done
-
- Sep 10, 2014
-
-
Nikos Skalkotos authored
Only use the device mapper when snapshotting block devices. If the input media is a regular file, then create a qcow2 image and define the original media as backing_file.
-
Nikos Skalkotos authored
When snapshotting make sure that the size of the underlying block device is equal to the input media's virtual size. If the input media is not raw, the QEMU image driver may grow the underlying image. The block device should be big enough to allow this kind of operations.
-
- Sep 09, 2014
-
-
Nikos Skalkotos authored
This can be used to act on the original media instead of a device-mapper snapshot. This resolves #10
-
- Sep 04, 2014
-
-
Nikos Skalkotos authored
There is no need to associate a loop device with the input media if we are not snapshotting the input media. The loop device is only needed in order to use the media with the device-mapper.
-
- Aug 05, 2014
-
-
Nikos Skalkotos authored
-
- Jul 15, 2014
-
-
Nikos Skalkotos authored
This attribute hosts the block device associated with this Disk instance. This can be the original media if the source media is a block device, a loop device of the original media if the original media is a regular file or a loop device of a temporary object if the original media is a directory.
-
- Jun 10, 2014
-
-
Nikos Skalkotos authored
According to the decision of the GRNET Board of Directors, switch license to GPLv3. This commit will be propagated to the release and master branches based on git flow, and the next release will be licensed as GPLv3.
-
- Jul 30, 2013
-
-
Nikos Skalkotos authored
The user may define parameters needed by the os_type classes to perform the system preparation tasks. A new needed_sysprep_params method is added to os_type.OSBase that returns a list with parameters that should be defined by the user.
-
Nikos Skalkotos authored
-
- Jun 11, 2013
-
-
Nikos Skalkotos authored
* Prefix all private methods with _ * Write missing docstrings * Move all public methods above the private ones * Add module docstrings where missing * Define source code encodings on all modules
-
- May 27, 2013
-
-
Nikos Skalkotos authored
If the image gets registered as public allow anyone to read the metadata and the md5sum file.
-
- Apr 25, 2013
-
-
Nikos Skalkotos authored
-
- Mar 28, 2013
-
-
Nikos Skalkotos authored
-
Nikos Skalkotos authored
-
- Mar 26, 2013
-
-
Nikos Skalkotos authored
Rename DiskDevice class to Image and move it to a seperate module. Also, don't let the user access the os_type/* modules directly. In Image class create the `os' member variable that will host an appropriate instance of one of the OSBase classes.
-
- Mar 22, 2013
-
-
Nikos Skalkotos authored
-
- Mar 06, 2013
-
-
Nikos Skalkotos authored
Don't let libguestfs guess the format of the provided image. Enforce it to treat the image as raw.
-
- Jan 18, 2013
-
-
Nikos Skalkotos authored
snf-image-creator removed /var/tmp if the directory was empty
-
- Jan 16, 2013
-
-
Nikos Skalkotos authored
Support both versions (1.2.x and 2.x) of python-sendfile. In v1.2.x (py-sendfile) the returning value of the sendfile function is a tuple, where in v2.x (pysendfile) it's a simple integer.
-
- Jan 10, 2013
-
-
Nikos Skalkotos authored
The cow file when creating images or the temporary image file when bundling the host system may be large. Allow the user to overwrite the directory under which those files get created.
-
- Jan 03, 2013
-
-
Nikos Skalkotos authored
Handle correct extended partitions with id 0xf
-
Nikos Skalkotos authored
-
- Dec 31, 2012
-
-
Nikos Skalkotos authored
-
- Dec 30, 2012
-
-
Nikos Skalkotos authored
Add a new try_fail_repeat function that wraps cleanup system commands and retries them if they fail. There are cases where commands like dmsetup, umount and losetup -d may fail with device is busy. In most of the cases, sleeping for halve a second and retrying does the job.
-
Nikos Skalkotos authored
-
Nikos Skalkotos authored
In Guestfs you get notifications about progress on some functions like launch() by registring callback functions. When using guestfs from python, this is fragile. If the callback functions raises an exception, you end up with segmentation fault. It is better to completely remove the progress monitoring from launch().
-
- Dec 28, 2012
-
-
Nikos Skalkotos authored
-
- Dec 21, 2012
-
-
Nikos Skalkotos authored
Credits go to Giannis Spiliopoulos <gspilio@admin.grnet.gr>
-
- Dec 20, 2012
-
-
Nikos Skalkotos authored
Also do a code cleanup
-
- Dec 19, 2012
-
-
Nikos Skalkotos authored
The partition table of the image is created correct. The partitions are not yet filled.
-
Nikos Skalkotos authored
Nothing is working yet
-
- Dec 13, 2012
-
-
Nikos Skalkotos authored
Check the file system usage and accordingly reduce the size of the last partition in the image.
-
- Dec 11, 2012
-
-
Nikos Skalkotos authored
Create a sparse file under /mnt in the size of the root hard disk and copy the mbr into this file. Not yet workable.
-