diff options
Diffstat (limited to 'qemu.sh')
-rwxr-xr-x | qemu.sh | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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 |
5 | img=debian-live-8.4.0-amd64-standard.btrfs.iso | 5 | iso=debian-live-8.4.0-amd64-standard.btrfs.iso |
6 | disk=${iso%.iso}.disk | ||
7 | iso=${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" |