My Oracle Support Banner

OCI - How To Display Correct Hostname When Launching New OCI Instance Using Custom Image. (Doc ID 2654138.1)

Last updated on JUNE 15, 2023

Applies to:

Oracle Cloud Infrastructure - Version N/A and later
Information in this document applies to any platform.

Goal

This document intents to show one possible solution to automatically configure the HOSTNAME for a  custom image imported into Oracle Cloud Infrastructure.

When a custom image is imported into  OCI, the hostname for the machine is display as follows.
  

  

As shown above, this includes  the  Static hostname and the Transient hostname, this is because when an instance is created using a custom image this does not automatically sets up  the given hostname on the OCI console when creating the instance.

This can be changed manually but this requires to change the hostname using hostname or hostnamectl commands on the instance and also to modify some of the files like  /etc/oci-hostname.conf to preserve the configuration, this is going to be required on every single instance created from the custom image, this will become a tedious work.

 

 

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.