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

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.

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


Found a little issue, if I create more than two VMs all further VMs already have a string at the "Network" tab (NIC Options) and can't be powered on after saving. The String under the "Network" tab can't be removed:

screenshot2.png


I think they can't be powered on because of the wrong NIC Options? Can you reproduce this error?
 

ollv

macrumors newbie
Dec 11, 2020
14
1
Hamburg
Even if I manually remove the wrong String at the plist file in .../Library/Application Support/com.oltica.ACVM/a1.plist it will automatically reappear after I power on the VM:

screenshot3.png
 

kupan787

macrumors member
Sep 17, 2014
54
33
California
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.

View attachment 1692016
Awesome, great to here. I’ve got a handful of things I’m looking at adding that seem like low hanging fruit (usb pass through being one).

Also, the NIC options issue mentioned above has been fixed now as well.
 

tdar

macrumors 68020
Jun 23, 2003
2,102
2,522
Johns Creek Ga.
If you are a Windows Insider (you can be if you sign up on the Windows Insider page) go to Settings/ Updates and sign in with your Windows Insider account, then set your channel to DEV. Reboot. Then run Windows update. Click on the download link for PRERELEASE. You will get the new build with the 64bit emulation in it.
 
Last edited:

Stromos

macrumors 6502a
Jul 1, 2016
937
2,162
Woodstock, GA
If you are a Windows Insider (you can be if you sign up on the Windows Insider page) go to Settings/ Updates and sign in with your Windows Insider account, then set your channel to DEV. Reboot. Then run windows update. You will get the new build with the 64bit emulation in it.
Anyone else have really unstable internet? I keep getting you're not connected even if I'm connected. Can't get to the login prompt for the insider program.
 

UCDHIUS

macrumors regular
Nov 16, 2017
199
61
Texas
So using UTM vs AVCM

ACVM has less graphical glitches and it runs smoother good job !
 
Last edited:

kupan787

macrumors member
Sep 17, 2014
54
33
California
Anyone have any luck with USB passthrough?

On my laptop, if I run lsusb:

Code:
macbookair:~ kupan787$ lsusb
Bus 000 Device 001: ID 0781:5581 SanDisk Corporation Ultra  Serial: 4C530001021027120270
Bus 000 Device 000: ID 0781:5581 SanDisk Corporation USB 3.1 Bus

Then I start qemu with:

-usb -device usb-host,vendorid=0x0781,productid=0x5581

In Windows it detects the device, but with an error:

1607795939393.png


The USB is formatted as exfat.
 

Gnattu

macrumors 65816
Sep 18, 2020
1,107
1,671
Anyone have any luck with USB passthrough?

On my laptop, if I run lsusb:

Code:
macbookair:~ kupan787$ lsusb
Bus 000 Device 001: ID 0781:5581 SanDisk Corporation Ultra  Serial: 4C530001021027120270
Bus 000 Device 000: ID 0781:5581 SanDisk Corporation USB 3.1 Bus

Then I start qemu with:

-usb -device usb-host,vendorid=0x0781,productid=0x5581

In Windows it detects the device, but with an error:

View attachment 1692463

The USB is formatted as exfat.
You need com.apple.vm.device-access entitlement to capture USB devices, did you add that?
 

tdar

macrumors 68020
Jun 23, 2003
2,102
2,522
Johns Creek Ga.
@kupan787 Thanks so much for your work! It's great to have this front end to what I think for many is a confusing program.


Has anyone had any luck with expanding the image file. My Basic windows setup (OS +Password Manager) leaves me with 3.3 GB free. Not much you can do with that.
I'm also having the corrupted image problem. Every time I get Windows updated and setup correctly, soon after it's not able to start. Hope we can find a fix for this!!! :)
 
  • Like
Reactions: Nate Spencer

Nate Spencer

macrumors member
Jun 5, 2015
54
30
@kupan787 Thanks so much for your work! It's great to have this front end to what I think for many is a confusing program.


Has anyone had any luck with expanding the image file. My Basic windows setup (OS +Password Manager) leaves me with 3.3 GB free. Not much you can do with that.
I'm also having the corrupted image problem. Every time I get Windows updated and setup correctly, soon after it's not able to start. Hope we can find a fix for this!!! :)
The corruption issue you have to disable the caching for the NVMe in the device manager. I am trying the newest dev release w/ win64 support. I'll report back on that.

There is a win64 version of Brave running on the latest Dev release. I am wondering if there is an issue w/ the VHDX version a lot have been using. I just did a clean install. It automatically disabled the NVMe caching.
 

Attachments

  • Screen Shot 2020-12-12 at 12.54.52 PM.png
    Screen Shot 2020-12-12 at 12.54.52 PM.png
    1.4 MB · Views: 82
Last edited:

Nate Spencer

macrumors member
Jun 5, 2015
54
30
I was running the same build of Windows that you are.... It corrupted with the caching set to off.
That is weird. I did a full game of Alpha Centauri last night and booted fine this morning. We will see how 21277 works.
 

kupan787

macrumors member
Sep 17, 2014
54
33
California
You need com.apple.vm.device-access entitlement to capture USB devices, did you add that?
I'm assuming that needs to be added to the qemu binary, right (as it is what is interacting with the USB devices).

I tried updating the entitlements.plist in the qemu/accel/hvf folder, and then reran the build script so it would reapply the entitlements, but qemu then just crashes.
 

ollv

macrumors newbie
Dec 11, 2020
14
1
Hamburg
@kupan787 Thanks so much for your work! It's great to have this front end to what I think for many is a confusing program.


Has anyone had any luck with expanding the image file. My Basic windows setup (OS +Password Manager) leaves me with 3.3 GB free. Not much you can do with that.
I'm also having the corrupted image problem. Every time I get Windows updated and setup correctly, soon after it's not able to start. Hope we can find a fix for this!!! :)
You can use qemu-img in the Terminal to resize the image, but you first have to convert the image because I don't think qemu-img can resize VHDX:

Bash:
~ % /Users/ollv/Applications/ACVM.app/Contents/Resources/qemu-img resize /Users/ollv/Downloads/VM/Windows10_InsiderPreview_Client_ARM64_en-us_20231.VHDX +10G
qemu-img: Image format driver does not support resize

I could resize the image after converting it to qcow2:

Bash:
~ % /Users/ollv/Applications/ACVM.app/Contents/Resources/qemu-img convert -O qcow2 /Users/ollv/Downloads/VM/Windows10_InsiderPreview_Client_ARM64_en-us_20231.VHDX /Users/ollv/Downloads/VM/win.qcow2

Bash:
~ % /Users/ollv/Applications/ACVM.app/Contents/Resources/qemu-img resize /Users/ollv/Downloads/VM/win.qcow2 +10G
Image resized.
~ %

Then you can extend the volume with Windows Disk Management:

screenshot6.png
 
Last edited:

davemen

macrumors newbie
Jan 27, 2015
14
1
"The computer restarted unexpectedly or encountered an unexpected error."

Has anyone run into this and if so, any idea how to fix it? I've been working on this for hours...

Any help? It happens right before the Windows screen should happen. I haven't successfully gotten this going yet.

I have a 16 GB/ 1 TB M1 MacBook Air.



Screen Shot 2020-12-12 at 11.58.20 AM.png



Screen Shot 2020-12-12 at 12.01.14 PM.png



@kupan787 - I tried using your download but got the same results. Any advice?
 
Last edited:

netkas

macrumors 65816
Oct 2, 2007
1,198
394
two days with

cache=directsync

shutdown, startup - vm is dead

caching is not enabled for nvme device

to be sure that some solution helps - need to leave vm running for two days in bg.
 

kupan787

macrumors member
Sep 17, 2014
54
33
California
Just updated ACVM.


I added the option to disable the writethrough cache (before it was always enabled when qemu was started). Now it will use cache=directsync if not selected. VMs will default to writethrough.

Also started adding some basic commands that qemu monitor uses to control the vm (right now just pause/resume, and shutdown).
 
Last edited:

tdar

macrumors 68020
Jun 23, 2003
2,102
2,522
Johns Creek Ga.
Something weird going on with this corruption problem. I was running along fine with my VM and saw that there was a new ACVM package out. (thanks kupan787). So I shut down the VM using the windows Shutdown. Immediately restarted with the new ACVM version and it's corrupted.
 

davemen

macrumors newbie
Jan 27, 2015
14
1
Did anyone of you face this issue during Windows 10 emulation? Is there a workaround this error? I have tried quitting QEMU and restarting. Rebooting my Mac. None of them works.
I ran into the exact same problem. Did you figure out how to get it working? My setup is a 16 GB Macbook Air. Wondering if the extra RAM is causing problems?
 

davemen

macrumors newbie
Jan 27, 2015
14
1
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.

@kupan787 - Looks like you forgot two files in your source (the red ones):
1607814787403.png
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.