about summary refs log blame commit diff stats
path: root/tools/scripts/system-qemu.sh
blob: 8c68e70bfa74ceaba193958e2565b630c6591c84 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                        
#!/bin/sh
ISO=~/crux-3.2.iso
IMG=~/crux-img.qcow2

TAP=$1

echo "TAP: $TAP"

qemu-system-x86_64 \
    -enable-kvm \
    -m 1024 \
    -boot d \
    -cdrom ${ISO} \
    -hda ${IMG} \
    -net nic,model=virtio -net tap,ifname=${TAP},script=no,downscript=no