# OVA server change IP

**URL:** <https://forums.percona.com/t/ova-server-change-ip/6192>\
**Category:** PMM 1.x\
**Created:** [February 13, 2018, 7:21am UTC](https://forums.percona.com/t/ova-server-change-ip/6192 "2018-02-13T07:21:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpage](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@jpage](https://forums.percona.com/u/jpage)\
**Post date:** [February 13, 2018, 7:21am UTC](https://forums.percona.com/t/ova-server-change-ip/6192/1 "2018-02-13T07:21:52Z")

</div>

Hi, I’ve installed pmm-server from the OVA file.

After the deployment operation, I’ve changed the hostname and the IP in the file /etc/sysconfig/network-scripts/ifcfg-eth0 but those settings are lost after rebooting.

I’ve been researching a bit and it seems that those settings are controlled by [cloud-init](https://cloudinit.readthedocs.io/en/latest/).

Could you provide a guidance to change the IP server address using cloud-init, please?

In my opinion, being able to change the IP address should be a basic operation available in a production solution like PMM.

Kind regards,  
jpage.

---

<div class="post-metadata">

**Author:** ![lorraine.pocklington](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lorraine.pocklington/32/37_2.png) [@lorraine.pocklington](https://forums.percona.com/u/lorraine.pocklington)\
**Post date:** [February 20, 2018, 7:16am UTC](https://forums.percona.com/t/ova-server-change-ip/6192/2 "2018-02-20T07:16:33Z")

</div>

Hello jpage  
Acknowledging your request and to say that we are looking at this currently.  
Hope to have something practical for you soon.

---

<div class="post-metadata">

**Author:** ![laudares](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/laudares/32/10_2.png) [@laudares](https://forums.percona.com/u/laudares)\
**Post date:** [February 20, 2018, 7:25am UTC](https://forums.percona.com/t/ova-server-change-ip/6192/3 "2018-02-20T07:25:57Z")

</div>

Hi jpage,

this is currently being processed by the PMM development team but we have a workaround you might wanna give a try for changing OVA PMM to static. Before changing IP of PMM please take a snapshot of current instance. Moreover, please test it before on a preprod instance.

1. Login via console to PMM instance with the following credentials:

- login: root
- password: percona

1. You will be asked for changing root’s password.

2. Add the following to the bottom of /etc/cloud/cloud.cfg file (vi edit can be used):

```auto
network:
config: disabled

```

Note, that cloud.cfg is YAML file, so space matters.

1. Execute the below command to obtain name of NM’s connection:

```auto
# nmcli dev
DEVICE TYPE STATE CONNECTION
eth0 ethernet connected [B]System eth0[/B]

```

1. Execute the following NetworkManager’s commands to change bootproto from dhcp to static.

```auto
# IP Address in CIDR notation
nmcli con mod "System eth0" ipv4.addresses 192.168.1.250/24
# Default gateway
nmcli con mod "System eth0" ipv4.gateway 192.168.1.1
# DNS
nmcli con mod "System eth0" ipv4.dns "8.8.8.8 8.8.4.4"
nmcli con mod "System eth0" ipv4.method manual
nmcli con mod "System eth0" connection.autoconnect yes

```

1. Reboot your PMM instance.

Your IP instance will changed to static. Again, please note that this is a workaround and the above might not work in future releases.

---

<div class="post-metadata">

**Author:** ![jpage](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@jpage](https://forums.percona.com/u/jpage)\
**Post date:** [March 5, 2018, 10:03am UTC](https://forums.percona.com/t/ova-server-change-ip/6192/4 "2018-03-05T10:03:25Z")

</div>

Thank you so much for your responses!

Looking forward for an official solution, in the meantime I’ll try the workaround that laudares suggestted.

KR,  
jpage

---

<div class="post-metadata">

**Author:** ![Registering\_Sucks](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@Registering\_Sucks](https://forums.percona.com/u/Registering_Sucks)\
**Post date:** [April 19, 2018, 10:01am UTC](https://forums.percona.com/t/ova-server-change-ip/6192/5 "2018-04-19T10:01:14Z")

</div>

Easier solution is yum erase cloud-init, then you can setup network as normal and it survives reboot. This solution does not depend on a config option that may disappear on update.

---

<div class="post-metadata">

**Author:** ![PrawinNed](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@PrawinNed](https://forums.percona.com/u/PrawinNed)\
**Post date:** [September 30, 2019, 10:55pm UTC](https://forums.percona.com/t/ova-server-change-ip/6192/6 "2019-09-30T22:55:24Z")

</div>

Do we still have to follow the solution provided by [laudares](https://www.percona.com/forums/member/9949-laudares) for PMM 2.0.0 or is there a new solution for it?
