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

Merge branch 'compute-control'

Rebase changes from earlier ohpc_vagrant repo to create and control
compute nodes in virtualbox.
parents 398c7b2a 97cf9a92
No related branches found
No related tags found
Loading
#!/bin/bash
# Create a network bootable compute node in virtualbox
#
# use native VBoxManage because Vagrant doesn't work
# well with nodes that are meant to boot off the network.
#
# node is constrained to boot on the internal "compute" network
nodename="$1"
VBoxManage createvm --name "$nodename" --register
VBoxManage modifyvm "$nodename" --memory 4096 --nic1 intnet --intnet1 compute --nictype1=82540EM --rtcuseutc on
VBoxManage storagectl "$nodename" --name IDE --add ide --controller PIIX4 --bootable on
VBoxManage storageattach "$nodename" --storagectl IDE --type dvddrive --device 0 --port 1 --medium ~/iso/ipxe.iso
#!/bin/bash
# Destroy the compute node for ohpc
VBoxManage unregistervm --delete "$1"
#!/bin/bash
# start the compute node for ohpc
VBoxManage startvm "$1"
#!/bin/bash
# Stop the compute node for ohpc
VBoxManage controlvm "$1" poweroff
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