Created
November 30, 2009 22:04
-
-
Save mariuswilms/245795 to your computer and use it in GitHub Desktop.
Script to help with installing and converting MSs IE virtual machines for VirtualBox.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
# | |
# http://blog.mozmonkey.com/2008/vpc-ie6-ie7-ie8-on-mac-os-x/ | |
# Requires: Q, VirtualBox | |
VERSION="$1" | |
IE_DOWNLOAD="http://download.microsoft.com/download/B/7/2/B72085AE-0F04-4C6F-9182-BF1EE90F5273/IE${VERSION}-XPSP3.exe" | |
WORK_DIR="/tmp/ievm" | |
mkdir $WORK_DIR | |
cd $WORK_DIR | |
echo "Downloading..." | |
wget $IE_DOWNLOAD -O $WORK_DIR/ie${VERSION}.exe | |
echo "Unpacking..." | |
unrar e ie${VERSION}.exe | |
echo "Converting to raw..." | |
VHD_FILE=`ls *IE${VERSION}*.vhd` | |
/Applications/Q.app/Contents/MacOS/qemu-img convert "$VHD_FILE" ie${VERSION}.raw | |
echo "Converting to vdi..." | |
VBoxManage convertfromraw ie${VERSION}.raw ie${VERSION}.vdi | |
echo "Done." | |
echo "" | |
echo "VDI is now: $WORK_DIR/ie${VERSION}.vdi" | |
echo "localhost is at: 10.0.2.2" | |
echo "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment