summaryrefslogtreecommitdiff
path: root/qemu.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-19 06:40:50 -0400
committerAndrew Cady <d@jerkface.net>2016-04-19 08:04:41 -0400
commit864fdaa7ee21712f10b21e4549d20b35b8de5dd0 (patch)
tree2cbe8f99f4bb3faf48440fec03f549a670ef8d8d /qemu.sh
parent0a1f94ffc1904c09d6e4a9c608175196dfec98a2 (diff)
use qemu's built-in tftp server
Diffstat (limited to 'qemu.sh')
-rwxr-xr-xqemu.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/qemu.sh b/qemu.sh
index abf62b4..2955c20 100755
--- a/qemu.sh
+++ b/qemu.sh
@@ -2,7 +2,11 @@
2 2
3# img=debian-live-8.4.0-amd64-gnome-desktop.iso 3# img=debian-live-8.4.0-amd64-gnome-desktop.iso
4img=debian-live-8.4.0-amd64-standard.iso 4img=debian-live-8.4.0-amd64-standard.iso
5sudo qemu-system-x86_64 -enable-kvm -smp 2 -m 640 -k en-us -net \ 5sudo qemu-system-x86_64 -enable-kvm -smp 2 -m 640 -k en-us \
6 nic,vlan=0,model=virtio -net tap,vlan=0,ifname=tap0,script=no,downscript=no \ 6 -vga qxl \
7 -vga qxl -rtc base=localtime -cdrom \ 7 -net nic,vlan=0,model=virtio \
8 "$img" -hda "${img%.iso}.disk" -boot n 8 -net user,tftp=isolinux,bootfile=/pxelinux.0 \
9 -rtc base=localtime \
10 -cdrom "$img" \
11 -hda "${img%.iso}.disk" \
12 -boot n