Created
July 28, 2017 16:24
-
-
Save mgax/ea39ab9a6d5d87d6488193062f01e7ea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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