Statistics
| Branch: | Tag: | Revision:

root / image_creator @ 89efe927

# Date Author Comment
89efe927 01/08/2014 11:52 am Nikos Skalkotos

Fix a bug in InfoBoxOutput class

If the text was more lines that the height of the active region in the dialog
the 2 last lines were not displayed.

4f08cd0b 01/08/2014 10:19 am Nikos Skalkotos

Add extra `smp' & `mem' sysprep params in Windows

Those parameter can be used to control how many CPUs and how much RAM
the Windows VM should have during the configuration

ebe0f1e0 01/07/2014 11:18 am Nikos Skalkotos

Switch names btw snf-image-creator & snf-mkimage

Make snf-image-creator be the dialog-based program and snf-mkimage be
the command line one.

9b2b47ae 01/06/2014 07:35 pm Nikos Skalkotos

Make winexe an optional dependency

Check the presence of the winexe executable at runtime only if the
input media is a Windows system

0f0137fc 12/19/2013 10:41 am Nikos Skalkotos

Fix windows filesystem shrink

Make it work with Windows Server 2012 R2. The format of
shrink querymax command has changed.

f63e359f 12/18/2013 02:10 pm Nikos Skalkotos

Add KMS Client Setup Keys for new windows systems

Add KMS client setup keys for Windows Server 2012 R2 and Windows 8.1

9b49a63b 12/18/2013 01:27 pm Nikos Skalkotos

Fix type in a windows error message

7b626c6b 11/01/2013 11:03 am Nikos Skalkotos

Remove backup file for shadow

In Linux when clearing out the account, remove the backup file:
/etc/shadow-

fb136c1c 11/01/2013 10:55 am Nikos Skalkotos

Fix typo in comment

6b7eb528 10/23/2013 04:51 pm Nikos Skalkotos

Change the dialog inputbox of register to form

This allows us to add a Description field in register. This can be
used to update the DESCRIPTION image property

5a33a51f 10/22/2013 12:23 pm Nikos Skalkotos

Rename diagnose to inspect

d0daafa2 10/16/2013 04:46 pm Nikos Skalkotos

Add diagnose() method in OSBase derived classes

This can be used to perform various tests to determine if the media
is supported.

e482b7f9 10/11/2013 06:02 pm Nikos Skalkotos

Allow image creation from unsupported media

Add a new "Unsupported" os_type class. Images that get created from
unsupported media have the EXCLUDE_ALL_TASKS property enabled.

920c6c7a 10/10/2013 04:48 pm Nikos Skalkotos

Merge branch 'hotfix-0.5.3' into develop

Conflicts:
image_creator/version.py
version

30ba0945 10/09/2013 06:06 pm Nikos Skalkotos

Update version.py and ChangeLog for 0.5.3

6ca82c22 10/09/2013 04:44 pm Nikos Skalkotos

Fix a crash in dialog menu

The program would crash if no image properties were available and
the user chose "Edit properties" or "Delete Properties" in the
customization menu

6b81adfd 09/09/2013 11:09 am Nikos Skalkotos

Merge branch 'hotfix-0.5.2' into develop

Conflicts:
image_creator/version.py
version

f97dbc42 09/09/2013 11:04 am Nikos Skalkotos

Update version.py and ChangeLog

694ca1e9 08/23/2013 05:20 pm Nikos Skalkotos

Update version to 0.5.1next

cce32fea 08/23/2013 04:47 pm Nikos Skalkotos

Update ChangeLog and version.py for 0.5.1

b25b422b 08/23/2013 04:25 pm Nikos Skalkotos

Fix a KeyError bug in dialog_wizard.py

effda5db 08/23/2013 04:24 pm Nikos Skalkotos

Extend the allowed cloud name characters

Allow the characters that kamaki allows

f5634b9a 08/22/2013 04:46 pm Nikos Skalkotos

Use forceall in e2fsck if available

Before shrinking a filesystem use the e2fsck -y if the underlined
guestfs library supports it.

a38447ba 08/22/2013 04:26 pm Nikos Skalkotos

In _foreach_file check if the directory exists

Otherwise print a warning.

230f03ca 08/04/2013 09:43 pm Nikos Skalkotos

Update ChangeLog and version for 0.5

981b4504 08/04/2013 04:12 pm Nikos Skalkotos

Fix version check introduced in aca3e6508c7ae3f5ee

The fix was backported to version 1.16.11

419c8d7b 08/03/2013 04:14 pm Nikos Skalkotos

Fix a typo in one of the input options

--print-sysprep should be --print-syspreps

5756c277 08/03/2013 04:05 pm Nikos Skalkotos

Convert check_guestfs_version into an Image method

