Yesterday VMware silently released a new version of its opensource cloud native platform. VMware Photon Platform 1.2 is available for download at github now. You can find the details of the new release in the release notes. Below are the highlights of the new release.
- Photon Controller now supports ESXi 6.5 Patch 201701001. Support for ESXi 6.0 is dropped.
- Photon platform now comes with Lightwave 1.2 which supports authenticating using windows sessions credentials. Given you’re using the CLI from a windows box.
- The platform now supports Kubernetes 1.6 and also supports persistent volumes for Kubernetes
- NSX-T support is improved
- Resource tickets have been replaced with quotas which can be increased and decreased. This is a big improvement in my opinion. The previous release wouldn’t let you change resource allocation which was a definite blocker for production use.
- The API is now versioned. Which means the API url now starts with /v1/
- Lightwave 1.2 is incompatible with earlier versions
- ESXi 6.0 is no longer supported
- The API is incompatible with previous API versions. But the good new is that it’s now versioned so this was the last time they broke the API (hopefully).
update 20-04-2017: Some updates taken from the github issues:
- HA Lightwave setup is no longer supported. Will be back in 1.2.1
- version 1.1.1 didn’t create any flavours at installation but 1.2 seems to create duplicate flavours.
VMware Photon Platform is an opensource cloud platform build by VMware on top for ESXi. It is specifically build to run containerized and cloud native applications. As such it pushes a lot of features into the application layer and out of the infrastructure. For example: It doesn’t support VMware HA or DRS. Or even vMotion. In this post I’ll help you getting started with VMware Photon Platform.
Update 19-04-2017: This post was based on Photon platform 1.1.1. As of today the current version is Photon platform 1.2. The only supported ESXi version is now ESXi 6.5, Patch 201701001. The steps in this post may or may not work for version 1.2.
The Photon platform contains a few different components:
- Photon installation appliance: Deploy this appliance first an use it to deploy other photon components
- Lightwave: This is similar to VMware SSO
- Photon Controller: This is basically a vCenter replacement. It has a scale-out architecture and provides the Photon API, multi tenancy and resource management
- HA Proxy: Loadbalances requests to the Photon Controllers
- Photon OS: A tiny Linux distribution optimized to run Docker containers
- Photon Agent: This is running on each ESXi host managed by Photon controller
Photon supports the following VMware technologies:
- vSAN: aggregate your local disks into a large storage pool. Since there is no vCenter server in a photon deployment you need an additional appliance to manage vSAN
- NSX: Photon integrates with VMwares SDN platform. But again: not vCenter. So you’ll only be able to use NSX-T, not the wel known NSX-v
Getting Photon Platform up and running
There is a quickstart guide which gives you most information you need t deploy Photon Platform. Use the steps below to save some time and fill in some blanks.
Prepare your lab
- Download the installer OVA here.
- Download ESXi 6.0.0 here (note: 6.5 is not supported at the moment of writing)
- Download patch with build number4600944 here (yes, photon only supports this specific build nr sadly…)
- Install two ESXi 6.0.0 hosts. I run them as virtual machines on my home lab. DO NOT CONNECT THEM TO A VCENTER!
- Both ESxi hosts need a local or shared datastore If you’re following my instruction you’ll have to name them “local02”. I used 150GB datastores which is sufficient to deploy the Photon components on one host. I have 23.4GB left on host running the platform.
- SCP the patch to the fresh hosts and use this KB article for instructions on how to deploy the patch
- Make sure you have at least 1 static IP available in the network where you’ll be deploying Photon. Obviously that IP should be able to reach the ESXi hosts
- Deploy the photon-installer ova file to one of the ESXi hosts. Just use the good ol’ vSphere C# client :). The quickstart guide mentions the web client but there is no webclient on ESXi 6.0…. Of course you can use the web client fling but that would add another step to this process.
- Prepare a YAML file. The quickstart guide describes the file you need.
- One thing the guide doesn’t mention is the fact that you need a complex password of at least 8 characters for the lightwave administrator. If you don’t the installer won’t throw an error, the installation of lightwave will just fail with a very generic error.
- something that is in de quickstart guide but I missed at first is the fact that all components need to use the lightwave server as their DNS server. Only the lightwave server itself uses your own DNS server.
- Below is the YAML I used. You’ll probably have to replace the IP addresses and it assumes that the root password for your ESXi hosts is “password”. It also assumes that your ESXi hosts have a datastore called “local02”. another thing you might notice: I’m not joining the host where the photon appliances are deployed to the photon controller. Somehow I can’t get that to work.
network: "NAT=VM Network"
network: "NAT=VM Network"
network: "NAT=VM Network"
- Save the yml above to a file and copy it to the photon installer appliance. The root password for the appliance is “changeme”. I stored the file in /root/photon.yml
- Log into the photon installer appliance over SSH (root/changeme)
- run: cd /opt/vmware/photon/controller/bin
- run: ./photon-setup platform install -config /root/photon.yml
- watch the magic happen 🙂
- when the magic is finished connect a browser to the loadbalancer ip. If you used my yml go to: https://192.168.192.76:4343
- Log in using the lightwave administrator credentials. If you used my yml that would be: firstname.lastname@example.org / Passw0rd123!
- The GUI is nice but a lot of features are still missing. If you want to use photon you’ll need the CLI. you can find it on the Github releases page and here are instructions on how to install it.
This post is lengthy enough as it is so I won’t go into details here. One of the features of Photon is that it can deploy a Kubernetes cluster for you. I’m also working on a post explaining how to use BOSH with photon.