From 864fdaa7ee21712f10b21e4549d20b35b8de5dd0 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Tue, 19 Apr 2016 06:40:50 -0400 Subject: use qemu's built-in tftp server --- qemu.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'qemu.sh') diff --git a/qemu.sh b/qemu.sh index abf62b4..2955c20 100755 --- a/qemu.sh +++ b/qemu.sh @@ -2,7 +2,11 @@ # img=debian-live-8.4.0-amd64-gnome-desktop.iso img=debian-live-8.4.0-amd64-standard.iso -sudo qemu-system-x86_64 -enable-kvm -smp 2 -m 640 -k en-us -net \ - nic,vlan=0,model=virtio -net tap,vlan=0,ifname=tap0,script=no,downscript=no \ - -vga qxl -rtc base=localtime -cdrom \ - "$img" -hda "${img%.iso}.disk" -boot n +sudo qemu-system-x86_64 -enable-kvm -smp 2 -m 640 -k en-us \ + -vga qxl \ + -net nic,vlan=0,model=virtio \ + -net user,tftp=isolinux,bootfile=/pxelinux.0 \ + -rtc base=localtime \ + -cdrom "$img" \ + -hda "${img%.iso}.disk" \ + -boot n -- cgit v1.2.3