Skip to content

Commit

Permalink
Properly mount dvd drive to IDE Controller port without removing HDD
Browse files Browse the repository at this point in the history
  • Loading branch information
DrkCloudStrife committed Jul 3, 2018
1 parent b887787 commit 1a70686
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CHANGELOG
* Updates Windows VM MD5
* Adds WinXP Mode documentation for Win7
* Updates the URL and MD5 for The Unarchiver file
* Fixes BVoxManage import not mounting disk drive
* Fixes VBoxManage import not mounting disk drive

## v0.3.3

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ Installation

* To install IE versions 8, 9, 10, 11 and EDGE use:

curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh | bash
`curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh | bash`

* To install specific IE versions (IE7, IE9 and EDGE only for example) use:

curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh | env IEVMS_VERSIONS="7 9 EDGE" bash
`curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh | env IEVMS_VERSIONS="7 9 EDGE" bash`

**3.)** Launch Virtual Box.

Expand Down
10 changes: 6 additions & 4 deletions ievms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,15 @@ find_iso() {
# Attach a dvd image to the virtual machine.
attach() {
log "Attaching ${3}"
VBoxManage storageattach "${1}" --storagectl "IDE Controller" --port 1 \
VBoxManage storageattach "${1}" --storagectl "IDE Controller" --port 0 \
--device 0 --type dvddrive --medium "${2}"
}

# Eject the dvd image from the virtual machine.
eject() {
log "Ejecting ${2}"
VBoxManage modifyvm "${1}" --dvd none
VBoxManage storageattach "${1}" --storagectl "IDE Controller" --port 0 \
--device 0 --type dvddrive --medium "none" --forceunmount
}

# Boot the virtual machine with the control ISO in the dvd drive then wait for
Expand Down Expand Up @@ -318,7 +319,7 @@ build_ievm() {
prefix="MS"
version="Edge"
os="Win10"
unit="8"
unit="10"
;;
*) fail "Invalid IE version: ${1}" ;;
esac
Expand Down Expand Up @@ -366,7 +367,8 @@ build_ievm() {
then
local disk_path="${ievms_home}/${vm}-disk1.vmdk"
log "Creating ${vm} VM (disk: ${disk_path})"
VBoxManage import "${ova}" --vsys 0 --vmname "${vm}" --unit "${unit}" --disk "${disk_path}"
VBoxManage import "${ova}" --vsys 0 --vmname "${vm}" \
--unit "${unit}" --disk "${disk_path}"

log "Adding shared folder"
VBoxManage sharedfolder add "${vm}" --automount --name ievms \
Expand Down

0 comments on commit 1a70686

Please sign in to comment.