Error Opening Image - Hyper-V on SMB Share

VM image converter (VMDK, VHD, VHDX, IMG, RAW, QCOW and QCOW2), P2V migrator

Moderators: anton (staff), art (staff), Max (staff), Anatoly (staff)

Post Reply
Mad-Eye
Posts: 5
Joined: Mon Jul 19, 2021 2:41 pm

Mon Jul 19, 2021 3:14 pm

Hi,

i think there is a Problem converting a Hyper-V VM when it resides on a SMB Share. The GUI only shows Error Opening Image, but the log gives a hint: At the line sFilename there is the Path \\localhost\\smbserver\vmdir\vmdisk.vhdx. I think the appended "\\localhost\" ist the reason why it cant get the vhdx from Hyper-V. The Application did run on the Hyper-V Host directly so it is localhost in the log:

Code: Select all

The log file name: 'logs\V2V_Log-20210719-135005.log' (PID 8172)
7/19 13:50:05.957 1c7c Facility ???INFO: CV2V_ConverterApp::InitInstance: SetDllDirectory: C:\Program Files\StarWind Software\StarWind V2V Converter\lib
7/19 13:50:05.957 1c7c Facility ???INFO: CV2V_ConverterApp::InitInstance: File Version: 9.0.1.243
7/19 13:50:05.972 1c7c Facility ???INFO: CV2V_ConverterApp::InitInstance: Load language IDR_XML_ENGLISH
7/19 13:50:05.972 1c7c Facility ???INFO: CV2V_ConverterApp::InitInstance: Set current language English
7/19 13:50:05.972 1c7c Facility ???INFO: CPS_V2V_Converter::CPS_V2V_Converter: Version MajorVersion 10, MinorVersion 0, BuildNumber 17763
7/19 13:50:05.972 1c7c Facility ???INFO: WrapperHyperV::WrapperHyperV: LoadLibrary C:\Windows\system32\wbem\wmiutils.dll - 11560000
7/19 13:50:05.972 1c7c Facility ???INFO: WrapperHyperV::WrapperHyperV: LoadLibrary C:\Windows\system32\wbem\wmiutils.dll - 11560000
7/19 13:50:10.176 1c7c Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eHYPERVConnection
7/19 13:50:11.504 1c7c Facility ???INFO: WrapperHyperV::connect: Host - \\localhost\root\virtualization\v2
7/19 13:50:11.535 1c7c Facility ???INFO: WrapperHyperV::init_version: HyperV version: 10.0.17763
7/19 13:50:11.535 1c7c Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eInputVM
7/19 13:50:14.176 1c7c Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eLocationTo
7/19 13:50:16.285 1c7c Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eESXConnectionTo
7/19 13:50:40.385 1c7c Facility ???INFO: WrapperESXI::connect: m_url - https://esx-ip-address/sdk
7/19 13:50:40.432 1c7c Facility ???INFO: WrapperESXI::connect: fullName - Administrator, key - 520asdf6-3560-92c6-db6b-7575asd4b8bc
7/19 13:50:40.432 1c7c Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eVMSettingsESX
7/19 13:50:40.479 1c7c Facility ???INFO: VMConverter::ESXIConverter::GetHostListInfo: ESX version: 6.7.0
7/19 13:50:49.716 1c7c Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eConverting
7/19 13:50:49.716 2758 Facility ???INFO: CPPConverting::Convert: InConvertType: 8, OutConvertType: 6
7/19 13:50:49.778 2758 Facility ???INFO: CheckFileESX::CheckFileExistance: GetBrowser fail - File [esx_storage] VMNAME was not found
7/19 13:50:50.059 2758 Facility ???INFO: VMConverter::ESXIConverter::CreateVM: createVM is true, 12
7/19 13:50:50.059 2758 Facility ???INFO: CPPConverting::ConverterESX: Create VM 12
7/19 13:50:50.138 2758 Facility ???INFO: CPPConverting::ConvertImage: pathInput: \\smb-server\hyperv-volume\VMName\VMName.vhdx, pathOutput: [esx_storage] VMName\VMName.vmdk
7/19 13:50:50.138 2758 Facility ???INFO: MicrosoftFile::ParseFile: sFilename - \\localhost\\\smb-server\hyperv-volume\VMName\VMName.vhdx
7/19 13:51:54.877 2758 Facility ???ERROR: MicrosoftFile::ParseFile: OpenVirtualDisk is fail - 67. 
7/19 13:51:54.877 2758 Facility ???INFO: CPPConverting::ConvertImage: CreateInputImage: 2
7/19 13:51:54.877 2758 Facility ???INFO: WrapperHyperV::connect: Host - \\localhost\root\virtualization\v2
7/19 13:51:54.893 2758 Facility ???INFO: WrapperHyperV::init_version: HyperV version: 10.0.17763
7/19 13:51:54.893 2758 Facility ???ERROR: CPPConverting::Convert: FAILED
7/19 14:42:26.978 1c7c Facility ???WARNING: WrapperESXI::disconnect: m_proxy->Logout fail - 12
7/19 14:42:26.978 1c7c Facility ???ERROR: getErrorFromSOAP: soap_sprint_fault - SOAP 1.1 fault "":ServerFaultCode [no subcode]
"The session is not authenticated."
Detail: 
Thank you for your Ideas.
yaroslav (staff)
Staff
Posts: 2360
Joined: Mon Nov 18, 2019 11:11 am

