Issue
Description of problem:
Uninstalling vmware-tools from windows guest sometimes fails with exit code 1618 or exit code 1603
Version-Release number of selected component (if applicable):
virt-v2v-2.5.5-3.el9.x86_64
libguestfs-1.50.2-1.el9.x86_64
libguestfs-winsupport-9.3-1.el9_3.x86_64
guestfs-tools-1.51.6-4.el9.x86_64
nbdkit-1.38.3-1.el9.x86_64
libnbd-1.20.2-2.el9.x86_64
libvirt-libs-10.5.0-4.el9.x86_64
qemu-img-9.0.0-7.el9.x86_64
How reproducible:
90%
Steps to Reproduce:
1. Convert some VMware windows guests with timezone 'UTC-05:00 Eastern Time (US & Canda)' and different Short_date Long_date, and with VMware-tools installed, check status of qemu-ga and vmware-tools in guests after v2v conversion, the test results are summarized as follows:
QEMU-GA
VMware-tools
esx7.0-win2019-x86_64-virt-v2v-2.5.5-3-host-asia
FAIL with system error 258
FAIL with exit code 1603
esx7.0-win2019-x86_64-virt-v2v-2.5.5-3-host-asia-try-again PASS
FAIL with exit code 1603
esx7.0-win2022-x86_64-virt-v2v-2.5.5-3-host-asia
PASS
FAIL with exit code 1618
esx8.0-win11-efi-UTC-5-vmware-tools-12.2.0
FAIL with no log
PASS
esx8.0-win2016-x86_64-efi-vmware-tools-12.2.0
PASS
FAIL with exit code 1618
esx8.0-win2019-x86_64-efi-vmware-tools-12.2.0
FAIL with system error 258
FAIL with exit code 1603
esx8.0-win2019-x86_64-efi-vmware-tools-12.2.0-try-again
FAIL with system error 258
FAIL with exit code 1603
esx8.0-win2022-x86_64-efi-vmware-tools-12.2.0
PASS
FAIL with exit code 1618
esx8.0-win2025-x86_64-efi-vmware-tools-12.2.0
PASS
FAIL with exit code 1618
Actual results:
As above description
Expected result:
Fix the bug
Additional info:
Similar bug: https://issues.redhat.com/browse/RHEL-7487