Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
John-Paul Robinson
ohpc_vagrant
Commits
48dce063
Commit
48dce063
authored
Jan 28, 2019
by
Mike Hanby
Committed by
John-Paul Robinson
Jan 28, 2019
Browse files
Added code to download the ipxe.iso file if missing
parent
b6a75eb8
Changes
1
Show whitespace changes
Inline
Side-by-side
compute_create
View file @
48dce063
...
@@ -9,8 +9,18 @@
...
@@ -9,8 +9,18 @@
nodename
=
"
$1
"
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
VBoxManage modifyvm
"
$nodename
"
--memory
4096
--nic1
intnet
--intnet1
compute
--nictype1
=
82540EM
--rtcuseutc
on
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment