Return to Snippet

Revision: 25638
at April 4, 2010 18:48 by 666f6f


Initial Code
#!/bin/bash
WINVER=$1
IMGDIR=/home/gp/Images

while [[ -z "$IMG" ]]; do
        while [[ -z "$WINVER" ]]; do
                read -p "Which Windows version? " WINVER
        done

        for FILENAME in $IMGDIR/*
        do
                if [[ "$FILENAME" =~ "_${WINVER}_" ]]; then
                        IMG=$FILENAME && break
                fi
        done

        WINVER=
done

# Q: Why sudo? A: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/103010
sudo -b kvm -hda $IMG -localtime -net nic -net tap -m 2G

Initial URL
http://666f6f.wordpress.com/2010/03/28/kvm-qemu-getting-started/

Initial Description

                                

Initial Title
Script to run your QEMUlated Windows

Initial Tags

                                

Initial Language
Bash