# Migration of VM from one opennebula environment to another opennebula

**URL:** <https://forum.opennebula.io/t/migration-of-vm-from-one-opennebula-environment-to-another-opennebula/6211>\
**Category:** Product Support\
**Created:** [August 1, 2018, 5:17pm UTC](https://forum.opennebula.io/t/migration-of-vm-from-one-opennebula-environment-to-another-opennebula/6211 "2018-08-01T17:17:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_Kumar](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/amit_kumar/32/7867_2.png) [@Amit\_Kumar](https://forum.opennebula.io/u/Amit_Kumar)\
**Post date:** [August 1, 2018, 5:17pm UTC](https://forum.opennebula.io/t/migration-of-vm-from-one-opennebula-environment-to-another-opennebula/6211/1 "2018-08-01T17:17:34Z")

</div>

I am trying to migrate/move all VMs from old opennebula environment ( 5.4) to a new build Opennebula (5.6) environment

* * *

OpenNebula 5.4 & 5.6 both are running over separate hardware with Centos7… SQL Lite database

I am having image and deployment files over shared storage for VMs and image files

**Current results:**  
I had trying to add VM with deployment file using virsh through define and start options and it will show running state.  
Then if I look opennebula console that VM reflects in Zombie state and cannot be imported

**Expected results:**  
All VMs must be available in new OpenNebula 5.6 with same configuration and images.

please help here.

---

<div class="post-metadata">

**Author:** ![Amit\_Kumar](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/amit_kumar/32/7867_2.png) [@Amit\_Kumar](https://forum.opennebula.io/u/Amit_Kumar)\
**Post date:** [August 28, 2018, 8:37am UTC](https://forum.opennebula.io/t/migration-of-vm-from-one-opennebula-environment-to-another-opennebula/6211/2 "2018-08-28T08:37:55Z")

</div>

Hi,

Is anybody done this? any clue will be helpful.

---

<div class="post-metadata">

**Author:** ![feldsam](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/feldsam/32/4441_2.png) [@feldsam](https://forum.opennebula.io/u/feldsam)\
**Post date:** [August 31, 2018, 5:34am UTC](https://forum.opennebula.io/t/migration-of-vm-from-one-opennebula-environment-to-another-opennebula/6211/3 "2018-08-31T05:34:26Z")

</div>

Hi, my opinion in such case will be:

copy oned DB from 5.4 to 5.6 and upgrade  
copy all custom configs to new infra  
copy all datastores with images and deployment files.

I except same naming - nodes, datastores, networks.

There is already questions about this [How to move VMs (persistent & non-persistent) between Opennebula systems](https://forum.opennebula.io/t/how-to-move-vms-persistent-non-persistent-between-opennebula-systems/3335/6)