Tue Jul 20, 2021 3:54 am

Welcome to StarWind Forum. Did the conversion work when you type the server name and log in there instead of using localhost?
Mad-Eye
Posts: 5
Joined: Mon Jul 19, 2021 2:41 pm

Tue Jul 20, 2021 6:26 am

Hi yaroslav,

thank you for your reply. If i try to enter the hostname with the according credentials i get an error like "User credentials cannot be used for local connections" 0x80041064.
When using the server name instead of localhost the error stays the same and the line in the log simply changes from "localhost" to "servername". When i try to convert the virtual machine on another node of the cluster it states that the virtual hard disk was "Empty". I really think the problem is Hyper-V on SMB-Share. I also tried migrating a locally (on C: Drive of the Server) deployed VM, it went thru without a flaw.

Thank you again,
Mad-Eye

Update:
I have found a workaround for the problem:
  • First enable local to remote links with "fsutil behavior set SymlinkEvaluation L2R:1"
  • Link the SMB Share with "mklink /D Destfolder \\smb-server\share\
  • Update the Config of the VM to the new disk Path eg C:\Destfolde\VM\vmdisk.vhdx
  • Migrate the VM
Last edited by Mad-Eye on Tue Jul 20, 2021 8:08 am, edited 1 time in total.
yaroslav (staff)
Staff
Posts: 2360
Joined: Mon Nov 18, 2019 11:11 am

Tue Jul 20, 2021 6:54 am

