added qemu-system-aarch64-boot
This commit is contained in:
parent
8aa32c7cca
commit
762a9f1420
1 changed files with 28 additions and 0 deletions
28
qemu-system-aarch64-boot
Executable file
28
qemu-system-aarch64-boot
Executable file
|
@ -0,0 +1,28 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# SPDX-FileCopyrightText: 2022 Tobias Schmidl
|
||||||
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
|
HDA=$1;
|
||||||
|
[ ! -r "$HDA" ] && { echo "Usage: $(basename "$0") <imagefile>" >&2; exit 1; }
|
||||||
|
shift
|
||||||
|
QEMU_PUBLIC_SHARE=${QEMU_PUBLIC_SHARE:-$(xdg-user-dir PUBLIC_SHARE)}
|
||||||
|
QEMU_MACHINE=${QEMU_MACHINE:-virt}
|
||||||
|
QEMU_CPU=${QEMU_CPU:-max}
|
||||||
|
QEMU_MEMORY=${QEMU_MEMORY:-1G}
|
||||||
|
QEMU_EFI=${QEMU_EFI:-/usr/share/AAVMF/AAVMF_CODE.fd}
|
||||||
|
qemu-system-aarch64 \
|
||||||
|
-nographic \
|
||||||
|
-M "${QEMU_MACHINE}" \
|
||||||
|
-cpu "${QEMU_CPU}" \
|
||||||
|
-k de \
|
||||||
|
-enable-kvm \
|
||||||
|
-machine accel=kvm \
|
||||||
|
-smp 2 \
|
||||||
|
-m "${QEMU_MEMORY}" \
|
||||||
|
-drive file="${HDA}",media=disk \
|
||||||
|
-virtfs "local,id=shared_folder_dev_0,path=${QEMU_PUBLIC_SHARE},security_model=none,mount_tag=shared0" \
|
||||||
|
-net nic -net user \
|
||||||
|
-name "$(basename "$HDA")" \
|
||||||
|
-bios "$QEMU_EFI" \
|
||||||
|
"$@"
|
Loading…
Reference in a new issue