diff --git a/scripts/cloudlab/start_vhive_cluster.sh b/scripts/cloudlab/start_vhive_cluster.sh new file mode 100755 index 000000000..c0240d962 --- /dev/null +++ b/scripts/cloudlab/start_vhive_cluster.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +# MIT License +# +# Copyright (c) 2020 Dmitrii Ustiugov, Plamen Petrov and EASE lab +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +ROOT="$( cd $DIR && cd .. && cd .. && pwd)" +SCRIPTS=$ROOT/scripts + +$SCRIPTS/github_runner/clean_cri_runner.sh + +if [ ! -d "$HOME/ctrd-logs" ]; then + $SCRIPTS/cloudlab/setup_node.sh + mkdir -p ~/ctrd-logs +fi + +sudo containerd 1>~/ctrd-logs/ctrd.out 2>~/ctrd-logs/ctrd.err & +sudo firecracker-containerd --config /etc/firecracker-containerd/config.toml 1>~/ctrd-logs/fccd.out 2>~/ctrd-logs/fccd.err & +source /etc/profile && cd $ROOT && go build && sudo ./vhive 1>~/ctrd-logs/orch.out 2>~/ctrd-logs/orch.err & +$SCRIPTS/cluster/create_one_node_cluster.sh + + diff --git a/scripts/setup_system.sh b/scripts/setup_system.sh index 88fa9cc18..20cda76a3 100755 --- a/scripts/setup_system.sh +++ b/scripts/setup_system.sh @@ -45,6 +45,7 @@ sudo apt-get -y install \ dmsetup \ gnupg-agent \ software-properties-common \ + iproute2 \ skopeo >> /dev/null # stack size, # of open files, # of pids