summaryrefslogtreecommitdiff
path: root/qemu.sh
blob: 0f3cb30e5477fd5b5f063f7205ae27ed6fdccd97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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

# 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 "$NET" \
     -rtc base=localtime \
     -cdrom "$img" \
     -hda "${img%.iso}.disk" \
     -initrd "$initrd" -kernel "$kernel" -append "$kcmdline"