From bf139994f43a5ac8ab10fe37611a15629bef723b Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Tue, 19 Apr 2016 15:47:28 -0400 Subject: use qemu's built-in bootloader instead of pxe (even faster) --- qemu.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'qemu.sh') 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 ./initrd.sh +# NET='user,tftp=isolinux,bootfile=/pxelinux.0' +NET='tap,vlan=0,ifname=tap0,script=no,downscript=no' + +initrd=isolinux/live/initrd.img +kernel=isolinux/live/vmlinuz +kcmdline='boot=samizdat components quiet splash' + 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 \ + -net "$NET" \ -rtc base=localtime \ -cdrom "$img" \ -hda "${img%.iso}.disk" \ - -boot n + -initrd "$initrd" -kernel "$kernel" -append "$kcmdline" -- cgit v1.2.3