Skip to content

Instantly share code, notes, and snippets.

@francoism90
Created July 14, 2019 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save francoism90/173d070a4e0e92ad5e2dc0fc58694580 to your computer and use it in GitHub Desktop.
Save francoism90/173d070a4e0e92ad5e2dc0fc58694580 to your computer and use it in GitHub Desktop.
#!/bin/sh
qemu-system-x86_64 -display gtk \
-boot c \
-enable-kvm -machine q35,accel=kvm \
-object rng-random,id=rng0,filename=/dev/urandom \
-device virtio-rng-pci,rng=rng0 \
-cpu host \
-smp $(nproc) \
-m 4G \
-drive id=disk,file=/run/media/archie/Data/Images/droid,if=none,format=raw \
-drive file=/home/archie/Downloads/ubuntu-19.04-desktop-amd64.iso,index=3,media=cdrom \
-device intel-iommu \
-device ich9-ahci,id=ahci \
-device ide-drive,drive=disk,bus=ahci.0 \
-netdev user,smb=/home/archie,id=vmnic \
-device virtio-net,netdev=vmnic \
-vga virtio \
-device virtio-serial \
-chardev spicevmc,id=vdagent,debug=0,name=vdagent \
-device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \
-soundhw hda \
-device virtio-balloon \
-device qemu-xhci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment