summaryrefslogtreecommitdiff
path: root/qemu.sh
diff options
context:
space:
mode:
Diffstat (limited to 'qemu.sh')
-rwxr-xr-xqemu.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/qemu.sh b/qemu.sh
index 82c0c9f..ae23152 100755
--- a/qemu.sh
+++ b/qemu.sh
@@ -1,8 +1,10 @@
1#!/bin/sh 1#!/bin/sh
2 2
3# img=debian-live-8.4.0-amd64-gnome-desktop.iso 3# iso=debian-live-8.4.0-amd64-gnome-desktop.iso
4# img=debian-live-8.4.0-amd64-standard.iso 4# iso=debian-live-8.4.0-amd64-standard.iso
5img=debian-live-8.4.0-amd64-standard.btrfs.iso 5iso=debian-live-8.4.0-amd64-standard.btrfs.iso
6disk=${iso%.iso}.disk
7iso=${iso%.iso}.layered.iso
6 8
7./initrd.sh || { echo "./initrd.sh failed" >&2; exit 1; }; 9./initrd.sh || { echo "./initrd.sh failed" >&2; exit 1; };
8 10
@@ -18,6 +20,6 @@ sudo qemu-system-x86_64 -enable-kvm -smp 2 -m 640 -k en-us \
18 -net nic,vlan=0,model=virtio \ 20 -net nic,vlan=0,model=virtio \
19 -net "$NET" \ 21 -net "$NET" \
20 -rtc base=localtime \ 22 -rtc base=localtime \
21 -cdrom "$img" \ 23 -cdrom "$iso" \
22 -hda "${img%.iso}.disk" \ 24 -hda "$disk" \
23 -initrd "$initrd" -kernel "$kernel" -append "$kcmdline" 25 -initrd "$initrd" -kernel "$kernel" -append "$kcmdline"