# Error getting virtual machine

**URL:** <https://forum.opennebula.io/t/error-getting-virtual-machine/6892>\
**Category:** Integration Support\
**Created:** [February 9, 2019, 2:35pm UTC](https://forum.opennebula.io/t/error-getting-virtual-machine/6892 "2019-02-09T14:35:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![G9x](https://avatars.discourse-cdn.com/v4/letter/g/d78d45/32.png) [@G9x](https://forum.opennebula.io/u/G9x)\
**Post date:** [February 9, 2019, 2:35pm UTC](https://forum.opennebula.io/t/error-getting-virtual-machine/6892/1 "2019-02-09T14:35:20Z")

</div>

Hello,

After migration error: Error getting virtual machine.  
Old version 4.12. New version 5.6

Migration log: [root@opennebula:~/mig# onedb upgrade -v -S localhost -u -p -d opennebulaVersio - Pastebin.com](https://pastebin.com/1naQWDmg)

I don’t see old virtual machine information. If I create a new VM, I can see new VM information.

```
root@opennebula:~/mig# service opennebula start

root@opennebula:~/mig# onevm list | grep 3632
3632 oneadmin oneadmin deb runn 2 8G ohv3 2d 04h14

root@opennebula:~/mig# onevm show 3632
[one.vm.info] Error getting virtual machine [3632].

```

SELECT body FROM opennebula.vm\_pool WHERE oid=3632;

> <https://pastebin.com/9pSn3QnN>

fixed. Added record to history table (was empty).

---

<div class="post-metadata">

**Author:** ![ruben](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ruben/32/19_2.png) [@ruben](https://forum.opennebula.io/u/ruben)\
**Post date:** [February 15, 2019, 3:31pm UTC](https://forum.opennebula.io/t/error-getting-virtual-machine/6892/2 "2019-02-15T15:31:59Z")

</div>

OK. Thanks for the info, the missing history was probably removed by a bug in one of the migrators. we’ll take a look to see if we can find where the problem is. Glad you were able to solve the problem

Cheers.
