<img src="https://blogs.vmware.com/vsphere/files/2020/10/Photon-Propotionate-576x324.png"> <a href="https://github.com/vmware/photon/wiki/Downloading-Photon-OS" target="_blank">Download</a><p> ## **Default login password for Photon OVA** root / changeme ## **Set hostname** hostnamectl set-hostname Photon01 ## **Configure Network** Create the network configuration file cat > /etc/systemd/network/10-static-en.network << "EOF" [Match] Name=eth0 [Network] Address=198.51.0.2/24 Gateway=198.51.0.1 DNS=192.51.0.1 EOF Change network configuration file permission chmod 644 /etc/systemd/network/10-static-en.network Restart network service systemctl restart systemd-networkd ## Configure NTP servers vi /etc/systemd/timesyncd.conf Add timeservers under [Time] [Time] NTP=10.34.56.78 ## **Set timezone (Hong Kong)** ln -sf /usr/share/zoneinfo/Asia/Hong_Kong /etc/localtime ## **Disable password aging for root user (Optional)** # -I Set password inactive after expiration to INACTIVE # -m Set minimum number of days before password change to MIN_DAYS # -M Set maximum number of days before password change to MAX_DAYS # -E Set account expiration date to EXPIRE_DATE chage -I -1 -m 0 -M 99999 -E -1 root ## **Install docker-compose** <a href="https://github.com/docker/compose/releases" target="_blank">docker-compose download</a><p> curl -L https://github.com/docker/compose/releases/download/v2.21.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose ## **Start and Enable docker service** #Start docker and enable it to be started at boot time systemctl start docker systemctl enable docker ## **Enable Ping** iptables -A OUTPUT -p icmp -j ACCEPT iptables -A INPUT -p icmp -j ACCEPT
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up