Nikos Skalkotos [Fri, 23 Aug 2013 14:20:21 +0000 (17:20 +0300)]
Update version to 0.5.1next
Nikos Skalkotos [Fri, 23 Aug 2013 14:17:58 +0000 (17:17 +0300)]
Merge branch 'hotfix-0.5.1' into develop
Nikos Skalkotos [Fri, 23 Aug 2013 13:47:07 +0000 (16:47 +0300)]
Update ChangeLog and version.py for 0.5.1
Nikos Skalkotos [Fri, 23 Aug 2013 13:25:52 +0000 (16:25 +0300)]
Fix a KeyError bug in dialog_wizard.py
Nikos Skalkotos [Fri, 23 Aug 2013 13:24:32 +0000 (16:24 +0300)]
Extend the allowed cloud name characters
Allow the characters that kamaki allows
Nikos Skalkotos [Thu, 22 Aug 2013 13:46:39 +0000 (16:46 +0300)]
Use forceall in e2fsck if available
Before shrinking a filesystem use the e2fsck -y if the underlined
guestfs library supports it.
Nikos Skalkotos [Thu, 22 Aug 2013 13:26:39 +0000 (16:26 +0300)]
In _foreach_file check if the directory exists
Otherwise print a warning.
Nikos Skalkotos [Thu, 22 Aug 2013 12:28:58 +0000 (15:28 +0300)]
Bump version to 0.5.1
Nikos Skalkotos [Sun, 4 Aug 2013 18:43:21 +0000 (21:43 +0300)]
Update ChangeLog and version for 0.5
Nikos Skalkotos [Sun, 4 Aug 2013 18:10:11 +0000 (21:10 +0300)]
Merge branch 'develop'
Nikos Skalkotos [Sun, 4 Aug 2013 15:10:12 +0000 (18:10 +0300)]
Update documentation to reflect the changes made
Nikos Skalkotos [Sun, 4 Aug 2013 13:12:40 +0000 (16:12 +0300)]
Fix version check introduced in
aca3e6508c7ae3f5ee
The fix was backported to version 1.16.11
Nikos Skalkotos [Sat, 3 Aug 2013 13:11:15 +0000 (16:11 +0300)]
Fix a typo in one of the input options
--print-sysprep should be --print-syspreps
Nikos Skalkotos [Sat, 3 Aug 2013 13:05:20 +0000 (16:05 +0300)]
Convert check_guestfs_version into an Image method
It used to be a function in util module
Nikos Skalkotos [Sat, 3 Aug 2013 09:34:33 +0000 (12:34 +0300)]
Fix multiple bugs in util.get_kvm_binary
The machine hardware name fetched by `uname -m' should have been
stripped, and a --enable-kvm option should be added if the returned
executable was qemu-system-<arch>
Nikos Skalkotos [Fri, 2 Aug 2013 12:40:36 +0000 (15:40 +0300)]
Print a meaningful msg if windows shrinking fails
Nikos Skalkotos [Fri, 2 Aug 2013 10:44:12 +0000 (13:44 +0300)]
Raise FatalError for guestfs < 1.17.18 in windows
If the media is windows and guestfs version is less than 1.17.18
raise a Fatal Error. The versions below this have a bug and
inspect_os will fail if the HKLM\SYSTEM\MountedDevices registry key
is missing. This key gets deleted by Microsoft Sysprep
Nikos Skalkotos [Thu, 1 Aug 2013 09:56:08 +0000 (12:56 +0300)]
Workaraound the old behaviour of kill_subprocess
Before libguestfs 1.18.4 you cannot shutdown the backend and then
relaunch it
Nikos Skalkotos [Thu, 1 Aug 2013 09:08:46 +0000 (12:08 +0300)]
Add {enable, disable}_guestfs methods in image cls
Nikos Skalkotos [Thu, 1 Aug 2013 08:12:54 +0000 (11:12 +0300)]
Fix a typo in a variable name
Nikos Skalkotos [Thu, 1 Aug 2013 08:10:48 +0000 (11:10 +0300)]
Don't copy the guestfs handler in the os_type cls
Nikos Skalkotos [Wed, 31 Jul 2013 12:53:59 +0000 (15:53 +0300)]
Merge branch 'hotfix-0.4.4' into develop
Conflicts:
image_creator/os_type/unix.py
image_creator/version.py
version
Nikos Skalkotos [Wed, 31 Jul 2013 12:49:53 +0000 (15:49 +0300)]
Merge branch 'hotfix-0.4.4'
Nikos Skalkotos [Wed, 31 Jul 2013 11:51:13 +0000 (14:51 +0300)]
Update ChangeLog and version.py for release 4.4.4
Nikos Skalkotos [Wed, 31 Jul 2013 10:33:38 +0000 (13:33 +0300)]
Check if scrubbing is supported
Don't try to scrub data unless the used guestfs appliance supports
it
Nikos Skalkotos [Wed, 31 Jul 2013 09:42:02 +0000 (12:42 +0300)]
Bump version to 0.4.4
Nikos Skalkotos [Tue, 30 Jul 2013 14:40:20 +0000 (17:40 +0300)]
Ignore the absence pagefile.sys in windows
Nikos Skalkotos [Tue, 30 Jul 2013 13:44:29 +0000 (16:44 +0300)]
Merge branch 'feature-windows-support' into develop
Nikos Skalkotos [Tue, 30 Jul 2013 12:12:25 +0000 (15:12 +0300)]
Add a function for finding out the kvm binary
On some systems it is kvm, on some others it is qemu-system-x86_64. On
32bit PC it is qemu-system-i386
Nikos Skalkotos [Tue, 30 Jul 2013 11:14:50 +0000 (14:14 +0300)]
Fix the sysprep_param interface in expert mode
Group the system preparation tasks to simple and advanced.
Nikos Skalkotos [Mon, 29 Jul 2013 14:23:02 +0000 (17:23 +0300)]
In windows.py turn some constants to syspep params
Remove constants BOOT_TIMEOUT, SHUTDOWN_TIMEOUT and CONNECTION_RETRIES
and add then as sysprep_parameters
Nikos Skalkotos [Mon, 29 Jul 2013 08:07:19 +0000 (11:07 +0300)]
Add type field in the SysprepParam namedtuple
This is needed since the input we get from the input dialogs is
always strings.
Nikos Skalkotos [Sat, 27 Jul 2013 15:25:30 +0000 (18:25 +0300)]
Fix small bugs and clean up the code
Fix some bugs and some other coding issues found using pylint
Nikos Skalkotos [Fri, 26 Jul 2013 16:17:10 +0000 (19:17 +0300)]
Add decorators defining sysprep params
Nikos Skalkotos [Thu, 25 Jul 2013 16:15:22 +0000 (19:15 +0300)]
Don't list disabled users in Windows
Fix _get_users method in windows.py to not list user accounts that
are disabled.
Nikos Skalkotos [Thu, 25 Jul 2013 10:20:47 +0000 (13:20 +0300)]
Fix a bug in windows shrink sysprep
Make sure winexe returns error if a diskpart command fails
Nikos Skalkotos [Thu, 25 Jul 2013 10:02:51 +0000 (13:02 +0300)]
Add connectivity checks for the windows VM
When booting the windows VM during sysprep, check if winexe works
before starting the system preparation tasks
Nikos Skalkotos [Wed, 24 Jul 2013 10:01:57 +0000 (13:01 +0300)]
Monitor VM ps when waiting for windows booting
When waiting for windows to boot, also check that the Windows VM
process is up.
Nikos Skalkotos [Wed, 24 Jul 2013 09:30:22 +0000 (12:30 +0300)]
Add a new winexe module
This contains a wrapper class for winexe utility
Nikos Skalkotos [Wed, 24 Jul 2013 05:41:55 +0000 (08:41 +0300)]
Mix minor typos
Nikos Skalkotos [Tue, 23 Jul 2013 10:44:10 +0000 (13:44 +0300)]
Use --uninstall in winexe
Nikos Skalkotos [Tue, 23 Jul 2013 09:23:52 +0000 (12:23 +0300)]
Add kms_client_setup sysprep for windows images
This sysprep converts the windows image into a KMS client
Nikos Skalkotos [Mon, 22 Jul 2013 13:59:34 +0000 (16:59 +0300)]
Sleep for 10 secs after you monitor Windows is up
When syspreping a Windows image, sleep for 10 seconds before you
continue performing the various system preparation tasks.
Nikos Skalkotos [Mon, 22 Jul 2013 12:42:35 +0000 (15:42 +0300)]
Add support for shrinking windows VMs
Nikos Skalkotos [Fri, 19 Jul 2013 16:36:25 +0000 (19:36 +0300)]
Add sysprep for shrinking in windows
It is not ready yet.
Nikos Skalkotos [Fri, 19 Jul 2013 08:09:24 +0000 (11:09 +0300)]
Make sysprep_info return a named tuple
It used to return a tuple
Nikos Skalkotos [Thu, 11 Jul 2013 07:16:58 +0000 (10:16 +0300)]
Add sysprep in windows to clear the event logs
Nikos Skalkotos [Wed, 10 Jul 2013 12:22:03 +0000 (15:22 +0300)]
Workaround a hivex bug
Reset the LocalAccountTokenFilterPolicy registry key in RunOnce. This
key is set by hivex offline when you boot windows, it seems to have a
wrong value.
Nikos Skalkotos [Wed, 10 Jul 2013 07:31:33 +0000 (10:31 +0300)]
Add kwargs parameter to sysprep decorator
This can be used to add arbitrary attributes to the function it
decorates
Nikos Skalkotos [Wed, 10 Jul 2013 07:27:25 +0000 (10:27 +0300)]
Add new windows sysprep for disabling hibernation
Nikos Skalkotos [Tue, 9 Jul 2013 12:48:51 +0000 (15:48 +0300)]
Disable the Windows firewall when the syspreps run
Nikos Skalkotos [Mon, 8 Jul 2013 10:21:20 +0000 (13:21 +0300)]
Add various Windows syspreps
Nikos Skalkotos [Sun, 7 Jul 2013 13:16:57 +0000 (16:16 +0300)]
Add the sysprep message printing in the decorator
Since all sysprep functions output a message when they get executed,
add the message printing functionality to the sysprep decorator
Nikos Skalkotos [Fri, 5 Jul 2013 13:33:39 +0000 (16:33 +0300)]
Monitor when the windows VM is up and running
Nikos Skalkotos [Thu, 4 Jul 2013 11:59:02 +0000 (14:59 +0300)]
Add support for performing sysprep on windows
In windows the do_sysprep method shuts down the guestfs vm and boots
the image. This allows executing windows commands on the image remotely.
Nikos Skalkotos [Thu, 4 Jul 2013 08:01:14 +0000 (11:01 +0300)]
Add option for printing the needed sysprep params
Nikos Skalkotos [Wed, 3 Jul 2013 13:28:19 +0000 (16:28 +0300)]
Add support for sysprep-parameters
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 [Wed, 3 Jul 2013 07:13:39 +0000 (10:13 +0300)]
Remove bootable options from image class
It has never been used. If we need it in the future, we will bring
it back
Nikos Skalkotos [Mon, 1 Jul 2013 10:44:22 +0000 (13:44 +0300)]
Add basic support for customizing windows images
Add do_sysprep method for windows that shuts down the guestfs backend
process and starts a new kvm process with the snapshot disk attached to
it.
Nikos Skalkotos [Fri, 28 Jun 2013 13:14:16 +0000 (16:14 +0300)]
Pass the Image instance to the os_type classes
Those classes may need to access more Image data than the guestfs
handler and the root device name
Nikos Skalkotos [Fri, 28 Jun 2013 09:46:53 +0000 (12:46 +0300)]
Disable UAC remote restrictions in windows
Before launching the windows image with KVM, disable the UAC remote
restrictions. This is needed to make the image allow executing
command through psexec. After the VM is shut down, the restrictions
are turned back on.
Nikos Skalkotos [Wed, 26 Jun 2013 16:09:16 +0000 (19:09 +0300)]
Fix an missing func error introduced in
e1c0be0296
Nikos Skalkotos [Tue, 25 Jun 2013 15:25:51 +0000 (18:25 +0300)]
Always close fds returned by tempfile.mkstemp()
Nikos Skalkotos [Tue, 25 Jun 2013 13:27:53 +0000 (16:27 +0300)]
Add check_guestfs_version function
This function is used to check if a specified libguestfs version is
smaller, greater or equal to the installed one
Nikos Skalkotos [Fri, 26 Jul 2013 11:22:55 +0000 (14:22 +0300)]
Add ci scripts to the project
Nikos Skalkotos [Thu, 18 Jul 2013 08:27:19 +0000 (11:27 +0300)]
Bump version to 0.4.3next
Nikos Skalkotos [Thu, 18 Jul 2013 08:26:14 +0000 (11:26 +0300)]
Merge branch 'master' into develop
Conflicts:
image_creator/version.py
version
Nikos Skalkotos [Thu, 18 Jul 2013 08:24:53 +0000 (11:24 +0300)]
Bump verstion to 0.4.2next
Nikos Skalkotos [Thu, 18 Jul 2013 08:22:28 +0000 (11:22 +0300)]
Merge master into develop
Conflicts:
docs/conf.py
image_creator/version.py
version
Nikos Skalkotos [Thu, 18 Jul 2013 07:49:02 +0000 (10:49 +0300)]
Bump version to 0.4.3
Nikos Skalkotos [Thu, 18 Jul 2013 07:40:26 +0000 (10:40 +0300)]
Merge branch 'hotfix-0.4.3'
Nikos Skalkotos [Thu, 18 Jul 2013 07:35:27 +0000 (10:35 +0300)]
Force TERM=linux in snf-mkimage under xterm
Works better this way in OpenSUSE
Nikos Skalkotos [Wed, 17 Jul 2013 12:15:40 +0000 (15:15 +0300)]
Bump version to 0.4.2
Nikos Skalkotos [Wed, 17 Jul 2013 12:09:48 +0000 (15:09 +0300)]
Merge branch 'hotfix-0.4.2'
Nikos Skalkotos [Wed, 17 Jul 2013 11:30:26 +0000 (14:30 +0300)]
Fix dialog checklists in OpenSUSE
python-dialog package in OpenSUSE decorated the returned enabled
choices from a dialog checklist with `"'. Remove those characters
Nikos Skalkotos [Tue, 16 Jul 2013 14:02:46 +0000 (17:02 +0300)]
Update the documentation
Add installation instructions for OpenSUSE
Nikos Skalkotos [Mon, 8 Jul 2013 10:32:52 +0000 (13:32 +0300)]
Fix a bug in the sysprep help printing
The system preparation tasks could be printed multiple times in the
help dialog.
Nikos Skalkotos [Fri, 28 Jun 2013 09:32:41 +0000 (12:32 +0300)]
Minor typos
Nikos Skalkotos [Thu, 27 Jun 2013 13:18:07 +0000 (16:18 +0300)]
Update the documentation
* Add instruction on how to install the debian packages
* Update version to 0.4.1
* Add a small comment about the diskdump format
Nikos Skalkotos [Wed, 26 Jun 2013 17:10:55 +0000 (20:10 +0300)]
Bump version to 0.4.1next
Nikos Skalkotos [Wed, 26 Jun 2013 17:09:26 +0000 (20:09 +0300)]
Merge branch 'hotfix-0.4.1' into develop
Conflicts:
image_creator/version.py
version
Nikos Skalkotos [Wed, 26 Jun 2013 16:32:55 +0000 (19:32 +0300)]
Bump version to 0.4.1
Nikos Skalkotos [Wed, 26 Jun 2013 16:21:14 +0000 (19:21 +0300)]
Merge branch 'hotfix-0.4.1'
Nikos Skalkotos [Wed, 26 Jun 2013 16:20:10 +0000 (19:20 +0300)]
Add missing _do_collect_metadata method in Windows
Nikos Skalkotos [Tue, 25 Jun 2013 08:31:27 +0000 (11:31 +0300)]
Bump development version to 0.4next
Nikos Skalkotos [Fri, 21 Jun 2013 12:48:33 +0000 (15:48 +0300)]
Bump version to 0.4
Nikos Skalkotos [Fri, 21 Jun 2013 11:01:35 +0000 (14:01 +0300)]
Merge branch 'develop'
Nikos Skalkotos [Thu, 20 Jun 2013 14:35:45 +0000 (17:35 +0300)]
Remove all referencies to words like ~okeanos
In the documentation and the printed messages, remove all references
to ~okeanos, pithos or cyclades.
Nikos Skalkotos [Thu, 20 Jun 2013 10:15:57 +0000 (13:15 +0300)]
Merge branch 'feature-synnefo-0.14' into develop
Nikos Skalkotos [Thu, 20 Jun 2013 08:57:07 +0000 (11:57 +0300)]
Minor cleanup in dialog_wizard
* Move all common WizardPage variables to the base class
* Give more sensible names to some variables
* Make Wizard compute the title for all WizardPages
Nikos Skalkotos [Wed, 19 Jun 2013 13:38:25 +0000 (16:38 +0300)]
Create a new cloud wizard page
Make the cloud selection wizard page an instance of WizardMenuPage
Nikos Skalkotos [Wed, 19 Jun 2013 08:51:03 +0000 (11:51 +0300)]
Update the ChangeLog
Make the ChangeLog comply with the latest changes
Nikos Skalkotos [Tue, 18 Jun 2013 15:59:42 +0000 (18:59 +0300)]
Change the metadata file format to json
When registring an image, use the information returned by the
kamaki register method to construct the metadata file.
When dumping the image to the local filesystem, store the image
properties and the disk-format info in the metadata file.
Nikos Skalkotos [Tue, 18 Jun 2013 14:21:28 +0000 (17:21 +0300)]
Add --cloud option in snf-image-creator
This options can be used to get the authentication URL and token
from a saved cloud section in the kamaki configuration file
Nikos Skalkotos [Tue, 18 Jun 2013 13:27:05 +0000 (16:27 +0300)]
Comply with kamaki 0.9
* Change the authentication everywhere to use clouds
(authentication URL and token pairs)
* Add menu entries to manage clouds
* Add an extra -a option in snf-image-creator to allow the user to
specify authentication URLs
Nikos Skalkotos [Sat, 15 Jun 2013 18:59:07 +0000 (21:59 +0300)]
Monkey-patch pythondialog to support form boxes
Nikos Skalkotos [Mon, 10 Jun 2013 07:33:35 +0000 (10:33 +0300)]
Code Cleanup
* 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
Nikos Skalkotos [Fri, 7 Jun 2013 12:24:51 +0000 (15:24 +0300)]
Move mount/umount from image to os_type module
Nikos Skalkotos [Thu, 6 Jun 2013 10:09:24 +0000 (13:09 +0300)]
Bump version to 0.3next
Nikos Skalkotos [Thu, 6 Jun 2013 10:02:18 +0000 (13:02 +0300)]
Merge branch 'master' into develop