History | View | Annotate | Download (32.4 kB)
Add extra `smp' & `mem' sysprep params in Windows
Those parameter can be used to control how many CPUs and how much RAMthe Windows VM should have during the configuration
Make winexe an optional dependency
Check the presence of the winexe executable at runtime only if theinput media is a Windows system
Fix windows filesystem shrink
Make it work with Windows Server 2012 R2. The format ofshrink querymax command has changed.
Add KMS Client Setup Keys for new windows systems
Add KMS client setup keys for Windows Server 2012 R2 and Windows 8.1
Fix type in a windows error message
Fix version check introduced in aca3e6508c7ae3f5ee
The fix was backported to version 1.16.11
Fix a typo in one of the input options
--print-sysprep should be --print-syspreps
Convert check_guestfs_version into an Image method
It used to be a function in util module
Fix multiple bugs in util.get_kvm_binary
The machine hardware name fetched by `uname m' should have beenstripped, and a --enable-kvm option should be added if the returnedexecutable was qemu-system<arch>
Print a meaningful msg if windows shrinking fails
Raise FatalError for guestfs < 1.17.18 in windows
If the media is windows and guestfs version is less than 1.17.18raise a Fatal Error. The versions below this have a bug andinspect_os will fail if the HKLM\SYSTEM\MountedDevices registry keyis missing. This key gets deleted by Microsoft Sysprep
Add {enable, disable}_guestfs methods in image cls
Fix a typo in a variable name
Don't copy the guestfs handler in the os_type cls
Ignore the absence pagefile.sys in windows
Add a function for finding out the kvm binary
On some systems it is kvm, on some others it is qemu-system-x86_64. On32bit PC it is qemu-system-i386
Add support for performing sysprep on windows
In windows the do_sysprep method shuts down the guestfs vm and bootsthe image. This allows executing windows commands on the image remotely.
Monitor when the windows VM is up and running
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
Add various Windows syspreps
Disable the Windows firewall when the syspreps run
Add new windows sysprep for disabling hibernation
Workaround a hivex bug
Reset the LocalAccountTokenFilterPolicy registry key in RunOnce. Thiskey is set by hivex offline when you boot windows, it seems to have awrong value.
Add sysprep in windows to clear the event logs
Add sysprep for shrinking in windows
It is not ready yet.
Add support for shrinking windows VMs
Sleep for 10 secs after you monitor Windows is up
When syspreping a Windows image, sleep for 10 seconds before youcontinue performing the various system preparation tasks.
Add kms_client_setup sysprep for windows images
This sysprep converts the windows image into a KMS client
Use --uninstall in winexe
Mix minor typos
Add a new winexe module
This contains a wrapper class for winexe utility
Monitor VM ps when waiting for windows booting
When waiting for windows to boot, also check that the Windows VMprocess is up.
Add connectivity checks for the windows VM
When booting the windows VM during sysprep, check if winexe worksbefore starting the system preparation tasks
Fix a bug in windows shrink sysprep
Make sure winexe returns error if a diskpart command fails
Don't list disabled users in Windows
Fix _get_users method in windows.py to not list user accounts thatare disabled.
Add decorators defining sysprep params
Fix small bugs and clean up the code
Fix some bugs and some other coding issues found using pylint
Add type field in the SysprepParam namedtuple
This is needed since the input we get from the input dialogs isalways strings.
In windows.py turn some constants to syspep params
Remove constants BOOT_TIMEOUT, SHUTDOWN_TIMEOUT and CONNECTION_RETRIESand add then as sysprep_parameters
Disable UAC remote restrictions in windows
Before launching the windows image with KVM, disable the UAC remoterestrictions. This is needed to make the image allow executingcommand through psexec. After the VM is shut down, the restrictionsare turned back on.
Add basic support for customizing windows images
Add do_sysprep method for windows that shuts down the guestfs backendprocess and starts a new kvm process with the snapshot disk attached toit.
Add missing _do_collect_metadata method in Windows
Code Cleanup
Populate the USERS metadata for windows images
For windows images check the appropriate registry keys to find outthe system users
Add missing docstrings
Clean-up the code using flake8
Add options for enabling/disabling sysprep tasks
Also merge data_cleanup tasks with syspreps and did a major cleanup
Add exclude_task decorator in os_type
This can be used to create a set of by default disabled data_cleanupand sysprep tasks.
Fix license, copyright and pep8 infractions
Major code revision
Add OS specific classes