Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DVD boot issues and windows drive letter issues #346

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions ievms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ eject() {
boot_ievms() {
find_iso
attach "${1}" "${iso}" "ievms control ISO"
VBoxManage modifyvm "${1}" --boot1 dvd --boot2 disk
start_vm "${1}"
wait_for_shutdown "${1}"
eject "${1}" "ievms control ISO"
Expand All @@ -260,7 +261,11 @@ start_vm() {
# Copy a file to the virtual machine from the ievms home folder.
copy_to_vm() {
log "Copying ${2} to ${3}"
guest_control_exec "${1}" cmd.exe /c copy "E:\\${2}" "${3}"
local dl="Z"
if [ "${4}" = "Win10" ]; then
dl="D"
fi
guest_control_exec "${1}" cmd.exe /c copy "${dl}:\\${2}" "${3}"
}

# Execute a command with arguments on a virtual machine.
Expand Down Expand Up @@ -310,7 +315,7 @@ install_ie_xp() { # vm url md5
local dest="C:\\Documents and Settings\\${guest_user}\\Desktop\\${src}"

download "${src}" "${2}" "${src}" "${3}"
copy_to_vm "${1}" "${src}" "${dest}"
copy_to_vm "${1}" "${src}" "${dest}" "WinXP"

log "Installing IE" # Always "fails"
guest_control_exec "${1}" "${dest}" /passive /norestart || true
Expand All @@ -327,7 +332,7 @@ install_ie_win7() { # vm url md5
download "${src}" "${2}" "${src}" "${3}"
start_vm "${1}"
wait_for_guestcontrol "${1}"
copy_to_vm "${1}" "${src}" "${dest}"
copy_to_vm "${1}" "${src}" "${dest}" "Win7"

log "Installing IE"
guest_control_exec "${1}" "cmd.exe" /c \
Expand Down