For accelerated VMs (arm64 host w/ KVM support) $ sudo qemu-system-aarch64 -enable-kvm -m 1024 -cpu host -M virt -nographic -pflash /usr/share/AAVMF/AAVMF_CODE.fd -pflash flash1.img -drive if=none,file=jammy-server-cloudimg-arm64.img,id=hd0 -device virtio-blk-device,drive=hd0 -netdev type=tap,id=net0 -device virtio-net-device,netdev=net0,mac=$randmac.Now you should be able to boot/ into a -arm64.img type cloud image. Install QEMU and the EFI image for QEMU: $ sudo apt-get install qemu-system-arm qemu-efi 1.Create a VM-specific flash volume for storing NVRAM variables: $ cp /usr/share/AAVMF/AAVMF_CODE.fd flash1.img.Note: this requires Ubuntu 20.04 or greater Getting the bits It is possible to boot directly into Linux instead. I've chosen to describe a UEFI-based system here so I can make use of the kernel on the guest's disk image. on an x86 host) or, accelerated w/ KVM if you have an arm64 host. You can either do this fully emulated (e.g. Ubuntu/arm64 can run inside the QEMU emulator.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |