UTM icon indicating copy to clipboard operation
UTM copied to clipboard

ArchLinux ARM | Booting Stuck with Stack Trace

Open mr-narender opened this issue 2 years ago • 33 comments

Describe the issue After upgrading to UTM to latest version, I am not able to run Arch (even freshly downloaded from Gallery).

I am also sharing a crash log (not sure, if its helpful in this case).

Configuration

  • UTM Version: Version 3.2.3 (57)
  • OS Version: Apple M1 Max on 12.3.1
  • Intel or Apple Silicon? Apple Silicon

Crash log Attached here: UTM-2022-05-12-153850.log UTM-2022-05-12-190735.log

Debug log boot.log

Upload VM Arch

mr-narender avatar May 13 '22 23:05 mr-narender

Hmm, so did UTM actually crash? If it crashed, I don't know how you're getting the boot log. The crash log indicates you've booted a VM with display emulation but the Arch VM is in console mode. I think they're not related.

Are you referring to kernel panic inside the VM as a "crash"? Because a crash refers to the UTM app terminating.

osy avatar May 13 '22 23:05 osy

Also can you post debug.log? The instructions should be in the template when making an issue. This will contain the QEMU command.

osy avatar May 13 '22 23:05 osy

That is correct yes, It didn't crash but the app did freeze when I tried to boot it.

Also the debug log: debug.log

mr-narender avatar May 14 '22 03:05 mr-narender

If it was frozen how did you get boot.log?

osy avatar May 14 '22 03:05 osy

I copied it somehow after waiting for a while and selected (to clipboard) and pasted to text editor :P

I know it sounds weird, the behaviour is not so certain, at times, it boots and stuck on console, the other times it just sits there and the spinning wheel just rotates.

btw, Can you draw something from debug.log.

mr-narender avatar May 14 '22 03:05 mr-narender

I know there’s some kernel panic issue with M1 Max (which I don’t have to test) that was supposed to be fixed. That’s what the highmem=off was for. The other thing I can think of is to update to 12.4 and see if that makes a difference. Otherwise I’m not exactly sure what’s happening. You can confirm this doesn’t happen in 3.1.5?

osy avatar May 14 '22 03:05 osy

I can confirm that the arch boot up on 3.1.5 smoothly, however after upgrading its looses it connectivity and I don't see any network except loopback.

mr-narender avatar May 14 '22 12:05 mr-narender

qemu-aarch64-softmmu: -netdev vmnet-macos,mode=shared,id=net0: Parameter 'type' does not accept value 'vmnet-macos'

On Ubuntu here. I think they have broken the net somehow

shlyakpavel avatar May 14 '22 13:05 shlyakpavel

@shlyakpavel are you using custom args? If so delete it and use the network gui

osy avatar May 14 '22 13:05 osy

@osy I'm using Ubuntu template from the website. It worked before update

shlyakpavel avatar May 14 '22 13:05 shlyakpavel

Post your config.plist from inside the .utm

osy avatar May 14 '22 13:05 osy

I have tried setting different network cards to solve the problem

shlyakpavel avatar May 14 '22 13:05 shlyakpavel

@shlyakpavel to be clear you’re running 3.2.3 from GitHub releases?

osy avatar May 14 '22 13:05 osy

I'm running Version 3.1.5 (53) from homebrew P. S. I restarted the app, it is now Version 3.2.3 (57) and it runs fine

shlyakpavel avatar May 14 '22 13:05 shlyakpavel

@nar3nd3r When it gets stuck, can you get a spindump?

  1. Open Activity Monitor
  2. Find UTM process and double click
  3. Click "Sample", copy paste the text to a .txt file, and attach it here.

osy avatar May 18 '22 04:05 osy

I just upgraded to 3.2.4, yet again same issue. here is the boot log and the "Sample", though not freezing seen so far just stuck with end trace.

Can you help me understanding the bot log, why it failing. I can try things differently. Thanks in advance.

Sample of UTM.txt boot.log

mr-narender avatar May 21 '22 13:05 mr-narender

Is the UI completely frozen and you can’t click anything?

osy avatar May 21 '22 13:05 osy

That’s what I mentioned before, no freezing this time. Just no booting.

mr-narender avatar May 21 '22 14:05 mr-narender

I also found this issue, I change cpu option to cortex-a72, it works. the default ones don't work.

wjwOffline avatar May 23 '22 23:05 wjwOffline

thanks @wjwOffline, that was awesome. Any tip on the following scenario, updating with pacman -Syyu and reboot leads to missing lan afterwards.

mr-narender avatar May 24 '22 01:05 mr-narender

Same here, no network after updating and rebooting. Any solutions?

mkurz avatar May 24 '22 16:05 mkurz

Same here, no network after updating and rebooting. Any solutions?

Of course there is a solution. Kernel modules have been updated, while kernel itself hasn't. Just take Image.gz and initramfs-linux.img from the system i9mage and replace them in ArchLinux ARM.utm/images

shlyakpavel avatar May 25 '22 11:05 shlyakpavel

Same here, no network after updating and rebooting. Any solutions?

Check https://github.com/utmapp/UTM/issues/3888

shlyakpavel avatar May 25 '22 11:05 shlyakpavel

Just take Image.gz and initramfs-linux.img from the system i9mage and replace them in ArchLinux ARM.utm/images

Can you be a bit more specific? Take what from where exactly and put it where exactly? Thanks!

mkurz avatar May 25 '22 11:05 mkurz

Can you be a bit more specific?

Just right click "ArchLinux ARM.utm", "Open package", go to "images" directory and replace files with files extracted from this zip. Never update the kernel again. Contact me in Telegram @emergencychina if you have further questions utm.zip

P. S. I took these files from /boot/ inside the VM

shlyakpavel avatar May 25 '22 11:05 shlyakpavel

@mkurz Also, ensure these entries still point to the updated files image image

shlyakpavel avatar May 25 '22 11:05 shlyakpavel

Thanks!

mkurz avatar May 25 '22 11:05 mkurz

BTW: Did you install plasma? If so do you use it with wayland? Are your fonts rendered ok?

mkurz avatar May 25 '22 11:05 mkurz

BTW: Did you install plasma? If so do you use it with wayland? Are your fonts rendered ok?

I did not install GUI. I use it as a build machine via ssh.

shlyakpavel avatar May 25 '22 11:05 shlyakpavel