linsk icon indicating copy to clipboard operation
linsk copied to clipboard

Could not build on MacBook Pro M3 Max - Sequoia 15.3.2 (24D81)

Open edjubert opened this issue 10 months ago • 4 comments

The linsk build --vm-debug command fail with a timeout:

╭─ me in ~
╰─   linsk build --vm-debug
time=2025-04-03T15:51:06.155+02:00 level=INFO msg="Starting to download file" caller=storage from=https://dl-cdn.alpinelinux.org/alpine/v3.18/releases/aarch64/alpine-virt-3.18.3-aarch64.iso to=/Users/me/.linsk/alpine-3.18.3-aarch64.img
time=2025-04-03T15:51:08.177+02:00 level=INFO msg="Successfully downloaded file" caller=storage from=https://dl-cdn.alpinelinux.org/alpine/v3.18/releases/aarch64/alpine-virt-3.18.3-aarch64.iso to=/Users/me/.linsk/alpine-3.18.3-aarch64.img out-size="65 MB"
time=2025-04-03T15:51:08.180+02:00 level=INFO msg="Starting to download file" caller=storage from=https://github.com/qemu/qemu/raw/86305e864191123dcf87c3af639fddfc59352ac6/pc-bios/edk2-aarch64-code.fd.bz2 to=/Users/me/.linsk/edk2-aarch64-code.fd
time=2025-04-03T15:51:09.398+02:00 level=INFO msg="Successfully downloaded file" caller=storage from=https://github.com/qemu/qemu/raw/86305e864191123dcf87c3af639fddfc59352ac6/pc-bios/edk2-aarch64-code.fd.bz2 to=/Users/me/.linsk/edk2-aarch64-code.fd out-size="67 MB"
time=2025-04-03T15:51:09.399+02:00 level=INFO msg="Building VM image" caller=storage tags=3.18.3-aarch64 overwriting=false dst=/Users/me/.linsk/3.18.3-aarch64-linsk1.qcow2
time=2025-04-03T15:51:09.476+02:00 level=WARN msg="Using unrestricted VM networking" caller=storage subcaller=imgbuilder subcaller=vm
time=2025-04-03T15:51:09.481+02:00 level=INFO msg="Booting the VM" caller=storage subcaller=imgbuilder subcaller=vm
time=2025-04-03T15:52:09.483+02:00 level=WARN msg="A VM boot timeout detected, consider running with --vm-debug to investigate" caller=storage subcaller=imgbuilder subcaller=vm
time=2025-04-03T15:52:09.483+02:00 level=WARN msg="Canceling the VM context" caller=storage subcaller=imgbuilder subcaller=vm
qemu-system-aarch64: terminating on signal 15 from pid 70351 (<unknown process>)
time=2025-04-03T15:52:09.499+02:00 level=ERROR msg="Failed to start the VM" error="vm boot timeout (serial log: '[2012 chars trimmed]n X24 0x00000000001FFFFF  X25 0x0000000000000000  X26 0x000000005FD35000  X27 0x0000000000000003\\n X28 0x000000005FD3D020   FP 0x00000000476BB8A0   LR 0x000000005FD37E08  \\n\\n  V0 0x0000000000000000 0000000000000000   V1 0x0000000000000000 0000000000000000'); run vm login handler: context canceled (qemu stderr log: 'qemu-system-aarch64: terminating on signal 15 from pid 70351 (<unknown process>)')"

I've linsk clean and build again of course

I've installed qemu with Brew and I tried linsk installed with go and downloaded binaries v0.2.2 and v0.2.0

edjubert avatar Apr 03 '25 14:04 edjubert

I ran into this, running go install GitHub.com/AlexSSD7/linsk@master is working for me (but also means I'm just running a random checkout of this source tree).

Matir avatar Apr 18 '25 19:04 Matir

I confirm that after installing it again with go install github.com/AlexSSD7/linsk@master, the build succeeded. Thank you @Matir.

However, I reinstalled with go install github.com/AlexSSD7/linsk@latest and it still doesn't work (that might be normal)

edjubert avatar Apr 24 '25 19:04 edjubert

Installing master also worked for me, although I had to delete ~/.linsk because the hashes of downloaded qemu image won't match with the previous version when running build command

cortopy avatar Apr 28 '25 21:04 cortopy

This still seems to be an issue on the latest macOS (Tahoe 26.0). Running master works

timon-michel-scopevisio avatar Oct 06 '25 11:10 timon-michel-scopevisio