#!/usr/bin/env bash

# set -x

args=(
 -display none
 -cpu host
 -no-user-config
 -nodefaults
 -m 1024
 -serial stdio
 -smp 1,maxcpus=2
 -machine q35,accel=kvm,usb=off
 -blockdev node-name=node-Base,driver=qcow2,file.driver=file,file.filename=./base.qcow2,file.node-name=node-Base-file \
 -device virtio-blk,drive=node-Base,id=virtio0 \
 -qmp unix:./qmp-sock,server,nowait
)

qemu-system-x86_64 "${args[@]}"
