Fusion

 View Only
  • 1.  Delete VM from library if file is missing

    Posted Sep 29, 2017 10:41 AM

    I deleted the .vmwarevm from command line, however the VM is still in the Fusion library and I can't delete it now as it keeps saying it can't find the file when I try delete it.

    How would I go about removing it from the Fusion library now? Is there a command line option I can use to do this?

    Thanks



  • 2.  RE: Delete VM from library if file is missing
    Best Answer

    Posted Sep 29, 2017 10:52 AM

    Quit Fusion, then relaunch it.

    It can be deleted now.



  • 3.  RE: Delete VM from library if file is missing

    Posted Sep 29, 2017 10:57 AM

    Thanks!



  • 4.  RE: Delete VM from library if file is missing

    Posted Oct 02, 2017 09:56 AM

    Is there anyway it can be deleted via the terminal after relaunching it?



  • 5.  RE: Delete VM from library if file is missing

    Posted Oct 02, 2017 10:20 AM

    Hi,

    You could do so via the REST API.

    http://www.virtuallyghetto.com/2017/07/vmware-fusion-2017-tech-preview-adds-rest-api-support.html

    or directly via the command line using vmrun (found at \Applications\VMware\ Fusion\Contents\Library ) using the DeleteVM option.

    --

    Wil



  • 6.  RE: Delete VM from library if file is missing

    Posted Oct 02, 2017 10:22 AM

    Regarding vmrun - I can't use deleteVM if I have already removed the file manually via finder?

    Also with deleteVM, it doesn't work if it is registered to the Fusion Library?



  • 7.  RE: Delete VM from library if file is missing

    Posted Oct 02, 2017 10:37 AM

    Hi,

    You make a good point. If the vmx is already removed then passing it as a parameter might not have the desired result (haven't tested it in your scenario)

    It might still work though, depends on how VMware implemented this.

    Hmm... just tested it and ended up getting a "the virtual machine cannot be found" error.

    Can't really advise to meddle with the file, but the registrations for non shared VMs are located at:

    ~/Library/Application Support/VMware Fusion/vmInventory

    --

    Wil



  • 8.  RE: Delete VM from library if file is missing

    Posted Oct 02, 2017 10:41 AM

    Thanks for checking it out!

    Although my vmInventory seems empty... And also has a slightly different path of:

    /Library/Application Support/VMware/VMware Fusion/Shared/vmInventory



  • 9.  RE: Delete VM from library if file is missing

    Posted Oct 02, 2017 11:02 AM

    Hi,

    There's two vmInventory files.

    The one you are pointing at is for shared virtual machines.

    The location I was pointing you towards is the default one and should have the normal list of virtual machines.

    Note that my path is prefixed by "~" so it is under your home folder and is normally hidden from finder.

    --

    Wil



  • 10.  RE: Delete VM from library if file is missing

    Posted Oct 02, 2017 12:19 PM

    Ah gotcha, thanks!

    Just to verify, deleteVM doesn't work if the VM is registered in the library of Fusion?



  • 11.  RE: Delete VM from library if file is missing

    Posted Oct 02, 2017 12:36 PM

    Hi,

    I'm not sure I understand the question.


    But to be fair, I don't have the time to test today anymore (got to get some work done) and I have not used that function myself before so you'll have to test it by yourself.

    --

    Wil