utmapp / UTM

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

Ubuntu 24.04 or non-graphic images install fails per doc instructions #6340

Open darkn3rd opened 4 months ago

darkn3rd commented 4 months ago

Describe the issue

The cloud image for Ubuntu 22.04 server does not work, nor does the latest Ubuntu 24.04 work (in either graphics or text mode) on Macbook Intel as per documentation (ref).

In the case of the cloud image jammy-server-cloudimg-amd64.img (src), it just goes into a boot shell, and from there, not sure what to do.

In the case of the ubuntu 24.04, with the cdrom image ubuntu-24.04-desktop-amd64.iso, if shows a black screen with a mouse cursor for "Try or Install Ubuntu" option, and for the "Ubuntu (safe graphics)", I only get "Display output is not active".

The previous version Ubuntu 22.04 cdrom image ubuntu-22.04.4-desktop-amd64.iso, seems to work.

STEPS TO REPRODUCE

As per online guide https://docs.getutm.app/guides/ubuntu:

  1. Open UTM and click the “+” button to open the VM creation wizard.
  2. Select “Virtualize”.
  3. Select “Linux”.
  4. Click “Browse” and select jammy-server-cloudimg-amd64.img
  5. Pick 4096 MB RAM and 2 CPU cores. Press “Continue” to continue.
  6. Selected ~/Downloads for directory to mount in VM.
  7. Press "Save" to create the VM and press the Run button to start the VM.

QEMU COMMAND GENERATED

qemu-system-x86_64 \
  -L /Applications/UTM.app/Contents/Resources/qemu \
  -S \
  -spice unix=on,addr=598D3DEB-3A2A-4BE6-AE6D-63851B602E6B.spice,disable-ticketing=on,image-compression=off,playback-compression=off,streaming-video=off,gl=off \
  -chardev spiceport,name=org.qemu.monitor.qmp.0,id=org.qemu.monitor.qmp \
  -mon chardev=org.qemu.monitor.qmp,mode=control \
  -nodefaults \
  -vga none \
  -device e1000,mac=6A:CE:D3:FD:3D:A2,netdev=net0 \
  -netdev vmnet-shared,id=net0 \
  -device virtio-gpu-pci \
  -smp cpus=2,sockets=1,cores=2,threads=1 \
  -machine q35,vmport=off,i8042=off,hpet=off \
  -accel hvf \
  -global PIIX4_PM.disable_s3=1 \
  -global ICH9-LPC.disable_s3=1 \
  -drive if=pflash,format=raw,unit=0,file=/Applications/UTM.app/Contents/Resources/qemu/edk2-x86_64-code.fd,readonly=on \
  -drive if=pflash,unit=1,file=$HOME/Library/Containers/com.utmapp.UTM/Data/Documents/Linux.utm/Data/efi_vars.fd \
  -m 4096 \
  -audiodev spice,id=audio0 \
  -device intel-hda \
  -device hda-duplex,audiodev=audio0 \
  -usb \
  -device usb-tablet,bus=usb-bus.0 \
  -device usb-mouse,bus=usb-bus.0 \
  -device usb-kbd,bus=usb-bus.0 \
  -device nec-usb-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 ide-cd,bus=ide.0,drive=drive3F22F019-20D4-45D5-A805-B4574FB85572,bootindex=0 \
  -drive if=none,media=cdrom,id=drive3F22F019-20D4-45D5-A805-B4574FB85572,file=$HOME/Downloads/ubuntu-24.04-desktop-amd64.iso,readonly=on \
  -device ide-hd,bus=ide.1,drive=drive289B3B78-29A0-44DE-8875-E8DD6B288745,bootindex=1 \
  -drive if=none,media=disk,id=drive289B3B78-29A0-44DE-8875-E8DD6B288745,file=$HOME/Library/Containers/com.utmapp.UTM/Data/Documents/Linux.utm/Data/289B3B78-29A0-44DE-8875-E8DD6B288745.qcow2,discard=unmap,detect-zeroes=unmap \
  -device virtio-serial \
  -device virtserialport,chardev=org.qemu.guest_agent,name=org.qemu.guest_agent.0 \
  -chardev spiceport,name=org.qemu.guest_agent.0,id=org.qemu.guest_agent \
  -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \
  -chardev spicevmc,id=vdagent,debug=0,name=vdagent \
  -fsdev local,id=virtfs0,path=$HOME/Downloads,security_model=mapped-xattr \
  -device virtio-9p-pci,fsdev=virtfs0,mount_tag=share \
  -name Linux \
  -uuid 598D3DEB-3A2A-4BE6-AE6D-63851B602E6B \
  -device virtio-rng-pcijoaquin-mac-x86:pub

ACTUAL RESULTS

EXPECTED RESULTS

I would expect that I would be able to install w/o graphics or that with Ubuntu 24 the graphics would work. Currently either of these options do not work.

Configuration

Crash log

n/a no crash

Debug log

n/a no crash

Upload VM
n/a

osy commented 4 months ago

Do you know if it works in QEMU 7.2.0? If not, does it work on the latest QEMU?

johnniemorrow commented 3 months ago

I'm also seeing this issue with Ubuntu 24.04. My VM is set to QEMU 7.2 ARM Virtual Machine, that's the latest QEMU version listed in the dropdown (UTM version 4.5.3). Previous versions of Ubuntu work fine with that QEMU version.

joaopedrofrech commented 3 months ago

I'm facing the same problems with Ubuntu 24.04. No display output is active. I even tried many display cards in settings but nothing worked.

pbarker commented 3 months ago

Facing the same issue with the latest ubuntu 22.04

johnniemorrow commented 3 months ago

I just discovered that if I change the display driver to virtio-ramfb-gl and start the VM it will look like it's stalled at the boot options screen...but if you leave it alone for a few minutes it does finish booting up and I can log into the UI.

zyv commented 5 hours ago

Still a problem on UTM 4.5.4 :(