Comsol v5.3 linux server

Problem: VM run out of entropy

cat /proc/sys/kernel/random/entropy_avail


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@
#Get the file
scp ./
mkdir /mnt/comsol
mount -o loop /home/centos/COMSOL53_dvd.iso /mnt/comsol
#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@ #worker 1
ssh -i ~/jingchao_tusker.pem centos@ #worker 2
ssh -i ~/jingchao_tusker.pem centos@ #worker 3
setenforce 0
yum groupinstall "Development Tools" -y
mkdir -p /util/opt/
mount -t nfs4 /util/opt/
cd /util/opt/comsol53/server/bin
#comsol secondary servers need to run in foreground
./comsol server -secondary -primaryserveruri ws:// -user comsoladmin -serviceport 2036
#use screen to solve the foreground issue
yum install screen -y
./comsol server -secondary -primaryserveruri ws:// -user comsoladmin -serviceport 2036
#To detach
Ctrl+a, d
#To resume
screen -r
#To exit