summaryrefslogtreecommitdiff
path: root/qemu.sh
blob: 5c0abd207d6ed3da81979261ff1cfe721bef8333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# img=debian-live-8.4.0-amd64-gnome-desktop.iso
# img=debian-live-8.4.0-amd64-standard.iso
img=debian-live-8.4.0-amd64-standard.btrfs.iso

./initrd.sh

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 \
     -rtc base=localtime \
     -cdrom "$img" \
     -hda "${img%.iso}.disk" \
     -boot n