Run A Virtualbox Container With Qemu

#!/bin/sh
current_dir=$(pwd)
cd "/home/user/VirtualBox VMs/Home/VM"
qemu-img create -o backing_file="VM.vdi",backing_fmt=vdi -f qcow2 1.qcow2
qemu-system-x86_64 -enable-kvm -vga none -device virtio-vga-gl -display gtk,gl=on,show-cursor=on -m 4g -usb -device usb-kbd -device usb-tablet -cpu host -smp 3 -device e1000,netdev=mynet0 -netdev user,id=mynet0 -device ich9-intel-hda -audiodev pa,id=snd0,out.buffer-length=45000,out.latency=20000,timer-period=10000 -device hda-duplex,audiodev=snd0 -drive file=./share.img,if=virtio,format=raw,cache=none -full-screen -name "VM" -monitor stdio 1.qcow2
rm 1.qcow2
cd "$current_dir"

Reach out to me for professional support!

Contact