utmapp / utmapp/UTM

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

Open
#6,340 9 comments 7 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
35.5k
Forks
1.8k
Avg merge
5d 5h
Merged PRs (30d)
7

Description

**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](https://docs.getutm.app/guides/ubuntu)).

In the case of the cloud image `jammy-server-cloudimg-amd64.img` ([src](https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img)), 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**

```bash
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**

* `jammy-server-cloudimg-amd64.img` - drops into some boot shell
* `ubuntu-24.04-desktop-amd64.iso` with "Try or Install Ubuntu" option - shows black screen with cursor,
* `ubuntu-24.04-desktop-amd64.iso` with "Ubuntu (safe graphics)" option - says "Display output is not active"
* `ubuntu-22.04.4-desktop-amd64.iso` with "Try or Install Ubuntu" seems to work.

**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**
* UTM Version: `4.5.2`
* macOS Version: `12.2.1`
* Mac Chip (Intel, M1, ...): `Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz`

**Crash log**

n/a no crash

**Debug log**

n/a no crash

**Upload VM**
n/a

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.