Importing Version 3.1 VMs into a 5.1 Installation

Discussion in 'Proxmox VE: Installation and configuration' started by Drax, Jun 12, 2018.

  1. Drax

    Drax Member

    Joined:
    Jul 21, 2012
    Messages:
    100
    Likes Received:
    2
    Can I directly import my old VMs into my new Proxmox 5.1 nodes? This is a brand new server. I am hoping that I can just bring them all back in via a restore. Please advise.
     
  2. sahostking

    sahostking Member

    Joined:
    Oct 6, 2015
    Messages:
    299
    Likes Received:
    6
    I am busy doing it at this very moment. I see no issues in my migration. I'm using proxmox 3.4.16 for one server and restoring openvz to LXC and restoring the KVM ones into proxmox 5.2.1 fine. No issues atm.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Drax

    Drax Member

    Joined:
    Jul 21, 2012
    Messages:
    100
    Likes Received:
    2
    Not sure I understand the references to restoring openvx to LXC then restoring KVM ones into 5.2.1 Please explain when you get a moment the process steps so a neophyte can understand how to do it.
     
  4. wolfgang

    wolfgang Proxmox Staff Member
    Staff Member

    Joined:
    Oct 1, 2014
    Messages:
    3,870
    Likes Received:
    230
    Hi Drax,

    the migration of KVM guest is no problem just make a backup.
    Make it available on the new node whith an NFS or copy it with scp.
    On the new node, you just restore the backup.

    If your guest is an OpenVZ than the way is the same,
    but it depends on the OpenVZ container if the migration works.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Drax

    Drax Member

    Joined:
    Jul 21, 2012
    Messages:
    100
    Likes Received:
    2
    I don't understand the term KVM guest and OpenVZ. I have Proxmox 3.1.21 on 2 nodes. I have various Linux and windows VMs created under proxmox. I have a backup for the VMs. I have no idea if they are openVZ containers or not. How would I find that out? I checked out a few VMs, they all indicate KVM hardware virtualization, but I don't see any mention of open VZ. Where would I look for that?
     
  6. wolfgang

    wolfgang Proxmox Staff Member
    Staff Member

    Joined:
    Oct 1, 2014
    Messages:
    3,870
    Likes Received:
    230
    KVM: https://en.wikipedia.org/wiki/Kernel-based_Virtual_Machine
    OpenVZ: https://en.wikipedia.org/wiki/OpenVZ

    Then they will be KVM machines.
    Also, OpenVZ container always uses the same kernel as the host.

    The best and easiest test is run on the shell this two commands

    Show all KVM guests:
    Code:
    qm list[\Code]
    
    Show all OpenVZ guests:
    [Code]vzlist list[\Code]
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Drax

    Drax Member

    Joined:
    Jul 21, 2012
    Messages:
    100
    Likes Received:
    2
    first code produced a list of the VMs Second code vzlist list produced the following message CT ID list is invalid. Please advise.
     
    #7 Drax, Jun 14, 2018
    Last edited: Jun 14, 2018
  8. tom

    tom Proxmox Staff Member
    Staff Member

    Joined:
    Aug 29, 2006
    Messages:
    13,033
    Likes Received:
    333
    > vzlist -a
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Drax

    Drax Member

    Joined:
    Jul 21, 2012
    Messages:
    100
    Likes Received:
    2
    It reports container not found.
     
  10. sahostking

    sahostking Member

    Joined:
    Oct 6, 2015
    Messages:
    299
    Likes Received:
    6
    Maybe you just have VMs.

    Note:

    CT = OpenVZ
    VM = KVM

    If you are administering a server you need to get to know these abbreviations :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. Drax

    Drax Member

    Joined:
    Jul 21, 2012
    Messages:
    100
    Likes Received:
    2
    So what impact does container not found have on my original question? Does the absence of them mean I cannot import them directly into 5.2?
     
  12. tom

    tom Proxmox Staff Member
    Staff Member

    Joined:
    Aug 29, 2006
    Messages:
    13,033
    Likes Received:
    333
    the command "vzlist -a" shows all your OpenVZ container on Proxmox VE 3.x.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. Drax

    Drax Member

    Joined:
    Jul 21, 2012
    Messages:
    100
    Likes Received:
    2
    I have already ran that command. As stated above It tells me container not found. ie there are no OpenVZ containers. So they must just be KVM only. If so, Can I directly import them from a backup into 5.2? Please advise.
     
  14. tom

    tom Proxmox Staff Member
    Staff Member

    Joined:
    Aug 29, 2006
    Messages:
    13,033
    Likes Received:
    333
    See https://pve.proxmox.com/wiki/Upgrade_from_3.x_to_4.0
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. Drax

    Drax Member

    Joined:
    Jul 21, 2012
    Messages:
    100
    Likes Received:
    2
    So there is no other way? This is so arduous a process. I was hoping for a better way.
     
  16. Drax

    Drax Member

    Joined:
    Jul 21, 2012
    Messages:
    100
    Likes Received:
    2
    Having a discussion with another dev.
    He says that KVMs do not need to be updated or converted. That I can basically take the existing server. Back up all the KVM VMs. Then just update the nodes ONLY and when the nodes are up to 5.2, then simply restore the VMs to the nodes. Correct? I am hoping that this is a yes or no question.
     
  17. Drax

    Drax Member

    Joined:
    Jul 21, 2012
    Messages:
    100
    Likes Received:
    2
    Can I update an new install to 5.2 and then simply copybackups of 3.1 KVMs to the node and restore them?
     
    #17 Drax, Jul 2, 2018
    Last edited: Jul 2, 2018
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice