Last active
August 29, 2015 13:57
-
-
Save galaydaroman/9616565 to your computer and use it in GitHub Desktop.
Run IE9 on windows 7
This file contains 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
REM VM name InternetExplorer version | |
set vm=IE9 - Win7 | |
set archive=IE9_Win7 | |
REM Create working directory | |
set work_dir=%HOME%\.ievms | |
md %work_dir% | |
REM Download to working directory next images (archives need to be unpacked): | |
REM 1. http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/%archive%.zip | |
REM 2. https://dl.dropboxusercontent.com/u/463624/ievms-control-0.2.0.iso | |
REM Create VM | |
VBoxManage import "%work_dir%\%vm%.ova" --vsys 0 --vmname "%vm%" --unit "11" --disk "%work_dir%\%vm%-disk1.vmdk" | |
REM Building VM | |
REM ------------ | |
VBoxManage storageattach "%vm%" --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium "%work_dir%\ievms-control-0.2.0.iso" | |
VBoxManage startvm "%vm%" --type headless | |
REM wait vm poweroff.. | |
VBoxManage modifyvm "%vm%" --dvd none | |
VBoxManage storageattach "%vm%" --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium "additions" | |
VBoxManage startvm "%vm%" --type headless | |
REM wait vm poweroff.. | |
VBoxManage modifyvm "%vm%" --dvd none | |
VBoxManage setextradata "%vm%" "ievms" "{\"version\":\"0.2.0\"}" | |
VBoxManage snapshot "%vm%" take clean --description "The initial VM state" |
This file contains 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
REM Run inside of VM | |
sudo apt-get clean | |
cat /dev/zero > zero.fill;sync;sleep 1;sync;rm -f zero.fill | |
REM Turn off VM and run on vmdk file | |
REM shrink command | |
REM http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1023856 | |
vdisk-manager-7.0.1.exe -k box-disk1.vmdk | |
REM defragmentation command | |
vdisk-manager-7.0.1.exe -d box-disk1.vmdk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment