utmapp / UTM

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

On BigSur, Windows10-VM freezes at Start Boot Option #2497

Closed Maxiggapp closed 3 years ago

Maxiggapp commented 3 years ago

Describe the issue After installing Windows10-ISO i start the VM. But it does not booting. VM freezes at Start Boot Option.

Configuration

Upload VM config.plist

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

BuildMachineOSBuild 19H524 CFBundleDevelopmentRegion en CFBundleDocumentTypes CFBundleTypeName UTM virtual machine CFBundleTypeRole Editor LSHandlerRank Owner LSItemContentTypes com.utmapp.utm LSTypeIsPackageLSTypeIsPackage CFBundleExecutable UTM CFBundleIconFile AppIcon-macOS CFBundleIconName AppIcon-macOS CFBundleIdentifier com.utmapp.UTM CFBundleInfoDictionaryVersion 6.0 CFBundleName UTM CFBundlePackageType APPL CFBundleShortVersionString 2.0.27 CFBundleSupportedPlatforms MacOSX CFBundleVersion 27 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild 12B45b DTPlatformName macosx DTPlatformVersion 11.0 DTSDKBuild 20A2408 DTSDKName macosx11.0 DTXcode 1220 DTXcodeBuild 12B45b ITSAppUsesNonExemptEncryption LSApplicationCategoryType public.app-category.business LSMinimumSystemVersion 11.0 NSAccentColorName AccentColor UTExportedTypeDeclarations UTTypeConformsTo com.apple.package UTTypeDescription UTM virtual machine UTTypeIcons UTTypeIconText UTM UTTypeIdentifier com.utmapp.utm UTTypeTagSpecification public.filename-extension utm
conath commented 3 years ago

You have included the info.plist in your issue instead of the Config.plist.

If it is easier for you, please use the Export QEMU Command button in VM Config → QEMU. This usually includes all the necessary info. Thanks.

Maxiggapp commented 3 years ago

Thank you, here is the Export of QEMU:

qemu-system-aarch64 -L /Applications/UTM.app/Contents/Resources/qemu -S -qmp tcp:127.0.0.1:4444,server,nowait -vga none -spice port=5930,addr=127.0.0.1,disable-ticketing,image-compression=off,playback-compression=off,streaming-video=off -device virtio-ramfb -cpu cortex-a72 -smp cpus=1,sockets=1,cores=1,threads=1 -machine virt,highmem=on -accel tcg,tb-size=4096 -bios /Applications/UTM.app/Contents/Resources/qemu/edk2-aarch64-code.fd -m 16384 -device intel-hda -device hda-duplex -name "VM-1 Win10" -device qemu-xhci -device usb-tablet -device usb-mouse -device usb-kbd -device nvme,drive=drive0,serial=drive0,bootindex=0 -drive "if=none,media=disk,id=drive0,file=/Users/guidoglaser/Library/Containers/com.utmapp.UTM/Data/Documents/VM-1 Win10.utm/Images/Windows10_InsiderPreview_Client_ARM64_en-us_21354.VHDX,cache=writethrough" -device usb-storage,drive=drive1,removable=true,bootindex=1 -drive if=none,media=cdrom,id=drive1 -device virtio-net-pci,mac=42:3C:73:31:28:55,netdev=net0 -netdev user,id=net0 -device virtio-serial -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -chardev spicevmc,id=vdagent,debug=0,name=vdagent -uuid 135D4C5E-779F-4D29-AAAA-FDF40A7C7270 -rtc base=localtime

Am 08.05.2021 um 18:45 schrieb CONATH @.***>:

You have included the info.plist in your issue instead of the Config.plist.

If it is easier for you, please use the Export QEMU Command button in VM Config → QEMU. This usually includes all the necessary info. Thanks.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/utmapp/UTM/issues/2497#issuecomment-835425343, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANVDMTKOZMDKFZJFJHF7EG3TMVTBPANCNFSM44NIHUPQ.

conath commented 3 years ago

Thanks for this, it contains most of the information I need. It looks like you are trying to start the ARM version of Windows 10 on your Intel Mac mini. Did you mean to do this or would you be happy with the x86_64 (Intel) version of Windows 10?

By using the ARM version, what happens technically is that UTM needs to do lots of work behind the scenes to emulate the ARM CPU on your Intel i3, which means the outcome is very slow performance. I suspect that the VM would eventually boot up if you waited for a long time.

To download Windows 10 Intel version, go to Microsoft.com.

Maxiggapp commented 3 years ago

No chance. I’ve tried and tested so many things, but nothing works. Any detailed infos about installing? Following the web instructions won’t work. Here is the export: qemu-system-x86_64 -L /Applications/UTM.app/Contents/Resources/qemu -S -qmp tcp:127.0.0.1:4444,server,nowait -vga none -spice port=5930,addr=127.0.0.1,disable-ticketing,image-compression=off,playback-compression=off,streaming-video=off -device qxl-vga -cpu host -smp cpus=4,sockets=1,cores=4,threads=1 -machine q35,vmport=off -accel hvf -accel tcg,tb-size=4096 -global PIIX4_PM.disable_s3=1 -global ICH9-LPC.disable_s3=1 -m 16384 -device AC97 -name Win10Pro -device usb-ehci -device usb-tablet -device usb-mouse -device usb-kbd -device nvme,drive=drive0,serial=drive0,bootindex=0 -drive if=none,media=cdrom,id=drive0,file=/Users/guidoglaser/Library/Containers/com.utmapp.UTM/Data/Documents/Win10Pro.utm/Images/Win10_20H2_v2_German_x64.iso,cache=writethrough -device usb-storage,drive=drive1,removable=true,bootindex=1 -drive if=none,media=cdrom,id=drive1 -device rtl8139,mac=F2:F7:54:BF:10:DF,netdev=net0 -netdev user,id=net0 -device virtio-serial -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -chardev spicevmc,id=vdagent,debug=0,name=vdagent -uuid FC07C331-175F-4997-851D-88EDD6CBA4B8 -rtc base=localtime

Only a Ubuntu installation is 50% working. Here is that export: qemu-system-x86_64 -L /Applications/UTM.app/Contents/Resources/qemu -S -qmp tcp:127.0.0.1:4444,server,nowait -vga none -spice port=5930,addr=127.0.0.1,disable-ticketing,image-compression=off,playback-compression=off,streaming-video=off -device qxl-vga -cpu host -smp cpus=4,sockets=1,cores=4,threads=1 -machine q35,vmport=off -accel hvf -accel tcg,tb-size=1024 -global PIIX4_PM.disable_s3=1 -global ICH9-LPC.disable_s3=1 -m 4096 -device AC97 -name Ubuntu20Desktop -device usb-ehci -device usb-tablet -device usb-mouse -device usb-kbd -device virtio-blk-pci,drive=drive0,bootindex=0 -drive if=none,media=cdrom,id=drive0,file=/Users/guidoglaser/Library/Containers/com.utmapp.UTM/Data/Documents/Ubuntu20Desktop.utm/Images/ubuntu-20.04.2.0-desktop-amd64.iso,cache=writethrough -device usb-storage,drive=drive1,removable=true,bootindex=1 -drive if=none,media=cdrom,id=drive1 -device ide-hd,bus=ide.0,drive=drive2,bootindex=2 -drive if=none,media=disk,id=drive2,file=/Users/guidoglaser/Library/Containers/com.utmapp.UTM/Data/Documents/Ubuntu20Desktop.utm/Images/disk-0.qcow2,cache=writethrough -device rtl8139,mac=5E:4B:F1:B8:07:11,netdev=net0 -netdev user,id=net0 -device virtio-serial -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -chardev spicevmc,id=vdagent,debug=0,name=vdagent -device virtserialport,chardev=charchannel1,id=channel1,name=org.spice-space.webdav.0 -chardev spiceport,name=org.spice-space.webdav.0,id=charchannel1 -uuid E8011ABB-52B5-4F77-9018-A2BCE02205D1 -rtc base=localtime

Am 09.05.2021 um 18:44 schrieb CONATH @.***>:

Thanks for this, it contains most of the information I need. Firstly, it looks like you are trying to start the ARM version of Windows 10 on your Intel Mac mini. Did you mean to do this or would you be happy with the x86_64 (Intel) version of Windows 10?

By using the ARM version, what happens technically is that UTM needs to do lots of work behind the scenes to emulate the ARM CPU on your Intel i3, which means the outcome is very slow performance. I suspect that the VM would eventually boot up if you waited for a long time.

To download Windows 10 Intel version, go to Microsoft.com https://www.microsoft.com/en-us/software-download/windows10ISO.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/utmapp/UTM/issues/2497#issuecomment-835841538, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANVDMTKU75ETPAC65EWGKRTTM23XRANCNFSM44NIHUPQ.

conath commented 3 years ago

The configuration is not right. Please try these VM templates, click here for Windows 10 and here for Ubuntu.

conath commented 3 years ago

Please feel free to join the UTM Discord server and ask further Virtual Machine related questions there. Thanks.

gayanper commented 3 years ago

The configuration is not right. Please try these VM templates, click here for Windows 10 and here for Ubuntu.

@conath is this windows template supposed to work on MacOS as well ? when i tried it stops at the prompt without booting the attached installation win10 iso. The iso i tried is x86 and i'm trying on a macos x86 version.

And the source for these templates are (the host) is it something you maintain is it ? just wondering the the safety :).

conath commented 3 years ago

@conath is this windows template supposed to work on MacOS as well ? when i tried it stops at the prompt without booting the attached installation win10 iso. The iso i tried is x86 and i'm trying on a macos x86 version.

Yes, it's supposed to work on Intel Mac host. On my Mac, I can download that template, double click and then choose the ISO for the DVD drive. When I start the VM after that, it shows a couple of messages and then Windows starts with "Press any key to boot from CD/DVD". You need to press a key (e. g. space) to start booting the installer. If yours gets stuck at EFI shell, you can try to press esc at the UTM logo screen and then choose Boot Manager, then select UEFI QEMU DVD-ROM to boot from the ISO. (you will still be prompted to press any key to boot)

And the source for these templates are (the host) is it something you maintain is it ? just wondering the the safety :).

Chrisp.cafe is maintained by me.

gayanper commented 3 years ago

@conath Thanks, i tried your template, but i didn't workout. I also downloaded the virtio storage drivers and load it to installer, but the installer always crash with the error which says something about not equal. I think i saw the same message in one of the issues here.

Then i tried installing qemu through brew and use the following commands in https://superuser.com/questions/905815/how-to-setup-windows-7-in-qemu-on-mac and it worked for windows 10 as well. I tried additionally passing -accel hvf and the installation went just fine.

Is there any reason why qemu under UTM didn't worked ?