From 48dce063d31ec4043e31298dd13b931861930989 Mon Sep 17 00:00:00 2001 From: Mike Hanby <mhanby@uab.edu> Date: Mon, 28 Jan 2019 16:24:33 -0600 Subject: [PATCH] Added code to download the ipxe.iso file if missing --- compute_create | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/compute_create b/compute_create index 021a14b..644b75f 100755 --- a/compute_create +++ b/compute_create @@ -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 -- GitLab