Linux ARM64 VM Taking Too Much Space Very Quickly & Want to Reduce this Amount of Space or Fix Issue... #3607
Replies: 5 comments
-
Since you're on macOS, try installing qemu (via brew or MacPorts) and using qemu-img to "convert" your disk images to qcow2. This will shrink the file size down to only the used parts again. Using the compression flag will shrink it even further, but compressed qcow2 images can't be snapshotted if you use that feature. There are some other existing threads on here regarding other ways of trimming free space without having to rebuild your disk images, and there's features planned for UTM 3.1 that should do some of this automatically. |
Beta Was this translation helpful? Give feedback.
-
I have installed it, using brew, now what do i do? |
Beta Was this translation helpful? Give feedback.
-
Here's the script I use:
If you want VM snapshots, remove the -c option. Run this script on an image in your .utmconfig/Images/ folder when UTM is not running. Then delete the original file and rename the .qcow2.qcow2 file to only end with .qcow2. |
Beta Was this translation helpful? Give feedback.
-
and the basic way to use it is to run qemu-img convert -O qcow2 <drag input file here again, with .qcow2 on the end> |
Beta Was this translation helpful? Give feedback.
-
You'll get more compression if you TRIM or zero out freespace inside the VM before compressing the image file. |
Beta Was this translation helpful? Give feedback.
-
Describe the issue
Hello fellow developers,
My Linux arm64 vm is taking too much space and it is getting out of hand for me. For this VM i put 30 GB Space in the VM and after 1 week of using it, the amount of space left is 2 GB. The only applications I have downloaded is VSCode (idk if you have to download chromium), and g++ compiler. Please help, it would be much appreciated!!!
Configuration
Crash log
If the app crashed, you need a crash log. To get your crash log, open Console.app, go to
Crash Reports
, and find the latest entry for either QEMU, QEMUHelper, or qemu-*. Right click and chooseReveal in Finder
. Attach the report here.Debug log
For all issues, including crashes, you should attach a debug log. Open UTM, and open the settings for the VM you wish to launch. Near the top of the
QEMU
page isDebug Log
. Turn it on and save the VM. After you experience the issue, open the VM settings again and selectExport Log...
and attach it here.Upload VM
(Optional) If possible, upload the
config.plist
inside the.utm
. If you do not have this, you can upload the entire.utm
but note this contains your personal data. Since Github has an attachment size limit, you may want to upload to another service such as Google Drive. Link it here.Beta Was this translation helpful? Give feedback.
All reactions