OVA file is larger than 2G.
I can successfully complete the Import-vApp with OVA files which size is less than 2G.
furthermore it is successfull with same ESXI host when my powercli is running over Windows
the failure occurs when running over UBUNTU 16.04.
process back trace:
Import-VApp : 10/19/17 2:19:40 PM Import-VApp Cannot write more bytes to the buffer than the configured maximum buffer size: 2147483647.
At line:1 char:1
+ Import-VApp -Source /home/rainbow/OVA/VBS.ova -Name V_X -VMHost $gSer ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Import-VApp], ViError
+ FullyQualifiedErrorId : Client20_NfcLease_RunNfcTask_Error,VMware.VimAutomation.ViCore.Cmdlets.Commands.ImportVApp
PS /root/.local/share/powershell/Modules> $Error[0].Exception.InnerException.stackTrace
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.HttpContent.<WaitAndReturnAsync>d__62`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.HttpContent.<ReadAsStreamAsyncCore>d__41.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.CurlHandler.MultiAgent.<>c__DisplayClass42_0.<TransferDataFromRequestStream>b__0(Task`1 readStream, Object s)
at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.CurlHandler.MultiAgent.TransferDataFromRequestStream(IntPtr buffer, Int32 length, EasyRequest easy)
at System.Net.Http.CurlHandler.MultiAgent.CurlSendCallback(IntPtr buffer, UInt64 size, UInt64 nitems, IntPtr context)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.Handlers.ProgressMessageHandler.<SendAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.HttpClient.<FinishSendAsync>d__58.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at VMware.VimAutomation.ViCore.Impl.V1.Ovf.Import.ImportSource.UploadFileItem(String uploadUrl, Stream fileItemStream, Nullable`1 length, NfcLease lease, ClientSideTaskInterop task, Boolean create, Int32 cimType, String sslThumbprint)
at VMware.VimAutomation.ViCore.Impl.V1.Ovf.Import.OvaFileImportSource.ProcessFileItem(CustomTarEntry currentEntry, OvfFileItem fileItem, HttpNfcLeaseInfo leaseInfo, VMHostInterop host, NfcLease lease, ClientSideTaskInterop task)
at VMware.VimAutomation.ViCore.Impl.V1.Ovf.Import.OvaFileImportSource.UploadRelativeFileItems(List`1 relativePathItems, VMHostInterop host, ClientSideTaskInterop task, NfcLease lease, HttpNfcLeaseInfo leaseInfo)
at VMware.VimAutomation.ViCore.Impl.V1.Ovf.Import.ImportSource.Import(OvfCreateImportSpecResult importSpecResult, VMHostInterop host, ClientSideTaskInterop task, NfcLease lease, HttpNfcLeaseInfo leaseInfo)
at VMware.VimAutomation.ViCore.Impl.V1.Service.VappServiceImpl.HandleImportVAppTask(NfcLease lease, OvfCreateImportSpecResult importSpecResult, ImportSource importManager, VMHostInterop host, ClientSideTaskInterop task)
at VMware.VimAutomation.ViCore.Impl.V1.Host.Storage.NfcLease.RunNfcLeaseTask(NfcLeaseTask leaseTask)
Thanks.