# Upgrade from 5.12.01CE to 6.2CE

**URL:** <https://forum.opennebula.io/t/upgrade-from-5-12-01ce-to-6-2ce/10476>\
**Category:** Installation & Configuration\
**Created:** [April 14, 2022, 11:53pm UTC](https://forum.opennebula.io/t/upgrade-from-5-12-01ce-to-6-2ce/10476 "2022-04-14T23:53:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Githopp192](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/githopp192/32/7488_2.png) [@Githopp192](https://forum.opennebula.io/u/Githopp192)\
**Post date:** [April 14, 2022, 11:53pm UTC](https://forum.opennebula.io/t/upgrade-from-5-12-01ce-to-6-2ce/10476/1 "2022-04-14T23:53:10Z")

</div>

Dear community,

is there a “direct” upgrade way from CE versions: **5.12 to 6.2**?

or do i need to do the upgrade from **5.12 to 6.2** in two steps:

- opennebula upgrade from 5.12 to 6.0 (onedb upgrade from 5.12 to 6.0)
- opennebula upgrade from 6.0 to 6.2 (onedb upgrade from 6.0 to 6.2)

---

<div class="post-metadata">

**Author:** ![dclavijo](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/dclavijo/32/5265_2.png) [@dclavijo](https://forum.opennebula.io/u/dclavijo)\
**Post date:** [April 15, 2022, 3:52pm UTC](https://forum.opennebula.io/t/upgrade-from-5-12-01ce-to-6-2ce/10476/2 "2022-04-15T15:52:49Z")

</div>

You don’t need to, please check the [upgrade guide](https://docs.opennebula.io/6.2/intro_release_notes/upgrades/upgrading_single.html#upgrade-single). There are multiple sections according to the version you are upgrading from.

---

<div class="post-metadata">

**Author:** ![Githopp192](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/githopp192/32/7488_2.png) [@Githopp192](https://forum.opennebula.io/u/Githopp192)\
**Post date:** [April 17, 2022, 6:18pm UTC](https://forum.opennebula.io/t/upgrade-from-5-12-01ce-to-6-2ce/10476/3 "2022-04-17T18:18:32Z")

</div>

Thx a lot Daniel four your answer & the upgrade link. I do appreciate.  
I did study the upgrade guide for version 5.12 and it says to begin with:

#### Upgrading from 5.6.x+

i’ve got the migrator from 6.0 to 6.2 & tried to install:

[root@centos8]# rpm -iv opennebula-migration-community-6.2.0-2.ee.el8.noarch.rpm  
error: Failed dependencies:  
opennebula \>= 6.2 is needed by opennebula-migration-community-6.2.0-2.ee.el8.noarch

ok - 1rst run the upgrade: (changed the /etc/yum.repos.d/opennebula from version 5.12.01 to version 6.2)

OK - upgrade to 6.2 is completed.

Content of:

[root@centos8]# ls -alth /usr/lib/one/ruby/onedb/local  
total 184K  
drwxr-xr-x. 2 root root 4.0K Apr 16 23:43 .  
drwxr-xr-x. 6 root root 209 Apr 16 23:21 ..

-rw-r–r–. 1 root root 7.8K Apr 16 23:07 5.10.0\_to\_5.12.0.rb  
-rw-r–r–. 1 root root 5.9K Apr 16 23:07 5.12.0\_to\_6.0.0.rb

[root@centos8]# ls -alth /usr/lib/one/ruby/onedb/shared  
total 332K  
drwxr-xr-x. 2 root root 4.0K Apr 16 23:43 .  
drwxr-xr-x. 6 root root 209 Apr 16 23:21 ..

-rw-r–r–. 1 root root 3.8K Apr 16 23:07 5.10.0\_to\_5.12.0.rb  
-rw-r–r–. 1 root root 1.4K Apr 16 23:07 5.12.0\_to\_6.0.0.rb

run:

[root@minione centos8]# onedb upgrade -v  
Version read:  
Shared tables 5.12.0 : OpenNebula 5.12.0.1 (54eb4054) daemon bootstrap  
Local tables 5.12.0 : OpenNebula 5.12.0.1 (54eb4054) daemon bootstrap

MySQL dump stored in /var/lib/one/mysql\_localhost\_opennebula\_2022-4-16\_23:41:52.sql  
Use ‘onedb restore’ or restore the DB using the mysql command:  
mysql -u user -h server -P port db\_name \< backup\_file

> > > Running migrators for shared tables  
> > > Running migrator /usr/lib/one/ruby/onedb/shared/5.12.0\_to\_6.0.0.rb  
> > > Done in 0.00s

Database migrated from 5.12.0 to 6.0.0 (OpenNebula 6.0.0) by onedb command.

> > > Running migrators for local tables  
> > > Running migrator /usr/lib/one/ruby/onedb/local/5.12.0\_to\_6.0.0.rb  
> > > Done in 0.60s

Database migrated from 5.12.0 to 6.0.0 (OpenNebula 6.0.0) by onedb command.

Total time: 1.36s  
ERROR: Database upgrade to the latest versions (local 6.0.0, shared 6.0.0)  
wasn’t successful due to missing migration descriptors. Migrators are  
provided as part of Enterprise Edition for customers with active subscription.  
For community with non-commercial deployments they are provided via a  
dedicated migration package, which must be obtained separately.

The database will be restored  
MySQL DB opennebula at localhost restored.

[root@]# rpm -iv opennebula-migration-community-6.2.0-2.ee.el8.noarch.rpm  
Verifying packages…  
Preparing packages…

#### --------------------------------------------------------------------------

#### Copyright 2019-2021, OpenNebula Systems S.L.

Installation will automatically continue in 10 seconds …  
opennebula-migration-community-6.2.0-2.ee.el8.noarch

Content of:

[root@centos8]# ls -alth /usr/lib/one/ruby/onedb/local  
total 184K  
drwxr-xr-x. 2 root root 4.0K Apr 16 23:43 .  
drwxr-xr-x. 6 root root 209 Apr 16 23:21 ..

-rw-r–r–. 1 root root 7.8K Apr 16 23:07 5.10.0\_to\_5.12.0.rb  
-rw-r–r–. 1 root root 5.9K Apr 16 23:07 5.12.0\_to\_6.0.0.rb  
-rw-r–r–. 1 root root 2.6K Nov 2 18:59 **6.0.0\_to\_6.2.0.rbm**

[root@centos8]# ls -alth /usr/lib/one/ruby/onedb/shared  
total 332K  
drwxr-xr-x. 2 root root 4.0K Apr 16 23:43 .  
drwxr-xr-x. 6 root root 209 Apr 16 23:21 ..

-rw-r–r–. 1 root root 3.8K Apr 16 23:07 5.10.0\_to\_5.12.0.rb  
-rw-r–r–. 1 root root 1.4K Apr 16 23:07 5.12.0\_to\_6.0.0.rb  
-rw-r–r–. 1 root root 1.8K Nov 2 18:59 **6.0.0\_to\_6.2.0.rbm**

run onedb upgrade again:

[root@minione centos8]# onedb upgrade -v  
Version read:  
Shared tables 5.12.0 : OpenNebula 5.12.0.1 (54eb4054) daemon bootstrap  
Local tables 5.12.0 : OpenNebula 5.12.0.1 (54eb4054) daemon bootstrap

MySQL dump stored in /var/lib/one/mysql\_localhost\_opennebula\_2022-4-16\_23:43:38.sql  
Use ‘onedb restore’ or restore the DB using the mysql command:  
mysql -u user -h server -P port db\_name \< backup\_file

> > > Running migrators for shared tables  
> > > Running migrator /usr/lib/one/ruby/onedb/shared/5.12.0\_to\_6.0.0.rb  
> > > Done in 0.00s

Database migrated from 5.12.0 to 6.0.0 (OpenNebula 6.0.0) by onedb command.

> > > Running migrators for local tables  
> > > Running migrator /usr/lib/one/ruby/onedb/local/5.12.0\_to\_6.0.0.rb  
> > > Done in 0.45s

Database migrated from 5.12.0 to 6.0.0 (OpenNebula 6.0.0) by onedb command.

Total time: 1.07s  
ERROR: Database upgrade to the latest versions (local 6.0.0, shared 6.0.0)  
wasn’t successful due to missing migration descriptors. Migrators are  
provided as part of Enterprise Edition for customers with active subscription.  
For community with non-commercial deployments they are provided via a  
dedicated migration package, which must be obtained separately.

The database will be restored  
MySQL DB opennebula at localhost restored.

What is going wrong ?

---

<div class="post-metadata">

**Author:** ![Githopp192](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/githopp192/32/7488_2.png) [@Githopp192](https://forum.opennebula.io/u/Githopp192)\
**Post date:** [April 17, 2022, 6:21pm UTC](https://forum.opennebula.io/t/upgrade-from-5-12-01ce-to-6-2ce/10476/4 "2022-04-17T18:21:05Z")

</div>

btw - when i would rename the migrator: **6.0.0\_to\_6.2.0.rbm** to **5.12.0\_to\_6.2.0.rbm** the onedb upgrade -v would run in one touch (so it should be) …but i’m not sure if this right approach.

---

<div class="post-metadata">

**Author:** ![Githopp192](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/githopp192/32/7488_2.png) [@Githopp192](https://forum.opennebula.io/u/Githopp192)\
**Post date:** [April 17, 2022, 6:21pm UTC](https://forum.opennebula.io/t/upgrade-from-5-12-01ce-to-6-2ce/10476/5 "2022-04-17T18:21:23Z")

</div>

[root@centos8]# onedb upgrade -v  
Version read:  
Shared tables 5.12.0 : OpenNebula 5.12.0.1 (54eb4054) daemon bootstrap  
Local tables 5.12.0 : OpenNebula 5.12.0.1 (54eb4054) daemon bootstrap

MySQL dump stored in /var/lib/one/mysql\_localhost\_opennebula\_2022-4-17\_0:23:26.sql  
Use ‘onedb restore’ or restore the DB using the mysql command:  
mysql -u user -h server -P port db\_name \< backup\_file

> > > Running migrators for shared tables  
> > > Running migrator /usr/lib/one/ruby/onedb/shared/5.12.0\_to\_6.2.0.rbm  
> > > Done in 0.16s

Database migrated from 5.12.0 to 6.2.0 (OpenNebula 6.2.0) by onedb command.

> > > Running migrators for local tables  
> > > Running migrator /usr/lib/one/ruby/onedb/local/5.12.0\_to\_6.2.0.rbm  
> > > Done in 0.19s

Database migrated from 5.12.0 to 6.2.0 (OpenNebula 6.2.0) by onedb command.

Total time: 1.02s

---

<div class="post-metadata">

**Author:** ![Githopp192](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/githopp192/32/7488_2.png) [@Githopp192](https://forum.opennebula.io/u/Githopp192)\
**Post date:** [April 17, 2022, 6:21pm UTC](https://forum.opennebula.io/t/upgrade-from-5-12-01ce-to-6-2ce/10476/6 "2022-04-17T18:21:24Z")

</div>

[root@centos8]# onedb fsck  
MySQL dump stored in /var/lib/one/mysql\_localhost\_opennebula\_2022-4-17\_0:25:26.sql  
Use ‘onedb restore’ or restore the DB using the mysql command:  
mysql -u user -h server -P port db\_name \< backup\_file

Total errors found: 0  
Total errors repaired: 0  
Total errors unrepaired: 0  
A copy of this output was stored in /var/log/one/onedb-fsck.log

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/1/14d66f1130b9cd292905f575da9b68a9f574dd03.png) [@system](https://forum.opennebula.io/u/system)\
**Post date:** [July 8, 2025, 3:53pm UTC](https://forum.opennebula.io/t/upgrade-from-5-12-01ce-to-6-2ce/10476/7 "2025-07-08T15:53:48Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
