-
-
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
Change disk image size #2636
Comments
Instead of expanding the disk (disk file) itself, you can add a new disk (disk file) to the Ubuntu and mount the new disk as a new mount point or a subfolder. |
tx @wxw-matt 🤓 |
Duplicate of #16 |
Found a simple answer in the support Discord that worked for me:
Then use e.g. |
For UTM on macOS:
see also: https://superuser.com/questions/24838/is-it-possible-to-resize-a-qemu-disk-image |
hey, had tried it several times on my M1 MacBook Air with an Windows 11 VM but somehow it won't work, could you help me? |
Same, this breaks the image. For me, it creates a "display output is not active" error at login |
Thank you! This is great. Furthermore, I found https://codenotary.com/blog/enlarge-a-disk-and-partition-of-any-linux-vm-without-a-reboot/ useful to resize my linux guest partitions and file system without having to shutdown. |
It works on my M1 MacBook Air but with a subtle approach. I have no qcow2 named Find your qcow2 file.What you should to is go to the path Increase your disk volume
where +100G is your option. Allocate the diskInside the VM(WIndows 11 ARM), go to |
ok, but after that, when I got ,,image resized" in terminal, - what I need to do? Cause in vm windows 11 I see my extra space in ,,create and format hard disk partition", I can do the partition of new disk space, but in the and, when I was try to install big file (60gb game), system inform that ,,im run out of space and choose other disk". Im choosing new disk but nothings change .. :/ |
The same thing, was able to resize but still no change in disk space at all. Note: in the above terminal command you must change the to the name youve given to your vertual machine like i did it to windows, so final command would read ".....Documents/Windows.vm......" |
Out of curiosity, where are you guys getting the proper qemu-img binary from? I installed utm from homebrew but no qemu-* (or more specifically, no qemu-img) binaries are found on my path?? |
actual version 👍🏻 in App Store |
Interesting, I thought that adding binaries to the path is against apple ToS when using apps on the app store |
I had to restart the Windows 11 ARM VM for the changes to take efffect. |
This worked for me except it was for ubuntu and I had to follow this tutorial to resize the partition: |
|
I did this but am having trouble resizing the image with parted. I don't have enough diskspace to install gparted or grow part. |
For anyone looking to increase their disk image size with an Ubuntu VM, this is 100% the article that you've been looking for. Step by step instructions for a M1 Mac using UTM: https://linux.afnom.net/install_apple/m1.html I've been trying to figure this out for the last couple hours, and that article got me the solution in ~5mins. People were saying to "use Hope this helps others as much as it helped me. |
For me the macOS command above didn't work, I instead did
|
Worked for me, but the VM does not recognise the increased disk space. Any ideas? |
Updated link: https://linux.afnom.net/install_apple/apple_silicon.html#expanding-your-utm-vms-storage-a-nameutm-storage-expanda |
(...2 years laters ) yes, you can!
(path2=/Users/me/Library/Containers/com.utmapp.UTM/Data/Documents/myVM.utm/Data) |
I tried a lot of the above with an Arch Linux install as an IMG disk using Apple Virtualization and I was unable to resize my disk. I was finally able to do it using CloneZilla operating on an imported IMG--> GCOW from Arch and cloning to a fresh disk created in UTM. I moved the new GCOW disk to a new VM without Apple Virtualization and booted from it with a new size and everything worked great. |
I tried to Clone the HD but any App i tried to install on my Win11 ARM in UTM failed either to install or run. So i tried the mentioned CloneZilla Arm Version as ISO and worked from the first Boot as it should. Addet NVME Bigger Space in UTM and USB CD with the CloneZilla ISO moved the CD Up in the List booted direct and choosed Pro (r Option to Scale the Source to Destination Size was already selected). Freakin fast btw. Without the ability to use the bigger space and scale the Partition it makes no sense, so cloning with a bootable iso is working best. xD /clonezilla-live/experimental/arm/3.1.2-6 |
Is there a way to do that with Apple virtualization? |
# Determine which partition to resize
fdisk -l
# Go into the parted command
parted /dev/vda
# then print the list of partition
print
# resize the partition, with 1 refier to partition number, 100% tell parted to expand to fill the remaining space
resizepart 2 100%
# Exit parted
quit
# Resize the filesystem
resize2fs /dev/vda2
# Verify the new size
df -h Worked with Macbook Pro M1, and Arch VM |
Сan i expand the disk space after create image & installing system on it?
Ubuntu not enough space...🤓
The text was updated successfully, but these errors were encountered: