HPE Morpheus VM Essentials
1837920 Members
5394 Online
110124 Solutions
New Discussion

Re: Changing the Manager's IP Address

 
SOLVED
Go to solution
dya
Regular Advisor

Changing the Manager's IP Address

If you need to change the IP address or DNS server after deploying the Manager, what should you do?

For the Manager:
* cloud-init.service is enabled
* /etc/cloud/cloud-init.disabled does not exist

I asked this question because I'm unsure whether it's acceptable to disable cloud-init on the Manager.

4 REPLIES 4
PeterTzvetanov
HPE Pro

Re: Changing the Manager's IP Address

Hello dya,

I am not sure why the cloud init is coming here in place. If you need to change the IP of the VME, that depends on how the VME is installed. If the VME is installed via FQDN, nothing is to be changed as the IP direction is coming from the DNS servers. If the VME is been deployed via FQDN, you will have to change the IP inside of the VME by running "virsh console vme_name" on the ubuntu host where the VME is running on and eventually if the VME is been entered in the /etc/hosts files, you need to modify there too. Also you will have to modify the /etc/morpheus/morpheus.rb file as the IP will reflect there too if IP based install and then you need to run a morpheus-ctl reconfigure.

With regards



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
dya
Regular Advisor

Re: Changing the Manager's IP Address

Thank you for your reply.

The section I wish to change is the one highlighted in the image below.
IP.png

To change the IP address after installation on Ubuntu, proceed as follows:
Edit 55-base.yaml to change the IP address.

1. Create /etc/cloud/cloud-init.disabled
2. mv -i /etc/netplan/50-cloud-init.yaml /etc/netplan/55-base.yaml
3. vi 55-base.yaml

Since cloud-init is disabled for hosts installed via the HVM OS installer, I'd appreciate confirmation if this approach is acceptable for HVM.
Also, if another method is recommended, please let me know.

PeterTzvetanov
HPE Pro
Solution

Re: Changing the Manager's IP Address

Hi dya,

that setting is set in the /etc/netplan/50-cloud-init.yaml and you need only to change it and run an netplan apply.

With regards



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
dya
Regular Advisor

Re: Changing the Manager's IP Address

Thank you for your prompt response.

I understood that /etc/netplan/50-cloud-init.yaml is a file generated by cloud-init, so I assumed manual editing was not recommended.

While I understood that modifying that file would change the IP address, I was concerned whether this was acceptable for an HVM.

Since it seems to be fine, I will directly edit /etc/netplan/50-cloud-init.yaml.