Hallo!

Ich versuche gerade, einen VM-Server zur Entwicklung von Linux-Applikationen auf ARM64 aufzusetzen.

Hardware: Solid Rom Honeycomb LX2160 System mit 16 Cortex A-72 Kernen zu je 2GHz, 32GB RAM, 1TB PCIe4 NVMe SSD und 10GB Ethernet, mit dem mitgelieferten Ubuntu 20.04. Keine Grafikkarte vorhanden, nur eine serielle Konsole und Zugänge über SSH.
Siehe hier: https://www.solid-run.com/arm-server...b-workstation/

# uname -a
Linux judas 5.4.47-00007-g8edfda9bc #1 SMP PREEMPT Tue Jun 15 19:24:47 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
# lscpu
Architecture: aarch64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 8
NUMA node(s): 1
Vendor ID: ARM
Model: 3
Model name: Cortex-A72
Stepping: r0p3
CPU max MHz: 2000.0000
CPU min MHz: 900.0000
BogoMIPS: 50.00
L1d cache: 512 KiB
L1i cache: 768 KiB
L2 cache: 8 MiB
NUMA node0 CPU(s): 0-15
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Spec store bypass: Not affected
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Branch predictor hardening
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid

Darauf dann qemu für ARM64 installiert.

Installationsimage: Ubuntu 18.04.04 für ARM64 von hier: Image: http://cdimage.ubuntu.com/ubuntu-ser...rver-arm64.iso (in install.iso umbenannt)

Ich habe mich nach dieser Anleitung gerichtet: https://futurewei-cloud.github.io/AR...ch-aarch64-vm/

Ich habe die Images für die pflashes und die virtuelle Festplatte so erzeugt:
#!/bin/bash
rm *.img
dd if=/dev/zero of=flash0.img bs=1M count=64
dd if=/usr/share/qemu-efi/QEMU_EFI.fd of=flash0.img conv=notrunc
dd if=/dev/zero of=flash1.img bs=1M count=64
qemu-img create -f qcow2 image.img 20G

Installation:
#!/bin/bash
qemu-system-aarch64 -enable-kvm -nographic -machine virt,gic-version=max -m 512M -cpu host -smp 4 \
-netdev user,id=vnet,hostfwd=:127.0.0.1:0-:22 -device virtio-net-pci,netdev=vnet \
-drive file=image.img,format=qcow2,if=none,id=drive0,cach e=writeback -device virtio-blk,drive=drive0,bootindex=0 \
-drive file=install.iso,format=raw,if=none,id=drive1,cach e=writeback -device virtio-blk,drive=drive1,bootindex=1 \
-drive file=flash0.img,format=raw,if=pflash -drive file=flash1.img,format=raw,if=pflash

Das funktioniert soweit auch, und die Installation läuft durch. Nach der Installation startet das System aber nicht in das installierte System, sondern wieder ins Installationssystem.

Wenn ich das abbreche und die VM so starte:
#!/bin/bash
qemu-system-aarch64 -enable-kvm -nographic -machine virt,gic-version=max -m 512M -cpu host -smp 4 \
-netdev user,id=vnet,hostfwd=:127.0.0.1:0-:22 -device virtio-net-pci,netdev=vnet \
-drive file=image.img,format=qcow2,if=none,id=drive0,cach e=writeback -device virtio-blk,drive=drive0,bootindex=0 \
-drive file=flash0.img,format=raw,if=pflash -drive file=flash1.img,format=raw,if=pflash

Dann komme ich in der UEFI Shell heraus. Ich bekomme das installierte System ums Verrecken nicht gestartet.

Was mache ich falsch?

Frank