Statistics
| Branch: | Tag: | Revision:

root / image_creator / os_type / windows.py @ 4f08cd0b

History | View | Annotate | Download (32.4 kB)

# Date Author Comment
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

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

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

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

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

Ignore the absence pagefile.sys in windows

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

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

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

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

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.

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.

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

Add missing _do_collect_metadata method in Windows

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
76b200cf 06/03/2013 06:19 pm Nikos Skalkotos

Populate the USERS metadata for windows images

For windows images check the appropriate registry keys to find out
the system users

88f83027 03/28/2013 02:26 pm Nikos Skalkotos

Add missing docstrings

61d14323 03/22/2013 02:57 pm Nikos Skalkotos

Clean-up the code using flake8

f165adc0 04/10/2012 04:38 pm Nikos Skalkotos

Add options for enabling/disabling sysprep tasks

Also merge data_cleanup tasks with syspreps and did a major cleanup

0144d7c7 04/05/2012 04:26 pm Nikos Skalkotos

Add exclude_task decorator in os_type

This can be used to create a set of by default disabled data_cleanup
and sysprep tasks.

ae48a082 03/19/2012 12:26 pm Nikos Skalkotos

Fix license, copyright and pep8 infractions

8c574358 02/24/2012 03:29 pm Nikos Skalkotos

Major code revision

  • Add foreach_file function in OSBase. This is used by all cleanup
    methods
  • Add slackware class. This class derives from linux and overwrites the
    log cleanup behaviour. This is needed since slackware stores all
    package management info in /var/log/packages...
aa2062ba 02/20/2012 07:59 pm Nikos Skalkotos

Add OS specific classes