Fusion

 View Only
Expand all | Collapse all

13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

Scott Vessey

Scott VesseyMar 03, 2024 02:44 PM

  • 1.  13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted Mar 02, 2024 01:18 PM

    Good morning,

    I find it truly incredible that I'm still at the same point.
    It's been 4 months since I reported the problem which started after I successfully updated VMware Fusion to version 13.5.0 on macOS Sonoma 14.0.
    Now, after successfully updating VMware Fusion to version 13.5.1, I still find that when I open my W11 pro ARM virtual machine, VMware tells me it is encrypted with the previous encryption scheme.
    I then select the Refresh button, but the error appears: "the virtual machine could not be re-encrypted: disk problem"

    What should I do to fix it?

    Thank you!



  • 2.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted Mar 02, 2024 01:29 PM

    I'll tag  as he's a Fusion guru.  I'm aware of other chronic problems with Fusion on Mac, but he will likely have much better insight. 



  • 3.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted Mar 02, 2024 05:15 PM

     could you post the following:

    • Configuration details on the virtual disk (max size, fully allocated?, split into pieces?)
    • the vmware-vmfusion*.log files found in ~/Library/Logs/VMware Fusion (the Library folder in your home directory, not the system-wide /Library folder)
    • the vmware*.log files found in the VM's bundle folder
    • a file listing of all of the files contained in the VM's bundle folder (drop into Terminal, cd into the VM's bundle folder and use "ls -al", please. Not a screen shot).


  • 4.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted Mar 03, 2024 12:13 PM

    , first of all thank you
    I'll try to give you the answers to your questions.

    Virtual Disk:
    - maximum size: 250GB
    - fully allocated? Yes
    - divided into parts? Yes

    I attach the vmware-vmfusion*.log files found in ~/Library/Logs/VMware

    I attach the vmware*.log files present in the VM bundle folder

    I attach list.rft file with the list of what is present in the VM bundle folder

    Please tell me if I did something wrong or if you need anything else.

    Thanks again

    bears

    Attachment(s)

    zip
    vm_bundle.zip   151 KB 1 version
    zip
    list.rtf.zip   1 KB 1 version
    zip
    library.zip   10 KB 1 version


  • 5.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted Mar 03, 2024 05:31 PM

    You provided the wrong files. You posted files from the system-wide /Library folder, not your user's Library folder - that's what ~/Library means.

    Go to the Finder, click on Go > Go to folder... in the menu bar and then type in ~/Library

    Your Library folder will then open. Expand the Logs folder, then the VMware Fusion folder. The vmware-vmfusion*.log files can be found there. 



  • 6.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted Mar 04, 2024 09:14 AM
      |   view attached

    Forgive me , you're right.
    I attach the correct logs here (... I hope!... )

    Sorry again for the time I wasted on you.

    bears

    Attachment(s)

    zip
    library.zip   38 KB 1 version


  • 7.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted Mar 04, 2024 03:12 PM

     No need to apologize - you are not wasting my time. Just want to see if I can see if I can help. I’ll take a look and see what I can find out. 



  • 8.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted Mar 04, 2024 04:58 PM

     

    Have you been running this VM with automatic snapshots (AutoProtect) enabled? It appears from the logs that's the case. 

    If so, disable it. While the feature at first appears to be useful, it is more trouble than it's worth. Many times people using this feature either find they're running out of disk space because of the snapshots, or they find they have a system problem and find the snapshots are corrupted. And of course, snapshots do not protect you against the loss of the disk the virtual machine resides on.

    There are some complaints in the logs about a missing key. I'm wondering if that's due to trying to convert the encryption of the virtual machine while autoprotect snapshots are enabled. If this has been happening since Fusion 13.5, then the evidence of what happened is probably long gone.

    I think I might be able to help you get around this, though. Hold on while I dig up some instructions I gave other folks on something similar.

    While you're waiting, shut down Fusion and make a complete copy of this VM to another disk using the Finder. That's going to be necessary before we proceed further.

     



  • 9.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted Mar 04, 2024 07:40 PM

    Hold on for a while more. I'm running into something quite unexpected with Fusion that I have to track down.



  • 10.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted Mar 04, 2024 10:27 PM

    Ok. I think I can proceed here... I was trying to prototype this on a VM that I'd converted from an Insider Preview VHDX file and something is wonky with that. The steps below work with my main Windows 11 VM...

    Here's something to try.

    First make sure you have the virtual machine copied via the Finder to some other disk.

    Then:

    • Create a new VM in Fusion, but opt to create a custom VM. in the "Select an Installation Method" dialog
    • Technogeezer_3-1709590493371.png

       

       

     
    • In the "Choose Operating System" dialog, select a Windows 11 64-bit ARM
    • In the "Choose Firmware Type" dialog, you can leave the "UEFI Secure Boot" box unchecked.
    • In the "Choose Encryption" dialog, I'd choose the default "Only the files needed to support a TPM are encrypted" option. Provide the password for your new VM as requested. Even if you check "Remember password and store it in the Mac's keychain", I'd remember the password yourself. If something goes wonky with the keychain or you want to move the VM to another system, you'll need to know the password.
    • The  "Choose a virtual disk" dialog will appear.

    Technogeezer_4-1709590563132.png

     

    • Choose "Use an existing virtual disk". and click on the "Choose virtual disk..." button. A file browser window will open that you can use to navigate into the converted VM's bundle (yes, it will let you drill into the bundle like it's a normal folder, and not have to go through the "Show Package Contents").
    • Technogeezer_6-1709590742457.png
       
    • Select the .vmdk file representing the latest snapshot of your VM. In your case that is Disco virtuale-000005.vmdk . Before hitting "Choose", though, make sure the option is selected to "Make a separate copy of the virtual disk". That will copy the virtual disk into your new virtual machine, leaving the original untouched. Once you've verified that you have the option set, click "Choose".
    • You will be returned to the Choose a Virtual Disk dialog.
    • Technogeezer_9-1709590966264.png

      You can double check that you chose the virtual disk. Then click "Continue"

    •  In the Finish dialog, you can click the  "Customize Settings" or "Finish" buttons. Finish will power on the vm, Customize Settings gives you a chance to change things like memory and CPUs before powering on the VM.
    • Either way, you'll be presented with a dialog to save the new VM. Once. you provide the name and location for the new VM and click "Done", the data should be copied from the old VM.

    Once you get the new VM up and running, you can delete the old one. Note that you may need to reset your PIN when you powered up your VM if you used Windows Hello and a Microsoft account to avoid typing in your password at login.

     



  • 11.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted Mar 05, 2024 11:19 AM

      WOW!

    I hope to be able to try to do what you wrote today
    I'll update you as soon as it's done

    Thank you!!!!!!

    bears



  • 12.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted Mar 05, 2024 01:05 PM

     

    Here I am
    I think I did something wrong, but I don't know what having followed what you told me step by step...

    I attach the last three screenshots of the steps I did:

    Screenshot 2024-03-05 alle 13.52.47.pngScreenshot 2024-03-05 alle 13.53.00.pngScreenshot 2024-03-05 alle 13.48.33.png

    I don't understand why the result is the error "Unable to decrypt the disk because the key or password is invalid"...

    The only doubt I have concerns the selection of the .vmdk file.
    She advised me to choose the file "Virtual Disk-000005.vmdk".

    However, looking in the settings of my current VM I find what is shown in the screen I attach below.

    Screenshot 2024-03-05 alle 13.49.31.png

    Maybe it has nothing to do with it, but I had this doubt.

    bears

     



  • 13.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted Mar 05, 2024 03:30 PM

    You didn’t do any really wrong, but what you are seeing looks like the same issue I had with the VM that gave me a problem. Could you zip up and post that particular .vmdk file - I’d like to see if it’s the same problem I ran into. The file should (it should be a small file that’s the descriptor file for the slices that make up the virtual disk). 



  • 14.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted Mar 05, 2024 04:35 PM
      |   view attached

    HI  

    for the sake of clarity I am attaching all the vmdk files [virtual disk 000001 - 000002 - 000003 - 000004 - 000005].

    bears

    Attachment(s)

    zip
    vmdk.zip   6 KB 1 version


  • 15.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted Mar 05, 2024 05:03 PM

    Well, this is what I was afraid of. You  hit the exact same problem that I did.

    It appears that Fusion has marked something in the virtual disk as encrypted. From the disk descriptor entry:

    version=1
    encoding="UTF-8"
    CID=6c0d80be
    parentCID=7e1d1f24
    createType="twoGbMaxExtentSparse"
    keyID=93356c19
    encryptionKeys="vmware:key/list/(pair/(null/%3cVMWARE%2dEMPTYSTRING%3e,HMAC%2dSHA%2d1,qjolwwEVYt%2bNbhq%2fhNKpokIXH%2bn6I2EssJqEpi%2fyvdGbQdew52kBk9THfYdGlLu%2f8K3TLhw8%2fSOBFAtxfNuzZC7cTvYyrXJbD9uEPx5ehH8IWCiYlBkB0%2fFlfNuW6KkFAUa2gsxQwS6NUhd%2f2JsPdrTc2BaC90qe19bai%2fnXh518779xiue3nnzBeQjbleHkzacHH1Ij6FNbBnaGSxu0oqGyFyL9fZCG06OvDbhXHNG7azK1rWNv5a8W6ayaljkLGa18%2fGUq7x1FPB3PQfWLqDhdCC4BuxJ6khg3xkAuO836Pv6r%2bVNKJsCHCqMsZmFiiSPPQ92BtpiQ6I%2f7Pp5bSTTa2PUcQmQbsMIVEIxzNmNOi8PZveM22mZ0DnYOVJA9Xbcu65Vf7ghu6VgS9i5ByrceOMYv5V0fo2wvJ%2fOv8QIaJGMEAmjPM7uP%2bHo35cIUyzkdBLHycSikP9vWiod6IifzP%2bxQGQ1hAExqjk0gwicVUATv))"
    parentFileNameHint="Disco virtuale.vmdk"

    The "keyID" and "encryptionKeys" lines in the descriptor file don't exist on an unencrypted virtual machine. But this virtual disk shouldn't be encrypted at all since it's part of a partially encrypted virtual machine.

    I don't think should be happening for a VM that is partially encrypted. I had this happen on a virtual machine that I converted from a VHDX Windows Insider Preview. Simply manually editing the two entries removes the errors, but the data  in the virtual disk is lost. Something apparently remains encrypted within the VM (perhaps the grain table)?

      as the resident VMDK guru, do you have any idea why these entries would be set in a supposedly unencrypted VMDK file. And, more importantly, is there any way of getting rid of them?

     - this is very serious and I'd open a support ticket if I could - that's how bad this is. Can you bounce this by your developers and find out a) how this could happen and b) how it can be corrected? I'm wondering if this could be the reason why people are having problems with converting from the old encryption scheme to the new one even though there is plenty of disk space available for the conversion. 



  • 16.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted Mar 05, 2024 09:17 PM

    I'm afraid that I can't help in this case, but IIRC  posted some information related to encryption.

    In the end however, it's indeed  and his team who may need to take a look at this.

    André



  • 17.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted Mar 05, 2024 09:51 PM

    Thanks André - it was worth a shot seeing if you'd seen anything like this before.

    I must also note that those lines in the descriptor do not appear in a virtual disk whose VM is partially encrypted. They also seem to prevent the VM from being unencrypted.

     



  • 18.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted Mar 03, 2024 02:44 PM
    Who did you “report” the problem to?


  • 19.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted Mar 04, 2024 09:27 AM

    HI ,

    You're right, I didn't report it to anyone in Support.
    I tried but I couldn't.
    Probably because I didn't buy a technical package that includes the possibility of communicating with support.

    I am a normal user, not a technician, who purchases VMware software for personal use, for its basic functionality and not for developments, system activities, etc.

    So I just posted here in the VMTN Communities and found that I'm not the only one having this problem.
    I was surprised that a fairly widespread problem hadn't received a fix with the new release.

    Then, don't hurt anyone's feelings or make anyone work unnecessarily.
    I am a customer, even quite ignorant, I encountered a problem, I verified that I was not the only one with it and, wrongly, I thought that it was of interest to those who developed and marketed the software to look into it...

    bears



  • 20.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted 29 days ago

    13.6.0 | Unable to re-encrypt the virtual machine: Disk Problem

    Hi All,

    this morning I installed the new version of VMware Fusion 13.6.0, but unfortunately the problem persists...
    Has anyone managed to solve this problem?
    It's been almost a year now...

    thanks!

    bears




  • 21.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted 29 days ago
    Edited by Technogeezer 29 days ago

    Can you zip up the files  ~/Library/Logs/VMware\ Fusion/vmware-vmfusion*.log and post them. There might be something that can give us a clue as to what's going on.

    There are three instances I know of where this problem happens:

    • The VM has been encrypted with Fusion 12.5's broken "experimental" vTPM implementation (the one where you had to edit the vmx file). My advice if this is the case is to not update the encryption - and I also recommend to back up everything on these VMs and rebuild them with newer Fusion versions that support the newer partial encryption and the new encryption algorithms.
    • You run out of disk space on the host during the conversion.
    • The virtual disk is strangely marked as encrypted when it shouldn't be (as I noted in a prior post).

    Perhaps the log files might give us an indication of which of these you might be running into.



    ------------------------------
    - Paul (technogeezer)
    ------------------------------



  • 22.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted 28 days ago
      |   view attached

    Hi Paul,

    here are the log files.

    Thank you very much for your support.

    bears


    Attachment(s)

    zip
    Archivio.zip   38 KB 1 version


  • 23.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Broadcom Employee
    Posted 3 days ago

    Hi @webears

    Can you tell us if you have created a vm with the following parameter in the vmx file

    managedvm.autoAddVTPM = "software" 




  • 24.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted 3 days ago
      |   view attached

    Hi @Rajeswara Reddy Kotla,

    I'm a bit ignorant, but if the file you're referring to is the one attached, trying to read it with a text software, I don't seem to find the parameters you indicated.
    Let me know if I got the wrong file...

    thanks!!

    bears


    Attachment(s)

    vmx
    bears_arm_W11_pro.vmx   10 KB 1 version


  • 25.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted 3 days ago

    According to the vmx file, the VM is encrypted with partial encryption, not the "experimental" broken encryption feature found in Fusion 12.5 (that's enabled with the command that @Rajeswara Reddy Kotla posted).

    There are, however some lines in the .vmx file that are prompting me to ask: does this VM have snapshots? In particular, are autoprotect snapshots enabled?



    ------------------------------
    - Paul (technogeezer)
    ------------------------------



  • 26.  RE: 13.5.1 | Unable to re-encrypt the virtual machine: Disk Problem

    Posted 2 days ago

    Hi @Technogeezer,

    the VM has no snapshots and AutoProtect snapshots are not enabled.

    They were probably enabled in the past, but not anymore.

    bears