Virtuozzo old template to new

Discussion in 'General Discussion' started by HjalmarM, Jan 17, 2014.

  1. HjalmarM

    HjalmarM Bit Poster

    Messages:
    3
    Hello,

    I'm running CentOS 5.2x64 with CPanel. I know that you can sync the template and data to other server, and it works good on the new server.
    Is there any way to sync all data, but on a new template, example CentOS 6.5x64? Is this possible?
     
  2. KonstantinB

    KonstantinB Odin Team

    Messages:
    68
    Hello,

    You have to perform these tasks separately - first upgrade OS template in CT:

    Code:
    # vzctl upgrade $CTID
    And then migrate container to the destination server.
    Please backup container before upgrade - just in case something goes wrong.
    And please consult with CPanel manual first - if it allows such distro upgrade...

    Best regards,
     
  3. KristianM

    KristianM Product Expert

    Messages:
    469
    Hi,

    from my knowlege it is not possible to do a dist upgrade from CentOS 5 to CentOS 6.
    At least it is not officially supported. Redhat and CentOS are planning this feature for Upgrade between CentOS 6 and 7 (and RHEL 6 and 7).

    So you should really make sure you have a backup.

    Regards,
    Kristian
     
  4. HjalmarM

    HjalmarM Bit Poster

    Messages:
    3
    Thank you for your reply.
    But, how can we upgrade the template then? We create a new template on the node, sync all data + mysql and start it? (most easy way)?

    Upgrade CentOS 5.2 to 5.10 is possible?
     
  5. KonstantinB

    KonstantinB Odin Team

    Messages:
    68
    Hi,

    Please provide output from
    Code:
    vzpkg list $CTID
    for your container.

    Templates published by Parallels do not distinguish 5.2 from 5.10.
    Depending on hoster, custom templates could be provided.

    Code:
    vzpkg update $CTID
    will update CenOS in container to the latest unless it was already performed by cPanel inside.
    AFAIK cPanel does massive updates in container on its own and not only RPM based.

    Best regards,
     
  6. HjalmarM

    HjalmarM Bit Poster

    Messages:
    3
    Hello KonstantinB:

    centos-5-x86_64 2008-06-03 19:32:14

    No, that's not happend yet;

    cat /etc/redhat-release
    CentOS release 5.2 (Final)
     
  7. KonstantinB

    KonstantinB Odin Team

    Messages:
    68
    Hello,

    Then
    Code:
    vzpkg update $CTID
    should do the job for you unless vztt.conf on the node was reconfigured from standard settings.

    Code:
    vzpkg update
    is not so destructive as
    Code:
    vzpkg upgrade
    could be, but having recent backup is a good idea anyway.

    Best regards,
     

Share This Page