• Call Toll Free: 1-855-909-3300

Installation of VMware’s Photon OS : Tutorial

VMware’s Photon Platform is an extremely elasticized design relied on microservices and containerization which was launched in 2015.

The main element of Photon Platform is Photon OS, which offers the underlying infrastructure for Photon Platform microservices.

Photon OS is a kind of slimmed-down Linux distribution, that provides operating system support to the applications which rest on it.

It gets coupled to integrate with Photon Controller, Photon Platform’s distributed multi-tenant control plane. The pared-down Photon OS is specially designed to run Docker, and, as such, is completely Docker-compliant.

Host your Accounting Software in Secured Cloud

With Photon OS, high availability and clustering are offloaded to developers who might use Photon Controller and other technologies, like Mezos, Kubernetes and Swarm, to control and manage micro instance availability.

In this blog, we are going to learn how to configure, set up and run basic Docker infrastructure via Photon. Docker images provide virtualized applications without the much overhead of underlying operating systems.

You are permitted to even join together many Docker instances to create a more tailored customized application.

VMware expects to make Photon the go-to platform for extensive, massive scalability and manageability by providing Photon OS for free.

It must also be observed that several micro applications might live on one Photon host. To configure and install Photon OS on Fusion or Workstation, configure and install it as you would any other Linux OS, providing it the appropriate amounts of RAM and CPU.

In the mentioned example, I am going to use 2 GB RAM and 1 CPU for my Docker instance. To install Photon, you should select the Linux subtype as “Other Linux 3 x 64 bit host.”

Before commencing the installation process, set and allot a host name and password. When installation type is prompted, select full installation. The installation process must be relatively straightforward, as Photon OS is developed and designed for rapid deployment. In production, like a deployment can be completely automated to provide purely true elastic scalability.

When the installation process starts, enclose the Photon ISO image to the VM you are making and boot it, then select “Install” when prompted.

You can also select “Enter” for most of the prompts that follow. In context to interact more easily with Photon, turn on Secure Shell (SSH) for root. Then, Use the vi text editor to edit “/etc/ssh/sshd_config” and delete the number before “PermitRootLogin,” now restart the service by giving the following command:

Attractive Plans Available for Application Hosting

systemctl sshd restart.

At this point, you must be able to login using SSH terminal software, like PuTTY. In case you aren’t sure of the IP address, just enter “ipconfig” into the VM and it will be provided the server’s IP address. Photon OS opt for Dynamic Host Configuration Protocol by default to track its IP address.

For faster deployment a Docker instance, log into the Photon host utilizing SSH with the root account and the password you might set during installation. Docker runs as a service, therefore you need to begin it on the Photon host. Perform this by using the command:

systemctl start docker

In case you are expect statistics or ensuring that Docker is up and running, seek help of the docker info command. This will give you with fundamental information, like Docker’’s build version and configuration options.

During building an image in Docker, users might create their own image or pull it —  translation: download it — from the presently available repositories.

Every Docker command begins with “docker,” followed by an action word, like pull, run, stop and so on. For instance, to install a simplistic Ubuntu image, utilize the “docker pull ubuntu” command.

This is going to download a very rudimentary Ubuntu image. Once it is local, implementing several more instances is very fast and easy.

Begin the images via using the Docker command:

docker run –i –t ubuntu /bin/bash.

Command for implementing multiple Ubuntu image instances

Figure 1: Command for implementing multiple Ubuntu image instances

Executing the command shown in Figure 1 will result in what is depicted in Figure 2. You are actively logged onto the server with a whole command prompt.

The moment you log out using the exit or logout command, the server is going to stop. Kindly note that, as with all Linux services, commands are duly case sensitive.

By default, automatically none of these images are preinstalled. In case you run the “docker images” command, you are going to see that there is now an entry for the Ubuntu image. Observe how small the Ubuntu image size is.

At this given point, we still require to set up the network configuration. As we have several services and only one IP address, we should create some rules and guidelines for forwarding among guests and host applications.

For this given example, we are going to use the NGINX Web server. Drag down the Docker image from the VMware repository with the following given command:

docker pull nginx

In this example, in case you were to try to execute a Web server, it should never connect. In context to fix this issue, you should provide some IP mapping. Execute the NGINX installation and offer the mapping in one go, giving this command:

docker run -d -p 80:80 nginx

Execute an NGINX installation command

Figure 2: Execute an NGINX installation command

The command displayed in Figure 2 provides more choices than the Ubuntu command. The “–d” option tells the process to run and execute in the background.

The “80:80” option depicts that incoming port 80 must be forwarded to port 80 on the NGINX instance. Giving the command “docker ps” is going to list all the active running machines.

The examples we have mentioned only scratch the surface of the speed and functionality given by Photon OS. Dockerized instances are user-friendly for developers to download the latest image, work on it and then upload it with the updated changes.

This assures that all developers are working using the same images and reduces the potential for localized configuration errors.

Leave a Reply

Techarex NetWorks Products