utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
26.54k stars 1.33k forks source link

VM disk size shows different values between main window and config pane #4741

Open LostInCompilation opened 1 year ago

LostInCompilation commented 1 year ago

Describe the issue EDIT: See comment down below for better screenshots and reported size by Finder.

After compressing a VM disk, the size of the disk is displayed differently between the main window and the VM's config windows. This is the first time I encountered this issue, it is the only VM where this error happens (Windows 11 ARM VM). Restarting UTM doesn't help.

Configuration

Screenshot 2022-11-29 at 02 04 28
LostInCompilation commented 1 year ago

Update: The drift gets bigger each time I use the VM. Currently the options dialog still shows about 19GB, while the preview pane is now at 30GB.

LostInCompilation commented 1 year ago

It now happened with another VM (Debian).

LostInCompilation commented 1 year ago

A bit more info: The size shown in the VM settings window is always a smaller one than the size shown in the UTM main window. The actual file size of the UTM file in Finder is the same as displayed in the UTM main window and is the bigger value of the two. I always click "Compress" when I'm done with the VM, so I think this only happens when using the compress feature.

LostInCompilation commented 1 year ago

For better documentation, here are better screenshots and the actual size reported by Finder (from #5241). Those are just two examples, every VM has this inconsistency.

First VM (Finder shows 47.46GB)

234083932-dfba90b7-d56c-4e16-a23a-2bdd164de1a8 234083950-8c4a02f1-ea95-49af-aba9-6fd8ee895804

Second VM (Finder shows 3.32GB)

234084653-811725f7-5088-4ae4-b925-bd56f530ae12 234084663-590628c7-f6e3-411d-98c2-c31c52cb0b25
rxhfcy commented 1 year ago

An example QEMU Linux arm64 VM: (these are all from the same VM)

(this is just one example, every "Size" is different in every VM)

rxhfcy commented 1 year ago

Update: The drift gets bigger each time I use the VM. Currently the options dialog still shows about 19GB, while the preview pane is now at 30GB.

@LostInCompilation can you check if you have a huge efi_vars.fd file inside the .utm package too?

(select the VM, Show in Finder, Show Package contents, inside "Data": send a screen shot of Finder showing the contents)

rxhfcy commented 1 year ago

@LostInCompilation can you check if you have a huge efi_vars.fd file inside the .utm package too?

(select the VM, Show in Finder, Show Package contents, inside "Data": send a screen shot of Finder showing the contents)

@LostInCompilation ...and can you also report the "size on disk" of efi_vars.fd (right click, Get Info, Size (on Disk)?

LostInCompilation commented 1 year ago

@LostInCompilation can you check if you have a huge efi_vars.fd file inside the .utm package too?

(select the VM, Show in Finder, Show Package contents, inside "Data": send a screen shot of Finder showing the contents)

For those VM's where different sizes get reported between main and config window I have a big efi_vars.fd too.

Whats interesting is, that the difference in size reported by the two windows inside UTM is exactly the size of efi_vars.fd.

jauharvp commented 10 months ago

I am experiencing the same issue. In addition, the guest's disk size does not match what I allocated.

image

Experiencing the storage issue since this is happening

desgraci commented 5 months ago

Still no solution? this makes the app virtually unusable

EDIT: are you sure u don't auto reclaim/compress the space after saving, when the disk is created, seems to be the issue and explains why the base disk is 16/40 gb and the new ones empty