Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Stromos

macrumors 6502a
Jul 1, 2016
937
2,162
Woodstock, GA
Having the same issue w/ UTM. Wonder if I can manually set that. I'm going to use qemu-img and upsize to 50GB anyway. I need to see if I can find a gparted for ARM or maybe the x86 will work work well enough to upsize the partition and NTFS vol.
You can’t can’t use disk manager in windows? I would assume if you can increase the VHDX with qemu-img then you can extend the partition in disk management.
 

supak111

macrumors member
Oct 24, 2008
55
1
I'm probably doing something wrong, but I can't seem to start an win10 vhdx with this
 

Nate Spencer

macrumors member
Jun 5, 2015
54
30
You can’t can’t use disk manager in windows? I would assume if you can increase the VMDK with qemu-img then you can extend the partition in disk management.
Last I checked you can't extend the system partition. But using the AMD64 gparted ISO works fine. Takes a couple minutes to boot. The GUI is decently responsive. I converted the VHDX to qcow2 so I could upsize using qemu-img. Now I have 50GB disk and NTFS. Going to try to manually define the drive.
 

Nate Spencer

macrumors member
Jun 5, 2015
54
30
You can’t can’t use disk manager in windows? I would assume if you can increase the VHDX with qemu-img then you can extend the partition in disk management.
Correction you can extend it. You can also disable caching in Device manager.
 

mikeboss

macrumors 68000
Aug 13, 2009
1,545
860
switzerland

bill-p

macrumors 68030
Jul 23, 2011
2,929
1,589
So like... at this point, VMWare and Parallels just have to write a DX12 compatible GPU driver, and we practically have almost full Windows 10 (with x86 compatibility) running on M1?

That's actually quite a good proposal. Who needs Bootcamp again?
 

kupan787

macrumors member
Sep 17, 2014
54
33
California
I believe I fixed the issue with the VM not starting. There was an issue that after creating the VM configuration, if you didn't quit and reopen the application it wasn't read in.

This, and a few other bugs got fixed:

 
Last edited:

supak111

macrumors member
Oct 24, 2008
55
1
VM window never comes open. clicking play/start does noting. Actually clicking it makes the start button go gray for split second and then nothing. Basically looks like it try's to start and quits right away but no VM window come open
 

Nate Spencer

macrumors member
Jun 5, 2015
54
30
I totally looked for that in device manager I guess I missed it. Thanks for the tip I'll tinker again if I get some time tonight looks like maybe a new build with 64-bit emulation.
I have included the screenshots. I did this as soon as Win 10 finished setup and immediately rebooted. Zero problems after doing that.
 

Attachments

  • Screen Shot 2020-12-10 at 9.32.42 PM.png
    Screen Shot 2020-12-10 at 9.32.42 PM.png
    22.5 KB · Views: 128
  • Screen Shot 2020-12-10 at 9.32.52 PM.png
    Screen Shot 2020-12-10 at 9.32.52 PM.png
    145.6 KB · Views: 128

kupan787

macrumors member
Sep 17, 2014
54
33
California
@supak111 My guess is the issue is with the qemu-system-aarch64 that I built. I'm guessing it isn't running for some reason.

If someone can try to manually run the attached qemu-system-aarch64 that I built, and let me know if it errors out or works.

I think a simple

Code:
qemu-system-aarch64 --version

should suffice.
 

Attachments

  • qemu-system-aarch64.zip
    4.8 MB · Views: 145

netkas

macrumors 65816
Oct 2, 2007
1,198
394
For sure, "cache=writethrough" doesn't help, just got windows broken again after leaving it working for whole night and doing shutdown-startup cycle
or it could be installing some updates for windows, it always breaks installation for me.
 
Last edited:

MrMacintoshBlog

macrumors 6502
Sep 21, 2009
458
311
Chicago, IL
UTM is using SPICE as display and heavily patched it to use it with Cocoa, but ACVM is using qemu's built-in Cocoa display. qemu's built-in Cocoa does not support native full screen, but the UTM's implementation does, that's why we can use native full screen on UTM. To implement a full front end of display is somehow out of the scope as ACVM is just a GUI wrapper, not meant to be an all-in-one virtualization solution.

If you are booting Linux, you can set your virtual gpu to virtio, and press command+f when your host has the keyboard to toggle fullscreen, then just change the resolution in the VM to match your screen. Windows can only use a framebuffer device but not the virtio gpu and you are locked to 1024x768 because of that, which makes full-screen meaningless.

