Public:Schacher
Opennebula upgrade from 5.x to 6.0 Debian 10
Note: On Debian 11 - fireedge problem - libnode64 and nodejs cannot be installed together
1. check VM's if are already in (running, suspended, stopped, done)
2. all host set to off-line mode
3. stop all services recommended
systemctl stop opennebula opennebula-sunstone
4. back up of /etc/one and /var/lib/one/remotes/etc
cp -ra /etc/one /etc/one.$(date +'%Y-%m-%d') cp -ra /var/lib/one/remotes/etc /var/lib/one/remotes/etc.$(date +'%Y-%m-%d')
5. upgrade repo
a) GPG key wget -q -O- https://downloads.opennebula.io/repo/repo.key | apt-key add - b) echo "deb https://downloads.opennebula.io/repo/6.0/Debian/10 stable opennebula" > /etc/apt/sources.list.d/opennebula.list apt-get update
6.1 upgrade tools for new version
apt-get update apt-get install --only-upgrade opennebula opennebula-sunstone opennebula-gate opennebula-flow opennebula-provision python3-pyone
6.2 (comunity edition only) install migration package dpkg -i opennebula-migration-*.deb 7. update config files
If you haven’t modified any configuration files, you can skip this step and proceed to the next one.
8. upgrade database
onedb upgrade -v
possible issues: 1st run this command haven't pass - Find out by not being able to run opennebula.service...solutions - run this command once more
10. Start nebula
systemctl start opennebula
11. update Hypervisors - need this tools gnupg wget apt-transport-https
a) onehost disable <node name> b) as oneadmin - onehost sync c) update repo - First, add the repository signing GPG key on the Front-end by executing as user root "wget -q -O- https://downloads.opennebula.io/repo/repo.key | apt-key add -" - "echo "deb https://downloads.opennebula.io/repo/6.0/Debian/10 stable opennebula" > /etc/apt/sources.list.d/opennebula.list apt-get update" - service libvirtd restart
13. enable hosts
onehost enable <node name>
14. Start opennebula-sunstone
systemctl start opennebula-sunstone
15. Fireedge
If you didn’t install opennebula-fireedge you might get an error like this FireEdge public endpoint is not working, you have to change in /etc/one/sunstone-server.conf "public_fireedge_endpoint:" and "private_fireedge_endpoint:" from localhost to IP of your Frotend.