Sign up for the quarterly Flings Newsletter here!

ESXi Embedded Host Client

Communities:
Report a Bug

#216 Export OVF with large disk

Open
  • User
    Anonymous • Aug 02, 2017

    Hi,

    I have the following machine with ESXi 6.5
    1. Intel NUC, latest BIOS, 2 x 1TB Intel 600p M2 SSD
    2. ESXi version: 6.5.0 ESXi build number: 5969303
    3. Client version: 1.21.0 Client build number: 5724747

    On the host, I built a test VM from scratch
    1. VM version 6.5
    2. Guest OS Windows 2012 R2
    3. 2 x 40GB HDD, thin provisioned

    On my Windows 8.1 workstation
    1. I opened the host client
    2. Open the VM
    3. Export OVF

    I made a few export OVF attempts without success. The guest machine's OVF, and disk-2.vmdk were downloaded without errors, however, disk-1.vmdk couldn't be downloaded. The disk-1 is about 22GB in size on the host, disk-2 is less than 1GB.
    When I did it in Chrome, it showed network interruptions
    When I did it in IE 11, the exact message was "The disk-1.vmdk download was interrupted."

    I stick to IE, when I received the download error, and before I clicked Cancel the disk-1.vmdk download, I inspected the download file size, and I measured this 3 times, the results as follow:
    attempt#1, 03/08/17 06:32 AM 10,942,487,040 disk-1.vmdk.908quoc.partial
    attempt#2, 03/08/17 09:31 AM 10,942,487,040 disk-1.vmdk.n3pg05j.partial
    attempt#3, 03/08/17 10:13 AM 10,942,487,040 disk-1.vmdk.bb66hln.partial

    This led me to think if it was download file size limitation - did not find any reference that IE 11 has download file size limitation (https://blogs.msdn.microsoft.com/ieinternals/2011/03/10/file-upload-and-download-limits/)

    Had also excluded the download folder from the anti-virus.

    Does it seem something to do with the Host Client that is limiting the download file size?

    Regards,
    Ken

  • User
    Anonymous • Aug 02, 2017

    Hi,

    I'd like to update that I was able to export the said guest machine to OVF by using ovftool

    For the record

    *** ovftool documentation and download ***
    https://www.vmware.com/support/developer/ovf/

    *** reference ***
    I'm new to ovftool, I made reference to this article I was able to derive how to export from ESXi to local Windows PC
    http://www.virtuallyghetto.com/2012/06/how-to-copy-vms-directly-between-esxi.html

    *** test exporting, it gave the following output ***
    C:\Program Files\VMware\VMware OVF Tool>ovftool.exe vi://192.168.1.18/win2012r2 "C:\Users\kor\Desktop\images\win2012r2-general"
    Enter login information for source vi://192.168.1.18/
    Username: root
    Password: ****************
    Opening VI source: vi://root@192.168.1.18:443/win2012r2
    Opening OVF target: C:\Users\kor\Desktop\images\win2012r2-general
    Writing OVF package: C:\Users\kor\Desktop\images\win2012r2-general\win2012r2\win
    2012r2.ovf
    Transfer Completed
    Completed successfully

    *** files it yield ***
    03/08/17 11:46 AM 10,942,500,352 win2012r2-disk1.vmdk
    03/08/17 11:46 AM 75,776 win2012r2-disk2.vmdk
    03/08/17 11:35 AM 4,297,373,696 win2012r2-file1.iso
    03/08/17 11:46 AM 372 win2012r2.mf

    *** test importing, it gave the following output ***

    C:\Program Files\VMware\VMware OVF Tool>ovftool.exe -ds=ds1 -dm=thin -n=win2012r2.2 "C:\Users\kor\Desktop\images\win2012r2-general\win2012r2\win2012r2.ovf" vi://192.168.1.18
    Opening OVF source: C:\Users\kor\Desktop\images\win2012r2-general\win2012r2\win2012r2.ovf
    The manifest validates
    Enter login information for target vi://192.168.1.18/
    Username: root
    Password: ****************
    Opening VI target: vi://root@192.168.1.18:443/
    Deploying to VI: vi://root@192.168.1.18:443/
    Transfer Completed
    Completed successfully

    *** additional info ***

    I was able to start the OVF deployed machine, take snapshot and etc.

    *** conclusion ***
    I noted the successful disk1 file size is slightly larger than the one created by the ESXi Host Client export, the Host Client (or the browser) was not far from completing the export for disk1. I'm not sure the Host Client is the root of the issue. Until the export is possible with the Host Client, I'm happy that ovftool does the job and I'm able to script it for automation anyways.

    Meanwhile, can someone please advise if I missed anything with the Host Client export?

    Ken

  • Etienne square140
    Etienne Le Sueur • Aug 03, 2017

    hi Ken,

    thanks for reporting back that ovftool worked.

    We are aware of some issues around exporting large VMs via the host client. Like your conclusion, mine and my colleagues is also that there is nothing really wrong with Host Client. The downloads seem to get interrupted randomly. Unfortunately it's a very difficult bug to reproduce and debug. We have spent quite a long time on this already :(

  • User
    Anonymous • Nov 02, 2017

    Was just able to do it with Firefox (56.0.2) as well as the OVF tool...
    IE is a no-go (for us)

  • Etienne square140
    Etienne Le Sueur • Nov 02, 2017

    Hi, yes IE does have known problems with large files.

  • User
    Anonymous • Mar 01, 2018

    I'm currently doing a POC on vSphere 6.5.
    This problem also happens to me.
    My VM is only 10GB in size. I'm getting "Network Error" after it downloads around 6GB.
    I'm using Google Chrome.

  • User
    Anonymous • Mar 01, 2018

    @Dudi

    I was told a solution but I haven't tested it - I kept using ovftool for vm upload; the solution: set Manage/System/Advanced settings/UserVars.HostClientSessionTimeout from default 900 to 0; and then try upload a VM again.

    Ken

  • User
    Anonymous • May 13, 2018

    Ken,

    I have the same or very similar issue and for some reason I am unable to get OVF Tool to work on my PC or MAC (error message Error: cURL Error: SSL Connect error).

    I just tried the potential solution above and it didn't work for me.

    I only have this issue with Ubuntu images, I can export windows VM's just fine.

    Paul

  • User
    Anonymous • May 13, 2018

    I have a correction.
    I just discovered that all exports using the embedded vSphere web interface fail.

    I re-loaded ESXi 6.5 on my host and ...

    1. I can now use OVF Tool to export my ubuntu image
    2.I can now export my windows hosts using the vSphere embedded web tool

    Sounds like mainly an issue with ESXi 6.7, has anyone else seen this?

  • User
    Vmguy2832 • Jun 09, 2018

    Wow, i am having the exact same problem right now on latest ESXi 6.7.
    Ive used firefox browers, even fresh firefox browsers with NO addons. Everytime i attempt to download(export) a 50GB Ubuntu VM created from ESXi from the embedded host web client, it downloads up to 100mb and then it says completed, when i check the integrity of the vmdk file, its corrupted. Clearly it has some sort of limit at 100mb download. This is a very big problem and it needs to be sorted out. The only way i have successfully downloaded the VM is via the datastore browser in the host client under Storage. Even though it took ages to download.
    Not to mention the fact that Copy/Paste isolation.tools.copy.disable and isolation.tools.paste.disable does NOT work within the VM to Ubuntu, which is another additional issue.
    I havent tried with WIndows VM's. So far its been Ubuntu VM's.
    Please can you fix these issues? My goodness, when the Vsphere Client was still alive before i upgraded from ESXi 6.0 i NEVER encountered any issues like this.
    I have not tried

  • User
    Vmguy2832 • Jun 09, 2018

    I have not tried Windows VM's, only Ubuntu VM's so far.

  • Etienne square140
    Etienne Le Sueur • Jun 28, 2018

    Hi there,

    We are aware of an issue exporting large VMs with the host client and have the issue fixed in both the client and the host agent daemon. The fix will be included in the next Update release of vSphere. I appreciate this is a critical issue for Host Client, in the mean time, the ovftool utility can be used to export a VM from your ESXi host.

Comment