It used to be a function in util module

0611e6dd 08/03/2013 04:00 pm Nikos Skalkotos

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>

df36e2a4 08/02/2013 03:40 pm Nikos Skalkotos

Print a meaningful msg if windows shrinking fails

aca3e650 08/02/2013 01:44 pm Nikos Skalkotos

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

bbfcaef1 08/01/2013 12:56 pm Nikos Skalkotos

Workaraound the old behaviour of kill_subprocess

Before libguestfs 1.18.4 you cannot shutdown the backend and then
relaunch it

ec8b2a79 08/01/2013 12:26 pm Nikos Skalkotos

Add {enable, disable}_guestfs methods in image cls

b932f59d 08/01/2013 11:12 am Nikos Skalkotos

Fix a typo in a variable name

091c0335 08/01/2013 11:10 am Nikos Skalkotos

Don't copy the guestfs handler in the os_type cls

6f391961 07/31/2013 03:53 pm Nikos Skalkotos

Merge branch 'hotfix-0.4.4' into develop

Conflicts:
image_creator/os_type/unix.py
image_creator/version.py
version

3784c7c1 07/31/2013 02:51 pm Nikos Skalkotos

Update ChangeLog and version.py for release 4.4.4

ce66ae38 07/31/2013 01:33 pm Nikos Skalkotos

Check if scrubbing is supported

Don't try to scrub data unless the used guestfs appliance supports
it

c5effe03 07/30/2013 05:40 pm Nikos Skalkotos

Ignore the absence pagefile.sys in windows

f584265d 07/30/2013 04:44 pm Nikos Skalkotos

Fix the sysprep_param interface in expert mode

Group the system preparation tasks to simple and advanced.

4246a133 07/30/2013 04:44 pm Nikos Skalkotos

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

c9d53ee2 07/30/2013 04:43 pm Nikos Skalkotos

Remove bootable options from image class

It has never been used. If we need it in the future, we will bring
it back

0eac0256 07/30/2013 04:43 pm Nikos Skalkotos

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.

b21b5519 07/30/2013 04:43 pm Nikos Skalkotos

Add option for printing the needed sysprep params

74780ad6 07/30/2013 04:43 pm Nikos Skalkotos

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.

10088af7 07/30/2013 04:43 pm Nikos Skalkotos

Monitor when the windows VM is up and running

b8d4b14a 07/30/2013 04:43 pm Nikos Skalkotos

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

b9e14923 07/30/2013 04:43 pm Nikos Skalkotos

Add various Windows syspreps

c2113d72 07/30/2013 04:43 pm Nikos Skalkotos

Disable the Windows firewall when the syspreps run

811b7149 07/30/2013 04:43 pm Nikos Skalkotos

Add new windows sysprep for disabling hibernation

f94adfe0 07/30/2013 04:43 pm Nikos Skalkotos

Add kwargs parameter to sysprep decorator

This can be used to add arbitrary attributes to the function it
decorates

85e97ae0 07/30/2013 04:43 pm Nikos Skalkotos

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.

2075a76a 07/30/2013 04:43 pm Nikos Skalkotos

Add sysprep in windows to clear the event logs

17649dd6 07/30/2013 04:43 pm Nikos Skalkotos

Make sysprep_info return a named tuple

It used to return a tuple

efa7a61b 07/30/2013 04:43 pm Nikos Skalkotos

Add sysprep for shrinking in windows

It is not ready yet.

d4270a48 07/30/2013 04:43 pm Nikos Skalkotos

Add support for shrinking windows VMs

76f2ae77 07/30/2013 04:43 pm Nikos Skalkotos

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.

684a5524 07/30/2013 04:43 pm Nikos Skalkotos

Add kms_client_setup sysprep for windows images

This sysprep converts the windows image into a KMS client

7dc92081 07/30/2013 04:43 pm Nikos Skalkotos

Use --uninstall in winexe

c53cc8dd 07/30/2013 04:43 pm Nikos Skalkotos

Mix minor typos

f5873ed0 07/30/2013 04:43 pm Nikos Skalkotos

Add a new winexe module

This contains a wrapper class for winexe utility

520d991d 07/30/2013 04:43 pm Nikos Skalkotos

Monitor VM ps when waiting for windows booting

When waiting for windows to boot, also check that the Windows VM
process is up.

8bae613f 07/30/2013 04:43 pm Nikos Skalkotos

Add connectivity checks for the windows VM

When booting the windows VM during sysprep, check if winexe works
before starting the system preparation tasks

23c82433 07/30/2013 04:43 pm Nikos Skalkotos

Fix a bug in windows shrink sysprep

Make sure winexe returns error if a diskpart command fails