I think he mentioned the ability to add a disk using qemu-img.
Thank you for explaining this @Gnattu ! Do you think this is why UTM has some graphics anomalies compared to ACVM ?
 

MrMacintoshBlog

macrumors 6502
Sep 21, 2009
458
311
Chicago, IL
Sorry normal work has kept me busy.

I'll post what I have done thus far tonight.

EDIT: I just decided to post what I have done so far.


Changes:

  • Updated QEMU to the latest v5.2 with patch set 4 (https://patchwork.kernel.org/project/qemu-devel/list/?submitter=185121)
  • Added a VM manager
    • Added ability to create, edit, and delete vm configurations​
    • Added ability to create new disk images (either RAW or QCOW2 format). Right now this is accessed via the File menu.​
    • Added ability to start/stop multiple VMs​
  • Incorporated the cache=writethrough for the main drive image
I have a lot to clean up visually, and move stuff around. This is may first time coding Swift, and I am learning as I go. I'm mainly doing this so that I can learn more about the language and have some fun. I'm open to suggestions.

I've done a handful of testing locally on my computer, and it seems to be working ok, but I do expect there to be bugs/issues.
This is Great! I'm going to test this out tonight, very exciting times nice work.

EDIT: for v6 looks like the vm will still not start.

PS where are the VM configuration settings stored? For example when you crate a new vm.
 
Last edited:

jdb8167

macrumors 601
Nov 17, 2008
4,859
4,599
@supak111 My guess is the issue is with the qemu-system-aarch64 that I built. I'm guessing it isn't running for some reason.

If someone can try to manually run the attached qemu-system-aarch64 that I built, and let me know if it errors out or works.

I think a simple

Code:
qemu-system-aarch64 --version

should suffice.
I get a missing library error.
 

kupan787

macrumors member
Sep 17, 2014
54
33
California
I get a missing library error.
Ok, so it’s an issue with how I compiled the qemu binaries.

Anyone with some knowledge, how would I compile the binaries for distribution? I followed the steps in the first post (substituting for patch v4), and what I compiled works for me. I’m guessing I need to some how compile with dylibs, but not seeing how.
 

jdb8167

macrumors 601
Nov 17, 2008
4,859
4,599
Ok, so it’s an issue with how I compiled the qemu binaries.

Anyone with some knowledge, how would I compile the binaries for distribution? I followed the steps in the first post (substituting for patch v4), and what I compiled works for me. I’m guessing I need to some how compile with dylibs, but not seeing how.
I tried to post the qemu-img tool and had the same problem. I never got around to looking up how to package it. Probably need either an installer or static libraries. Or wrap it as a Mac app instead of command line.
 

ollv

macrumors newbie
Dec 11, 2020
14
1
Hamburg
Can you send me the output, so I can see which libraries it says are missing.
Hi,

if I try to execute the "qemu-system-aarch64" (ACVM 1.0 (6)) in the terminal I get the following error:

~ % /Users/ollv/Downloads/ACVM.app/Contents/Resources/qemu-system-aarch64
dyld: Library not loaded: /opt/homebrew/opt/pixman/lib/libpixman-1.0.dylib
Referenced from: /Users/ollv/Downloads/ACVM.app/Contents/Resources/qemu-system-aarch64
Reason: image not found
zsh: abort /Users/ollv/Downloads/ACVM.app/Contents/Resources/qemu-system-aarch64
~ %

After copying the missing libpixman-1.0.dylib to the given folder I get this result:

~ % /Users/ollv/Downloads/ACVM.app/Contents/Resources/qemu-system-aarch64
dyld: Library not loaded: /opt/homebrew/opt/glib/lib/libglib-2.0.0.dylib
Referenced from: /Users/ollv/Downloads/ACVM.app/Contents/Resources/qemu-system-aarch64
Reason: image not found
zsh: abort /Users/ollv/Downloads/ACVM.app/Contents/Resources/qemu-system-aarch64

After copying libglib-2.0.0.dylib to /opt/..... libpcre.1.dylib is missing:

~ % /Users/ollv/Downloads/ACVM.app/Contents/Resources/qemu-system-aarch64
dyld: Library not loaded: @rpath/libpcre.1.dylib
Referenced from: /opt/homebrew/opt/glib/lib/libglib-2.0.0.dylib
Reason: image not found
zsh: abort /Users/ollv/Downloads/ACVM.app/Contents/Resources/qemu-system-aarch64
~ %


The same behavior with the "qemu-system-aarch64" you have attached today at this thread:

~ % /Users/ollv/Downloads/qemu-system-aarch64
dyld: Library not loaded: /opt/homebrew/opt/pixman/lib/libpixman-1.0.dylib
Referenced from: /Users/ollv/Downloads/qemu-system-aarch64
Reason: image not found
zsh: abort /Users/ollv/Downloads/qemu-system-aarch64
~ %


If I copy the missing libs to /opt/.... I end up at this again:

~ % /Users/ollv/Downloads/qemu-system-aarch64
dyld: Library not loaded: @rpath/libpcre.1.dylib
Referenced from: /opt/homebrew/opt/glib/lib/libglib-2.0.0.dylib
Reason: image not found
zsh: abort /Users/ollv/Downloads/qemu-system-aarch64
 
Last edited:

kupan787

macrumors member
Sep 17, 2014
54
33
California
Hi,

if I try to execute the "qemu-system-aarch64" (ACVM 1.0 (6)) in the terminal I get the following error:

~ % /Users/ollv/Downloads/ACVM.app/Contents/Resources/qemu-system-aarch64
dyld: Library not loaded: /opt/homebrew/opt/pixman/lib/libpixman-1.0.dylib
Referenced from: /Users/ollv/Downloads/ACVM.app/Contents/Resources/qemu-system-aarch64
Reason: image not found
zsh: abort /Users/ollv/Downloads/ACVM.app/Contents/Resources/qemu-system-aarch64
~ %

After copying the missing libpixman-1.0.dylib to the given folder I get this result:

~ % /Users/ollv/Downloads/ACVM.app/Contents/Resources/qemu-system-aarch64
dyld: Library not loaded: /opt/homebrew/opt/glib/lib/libglib-2.0.0.dylib
Referenced from: /Users/ollv/Downloads/ACVM.app/Contents/Resources/qemu-system-aarch64
Reason: image not found
zsh: abort /Users/ollv/Downloads/ACVM.app/Contents/Resources/qemu-system-aarch64

After copying libglib-2.0.0.dylib to /opt/..... libpcre.1.dylib is missing:

~ % /Users/ollv/Downloads/ACVM.app/Contents/Resources/qemu-system-aarch64
dyld: Library not loaded: @rpath/libpcre.1.dylib
Referenced from: /opt/homebrew/opt/glib/lib/libglib-2.0.0.dylib
Reason: image not found
zsh: abort /Users/ollv/Downloads/ACVM.app/Contents/Resources/qemu-system-aarch64
~ %


The same behavior with the "qemu-system-aarch64" you have attached today at this thread:

~ % /Users/ollv/Downloads/qemu-system-aarch64
dyld: Library not loaded: /opt/homebrew/opt/pixman/lib/libpixman-1.0.dylib
Referenced from: /Users/ollv/Downloads/qemu-system-aarch64
Reason: image not found
zsh: abort /Users/ollv/Downloads/qemu-system-aarch64
~ %


If I copy the missing libs to /opt/.... I end up at this again:

~ % /Users/ollv/Downloads/qemu-system-aarch64
dyld: Library not loaded: @rpath/libpcre.1.dylib
Referenced from: /opt/homebrew/opt/glib/lib/libglib-2.0.0.dylib
Reason: image not found
zsh: abort /Users/ollv/Downloads/qemu-system-aarch64
I think I know what I need to do now. Thanks for the input!

Edit: I believe I have this fixed now. I understand I had to use intall_name_tool to replace the references for some of the libraries.

@ollv if you don't mind trying again, please grab the latest copy and give it a spin.

 
Last edited:

ollv

macrumors newbie
Dec 11, 2020
14
1
Hamburg
I think I know what I need to do now. Thanks for the input!

Edit: I believe I have this fixed now. I understand I had to use intall_name_tool to replace the references for some of the libraries.

Thanks! Looks good now, great job! The app works flawless now, I can use Ubuntu VMs (with option "use virtio for Main Image") and Windows, several VMs at the same time. Also creating new disk images for VM works.

screenshot.png
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.