Comsol v5.3 linux server

Problem: VM run out of entropy

cat /proc/sys/kernel/random/entropy_avail
13

Solution

yum install epel-release -y
yum install haveged -y
systemctl start haveged
systemctl status haveged
systemctl enable haveged

Open web browser, enter address localhost:2036 (default server port)

Primary server

ssh -i ~/jingchao_tusker.pem centos@10.71.105.253
#Get the file
scp jingchao@crane.unl.edu:/work/swanson/jingchao/COMSOL53_dvd.iso ./
mkdir /mnt/comsol
mount -o loop /home/centos/COMSOL53_dvd.iso /mnt/comsol
#Install
#
#
#start server
cd /util/opt/comsol53/server/bin
./comsol server -silent -login never
#export NFS
yum install nfs-utils nfs-utils-lib -y
systemctl start nfs-server.service
systemctl status nfs-server.service
systemctl enable nfs-server.service
vim /etc/exports
"/util/opt *(rw,insecure,no_root_squash)"
exportfs -a

Secondary server

ssh -i ~/jingchao_tusker.pem centos@10.71.106.106 #worker 1
ssh -i ~/jingchao_tusker.pem centos@10.71.107.46 #worker 2
ssh -i ~/jingchao_tusker.pem centos@10.71.107.47 #worker 3
setenforce 0
yum groupinstall "Development Tools" -y
mkdir -p /util/opt/
mount -t nfs4 10.71.105.253:/util/opt/ /util/opt/
cd /util/opt/comsol53/server/bin
#comsol secondary servers need to run in foreground
./comsol server -secondary -primaryserveruri ws://10.71.105.253:2036 -user comsoladmin -serviceport 2036
#use screen to solve the foreground issue
yum install screen -y
screen
./comsol server -secondary -primaryserveruri ws://10.71.105.253:2036 -user comsoladmin -serviceport 2036
#To detach
Ctrl+a, d
#To resume
screen -r
#To exit
exit

Updated: