utmapp / UTM

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

Install fails on iOS 15.0 beta (19A5340a) #4755

Open Symplicityy opened 1 year ago

Symplicityy commented 1 year ago

Describe the issue Ever since UTM got HV support, I have never been able to successfully install any OS. Live versions of Linux and the Windows Insider VHDX work mostly fine. On Windows I get the error 0x80070570 during the install however, sometimes it doesn't even make it to the installer and just blue screens with the error 0xc0000221. Here are screenshots of both errors: image image

Configuration (required)

Here is a debug log after getting the blue screen error 0xc0000221.


Running:  -L /private/var/containers/Bundle/Application/72A74728-FBBC-4467-A5E7-F7840C45BD74/UTM.app/qemu -S -spice unix=on,addr=/private/var/mobile/Containers/Data/Application/D6204E63-1DDE-4425-8D51-08F1C81CE2DB/tmp/E326A776-51FA-4D9C-B5EC-B03B58F79E0B.spice,disable-ticketing=on,image-compression=off,playback-compression=off,streaming-video=off,gl=off -chardev spiceport,id=org.qemu.monitor.qmp,name=org.qemu.monitor.qmp.0 -mon chardev=org.qemu.monitor.qmp,mode=control -nodefaults -vga none -device virtio-net-pci,mac=76:14:23:B6:25:DB,netdev=net0 -netdev user,id=net0 -device virtio-ramfb -cpu host -smp cpus=4,sockets=1,cores=4,threads=1 -machine virt,highmem=off -accel hvf -drive if=pflash,format=raw,unit=0,file=/private/var/containers/Bundle/Application/72A74728-FBBC-4467-A5E7-F7840C45BD74/UTM.app/qemu/edk2-aarch64-code.fd,readonly=on -drive if=pflash,unit=1,file=/private/var/mobile/Containers/Data/Application/D6204E63-1DDE-4425-8D51-08F1C81CE2DB/Documents/Windows.utm/Data/efi_vars.fd -m 8192 -device intel-hda -device hda-duplex -device nec-usb-xhci,id=usb-bus -device usb-tablet,bus=usb-bus.0 -device usb-mouse,bus=usb-bus.0 -device usb-kbd,bus=usb-bus.0 -device qemu-xhci,id=usb-controller-0 -chardev spicevmc,name=usbredir,id=usbredirchardev0 -device usb-redir,chardev=usbredirchardev0,id=usbredirdev0,bus=usb-controller-0.0 -chardev spicevmc,name=usbredir,id=usbredirchardev1 -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1,bus=usb-controller-0.0 -chardev spicevmc,name=usbredir,id=usbredirchardev2 -device usb-redir,chardev=usbredirchardev2,id=usbredirdev2,bus=usb-controller-0.0 -device usb-storage,drive=drive2717C08E-3CC5-4271-8031-5F912F4BE9FC,removable=true,bootindex=0,bus=usb-bus.0 -drive "if=none,media=cdrom,id=drive2717C08E-3CC5-4271-8031-5F912F4BE9FC,file=/private/var/mobile/Library/Mobile Documents/com~apple~CloudDocs/Downloads/22000.1.210604-1628.CO_RELEASE_CLIENTPRO_OEMRET_A64FRE_EN-US.ISO" -device nvme,drive=driveFD848E45-D2FA-4D6B-9140-925DA983D11B,serial=FD848E45-D2FA-4D6B-9140-925DA983D11B,bootindex=1 -drive if=none,media=disk,id=driveFD848E45-D2FA-4D6B-9140-925DA983D11B,file=/private/var/mobile/Containers/Data/Application/D6204E63-1DDE-4425-8D51-08F1C81CE2DB/Documents/Windows.utm/Data/FD848E45-D2FA-4D6B-9140-925DA983D11B.qcow2,discard=unmap,detect-zeroes=unmap -device usb-storage,drive=drive70E3E2E4-875E-48C0-BA93-8E5325920501,removable=true,bootindex=2,bus=usb-bus.0 -drive "if=none,media=cdrom,id=drive70E3E2E4-875E-48C0-BA93-8E5325920501,file=/private/var/mobile/Containers/Data/Application/D6204E63-1DDE-4425-8D51-08F1C81CE2DB/Library/Application Support/GuestSupportTools/spice-guest-tools-0.164.4.iso" -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 -name Windows -uuid E326A776-51FA-4D9C-B5EC-B03B58F79E0B -rtc base=localtime -device virtio-rng-pci
Loading qemu-aarch64-softmmu.framework/qemu-aarch64-softmmu
2022-12-04 01:07:03.476 UTM[538:33731] Running:  -L /private/var/containers/Bundle/Application/72A74728-FBBC-4467-A5E7-F7840C45BD74/UTM.app/qemu -S -spice unix=on,addr=/private/var/mobile/Containers/Data/Application/D6204E63-1DDE-4425-8D51-08F1C81CE2DB/tmp/E326A776-51FA-4D9C-B5EC-B03B58F79E0B.spice,disable-ticketing=on,image-compression=off,playback-compression=off,streaming-video=off,gl=off -chardev spiceport,id=org.qemu.monitor.qmp,name=org.qemu.monitor.qmp.0 -mon chardev=org.qemu.monitor.qmp,mode=control -nodefaults -vga none -device virtio-net-pci,mac=76:14:23:B6:25:DB,netdev=net0 -netdev user,id=net0 -device virtio-ramfb -cpu host -smp cpus=4,sockets=1,cores=4,threads=1 -machine virt,highmem=off -accel hvf -drive if=pflash,format=raw,unit=0,file=/private/var/containers/Bundle/Application/72A74728-FBBC-4467-A5E7-F7840C45BD74/UTM.app/qemu/edk2-aarch64-code.fd,readonly=on -drive if=pflash,unit=1,file=/private/var/mobile/Containers/Data/Application/D6204E63-1DDE-4425-8D51-08F1C81CE2DB/Documents/Windows.utm/Data/efi_vars.fd -m 8192 -device intel-hda -device hda-duplex -device nec-usb-xhci,id=usb-bus -device usb-tablet,bus=usb-bus.0 -device usb-mouse,bus=usb-bus.0 -device usb-kbd,bus=usb-bus.0 -device qemu-xhci,id=usb-controller-0 -chardev spicevmc,name=usbredir,id=usbredirchardev0 -device usb-redir,chardev=usbredirchardev0,id=usbredirdev0,bus=usb-controller-0.0 -chardev spicevmc,name=usbredir,id=usbredirchardev1 -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1,bus=usb-controller-0.0 -chardev spicevmc,name=usbredir,id=usbredirchardev2 -device usb-redir,chardev=usbredirchardev2,id=usbredirdev2,bus=usb-controller-0.0 -device usb-storage,drive=drive2717C08E-3CC5-4271-8031-5F912F4BE9FC,removable=true,bootindex=0,bus=usb-bus.0 -drive "if=none,media=cdrom,id=drive2717C08E-3CC5-4271-8031-5F912F4BE9FC,file=/private/var/mobile/Library/Mobile Documents/com~apple~CloudDocs/Downloads/22000.1.210604-1628.CO_RELEASE_CLIENTPRO_OEMRET_A64FRE_EN-US.ISO" -device nvme,drive=driveFD848E45-D2FA-4D6B-9140-925DA983D11B,serial=FD848E45-D2FA-4D6B-9140-925DA983D11B,bootindex=1 -drive if=none,media=disk,id=driveFD848E45-D2FA-4D6B-9140-925DA983D11B,file=/private/var/mobile/Containers/Data/Application/D6204E63-1DDE-4425-8D51-08F1C81CE2DB/Documents/Windows.utm/Data/FD848E45-D2FA-4D6B-9140-925DA983D11B.qcow2,discard=unmap,detect-zeroes=unmap -device usb-storage,drive=drive70E3E2E4-875E-48C0-BA93-8E5325920501,removable=true,bootindex=2,bus=usb-bus.0 -drive "if=none,media=cdrom,id=drive70E3E2E4-875E-48C0-BA93-8E5325920501,file=/private/var/mobile/Containers/Data/Application/D6204E63-1DDE-4425-8D51-08F1C81CE2DB/Library/Application Support/GuestSupportTools/spice-guest-tools-0.164.4.iso" -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 -name Windows -uuid E326A776-51FA-4D9C-B5EC-B03B58F79E0B -rtc base=localtime -device virtio-rng-pci
2022-12-04 01:07:03.476 UTM[538:33731] Loading qemu-aarch64-softmmu.framework/qemu-aarch64-softmmu
vcpu_zone = 0x114b38000
vcpu_zone = 0x11521c000
vcpu_zone = 0x1152dc000
vcpu_zone = 0x1152e4000
vcpu_zone = 0x1152ec000
qemu-system: warning: GSpice: main-1:0: could not set sockopt TCP_NODELAY: Operation not supported on socket
qemu-system: info: main channel: opened
qemu-system: warning: GSpice: display-2:0: could not set sockopt TCP_NODELAY: Operation not supported on socket
qemu-system: warning: GSpice: cursor-4:0: could not set sockopt TCP_NODELAY: Operation not supported on socket
qemu-system: warning: GSpice: usbredir-9:2: could not set sockopt TCP_NODELAY: Operation not supported on socket
qemu-system: warning: GSpice: usbredir-9:1: could not set sockopt TCP_NODELAY: Operation not supported on socket
qemu-system: warning: GSpice: usbredir-9:0: could not set sockopt TCP_NODELAY: Operation not supported on socket
qemu-system: warning: GSpice: playback-5:0: could not set sockopt TCP_NODELAY: Operation not supported on socket
qemu-system: warning: GSpice: record-6:0: could not set sockopt TCP_NODELAY: Operation not supported on socket
qemu-system: warning: GSpice: webdav-11:0: could not set sockopt TCP_NODELAY: Operation not supported on socket
qemu-system: warning: GSpice: port-10:0: could not set sockopt TCP_NODELAY: Operation not supported on socket
qemu-system: warning: GSpice: inputs-3:0: could not set sockopt TCP_NODELAY: Operation not supported on socket
2022-12-04T01:07:04-0500 info com.utmapp.UTM : Start location tracking to enable running in background
2022-12-04T01:07:04-0500 info com.utmapp.UTM : [UTM] Start location tracking to enable running in background
qemu-system: warning: Spice: playback:0 (0x10686c620): setsockopt failed, Operation not supported on socket
qemu-system: warning: Spice: record:0 (0x10686c6c0): setsockopt failed, Operation not supported on socket
Debug JSON recieved <- {
    QMP =     {
        capabilities =         (
        );
        version =         {
            package = "";
            qemu =             {
                major = 7;
                micro = 0;
                minor = 1;
            };
        };
    };
}
2022-12-04 01:07:04.624 UTM[538:33702] Debug JSON recieved <- {
    QMP =     {
        capabilities =         (
        );
        version =         {
            package = "";
            qemu =             {
                major = 7;
                micro = 0;
                minor = 1;
            };
        };
    };
}
Got QMP handshake: {
    QMP =     {
        capabilities =         (
        );
        version =         {
            package = "";
            qemu =             {
                major = 7;
                micro = 0;
                minor = 1;
            };
        };
    };
}
qemuQmpDidConnect
2022-12-04 01:07:04.624 UTM[538:33732] Got QMP handshake: {
    QMP =     {
        capabilities =         (
        );
        version =         {
            package = "";
            qemu =             {
                major = 7;
                micro = 0;
                minor = 1;
            };
        };
    };
}
2022-12-04 01:07:04.624 UTM[538:33732] qemuQmpDidConnect
Debug JSON send -> {
    execute = "qmp_capabilities";
}
2022-12-04 01:07:04.624 UTM[538:33731] Debug JSON send -> {
    execute = "qmp_capabilities";
}
Debug JSON recieved <- {
    return =     {
    };
}
2022-12-04 01:07:04.625 UTM[538:33702] Debug JSON recieved <- {
    return =     {
    };
}
Debug JSON send -> {
    execute = cont;
}
2022-12-04 01:07:04.625 UTM[538:33731] Debug JSON send -> {
    execute = cont;
}
Debug JSON recieved <- {
    event = RESUME;
    timestamp =     {
        microseconds = 625390;
        seconds = 1670134024;
    };
}
Debug JSON recieved <- {
    return =     {
    };
}
2022-12-04 01:07:04.625 UTM[538:33732] Debug JSON recieved <- {
    event = RESUME;
    timestamp =     {
        microseconds = 625390;
        seconds = 1670134024;
    };
}
2022-12-04 01:07:04.625 UTM[538:33732] Debug JSON recieved <- {
    return =     {
    };
}
qemuHasResumed
2022-12-04 01:07:04.625 UTM[538:33700] qemuHasResumed
resizing to (1366.000000, 1024.000000)
2022-12-04 01:07:04.626 UTM[538:33335] resizing to (1366.000000, 1024.000000)
qemu-system: GSpice: spice_main_channel_send_monitor_config: assertion 'c->agent_connected' failed
ctext length=1

