To programatically interact with the workload inside the container. But how can we differentiate stdout and stderr
(based on http://nairobi-embedded.org/qemu_serial_terminal_redirection.html)
qemu-system-x86_64 \
-enable-kvm \
-bios OVMF.fd \
-smp sockets=1,cpus=4,cores=2 -cpu host \
-m 1024 \
-vga none -nographic \
-drive file="$IMAGE",if=virtio,aio=threads,format=raw \
-chardev socket,host=localhost,port=4555,server,nowait,id=gnc0 \
-device isa-serial,chardev=gnc0 \
-monitor stdio \
-debugcon file:debug.log -global isa-debugcon.iobase=0x402 $@
nc localhost 4555