#!/bin/bash set -x if [[ -n $1 ]]; then qemu-img create -f qcow2 images/img 10G qemu-system-x86_64 -m 1G \ -boot d -enable-kvm -smp 4 \ -hda images/img -cdrom $1 \ -bios /usr/share/edk2-ovmf/x64/OVMF_CODE.fd exit fi qemu-system-x86_64 -hda images/img -m 1G -smp 4 -bios /usr/share/edk2-ovmf/x64/OVMF_CODE.fd -boot c