diff options
author | Andrew Cady <d@jerkface.net> | 2016-04-19 06:40:50 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-04-19 08:04:41 -0400 |
commit | 864fdaa7ee21712f10b21e4549d20b35b8de5dd0 (patch) | |
tree | 2cbe8f99f4bb3faf48440fec03f549a670ef8d8d | |
parent | 0a1f94ffc1904c09d6e4a9c608175196dfec98a2 (diff) |
use qemu's built-in tftp server
-rwxr-xr-x | qemu.sh | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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 |
4 | img=debian-live-8.4.0-amd64-standard.iso | 4 | img=debian-live-8.4.0-amd64-standard.iso |
5 | sudo qemu-system-x86_64 -enable-kvm -smp 2 -m 640 -k en-us -net \ | 5 | sudo 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 | ||