char=10

2022-12-04 01:07:10.328 UTM[538:33702] ctext length=1

2022-12-04 01:07:10.328 UTM[538:33702] char=10

Debug JSON send -> {
    arguments =     {
        "command-line" = "delvm suspend";
    };
    execute = "human-monitor-command";
}
2022-12-04 01:07:24.596 UTM[538:33731] Debug JSON send -> {
    arguments =     {
        "command-line" = "delvm suspend";
    };
    execute = "human-monitor-command";
}
Debug JSON recieved <- {
    return = "";
}
2022-12-04 01:07:24.596 UTM[538:33702] Debug JSON recieved <- {
    return = "";
}
delete save callback: 
Delete save completed
2022-12-04 01:07:24.597 UTM[538:33731] delete save callback: 
2022-12-04 01:07:24.597 UTM[538:33700] Delete save completed
Debug JSON send -> {
    execute = quit;
}
2022-12-04 01:07:24.598 UTM[538:33702] Debug JSON send -> {
    execute = quit;
}
Debug JSON recieved <- {
    return =     {
    };
}
Debug JSON recieved <- {
    data =     {
        guest = 0;
        reason = "host-qmp-quit";
    };
    event = SHUTDOWN;
    timestamp =     {
        microseconds = 598918;
        seconds = 1670134044;
    };
}
2022-12-04 01:07:24.599 UTM[538:33734] Debug JSON recieved <- {
    return =     {
    };
}
2022-12-04 01:07:24.599 UTM[538:33734] Debug JSON recieved <- {
    data =     {
        guest = 0;
        reason = "host-qmp-quit";
    };
    event = SHUTDOWN;
    timestamp =     {
        microseconds = 598918;
        seconds = 1670134044;
    };
}
qemuWillQuit, reason = host-qmp-quit
2022-12-04 01:07:24.599 UTM[538:33960] qemuWillQuit, reason = host-qmp-quit
Symplicityy commented 1 year ago

Any updates on this?

osy commented 1 year ago

I’m sorry, it’s not possible for me to reproduce this so it’ll probably never be fixed unless someone else can do it.

Symplicityy commented 1 year ago

I’m sorry, it’s not possible for me to reproduce this so it’ll probably never be fixed unless someone else can do it.

Is there anything I can do to help you figure out what's wrong?

osy commented 1 year ago

I don’t think so, we tried a bunch of stuff already like trying different iso files and making sure you have enough free space. I know it’s nothing wrong with the Hypervisor because the kernel is identical.

Symplicityy commented 1 year ago

I don’t think so, we tried a bunch of stuff already like trying different iso files and making sure you have enough free space. I know it’s nothing wrong with the Hypervisor because the kernel is identical.

Damn, it's super weird that no one else has ever had this issue, especially because I was able to reproduce the same issue when I tried installing the exact same ARM ISOs using UTM on my 2013 MacBook Air in an attempt to just transfer the VM to my iPad. Would you recommend that I just update to iOS 15.6 RC and hope for a jailbreak? It sucks because I've had this issue since the day UTM HV came out but I didn't report it for a while because I thought it was a known issue.

osy commented 1 year ago

I would not update. I really don’t think the issue is UTM related. Even if you update and even if there is a jailbreak in the near future (a big if), you might run into the same error when you try to run UTM.

Symplicityy commented 1 year ago

I would not update. I really don’t think the issue is UTM related. Even if you update and even if there is a jailbreak in the near future (a big if), you might run into the same error when you try to run UTM.

Alright I won't update. You think the issue is hardware related then?

osy commented 1 year ago

I don’t know which is why I don’t know if updating will solve the issue.

Symplicityy commented 1 year ago

I don’t know which is why I don’t know if updating will solve the issue.

Alright. Thanks anyways. And thanks for all the work you put into the development!