Get yourself a kernel
# kernel from vmlinuz on ubuntu
kdist=/boot/$(uname -r)
# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/759725
sudo cat "$kdist" > kernel
Now convert a oci or local tarball to kernel flavor cpio. this script adds a very basic 'init'
fakeroot ./create-initramfs my-initramfs base.tar
boot it
qemu-system-x86_64 -enable-kvm -m 2048 -nographic \
-kernel ./kernel -initrd ./my-initramfs \
-append "console=ttyS0 this is my cmdline"