Accelerating AI adoption for global enterprises

DXHero combines cutting-edge AI technologies with a world-class engineering team to accelerate enterprise AI transformation. From strategy and consulting to implementation, enablement, and ongoing support, we deliver end-to-end services that help organizations adopt advanced tools quickly and achieve scalable, reliable results.

「Nico Chen」的個人頭像

By Vishal Bulbule.Jan 12, 2023

Article 3 things to remember before renaming GCP VM 1

Introduction

Google has recently introduced new feature to rename VM from cloud console. This feature is still in preview mode and we will wait from google to hear more update from this features general availability.

In this article we will focus on some points which we need to remember before renaming VM.

  1. Boot disk name
  2. Hostname(Default)
  3. Hostname(custom)

Rename VM Feature

To rename VM Instance from Cloud console , VM instance should be in stop state.

2
Boot Disk

Renaming VM will only rename your VM instance name and not boot disk name. Boot disk name will remain same as before. So most of the cases in our confuration , especially in IaC (Terraform) we specify boot disk name as VM name that has to be taken care and analyse impact to avoid any further issues .before renaming VM.

Before rename — Boot disk name is same as VM instance name

Article 3 things to remember before renaming GCP VM 3

After restart ( Only VM name changed but boot disk name is unchanged)

Article 3 things to remember before renaming GCP VM 4
Hostname — Default

Before restart — Default hostname is same as VM instance name.

Article 3 things to remember before renaming GCP VM 5

After rename — Default hostname is same as VM Instance name.

Article 3 things to remember before renaming GCP VM 6
Custom-hostname

Before rename — custom hostname and VM name we set same with domain name appended.

Article 3 things to remember before renaming GCP VM 7

After rename –

After rename only VM name changed and custom hostname remains unchanged. if you are using custom hostname or FQDN in connections, configuration then either you need to make sure its unchanged or change custom hostname in sync with VM instance name manually.

Article 3 things to remember before renaming GCP VM 8

Please refer below video for demo


The original article published on Medium.

「Nico Chen」的個人頭像

More Articles & Posts