Skip to content
Snippets Groups Projects
Commit 0caef2f5 authored by John-Paul Robinson's avatar John-Paul Robinson
Browse files

Merge branch 'feat-add-ipxe-wget' into 'master'

Added code to download the ipxe.iso file if missing

See merge request jpr/ohpc_vagrant!15
parents b6a75eb8 48dce063
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,18 @@
nodename="$1"
VBoxManage createvm --name "$nodename" --register
# Ensure that the $HOME/iso directory exists
if [[ ! -d "$HOME/iso" ]]; then
mkdir ~/iso
fi
# Download the ipxe.iso boot image if it doesn't already exist
if [[ ! -f "$HOME/iso/ipxe.iso" ]]; then
echo "Downloading the network boot ipxe.iso file"
wget -O ~/iso/ipxe.iso http://boot.ipxe.org/ipxe.iso
fi
VBoxManage createvm --name "$nodename" --register
VBoxManage modifyvm "$nodename" --memory 4096 --nic1 intnet --intnet1 compute --nictype1=82540EM --rtcuseutc on
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment