spanskiblog/content/posts/qemu.md

37 lines
1.2 KiB
Markdown
Raw Normal View History

2022-12-24 17:42:40 +01:00
2022-12-24 17:09:22 +01:00
+++
2022-12-24 22:54:34 +01:00
date="2022-12-24"
2022-12-24 17:09:22 +01:00
author="spanskiduh"
title="qemu"
2022-12-24 17:42:40 +01:00
description="click to read about qemu"
2022-12-24 17:09:22 +01:00
+++
# Qemu
### Emulating raspberry pi 4
- firstly generate two images
`qemu-img create -f qcow2 arm.img 16G` ~ Image for os
`qemu-img create -f qcow2 varstore.img 64M` ~ EFI varaible store
- then download EFI file (A UEFI image for QEMUs virt machine type, I use an EDK II derived snapshot image from Linaro)
`http://snapshots.linaro.org/components/kernel/leg-virt-tianocore-edk2-upstream/latest/QEMU-AARCH64/RELEASE_GCC5/QEMU_EFI.img.gz`
- install
`qemu-system-aarch64 \
-cpu cortex-a72 -smp 4 -M virt -m 4096 -nographic \
-drive if=pflash,format=raw,file=QEMU_EFI.img \
-drive if=pflash,file=varstore.img \
-drive if=virtio,file=arm.img\
-drive if=virtio, format=raw, file=file.iso`
- run
`qemu-system-aarch64 \
-cpu cortex-a72 -smp 4 -M virt -m 4096 -nographic \
-drive if=pflash,format=raw,file=QEMU_EFI.img \
-drive if=pflash,file=varstore.img \
-drive if=virtio,file=arm.img\`
2022-12-24 22:54:34 +01:00
### VIRT MANAGER
https://www.xmodulo.com/convert-ova-to-qcow2-linux.html