VMware Photon 1.0 Deployment

In a previous blogpost, we discussed what are Containers and compared them to traditional virtual machines. Now lets talk some more about how VMware, which I can say is the current leader in the virtualization industry is planning to deal with the Containers revolution.
There are the following two things I feel are the most important plays that VMware has:
  1. VMware Photon OS: Photon OS is a minimal Linux container host designed to have a small footprint and tuned for VMware platforms. Photon is intended to invite collaboration around running containerized and Linux applications in a virtualized environment.[1]
  2. vSphere Integrated Containers(VIC): VIC combines the agility and application portability of Docker Linux containers with the industry-leading virtual infrastructure platform, offering hardware isolation advantages along with improved manageability.[2]

In addition to these two things, VMware also has NSX integrations and vRealize Automation Integration with the Containers world. This particular blogpost talks about the Photon OS and I will write up another one to talk about vSphere Integrated Containers and others. As you already read above, Photon OS is a minimal Linux Container Host that is optimized for vSphere. It is also compatible with container runtimes, like Docker, Rocket(rkt) and Garden and also container scheduling frameworks like Kubernetes. Photon is already supported on multiple platforms like VMware vSphere, VMware Fusion, vCloud Air and also on the Google Compute Engine.

Today, I would like to demonstrate how easy it is to deploy Photon OS 1.0 in your existing vSphere environments and start using Docker containers!!
Method 1: Using the Photon OVA.
Step 1: Download the Photon OS OVA from this link:
Step 2: Deploy the OVA as you would any other OVA, giving it a Hostname, a virtual network and storage provisioning method. Check the box for power on after deployment.
Step 3: Login using the default credentials: root/changeme
Step 4: You will be prompted to change the password after the first login.
Step 5: Execute the following two commands to start and enable docker.
          a. systemctl start docker
          b. systemctl enable docker
Using just these 5 steps, you can have a docker host ready to use on top of your existing vSphere environment.
Method 2: Using the ISO image.
We just saw how easy it is to deploy the Photon Controller using the OVA, now lets go through and set it up using an ISO image.
Step 1: Download the Photon OS ISO from the following link:
Step 2: Right click on the ESXi Cluster/Resource Pool/ Host on which you want to deploy this VM, and click on New Virtual Machine.
Step 3: Select Typical Configuration and click Next.
Step 4: Give the VM a name, select its inventory location and click Next
Step 5: Select the host/Cluster where you want to deploy the VM and click Next
Step 6: Select the datastore on which you want to deploy this VM and click Next
Step 7: Select Linux as the Guest Operating System, and select Other 3.X Linux(64-bit) from the drop down box and click Next
Step 8: Select the appropriate virtual network you want the VM to be on and click Next
Step 9: Enter the disk size and select the provisioning method and click Next
Step 10: Review the settings that you just made and check the box for Edit the virtual machine settings before and click Continue
Step 11: Click on the Options Tab, Select Boot Options and Check the box for Force BIOS Setup and click Finish.
Step 12: Open the Console once the VM is deployed, Mount the Photon OS ISO and in the Boot menu select CD-ROM as the Boot device. Press F10 to Save and Exit.
Step 13: Press Enter on the First screen.
Image
Step 14: Accept the EULA and then select the disk, press enter.
Step 15: For this installation, I selected the Photon Full version. Press Enter. Enter the Hostname and press Enter.
Step 16: Enter the password twice and let the installation begin.
Image
Step 17: Once the installation is complete, unmount the ISO.
Step 18: Login using the credentials that you set during the installation process.
Step 19: Set a static IP address or let the DHCP server in your environment assign it an IP.
Step 20: Execute the following commands to get Docker running:
          a. systemctl start docker
          b. systemctl enable docker
To test your Docker installation, you can execute the following command:
docker run -d -p 80:80 nginx
And open your browser to http://<photon_VM_ip&gt;:80
nginx
Ref Links:
Thanks for taking the time to read!! Let me know if there are any particular technologies that you would like to see in the coming blogposts.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s