Existing KVM VM to Proxmox VE

9,463

Proxmox storage looks in places defined in /etc/pve/storage.cfg. Usually, not always, this is a directory mounted on the host. For example:

 dir: default
         path /mnt/pve/default

Creating a disk by default labels it by VM ID and by disk ID. So you might have /mnt/pve/default/images/100/vm-100-disk-1.qcow2

I tend to copy over this file with the image I wish to restore, with a cp command on the host. If the format of the disk image is different, remember to convert it. qemu-img convert is great for this purpose.

Proxmox API gives you access to get and set the storage configuration of a VM. Allows for automation or use of different file names.

Also an option is to rebuild. Create new VMs on new disks, install the OS and applications, and restore or recreate data in the guest. With a good business continuity plan, this should be possible, even if it is slower than restoring entire VM images.

Share:
9,463

Related videos on Youtube

chiranjeevigk
Author by

chiranjeevigk

Doesn't like compare boolean to true. And to false either.

Updated on September 18, 2022

Comments

  • chiranjeevigk
    chiranjeevigk over 1 year

    I have VMs which are running on KVM (Installed on SUSE) i need to move these VMs to proxmox VE which is different physical server.

    How to move these?Migration of servers to Proxmox VE says

    Just create an new VM on Proxmox VE and add the existing disk image to this new VM, set the boot order and start.

    But i am not getting how to do that.

    where i have to place the .img files?

    Note: Proxmox version 4.4-1