utmapp / utmapp/UTM

vmlinuz doesn’t work with Apple backend

Open
#4,004 12 comments 0 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**
When starting Ubuntu Server with UTM using the Virtualization framework, UTM shows an "Internal Virtualization error. The virtual machine failed to start" error. After digging for information in the Console app, I found the following 3 errors that are directly related to UTM and are showing up one after the other every single time I try to start the VM:

```
Sandbox: com.apple.Virtua(2054) deny(1) file-read-metadata /System/Library/Frameworks/Virtualization.framework/Versions/A/XPCServices/com.apple.Virtualization.VirtualMachine.xpc/Contents/MacOS/com.apple.Virtualization.VirtualMachine

Sandbox: com.apple.Virtua(2054) deny(1) file-read-data /System/Library/Frameworks/Virtualization.framework/Versions/A/XPCServices/com.apple.Virtualization.VirtualMachine.xpc/Contents/MacOS/com.apple.Virtualization.VirtualMachine

Sandbox: com.apple.Virtua(2054) deny(1) file-read-data /System/Library/Frameworks/Virtualization.framework/Versions/A/XPCServices/com.apple.Virtualization.VirtualMachine.xpc/Contents/MacOS
```

I tried removing the `com.apple.quarantine` extended attribute from UTM's executable, but that didn't fix anything.

**It is important to note that I am NOT using an unofficial, unsigned build of UTM. The build of UTM I am using comes directly from the GitHub releases page.**

**Configuration**
* UTM Version: 3.2.0
* OS Version: 12.3.1
* Intel or Apple Silicon? Apple Silicon.

**Upload VM**
config.plist:

```

architecture
aarch64
bootLoader

linuxCommandLine
quiet ---
linuxInitialRamdiskPath
initrd
linuxKernelPath
vmlinuz
operatingSystem
Linux

consoleCursorBlink

cpuCount
0
diskImages


imagePath
ubuntu-server-minimal.squashfs
isExternal

isReadOnly

sizeMib
126


imagePath
disk2.img
isExternal

isReadOnly

sizeMib
65536


displays


heightInPixels
1200
pixelsPerInch
80
widthInPixels
1920


icon
linux
iconCustom

isAppleVirtualization

isAudioEnabled

isBalloonEnabled

isConsoleDisplay

isEntropyEnabled

isKeyboardEnabled

isPointingEnabled

isSerialEnabled

memorySize
8589934592
name
Linux
networkDevices


macAddress
ba:a6:e1:a4:16:ed
networkMode
Shared


version
3

```

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.