Thanks for more details.
Could you double-check if conversion from CLI works too, please (https://www.starwindsoftware.com/v2v-he ... rface.html)?
Mad-Eye
Posts: 5
Joined: Mon Jul 19, 2021 2:41 pm

Tue Jul 20, 2021 10:09 am

Hi yaroslav,

can it be that the cli is only able to convert a virtual disk and not a complete VM? I can't find anything in the documentation that sounds like a vm conversion.
yaroslav (staff)
Staff
Posts: 2360
Joined: Mon Nov 18, 2019 11:11 am

Tue Jul 20, 2021 11:00 am

Hi,

Yes, it converts just a disk. Can you try converting the disk alone with CLI, please?
Mad-Eye
Posts: 5
Joined: Mon Jul 19, 2021 2:41 pm

Tue Jul 20, 2021 11:40 am

Hello again,

converting the disk gave me also an error:

Code: Select all

The log file name: 'logs\V2VConsole_Log-20210720-133159.log' (PID 1352)
7/20 13:31:59.080 b58 Facility ???INFO: main: SetDllDirectory: C:\Program Files\StarWind Software\StarWind V2V Converter\lib
7/20 13:31:59.081 b58 Facility ???INFO: main: File Version: 9.0.1.243
7/20 13:31:59.084 b58 Facility ???INFO: main: Load language IDR_XML_ENGLISH
7/20 13:31:59.084 b58 Facility ???INFO: RunConsole: Version MajorVersion 10, MinorVersion 0, BuildNumber 17763
7/20 13:31:59.084 b58 Facility ???INFO: RunConsole: V2V_ConverterConsole.exe  convert in_host_type=local in_file_name="\\smb-server\hyperv-volume\VMName\VMName_system.vhdx" out_host_type=esx out_file_type="ft_vmdk_esx_thin" out_host_address=172.17.10.11 out_host_username=user out_host_password="pass" out_file_name=[vol_esx]VMName.vmdk out_vm_name="AnotherVMName"
7/20 13:31:59.084 b58 Facility ???INFO: CCommandLineManager::AddParametersForConvertCommand: in_host_type=local
7/20 13:31:59.084 b58 Facility ???INFO: CCommandLineManager::AddParametersForConvertCommand: in_file_name=\\smb-server\hyperv-volume\VMName\VMName_system.vhdx
7/20 13:31:59.084 b58 Facility ???INFO: CCommandLineManager::AddParametersForConvertCommand: out_host_type=esx
7/20 13:31:59.084 b58 Facility ???INFO: CCommandLineManager::AddParametersForConvertCommand: out_file_type=ft_vmdk_esx_thin
7/20 13:31:59.084 b58 Facility ???INFO: CCommandLineManager::AddParametersForConvertCommand: out_host_address=172.17.10.11
7/20 13:31:59.084 b58 Facility ???INFO: CCommandLineManager::AddParametersForConvertCommand: out_host_username=root
7/20 13:31:59.084 b58 Facility ???INFO: CCommandLineManager::AddParametersForConvertCommand: out_file_name=[vol_esxsd_produktiv_mix_1]VMName.vmdk
7/20 13:31:59.084 b58 Facility ???INFO: CCommandLineManager::AddParametersForConvertCommand: out_vm_name=gronremotesd1
7/20 13:31:59.087 b58 Facility ???INFO: MicrosoftFile::ParseFile: sFilename - \\smb-server\hyperv-volume\VMName\VMName_system.vhdx
7/20 13:31:59.246 b58 Facility ???INFO: WrapperESXI::connect: m_url - https://172.17.10.11/sdk
7/20 13:31:59.308 b58 Facility ???INFO: WrapperESXI::connect: fullName - Administrator, key - 52asd137-2265-2664-c709-e0e77asdf421
7/20 13:31:59.463 b58 Facility ???INFO: VMConverter::ESXIConverter::AddVirtualDisk: Attach random
7/20 13:31:59.531 b58 Facility ???INFO: VMConverter::ESXIConverter::AddVirtualDisk: Finded SCSI_0 numLoc - 1
7/20 13:32:00.088 b58 Facility ???INFO: VMConverter::ESXIConverter::AddVirtualDisk: attachDisk is 1
7/20 13:32:00.598 b58 Facility ???INFO: ESXVmdk::ParseFile: sFilename - [vol_esxsd_produktiv_mix_1]VMName.vmdk
7/20 13:32:00.598 b58 Facility ???INFO: ESXVmdk::ParseFile: m_cvmxSpec - moref=17
7/20 13:32:00.609 b58 Facility ???INFO: ESXVmdk::ParseFile: sslThumbprint - 3C:D9:D0:C5:97:10:22:8D:42:A9:B2:2B:25:73:D4:C3:A0:CC:56:81
7/20 13:32:02.763 b58 Facility ???ERROR: ESXVmdk::ParseFile: m_VixDiskLib_Open is fail - 1, Unknown error
7/20 13:32:02.763 b58 Facility ???ERROR: ESXIDisk::CreateOutputImage: ParseFile is fail
7/20 13:32:02.765 b58 Facility ???ERROR: RunConsole: Error create output image - 1
yaroslav (staff)
Staff
Posts: 2360
Joined: Mon Nov 18, 2019 11:11 am

Wed Jul 21, 2021 3:21 pm

Hi,

Thank you for the update. We will look into the logs and conversions from the file shares.
Mad-Eye
Posts: 5
Joined: Mon Jul 19, 2021 2:41 pm

Wed Jul 21, 2021 4:03 pm

Hi,

thank you for your effort and the time you are putting into this.
You guys are doing an amazing job.
Red Beard
Posts: 1
Joined: Wed Oct 13, 2021 9:32 pm

Wed Oct 13, 2021 9:37 pm

I am having the same issues. Converting Hyper-V to ESXi VHDx live on a SMB\SOFS cluster
the path is not getting passed correctly it is adding the hostname to the front of the path to the VHDx
10/13 16:27:34.514 16dc Facility ???INFO: MicrosoftFile::ParseFile: sFilename - \\CLAVMHOST03\\\clasofscl01\CSV01\Hyper-V\Virtual Hard Disks\CHQPOCCACHE02_C.vhdx
10/13 16:28:39.229 16dc Facility ???ERROR: MicrosoftFile::ParseFile: OpenVirtualDisk is fail - 67. The network name cannot be found.
10/13 16:28:39.229 16dc Facility ???INFO: CPPConverting::ConvertImage: CreateInputImage: 2
10/13 16:28:39.230 16dc Facility ???INFO: WrapperHyperV::connect: Host - \\CLAVMHOST03\root\virtualization\v2
10/13 16:28:39.310 16dc Facility ???INFO: WrapperHyperV::init_version: HyperV version: 10.0.14393
10/13 16:28:39.312 16dc Facility ???ERROR: CPPConverting::Convert: FAILED :shock:
yaroslav (staff)
Staff
Posts: 2360
Joined: Mon Nov 18, 2019 11:11 am

Thu Oct 14, 2021 6:00 am

Please wait for the new build to arrive.
Post Reply