VMware vSphere

 View Only
  • 1.  How to stop a running (hung) export task from ESXi?

    Posted Sep 30, 2020 04:13 AM

    Got a lab PC setup with Esxi 6.7 u3 which I test vSphere implementation, nested setup.

    I tried to export a ESX6.7 nested VM, but the task stuck at 50%. Is there way to stop it?

    I find "esxcli vm process kill" can be used to kill process, but how to find that process?

    I also tried to export to ovf from a vcenter lab (nested) in the lab PC above, via selecting the VM | Template | Export OVF template. It just stop at 0%.

    Find this tool "Open Virtualization Format Tool (ovftool) 4.4.0", have not tested it out. But it look like the preferred method to export and import VM or vApp..  Is it true?

    Thanks!

    Damn, just found just need to click on the X or Stop icon, depend on the client...



  • 2.  RE: How to stop a running (hung) export task from ESXi?

    Posted Sep 30, 2020 08:40 AM

    Hi ,You can find the  process with below command

    ps | grep vmname

    Kill the parent process by running the command kill process_id



  • 3.  RE: How to stop a running (hung) export task from ESXi?

    Posted Oct 01, 2020 02:46 AM

    Thanks.. found my mistake. I need more time with the webclient.:smileyblush:



  • 4.  RE: How to stop a running (hung) export task from ESXi?

    Posted Sep 30, 2020 11:52 AM

    you can log in via ssh to the host and restart management agents using services restart.sh



  • 5.  RE: How to stop a running (hung) export task from ESXi?

    Posted Oct 01, 2020 02:45 AM

    Thanks.. it was my mistake. As updated first post, did not realize the icon "Stop" or "cross" depend on the client is used to stop task.

    Anyway, found that ovftool worked, export via web client some time stuck. As in Vmware article, any thing above 1GB need to use ovftool.

    I guess that the limitation of webclient.. likely that is the reason OVA format support are lacking in the webclient and vmware Workstation 15 (no idea about other version).

    .



  • 6.  RE: How to stop a running (hung) export task from ESXi?

    Posted Nov 10, 2023 05:57 PM

    minor correction:  services.sh restart