How To Manually Set The IP Address On Photon OS From Command Line

Blog Date: December 8th 2022.

Out in the field, I have had a Photon OS appliance like Site Recovery Manager, and vRealize Lifecycle Manager deploy without the proper networking configuration. For me, these appliances have been deployed to a network where the Gateway and DNS were reachable, but the appliance will sometimes complete its first boot without successfully configuring the network. Sometimes you can get out of this situation by simply redeploying the appliance. There are those other times where the appliance just refuses to configure the networking, so a manual approach is required.

DISCLAIMER: I have only done this process on VMware Photon OS based appliances that did not successfully complete their first boot. Your mileage may vary attempting this on an appliance that has successfully deployed.

As always – Take snapshots before proceeding.

Commands To Update Photon OS Network Configuration

Using the VMware console, we first need to check and see what interface is being used with this command:

# /opt/vmware/share/vami/vami_interfaces

Next we need to set the interface IP, NETMASK, and GATEWAY with this command:

# /opt/vmware/share/vami/vami_set_network <INTERFACE> STATICV4 <IP_ADDRESS> <NETMASK> <GATEWAY>

To set the domain suffix and DNS, use this command:

# /opt/vmware/share/vami/vami_set_dns -d <domain suffix> <DNS1> <DNS2>

Assuming no errors, reboot the appliance.

In the event those commands do not work because not all Photon Operating Systems are 100% alike, you can also try this method below:


Update Photon OS Network Configuration File:


Let’s first list the network configuration files. To do this, run the following command:

# ls /etc/systemd/network

In this example, we see one configuration file “10-eth0.network”. We will use the next command to edit the file using vi and make the appropriate changes:

# vi /etc/systemd/network/10-eth0.network

Once you are done making the necessary changes, do a “wq!” to save the changes and quit the editor.

Reboot the appliance for the changes to take affect.

vSphere 7 – Announcing General Availability of…

vSphere 7 – Announcing General Availability of the New Generation of vSphere

vSphere 7 – Announcing General Availability of…

vSphere 7 The new generation of vSphere for existing enterprise apps. Available in two editions. VMware vSphere 7, the new generation of vSphere, is now generally available. This major new release brings a massive improvement in the work experience of vSphere administrators, folks who are responsible for the security, performance, and resiliency of the infrastructure The post vSphere 7 – Announcing General Availability of the New Generation of vSphere appeared first on VMware vSphere Blog.


VMware Social Media Advocacy

How to Get vSphere with Kubernetes

How to Get vSphere with Kubernetes

How to Get vSphere with Kubernetes

We’re very excited to announce the general availability of vSphere 7 today! It caps off a massive across-the-board effort by the many engineering teams within VMware. We have built a ton of new capabilities into vSphere 7, including drastically improved lifecycle management, many new security features, and broader application focus and support. But of course, The post How to Get vSphere with Kubernetes appeared first on VMware vSphere Blog.


VMware Social Media Advocacy

vSphere 7 – Announcing General Availability of…

vSphere 7 – Announcing General Availability of the New Generation of vSphere

vSphere 7 – Announcing General Availability of…

vSphere 7 The new generation of vSphere for existing enterprise apps. Available in two editions. VMware vSphere 7, the new generation of vSphere, is now generally available. This major new release brings a massive improvement in the work experience of vSphere administrators, folks who are responsible for the security, performance, and resiliency of the infrastructure The post vSphere 7 – Announcing General Availability of the New Generation of vSphere appeared first on VMware vSphere Blog.


VMware Social Media Advocacy

How to Get vSphere with Kubernetes

How to Get vSphere with Kubernetes

How to Get vSphere with Kubernetes

We’re very excited to announce the general availability of vSphere 7 today! It caps off a massive across-the-board effort by the many engineering teams within VMware. We have built a ton of new capabilities into vSphere 7, including drastically improved lifecycle management, many new security features, and broader application focus and support. But of course, The post How to Get vSphere with Kubernetes appeared first on VMware vSphere Blog.


VMware Social Media Advocacy

vSphere 7 – Announcing General Availability of…

vSphere 7 – Announcing General Availability of the New Generation of vSphere

vSphere 7 – Announcing General Availability of…

vSphere 7 The new generation of vSphere for existing enterprise apps. Available in two editions. VMware vSphere 7, the new generation of vSphere, is now generally available. This major new release brings a massive improvement in the work experience of vSphere administrators, folks who are responsible for the security, performance, and resiliency of the infrastructure The post vSphere 7 – Announcing General Availability of the New Generation of vSphere appeared first on VMware vSphere Blog.


VMware Social Media Advocacy

What’s New in vRealize Operations 8.1

What’s New in vRealize Operations 8.1

Today we are very excited to announce the upcoming release of VMware vRealize Operations 8.1, which is part of today’s announcement about VMware Cloud Foundation 4.0 and VMware vSphere 7.0 with Kubernetes, to support modernizing infrastructure and applications. vRealize Operations 8.1 will deliver new and enhanced capabilities for self-driving operations to help customers optimize, plan The post What’s New in vRealize Operations 8.1 appeared first on VMware Cloud Management.


VMware Social Media Advocacy

Introducing vSphere 7: Essential Services for…

Introducing vSphere 7: Essential Services for…

(By – Krish Prasad, General Manager vSphere & SVP Cloud Platform Business Unit, VMware) I am excited to share that today VMware introduced the most comprehensive software stack for modern applications – the VMware Tanzu portfolio, VMware Cloud Foundation 4 and vSphere 7. These offerings provide a new way for organizations to think about The post Introducing vSphere 7: Essential Services for the Modern Hybrid Cloud appeared first on VMware vSphere Blog.


VMware Social Media Advocacy

What’s New in vRealize Operations 8.1

What’s New in vRealize Operations 8.1

Today we are very excited to announce the upcoming release of VMware vRealize Operations 8.1, which is part of today’s announcement about VMware Cloud Foundation 4.0 and VMware vSphere 7.0 with Kubernetes, to support modernizing infrastructure and applications. vRealize Operations 8.1 will deliver new and enhanced capabilities for self-driving operations to help customers optimize, plan The post What’s New in vRealize Operations 8.1 appeared first on VMware Cloud Management.


VMware Social Media Advocacy