diff options
author | Andrew Cady <d@jerkface.net> | 2016-04-19 15:47:28 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-04-19 15:47:28 -0400 |
commit | bf139994f43a5ac8ab10fe37611a15629bef723b (patch) | |
tree | 6bb178882b345412d7f1edd796e642ea82337bed /qemu.sh | |
parent | 841ae8b1f61449fe78df6835c0a4233266f8baa2 (diff) |
use qemu's built-in bootloader instead of pxe (even faster)
Diffstat (limited to 'qemu.sh')
-rwxr-xr-x | qemu.sh | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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' | ||
10 | NET='tap,vlan=0,ifname=tap0,script=no,downscript=no' | ||
11 | |||
12 | initrd=isolinux/live/initrd.img | ||
13 | kernel=isolinux/live/vmlinuz | ||
14 | kcmdline='boot=samizdat components quiet splash' | ||
15 | |||
9 | sudo qemu-system-x86_64 -enable-kvm -smp 2 -m 640 -k en-us \ | 16 | sudo 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" |