Freigeben über


P2V fails, if App-V is installed on source machine

VMM P2V agent does not like the App-V virtual drive. I was able to repro the following issue using App-V 4.6 package.

Analysis

P2V agent installs correctly on source machine… but when it enumerates local volumes, an exception gets raised in the trace logs:

00000323 77.26648712 [11200] 2BC0.2B90::06/19-18:30:24.971#17:hwscout.cpp(130): Disk Properties

……

00000343 77.50833893 [11200] 2BC0.2B90::06/19-18:30:25.213#17:systeminfo.cpp(2813): 0: disk 0, [0xc35100000 0x2540a00000) bytes

00000344 77.50843048 [11200] 2BC0.2B90::06/19-18:30:25.213#17:systeminfo.cpp(2851): partition 0, [0x100000 0x6500000) bytes

00000345 77.50848389 [11200] 2BC0.2B90::06/19-18:30:25.214#17:systeminfo.cpp(2851): partition 1, [0x6500000 0xc35100000) bytes

00000346 77.50856018 [11200] 2BC0.2B90::06/19-18:30:25.214#17:systeminfo.cpp(2851): partition 2, [0xc35100000 0x2540a00000) bytes

00000347 77.50861359 [11200] 2BC0.2B90::06/19-18:30:25.214#17:systeminfo.cpp(2504): ==>GetVolumeLetterByVolumeGuid

00000348 77.50897217 [11200] 2BC0.2B90::06/19-18:30:25.214#17:systeminfo.cpp(2504): <--GetVolumeLetterByVolumeGuid

00000349 77.50902557 [11200] 2BC0.2B90::06/19-18:30:25.214#17:systeminfo.cpp(2563): QueryDosDevice 'D:' returned '\Device\HarddiskVolume3'

00000350 77.50916290 [11200] 2BC0.2B90::06/19-18:30:25.214#17:systeminfo.cpp(2748): GetLDrivePartition: Volume \\?\Volume{1a0ecb70-74cd-11df-8ccd-00123f4cfc49}\

00000351 77.50929260 [11200] 2BC0.2B90::06/19-18:30:25.214#00:exceptions.cpp(77)[011BE388]: CarmineException::CarmineException: CarmineError: 1051488, hr: 0x80070005               

00000352 77.50942993 [11200] 2BC0.2B90::06/19-18:30:25.214#17:systeminfo.cpp(2882): <--GetLDrivePartitions …

This leads to the 2910 error.

The agent install will try to clean up the installation… but the code will for some reason enumerate the volumes again and fail again…

00000456 130.53585815 [1932] 078C.1F8C::06/19-18:31:18.239#08:agentca.cpp(338): ==>OfflineP2VCleanup        

00000457 130.54528809 [1932] 078C.1F8C::06/19-18:31:18.248#17:systeminfo.cpp(3728): ==>CSystemInfoOnline::FindBootVolume

00000458 130.56547546 [1932] 078C.1F8C::06/19-18:31:18.268#17:systeminfo.cpp(2962): GetBootDevice : volume [\Device\HarddiskVolume1]

00000459 130.56553650 [1932] 078C.1F8C::06/19-18:31:18.268#17:systeminfo.cpp(3736): Get letter and guid for boot device [\Device\HarddiskVolume1]

00000460 130.56561279 [1932] 078C.1F8C::06/19-18:31:18.268#17:systeminfo.cpp(2563): QueryDosDevice 'A:' returned '\Device\Floppy0'

00000461 130.56568909 [1932] 078C.1F8C::06/19-18:31:18.269#17:systeminfo.cpp(2563): QueryDosDevice 'C:' returned '\Device\HarddiskVolume2'

00000462 130.56575012 [1932] 078C.1F8C::06/19-18:31:18.269#17:systeminfo.cpp(2563): QueryDosDevice 'D:' returned '\Device\HarddiskVolume3'

00000463 130.56581116 [1932] 078C.1F8C::06/19-18:31:18.269#17:systeminfo.cpp(2563): QueryDosDevice 'E:' returned '\Device\CdRom0'

00000464 130.56588745 [1932] 078C.1F8C::06/19-18:31:18.269#17:systeminfo.cpp(2563): QueryDosDevice 'Q:' returned '\Device\SftVol'

00000465 130.56594849 [1932] 078C.1F8C::06/19-18:31:18.269#00:exceptions.cpp(77)[00CEEED4]: CarmineException::CarmineException: CarmineError: 1051488, hr: 0x80070490

00000486 130.77815247 [1932] 078C.1F8C::06/19-18:31:18.481#17:systeminfo.cpp(2813): 0: disk 0, [0xc35100000 0x2540a00000) bytes

00000487 130.77828979 [1932] 078C.1F8C::06/19-18:31:18.481#17:systeminfo.cpp(2851): partition 0, [0x100000 0x6500000) bytes

00000488 130.77835083 [1932] 078C.1F8C::06/19-18:31:18.481#17:systeminfo.cpp(2851): partition 1, [0x6500000 0xc35100000) bytes

00000489 130.77841187 [1932] 078C.1F8C::06/19-18:31:18.481#17:systeminfo.cpp(2851): partition 2, [0xc35100000 0x2540a00000) bytes

00000490 130.77847290 [1932] 078C.1F8C::06/19-18:31:18.481#17:systeminfo.cpp(2504): ==>GetVolumeLetterByVolumeGuid

00000491 130.77894592 [1932] 078C.1F8C::06/19-18:31:18.482#17:systeminfo.cpp(2504): <--GetVolumeLetterByVolumeGuid

00000492 130.77900696 [1932] 078C.1F8C::06/19-18:31:18.482#17:systeminfo.cpp(2563): QueryDosDevice 'D:' returned '\Device\HarddiskVolume3'

00000493 130.77917480 [1932] 078C.1F8C::06/19-18:31:18.482#17:systeminfo.cpp(2748): GetLDrivePartition: Volume \\?\Volume{1a0ecb70-74cd-11df-8ccd-00123f4cfc49}\

00000494 130.77934265 [1932] 078C.1F8C::06/19-18:31:18.482#00:exceptions.cpp(77)[00CEEB44]: CarmineException::CarmineException: CarmineError: 1051488, hr: 0x80070005               

00000495 130.77944946 [1932] 078C.1F8C::06/19-18:31:18.482#17:systeminfo.cpp(2882): <--GetLDrivePartitions

00000496 130.77969360 [1932] 078C.1F8C::06/19-18:31:18.482#17:systeminfo.cpp(2995)[00CEF660]: <--CSystemInfoOnline::GetFilteredDiskProperties

00000497 130.77976990 [1932] 078C.1F8C::06/19-18:31:18.483#17:systeminfo.cpp(3728): <--CSystemInfoOnline::FindBootVolume

00000498 130.78016663 [1932] 078C.1F8C::06/19-18:31:18.483#08:agentca.cpp(357): Restore error, fail uninstall               

If you try to uninstall the agent manually… you get the 408 error.

Workaround

Since 1) the issue is related to enumerating volumes, 2) App-V has the virtual volume (typically Q: ) 3) and uninstalling App-V fixed the issue…. there is a good chance this is the culprit. On my machine I installed App-V 4.6 to get the repro and test the following workaround.

I went into the Services list and DISABLED

1. Application Virtualization Client

2. Application Virtualization Service Agent

I then REBOOTED the machine. After reboot the Q: drive is no longer visible. Now I can successfully uninstall the agent and kick off P2V successfully.