How to run VM with raspberry PI4 support

liorms

Member
Feb 5, 2020
2
0
6
52
Hi,

I'm trying to start a VM that will use a preconfigured disk image (img format) and will start Raspberry PI4 hardware emulation.
I've used the following VM config:
----
arch: aarch64
bios: ovmf
bootdisk: scsi0
cores: 1
efidisk0: local-lvm:vm-120-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
hotplug: 0
memory: 2048
#meta: creation-qemu=7.1.0,ctime=1692715010
name: rooExtend2
net0: virtio=BA:90:0E:3B:F9:E9,bridge=vmbr0
numa: 0
ostype: l26
scsi0: local:iso/rooExtend_v3.1.4_PI.img,media=cdrom,size=3913M
scsihw: virtio-scsi-pci
serial0: socket
smbios1: uuid=b39e809e-2ec3-4ed8-85bd-a4ab07f801c3
sockets: 1
vga: serial0
----

The system won't boot, yielding: "TASK ERROR: Can't use an undefined value as an ARRAY reference at /usr/share/perl5/PVE/QemuServer.pm line 3374."

I'm trying to use pre-built image as boot device -> should be similar to booting from RASP PI4 SD card.

Can someone comment on the configuration? what wrong? missing? other?

Thanks,
Lior
 
Are you trying to boot this on aarch64 (unofficial PVE) or "normal x86-64" (official PVE)? The later will not work, there is no cross-architecture emulation built-in. If you need to run this, you may have luck with LX(c) containers and bin-fmt for aarch64. This works to some extent. Another possibility is to just use vanilla QEMU, e.g. in a VM to fully emulate pi hardware.
 
Are you trying to boot this on aarch64 (unofficial PVE) or "normal x86-64" (official PVE)? The later will not work, there is no cross-architecture emulation built-in. If you need to run this, you may have luck with LX(c) containers and bin-fmt for aarch64. This works to some extent. Another possibility is to just use vanilla QEMU, e.g. in a VM to fully emulate pi hardware.
I've used this page to configure: https://azeria-labs.com/emulate-raspberry-pi-with-qemu/

And got the following messages:
alsa: could not initialize DAC
alsa: Failed to open 'default':
alsa: Reason: No such file or directory
audio: Failed to create voice 'lm4549.out'

I believe that I don't need the driver, what can I do?

Are you familiar with any other tool/hypervisor that can help
me run the raspberry PI4 disk image in an easier manner?
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!