History | View | Annotate | Download (26.3 kB)
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.
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