Ubuntu 20.04 ARM64 has no sound
Describe the issue When using Ubuntu 20.04 (Xubuntu XFCE, ARM64) everything works, but no sound, even when i adjust the guest volume. The host OS (Monterey 12.02) plays sound without problems in my headphones. I tried another virtual Intel sound card, but to no avail.
Configuration
- UTM Version: 3.1.5
- OS Version: Monterey 12.02
- Apple Silicon (MBP M1 14")
Debug log
Running: -L /Applications/UTM.app/Contents/Resources/qemu -S -qmp tcp:127.0.0.1:4000,server,nowait -nodefaults -vga none -spice "unix=on,addr=/Users/klaas/Library/Group Containers/WDNLXAD4W8.com.utmapp.UTM/5BD9BBC9-4442-4E08-8F88-BC09300DE0AA.spice,disable-ticketing=on,image-compression=off,playback-compression=off,streaming-video=off,gl=off" -device virtio-ramfb -device virtio-rng-pci -cpu host -smp cpus=8,sockets=1,cores=8,threads=1 -machine virt,highmem=off -accel hvf -accel tcg,tb-size=512 -drive if=pflash,format=raw,unit=0,file=/Applications/UTM.app/Contents/Resources/qemu/edk2-aarch64-code.fd,readonly=on -drive "if=pflash,unit=1,file=/Users/klaas/Library/Containers/com.utmapp.UTM/Data/Documents/Xubuntu 20.04.utm/Images/efi_vars.fd" -boot menu=on -m 2048 -device intel-hda -device hda-duplex -name "Xubuntu 20.04" -device nec-usb-xhci,id=usb-bus -device usb-tablet,bus=usb-bus.0 -device usb-mouse,bus=usb-bus.0 -device usb-kbd,bus=usb-bus.0 -device ich9-usb-ehci1,id=usb-controller-0 -device ich9-usb-uhci1,masterbus=usb-controller-0.0,firstport=0,multifunction=on -device ich9-usb-uhci2,masterbus=usb-controller-0.0,firstport=2,multifunction=on -device ich9-usb-uhci3,masterbus=usb-controller-0.0,firstport=4,multifunction=on -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 usb-storage,drive=cdrom0,removable=true,bootindex=0,bus=usb-bus.0 -drive if=none,media=cdrom,id=cdrom0 -device virtio-blk-pci,drive=drive0,bootindex=1 -drive "if=none,media=disk,id=drive0,file=/Users/klaas/Library/Containers/com.utmapp.UTM/Data/Documents/Xubuntu 20.04.utm/Images/data.qcow2,cache=writethrough" -device virtio-net-pci,mac=96:F4:87:C7:D3:64,netdev=net0 -netdev vmnet-macos,mode=bridged,id=net0 -device virtio-serial -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -chardev spicevmc,id=vdagent,debug=0,name=vdagent -device virtserialport,chardev=charchannel1,id=channel1,name=org.spice-space.webdav.0 -chardev spiceport,name=org.spice-space.webdav.0,id=charchannel1 -uuid 5BD9BBC9-4442-4E08-8F88-BC09300DE0AA -rtc base=localtime
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=bridged,id=net0: info: Started vmnet interface with configuration:
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=bridged,id=net0: info: MTU: 1500
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=bridged,id=net0: info: Max packet size: 1514
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=bridged,id=net0: info: MAC: 42:ec:47:1b:d7:6b
qemu-aarch64-softmmu: -netdev vmnet-macos,mode=bridged,id=net0: info: UUID: 688C768D-CAB5-4DA7-895A-6BB975455BF4
qemu-aarch64-softmmu: warning: Spice: playback:0 (0x1200b4940): setsockopt failed, Operation not supported on socket
qemu-aarch64-softmmu: warning: Spice: record:0 (0x1200b49f0): setsockopt failed, Operation not supported on socket
Upload VM The plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ConfigurationVersion</key>
<integer>2</integer>
<key>Debug</key>
<dict>
<key>DebugLog</key>
<true/>
</dict>
<key>Display</key>
<dict>
<key>ConsoleBackgroundColor</key>
<string>#000000</string>
<key>ConsoleFont</key>
<string>Menlo-Regular</string>
<key>ConsoleFontSize</key>
<integer>12</integer>
<key>ConsoleOnly</key>
<false/>
<key>ConsoleTextColor</key>
<string>#ffffff</string>
<key>ConsoleTheme</key>
<string>Default</string>
<key>DisplayCard</key>
<string>virtio-ramfb</string>
<key>DisplayDownscaler</key>
<string>linear</string>
<key>DisplayUpscaler</key>
<string>nearest</string>
</dict>
<key>Drives</key>
<array>
<dict>
<key>DriveName</key>
<string>cdrom0</string>
<key>ImageType</key>
<string>cd</string>
<key>InterfaceType</key>
<string>usb</string>
<key>Removable</key>
<true/>
</dict>
<dict>
<key>DriveName</key>
<string>drive0</string>
<key>ImagePath</key>
<string>data.qcow2</string>
<key>ImageType</key>
<string>disk</string>
<key>InterfaceType</key>
<string>virtio</string>
</dict>
<dict>
<key>DriveName</key>
<string>drive6626AD90-0952-4EE9-82A5-A6504295C4DD</string>
<key>ImagePath</key>
<string>efi_vars.fd</string>
<key>ImageType</key>
<string>none</string>
<key>InterfaceType</key>
<string></string>
</dict>
</array>
<key>Info</key>
<dict>
<key>Icon</key>
<string>linux</string>
</dict>
<key>Input</key>
<dict>
<key>InputInvertScroll</key>
<true/>
<key>InputLegacy</key>
<false/>
</dict>
<key>Networking</key>
<dict>
<key>NetworkCard</key>
<string>virtio-net-pci</string>
<key>NetworkCardMAC</key>
<string>96:F4:87:C7:D3:64</string>
<key>NetworkMode</key>
<string>bridged</string>
<key>PortForward</key>
<array>
<dict>
<key>GuestAddress</key>
<string></string>
<key>GuestPort</key>
<integer>22</integer>
<key>HostAddress</key>
<string></string>
<key>HostPort</key>
<integer>1022</integer>
<key>Protocol</key>
<string>tcp</string>
</dict>
</array>
</dict>
<key>Printing</key>
<dict/>
<key>Sharing</key>
<dict>
<key>ClipboardSharing</key>
<true/>
<key>DirectoryReadOnly</key>
<false/>
<key>DirectorySharing</key>
<true/>
<key>Usb3Support</key>
<false/>
<key>UsbRedirectMax</key>
<integer>3</integer>
</dict>
<key>Sound</key>
<dict>
<key>SoundCard</key>
<string>intel-hda</string>
<key>SoundEnabled</key>
<true/>
</dict>
<key>System</key>
<dict>
<key>Architecture</key>
<string>aarch64</string>
<key>BootDevice</key>
<string></string>
<key>BootUefi</key>
<true/>
<key>CPU</key>
<string>default</string>
<key>CPUCount</key>
<integer>0</integer>
<key>ForcePS2Controller</key>
<false/>
<key>Memory</key>
<integer>2048</integer>
<key>RTCUseLocalTime</key>
<true/>
<key>RngEnabled</key>
<true/>
<key>SystemUUID</key>
<string>5BD9BBC9-4442-4E08-8F88-BC09300DE0AA</string>
<key>Target</key>
<string>virt</string>
<key>UseHypervisor</key>
<true/>
</dict>
</dict>
</plist>
Really nobody knows ? I tried 22.04 Live CD ISO (arm64) and the same issue: no sound. When running a Windows 11 arm VM, sound does work normally over the headphones plugged in my Macbook, just like playing sound on macOS natively. The virtualized sound card is the same (intel-hda) as for Ubuntu.
I also don't have any sound... Looking into it.
Configuration
- VM OS: Ubuntu 22.04.1 LTS installed via the UTM instructions
- UTM Version: 3.2.4
- OS Version: Monterey 12.6
- Apple Silicon (MBA 2020 M1 )
UPDATE: Sound works... it was just muted in Ubuntu by default 🤦
Should this get closed? @mattpopovich mentioned it being not turning up volume, and this is not reproducible by me anymore.