-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Huge efi_vars.fd file (several GB) inside the .utm package of a VM #5702
Comments
In one of my VMs, Apparently, |
2.8 GB on disk (!) |
Okay, so the explanation is that when you suspend, QEMU will save the RAM state into the first QCOW2 drive, which in this case happens to be the EFI vars. Now if you have 8GB of RAM allocated, that means up to 8GB of data could be stored there. To get rid of the space, you should resume the VM and shut it down properly. |
Describe the issue
I found a huge (4.13 GB)
efi_vars.fd
file inside the .utm package of one of my VMs (QEMU ARM VM, Fedora Linux aarch64)("Show in Finder" -> Show package contents -> "Data" folder)
I have 3 other (ARM Linux) VMs that also seem to have bloated
efi_vars.fd
files inside them (367 MB, 358 MB, 164 MB) but this one was by far the worst. Don't know why.A random guess: could this have something to do with the fact that I have used the Edit VM / VirtIO Drive /
"Compress"
button (and probably"Reclaim Space"
button too) several times between installing and/or removing lots of stuff inside the VM? Bug inCompress
orReclaim Space
maybe?Screen shot: Before manually deleting the huge
efi_vars.fd
(BTW similar size to the .qcow2 file (probably a coincidence?), size/content not identical):I tried manually deleting the huge 4.13 GB
efi_vars.df
. After deleting the file, I restarted the VM and noticed no difference / no errors (VM still worked normally, I think). After that, there was a new much smallerefi_vars.df
(size 655 KB).Screen shot: After manually deleting the huge
efi_vars.fd
there was a new one, size is now reasonable (655 KB vs. 4.13 GB):PS. I found this because I was wondering why the "size" reported by Edit Selected VM / VirtIO Drive was so different from the "size" reported by VM details, might be related / duplicate of #4741.
Please let me know if you need more information. I do have a backup of the huge 4.13 GB
efi_vars.df
file if you want to look at it.Suggestion: in your own personal VMs, check the file size of
efi_vars.fd
inside each VM (especially ARM64 Linux VMs?) and see if any of them are too large / otherwise weird? Also tryCompress
/Reclaim Space
?Steps to reproduce:
(sorry, don't have good steps, I guess install arm64 Fedora Linux, install lots of packages inside, use Edit VM / VirtIO Drive / Compress (and/or Reclaim Space), remove lots of packages, use Compress (and/or Reclaim Space) again, use the VM for a couple of weeks, see if the efi_vars.df file is huge yet)
Configuration
The text was updated successfully, but these errors were encountered: