utmapp / UTM

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

ArchLinux ARM | Booting Stuck with Stack Trace #4014

Open mr-narender opened 2 years ago

mr-narender commented 2 years ago

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

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

Debug log boot.log

Upload VM Arch

osy commented 2 years ago

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 commented 2 years ago

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

mr-narender commented 2 years ago

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

osy commented 2 years ago

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

mr-narender commented 2 years ago

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.

osy commented 2 years ago

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?

mr-narender commented 2 years ago

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.

shlyakpavel commented 2 years ago
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

osy commented 2 years ago

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

shlyakpavel commented 2 years ago

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

osy commented 2 years ago

Post your config.plist from inside the .utm

shlyakpavel commented 2 years ago

config.plist.zip

shlyakpavel commented 2 years ago

I have tried setting different network cards to solve the problem

osy commented 2 years ago

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

shlyakpavel commented 2 years ago

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

osy commented 2 years ago

@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.
mr-narender commented 2 years ago

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

osy commented 2 years ago

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

mr-narender commented 2 years ago

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

wjwOffline commented 2 years ago

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

mr-narender commented 2 years ago

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

mkurz commented 2 years ago

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

shlyakpavel commented 2 years ago

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 commented 2 years ago

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

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

mkurz commented 2 years ago

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!

shlyakpavel commented 2 years ago

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 commented 2 years ago

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

image image
mkurz commented 2 years ago

Thanks!

mkurz commented 2 years ago

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

shlyakpavel commented 2 years ago

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.

mr-narender commented 2 years ago

Thanks @shlyakpavel I was able to create a base with Gnome installed on top of it. works okay, graphics looks a bit odd, but will see.

Screen Shot 2022-05-25 at 1 21 28 PM

For any one coming this far, please follow installation from scratch as mentioned here in the Blog of ktprograms

h0m3 commented 2 years ago

Thanks @shlyakpavel I was able to create a base with Gnome installed on top of it. works okay, graphics looks a bit odd, but will see.

Screen Shot 2022-05-25 at 1 21 28 PM

For any one coming this far, please follow installation from scratch as mentioned here in the Blog of ktprograms

Had the same issue, following the guide worked for me.

StathisKap commented 2 years ago

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

On my 2021 14inch M1 Pro, cortex-a72 didn't work. cortex-a53 did.