Configuring Photon OS as lightwave server primary domain controller (UNFINISH WORK IN PROGRESS) - dcasota/photonos-scripts GitHub Wiki
The configuration of a lightwave domain controller on latest Photon OS has some culprits with the prebuild packages, see discussion PhotonOS-4-and-Lightwave-DC.
For the original build instructions, see lightwave build.
This lab tries to make it run.
Photon OS 3.0 rev2
It starts with a Photon OS 3.0 rev2 release, see Download URL
Build the rpm packages
# Photon OS 3.0 rev 2
if [ `cat /etc/yum.repos.d/photon.repo | grep -o "packages.vmware.com/photon" | wc -l` -eq 0 ]; then
cd /etc/yum.repos.d/
sed -i 's/dl.bintray.com\/vmware/packages.vmware.com\/photon\/$releasever/g' photon.repo photon-updates.repo photon-extras.repo photon-debuginfo.repo
fi
cd /root
tdnf install -y tar build-essential git openjdk8 ant-contrib likewise-open-devel curl-devel jansson-devel openssl-devel util-linux-devel krb5-devel e2fsprogs-devel copenapi-devel c-rest-engine-devel cmocka-devel sqlite-devel boost-devel python2-devel apache-maven go rpm-build
git clone https://github.com/vmware/lightwave.git
# avoid error: /lightwave/vmidentity/goclients/src/oidc no file or directory found
mkdir -p /usr/lib/golang/src/oidc
cp /lightwave/vmidentity/goclients/src/oidc/* /usr/lib/golang/src/oidc
# avoid error: Failed build dependencies: boost-devel = 1.63.0 is needed by lightwave-1.3.1-35.lwph2.x86_64
curl -J -L -O https://packages.vmware.com/photon/2.0/photon_release_2.0_x86_64/x86_64/boost-1.63.0-1.ph2.x86_64.rpm
curl -J -L -O https://packages.vmware.com/photon/2.0/photon_release_2.0_x86_64/x86_64/boost-devel-1.63.0-1.ph2.x86_64.rpm
rpm -ivh boost-1.63.0-1.ph2.x86_64.rpm
rpm -ivh boost-devel-1.63.0-1.ph2.x86_64.rpm
cd ./lightwave/build
./build_photon.sh
The build process completes with all lightwave rpm packages.
A first attempt to install the packages failed because prerequisites e.g. libsasl2, openssl, etc. conflicts. (to be continued)
cd ./lightwave/build
rpm -ivh ./rpmbuild/RPMS/x86_64/lightwave-client-1.3.1-35.lwph2.x86_64.rpm
rpm -ivh ./rpmbuild/RPMS/x86_64/lightwave-server-1.3.1-35.lwph2.x86_64.rpm
rpm -ivh ./rpmbuild/RPMS/x86_64/lightwave-1.3.1-35.lwph2.x86_64.rpm
# rpm -ivh ./rpmbuild/RPMS/x86_64/lightwave-test-1.3.1-35.lwph2.x86_64.rpm
# rpm -ivh ./rpmbuild/RPMS/x86_64/lightwave-debuginfo-1.3.1-35.lwph2.x86_64.rpm
# rpm -ivh ./rpmbuild/RPMS/x86_64/lightwave-post-1.3.1-35.lwph2.x86_64.rpm
# rpm -ivh ./rpmbuild/RPMS/x86_64/lightwave-devel-1.3.1-35.lwph2.x86_64.rpm
# rpm -ivh ./rpmbuild/RPMS/x86_64/lightwave-samples-1.3.1-35.lwph2.x86_64.rpm
# rpm -ivh ./rpmbuild/RPMS/x86_64/lightwave-mutentca-1.3.1-35.lwph2.x86_64.rpm