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

added an option to disable hardware virtualization #251

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ To specify where the VMs are installed, use the `INSTALL_PATH` variable:
curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh | env INSTALL_PATH="/Path/to/.ievms" bash


Disabling hardware virtualization
---------------------------------

By default VirtualBox enables hardware virtualization (VT-x or AMD-V). If hardware virtualization is not available (e.g. it's disabled in the BIOS), virtual machines will not start. To force software virtualization, set the `DISABLE_HWV` variable:

curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh | env DISABLE_HWV="yes" bash


Passing additional options to curl
----------------------------------

Expand Down
7 changes: 7 additions & 0 deletions ievms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ ievms_version="0.2.1"
# Options passed to each `curl` command.
curl_opts=${CURL_OPTS:-""}

# Disable hardware virtualization
disable_hwv=${DISABLE_HWV:-"no"}

# Reuse XP virtual machines for IE versions that are supported.
reuse_xp=${REUSE_XP:-"yes"}

Expand Down Expand Up @@ -403,6 +406,10 @@ build_ievm() {
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}"
if [ "${disable_hwv}" != "no" ]
then
VBoxManage modifyvm "${vm}" --cpus 1 --hwvirtex off
fi

log "Building ${vm} VM"
declare -F "build_ievm_ie${1}" && "build_ievm_ie${1}"
Expand Down