Buy Percona ServicesBuy Now!

OVA server change IP

  • Filter
  • Time
  • Show
Clear All
new posts

  • OVA server change IP

    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.

    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,
    Last edited by jpage; 02-14-2018, 03:01 AM.

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


    • #3
      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

      2. You will be asked for changing root's password.

      3. Add the following to the bottom of /etc/cloud/cloud.cfg file (vi edit can be used):
         config: disabled
      Note, that cloud.cfg is YAML file, so space matters.

      3. Execute the below command to obtain name of NM's connection:
      # nmcli dev
      eth0 ethernet connected System eth0
      4. Execute the following NetworkManager's commands to change bootproto from dhcp to static.
      # IP Address in CIDR notation
      nmcli con mod "System eth0" ipv4.addresses
      # Default gateway
      nmcli con mod "System eth0" ipv4.gateway
      # DNS
      nmcli con mod "System eth0" ipv4.dns ""
      nmcli con mod "System eth0" ipv4.method manual
      nmcli con mod "System eth0" connection.autoconnect yes
      5. 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.
      Last edited by laudares; 02-20-2018, 08:18 AM.
      Is this an emergency? Get immediate assistance from Percona Support 24/7. Click here.


      • #4
        Thank you so much for your responses!

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



        • #5
          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.