Skip to content

Instantly share code, notes, and snippets.

@mgax
Created July 28, 2017 16:24
Show Gist options
  • Save mgax/ea39ab9a6d5d87d6488193062f01e7ea to your computer and use it in GitHub Desktop.
Save mgax/ea39ab9a6d5d87d6488193062f01e7ea to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
cd /var/local/vms
args=(
qemu-system-x86_64
-enable-kvm
-hda /tmp/hd.qcow
-smp 1
-m 256
-net nic,macaddr='81:76:B9:0F:1C:2A' -net tap # duckduckgo.com/?q=random+mac+address
-nographic
-display vnc=localhost:13
-boot d -cdrom /tmp/debian-8.1.0-amd64-netinst.iso
)
date
set -x
exec "${args[@]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment