非交互式启动VirtualBox VM与LSF Cluster

参考手册,编写启动脚本

#!/bin/bash

# wanlinwang
# 22-May-2022

# 先启动FreeIPA master与replica.
VBoxManage startvm --type headless 'CentOS 7.9 ipa 001' 'CentOS 7.9 ipa 002'

# 然后启动LSF master与candidate, computing hosts.
sleep 15
VBoxManage startvm --type headless "CentOS 7.9 LSF master 01" "CentOS 7.9 LSF Master 02" "CentOS 7.9 Computing Host 001" "CentOS 7.9 Computing Host 002"

# 打印正在运行的VM.
sleep 1
VBoxManage list runningvms

# 启动lsf cluster
ssh lsf-master-01 "yes y| lsfstartup"

猜你喜欢

转载自blog.csdn.net/thesre/article/details/124917624