summaryrefslogtreecommitdiff
path: root/qemu.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-19 15:47:28 -0400
committerAndrew Cady <d@jerkface.net>2016-04-19 15:47:28 -0400
commitbf139994f43a5ac8ab10fe37611a15629bef723b (patch)
tree6bb178882b345412d7f1edd796e642ea82337bed /qemu.sh
parent841ae8b1f61449fe78df6835c0a4233266f8baa2 (diff)
use qemu's built-in bootloader instead of pxe (even faster)
Diffstat (limited to 'qemu.sh')
-rwxr-xr-xqemu.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/qemu.sh b/qemu.sh
index 5c0abd2..0f3cb30 100755
--- a/qemu.sh
+++ b/qemu.sh
@@ -6,11 +6,18 @@ img=debian-live-8.4.0-amd64-standard.btrfs.iso
6 6
7./initrd.sh 7./initrd.sh
8 8
9# NET='user,tftp=isolinux,bootfile=/pxelinux.0'
10NET='tap,vlan=0,ifname=tap0,script=no,downscript=no'
11
12initrd=isolinux/live/initrd.img
13kernel=isolinux/live/vmlinuz
14kcmdline='boot=samizdat components quiet splash'
15
9sudo qemu-system-x86_64 -enable-kvm -smp 2 -m 640 -k en-us \ 16sudo qemu-system-x86_64 -enable-kvm -smp 2 -m 640 -k en-us \
10 -vga qxl \ 17 -vga qxl \
11 -net nic,vlan=0,model=virtio \ 18 -net nic,vlan=0,model=virtio \
12 -net user,tftp=isolinux,bootfile=/pxelinux.0 \ 19 -net "$NET" \
13 -rtc base=localtime \ 20 -rtc base=localtime \
14 -cdrom "$img" \ 21 -cdrom "$img" \
15 -hda "${img%.iso}.disk" \ 22 -hda "${img%.iso}.disk" \
16 -boot n 23 -initrd "$initrd" -kernel "$kernel" -append "$kcmdline"