This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
esxi:photon_os [2020/05/18 18:24] derek created |
esxi:photon_os [2024/09/22 19:51] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====Photon | + | =====Photon |
Photon OS is an open source Linux container host optimized for cloud-native applications, | Photon OS is an open source Linux container host optimized for cloud-native applications, | ||
Line 5: | Line 5: | ||
Setup minimal installed profile of PhotonOS | Setup minimal installed profile of PhotonOS | ||
- | * Download the Photon OS '' | + | * Download the latest |
* In ESXi: | * In ESXi: | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * Name the VM | + | * Name the VM |
- | * Upload the Photon OS OVA file | + | * Upload the Photon OS OVA file |
- | * Specify the desired '' | + | * Specify the desired '' |
- | * Accept the License Agreement | + | * Accept the License Agreement |
- | * Deselect '' | + | * Deselect '' |
- | * Confirm settings | + | * Confirm settings |
- | * | + | * Wait for the files to upload |
- | * '' | + | * If autostart is desired for this machine go to '' |
- | * Select appropriate VM settings depending | + | * Click on the current VM |
- | * Use NVMe Controller for the hard disk if using NVMe storage | + | * '' |
- | * | + | * Use '' |
- | * Set desired | + | * Go to '' |
+ | * '' | ||
+ | * Set the required CPU and Memory requirements | ||
+ | * If using NVMe storage | ||
+ | * '' | ||
+ | * '' | ||
+ | * Save and reopen '' | ||
+ | * Remove '' | ||
+ | * Select other appropriate VM settings depending on desired | ||
* Power on the VM, then shut it down again to generate a MAC address | * Power on the VM, then shut it down again to generate a MAC address | ||
- | * Give the VM a static IP address from your router using the generated MAC address and desired hostname | + | * Give the VM a static IP address from your router using the generated MAC address |
* Power on the VM | * Power on the VM | ||
- | * Using a SSH client, connect to the hostname set above, then run: | + | * Using an SSH client, connect to the hostname set above, then run: |
<code bash> | <code bash> | ||
# Login with root details from the VM note | # Login with root details from the VM note | ||
# Follow instructions to set new password | # Follow instructions to set new password | ||
+ | |||
+ | # Remove docker related packages if not needed to save space and faster updates | ||
+ | tdnf erase containerd docker docker-cli docker-engine | ||
+ | |||
# Update packages: | # Update packages: | ||
tdnf upgrade | tdnf upgrade | ||
+ | tdnf clean all | ||
+ | |||
# Disable password expiry: | # Disable password expiry: | ||
chage -M -1 root | chage -M -1 root | ||
+ | |||
# Set new hostname: | # Set new hostname: | ||
hostnamectl set-hostname < | hostnamectl set-hostname < | ||
+ | |||
+ | # Set the timezone to Perth | ||
+ | ln -sf / | ||
+ | |||
# Change the SSH port to 50001: | # Change the SSH port to 50001: | ||
sed -i " | sed -i " | ||
+ | sed -i "s/-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT/-A INPUT -p tcp -m tcp --dport 50001 -m state --state NEW -j ACCEPT/" | ||
+ | |||
exit | exit | ||
</ | </ | ||
- | | + | |
- | * Save a snapshot called '' | + | |
* Edit VM note to be the following: | * Edit VM note to be the following: | ||
< | < | ||
Line 48: | Line 69: | ||
50001/tcp SSH | 50001/tcp SSH | ||
</ | </ | ||
+ | * Save a snapshot called '' | ||
====Update==== | ====Update==== | ||
- | * If desired, Log in to ESXi, navigate to the docker | + | * If desired, Log in to ESXi, navigate to the photon based VM and create new temporary |
- | * Using a SSH client, connect to < | + | * Using an SSH client, connect to < |
- | < | + | < |
tdnf upgrade | tdnf upgrade | ||
tdnf clean all | tdnf clean all | ||
reboot | reboot | ||
</ | </ |