Subscribe

ConvertTo-VHDx failed to parse vmdk file

[ Edited ]

Hey Guys,

 

I am trying to test out the convertto-vhdx cmdlet in powershell toolkit 3.2

 

I map the smb3 share as Z: and can see the files using dir etc.

 

PS C:\Users\> Get-WmiObject win32_logicaldisk -filter "drivetype=4"


DeviceID     : Z:
DriveType    : 4
ProviderName : \\10.x.x.173\sharename
FreeSpace    : 396097241088
Size         : 510027366400
VolumeName   :

 

PS C:\Users\> dir Z:\test


    Directory: Z:\test


Mode                LastWriteTime     Length Name
----                -------------     ------ ----
-----        25/09/2014  10:45 AM 7848217804 dev.vmdk
                                           8
-a---        25/09/2014   9:21 AM       1059 dev.vmx
-----        25/09/2014  10:45 AM 6621220044 dev-0.vmdk
                                           8

I connect to controller as below.

 

PS C:\Users\> Connect-NcController -Name 10.x.x.172 -Vserver svm_smb3

Name                 Address           Vserver              Version
----                 -------           -------              -------
10.160.1.172         10.160.1.172      svm_smb3             NetApp Release 8...

 

PS C:\Users\> ConvertTo-NcVhdx -SourceVmdk Z:\test\dev-0.vmdk -Desti
nationVhdx Z:\dev-0.vhdx
ConvertTo-NcVhdx : An error occured parsing the VMDK file.
At line:1 char:1
+ ConvertTo-NcVhdx -SourceVmdk Z:\test\dev-0.vmdk -DestinationVhdx
Z:\dev-0.vhdx
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Smiley Happy [ConvertTo-NaVhdx], Except
   ion
    + FullyQualifiedErrorId : Conversion Exception,DataONTAP.PowerShell.SDK.Cm
   dlets.Toolkit.HyperV.ConvertToNaVhdx

 

Does anyone know what could be causing the error parsing the VMDK?