This is a very small utility to run a qemu virtual machine for x64 images. It let you start the vm with a qcow2 disk and a image as instalation media.
You need to have qemu installed in your PC and a CPU with virtualization enabled.
wget https://gist.githubusercontent.com/highercomve/ccec4592072984d11134e3ce5d201c9b/raw/5d52a388db2bb66b700b6181c853d2635bc181ff/vm_with_tpm.sh
if you what to installed you could
chmod +x vm_start && mv vm_start /usr/bin/vm_start
Download a image to be use as installation media, for this example i will use the x64 installer from pantavisor.io
then run:
vm_start pantabox.qcow2 ~/Downloads/x64_initial_stable-installer.img
That will start a VM using only 1 core, if you want to run with more cores pass a 3th parameter to the command with the number of commands
Example:
vm_start pantabox.qcow2 ~/Downloads/x64_initial_stable-installer.img 4