759e5d5b 07/30/2013 04:43 pm Nikos Skalkotos

Don't list disabled users in Windows

Fix _get_users method in windows.py to not list user accounts that
are disabled.

f59ad913 07/30/2013 04:43 pm Nikos Skalkotos

Add decorators defining sysprep params

47505e53 07/30/2013 04:43 pm Nikos Skalkotos

Fix small bugs and clean up the code

Fix some bugs and some other coding issues found using pylint

678b382b 07/30/2013 04:43 pm Nikos Skalkotos

Add type field in the SysprepParam namedtuple

This is needed since the input we get from the input dialogs is
always strings.

82e8c357 07/30/2013 04:43 pm Nikos Skalkotos

In windows.py turn some constants to syspep params

Remove constants BOOT_TIMEOUT, SHUTDOWN_TIMEOUT and CONNECTION_RETRIES
and add then as sysprep_parameters

7c6a4186 07/30/2013 04:43 pm Nikos Skalkotos

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

b0369791 07/30/2013 04:43 pm Nikos Skalkotos

Always close fds returned by tempfile.mkstemp()

2359b052 07/30/2013 04:43 pm Nikos Skalkotos

Fix an missing func error introduced in e1c0be0296

640096fb 07/30/2013 04:43 pm Nikos Skalkotos

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.

797e0df7 07/30/2013 04:43 pm Nikos Skalkotos

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

9ca717c4 07/30/2013 04:43 pm Nikos Skalkotos

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.

c71f38be 07/18/2013 11:27 am Nikos Skalkotos

Bump version to 0.4.3next

64556e63 07/18/2013 11:26 am Nikos Skalkotos

Merge branch 'master' into develop

Conflicts:
image_creator/version.py
version

519e9f2d 07/18/2013 11:24 am Nikos Skalkotos

Bump verstion to 0.4.2next

9d480812 07/18/2013 11:22 am Nikos Skalkotos

Merge master into develop

Conflicts:
docs/conf.py
image_creator/version.py
version

a527dcb4 07/18/2013 10:49 am Nikos Skalkotos

Bump version to 0.4.3

5ff2dceb 07/18/2013 10:35 am Nikos Skalkotos

Force TERM=linux in snf-mkimage under xterm

Works better this way in OpenSUSE

a8943421 07/17/2013 03:15 pm Nikos Skalkotos

Bump version to 0.4.2

5e18a927 07/17/2013 02:30 pm Nikos Skalkotos

Fix dialog checklists in OpenSUSE

python-dialog package in OpenSUSE decorated the returned enabled
choices from a dialog checklist with `"'. Remove those characters

497fadb3 07/08/2013 01:32 pm Nikos Skalkotos

Fix a bug in the sysprep help printing

The system preparation tasks could be printed multiple times in the
help dialog.

34e7a04a 06/28/2013 12:32 pm Nikos Skalkotos

Minor typos

bda5233f 06/26/2013 08:10 pm Nikos Skalkotos

Bump version to 0.4.1next

ae887b57 06/26/2013 08:09 pm Nikos Skalkotos

Merge branch 'hotfix-0.4.1' into develop

Conflicts:
image_creator/version.py
version

4fecb169 06/26/2013 07:32 pm Nikos Skalkotos

Bump version to 0.4.1

b8c0848c 06/26/2013 07:20 pm Nikos Skalkotos

Add missing _do_collect_metadata method in Windows

67b70375 06/25/2013 11:31 am Nikos Skalkotos

Bump development version to 0.4next

b9a8a121 06/21/2013 03:48 pm Nikos Skalkotos

Bump version to 0.4

ffc64d7c 06/20/2013 05:35 pm Nikos Skalkotos

Remove all referencies to words like ~okeanos

In the documentation and the printed messages, remove all references
to ~okeanos, pithos or cyclades.

8d66cd4c 06/20/2013 01:06 pm Nikos Skalkotos

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
5a380da9 06/19/2013 04:38 pm Nikos Skalkotos

Create a new cloud wizard page

Make the cloud selection wizard page an instance of WizardMenuPage

8e58e699 06/18/2013 06:59 pm Nikos Skalkotos

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.

b3a4845c 06/18/2013 05:21 pm Nikos Skalkotos

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

49c07ce3 06/18/2013 04:27 pm Nikos Skalkotos

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
a26ae008 06/15/2013 09:59 pm Nikos Skalkotos

Monkey-patch pythondialog to support form boxes

121f3bc0 06/11/2013 05:41 pm Nikos Skalkotos

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
71b0ab28 06/07/2013 03:24 pm Nikos Skalkotos

Move mount/umount from image to os_type module