root@ph4 [ / ]# git clone https://github.com/vmware/cloud-network-setup Cloning into 'cloud-network-setup'... remote: Enumerating objects: 3126, done. remote: Counting objects: 100% (1233/1233), done. remote: Compressing objects: 100% (540/540), done. remote: Total 3126 (delta 660), reused 1169 (delta 627), pack-reused 1893 Receiving objects: 100% (3126/3126), 4.30 MiB | 17.88 MiB/s, done. Resolving deltas: 100% (1457/1457), done. root@ph4 [ / ]# tdnf remove cloud-network-setup Removing: cloud-network-setup x86_64 0.2.1-8.ph4 @System 15.82M 16587500 Total installed size: 15.82M 16587500 Is this ok [y/N]: y Testing transaction Running transaction Removed /etc/systemd/system/multi-user.target.wants/cloud-network.service. Removing: cloud-network-setup-0.2.1-8.ph4.x86_64 Complete! root@ph4 [ / ]# ls bin cloud-network-setup etc installer.log iso lib64 media opt photon-os-installer root sbin sys usr boot dev home install.sh lib lost+found mnt photon proc run srv tmp var root@ph4 [ / ]# cd cloud-network-setup/ root@ph4 [ /cloud-network-setup ]# make build mkdir -p bin go build -ldflags="-X 'main.buildVersion=cf5db50 (2023-03-06 20:48:40 +0530)' -X 'main.buildDate=2023-03-08 11:04:15'" -o bin/cloud-network ./cmd/cloud-network /bin/sh: go: command not found make: *** [Makefile:30: build] Error 127 root@ph4 [ /cloud-network-setup ]# tdnf install go Installing: go x86_64 1.19.3-2.ph4 photon-updates 466.90M 489575174 Total installed size: 466.90M 489575174 Is this ok [y/N]: y Downloading: go 122341552 100% Testing transaction Running transaction Installing/Updating: go-1.19.3-2.ph4.x86_64 Complete! root@ph4 [ /cloud-network-setup ]# make build mkdir -p bin go build -ldflags="-X 'main.buildVersion=cf5db50 (2023-03-06 20:48:40 +0530)' -X 'main.buildDate=2023-03-08 11:05:00'" -o bin/cloud-network ./cmd/cloud-network go build -ldflags="-X 'main.buildVersion=cf5db50 (2023-03-06 20:48:40 +0530)' -X 'main.buildDate=2023-03-08 11:05:00'" -o bin/cnctl ./cmd/cnctl/ root@ph4 [ /cloud-network-setup ]# make install install bin/cloud-network /usr/bin/ install bin/cnctl /usr/bin install -vdm 755 /etc/cloud-network install -m 755 distribution/cloud-network.toml /etc/cloud-network install -m 0644 distribution/cloud-network.service /lib/systemd/system/ systemctl daemon-reload root@ph4 [ /cloud-network-setup ]# useradd -M -s /usr/bin/nologin cloud-network useradd: Warning: missing or non-executable shell '/usr/bin/nologin' useradd: user 'cloud-network' already exists root@ph4 [ /cloud-network-setup ]# /usr/bin/cloud-network INFO[0000] cloud-network: v0.2.1 (built 'go1.19.3') INFO[0000] Detected cloud environment (azure) INFO Successfully added address='192.168.1.4/24 on link='eth0' ifindex='2' INFO Received address update: {{192.168.1.4 ffffff00} 2 128 0 4294967295 4294967295 true} INFO Address='192.168.1.4/24' added to link ifindex='2' INFO Successfully added default gateway='192.168.1.1' for link='eth0' ifindex='2' table='10001' INFO Link='eth0' ifindex='2' is now configured INFO Successfully added routing policy rule 'from' in route table='10001' for link='eth0' ifindex='2' INFO Successfully added routing policy rule 'to' in route table='10001' for link='eth0' ifindex='2' INFO Local instance metadata cache Server listening at '127.0.0.1':'5209'