Skip to main content
cPanel Technical Support has been heavily impacted by hurricane Beryl and our ability to respond to tickets has been hindered as a result. We appreciate your understanding and patience as we address these delays.

CentOS 6 vm to CentOS 7 vm - advice on migration with hostname/ips

Comments

10 comments

  • cPanelLauren
    Should I leave the hostname and ips as they are in WHM until everything is transferred/configured then change the hostname in WHM as a final step after changing them for the vm? If I do that would the ips automatically change in WHM? Or do I go ahead and change the hostname to what it will be later, server.example.com, before doing all this and then when I am finally done the change in my vm will make it 'active'?

    Yes, until you're sure things are functioning properly on the new server. The documentation here: How to Move All cPanel Accounts from One Server to Another | cPanel & WHM Documentation goes over transfers from start to finish.
    Do I still set ns1.example.com and ns2.example.com as the nameservers in the new vm?

    You can set them but you wouldn't be able to change the A records for those until you're certain everything is functioning and you're ready to move DNS to the new server.
    0
  • morrow95
    Yes, until you're sure things are functioning properly on the new server. The documentation here:
    0
  • morrow95
    • You must select a main IP address that differs from your old server.
    • Select the same hostname, shared IP address, and nameservers that your old server uses. The system configures the DNS zone files of restored accounts with those settings. You can do this in WHM"s How to Move All cPanel Accounts from One Server to Another | cPanel & WHM Documentation )... "The IPv4 address (only one address) to use to set up shared IPv4 virtual hosts. We strongly recommend that you only specify an IPv4 address that you have associated with this server. " This should be set to the local, not public, ip of the old server? I am in NAT mode and it doesn't specify here, but I assume local? Nameservers should be set to the old nameservers? Home " Networking Setup " Change Hostname should be set to the old hostname? Then I go ahead and start transferring accounts and follow along with the rest of the linked page. Currently at "Home " IP Functions " Show or Delete Current IP Addresses" I am showing the new local/public ip for "Main/shared IP for: nobody and root". At "Home " IP Functions " Show IP Address Usage" I show the same new public ip used for the new hostname.
    0
  • cPanelLauren
    Hello, The IP in Basic WebHost Manager Setup should be the public IP For the rest of those it should be fine but keep in mind the NS and the hostname won't resolve until you point the A records (don't do that until you're ready, it's just a reminder of something to be aware of)
    0
  • morrow95
    The IP in Basic WebHost Manager Setup should be the public IP

    Even with a NAT setup? It seems pretty much everywhere else in WHM you enter the local ip, but then again those have a little warning box about NAT mode detected. Our vm just has local ips then it is in our edge firewall that we have dnat/snat rules in place to route local/public as needed. I looked at our old WHM setup and it does have the public ip entered for Basic WebHost Manager Setup, but I also remember we had some issues early on with it not resolving ips correctly. That is why I want to be sure on this one before I go any further. Again, thanks for the response Lauren!
    0
  • cPanelLauren
    I confirmed on our NAT routed VMs before I let you know.
    0
  • morrow95
    We got it taken care of although did run into a few issues here and there with ips and hostnames mix matched. Took a little longer than expected, but is good to go now. Thank you!
    0
  • cPanelLauren
    Glad to hear you got it all worked out!
    0
  • chloedecker2013
    I am updating from CentOS 6 to CentOS 7. To do that, I created a second vm, which has a 'temporary' hostname and different ips than the original, as well as a second whm/cpanel license. Both vms are in the same vapp/cloud just use a differnt public ip subset. Here is what I am looking at : current vm : server.example.com 100.0.0.3 > 192.168.10.3 (main and ns1.example.com) 100.0.0.4 > 192.168.10.4 (ns2.example.com) new vm: server2.example.com 50.0.0.5 > 192.168.10.5 (main) 50.0.0.6 > 192.168.10.7 I know that whenever I am ready to switch the two I can swap the hostname and ips in my cloud quickly and easily. What I would like to know is how I should go about a few thing in WHM right now before I do that swap. - Should I leave the hostname and ips as they are in WHM until everything is transferred/configured then change the hostname in WHM as a final step after changing them for the vm? If I do that would the ips automatically change in WHM? Or do I go ahead and change the hostname to what it will be later, server.example.com, before doing all this and then when I am finally done the change in my vm will make it 'active'? - Do I still set ns1.example.com and ns2.example.com as the nameservers in the new vm? I'm probably not explaining myself well here, but my goal is to configure the second WHM/Cpanel and migrate all the accounts over first and then when I am finally ready switch the hostname/ips in my cloud
    0
  • Hazel Daniel
    Yes, until you're sure things are functioning properly on the new server.

    I am updating from CentOS 6 to CentOS 7. To do that, I created a second vm, which has a 'temporary' hostname and different ips than the original, as well as a second whm/cpanel license. Both vms are in the same vapp/cloud just use a differnt public ip subset. Here is what I am looking at : current vm : server.example.com 100.0.0.3 > 192.168.10.3 (main and ns1.example.com) 100.0.0.4 > 192.168.10.4 (ns2.example.com) new vm: server2.example.com 50.0.0.5 > 192.168.10.5 (main) 50.0.0.6 > 192.168.10.7 I know that whenever I am ready to switch the two I can swap the hostname and ips in my cloud quickly and easily. What I would like to know is how I should go about a few thing in WHM right now before I do that swap. - Should I leave the hostname and ips as they are in WHM until everything is transferred/configured then change the hostname in WHM as a final step after changing them for the vm? If I do that would the ips automatically change in WHM? Or do I go ahead and change the hostname to what it will be later, server.example.com, before doing all this and then when I am finally done the change in my vm will make it 'active'? - Do I still set ns1.example.com and ns2.example.com as the nameservers in the new vm? I'm probably not explaining myself well here, but my goal is to configure the second WHM/Cpanel and migrate all the accounts over first and then when I am finally ready switch the hostname/ips in my cloud loud
    0

Please sign in to leave a comment.