Resuming stopped VMs from OpenNebula 4 in OpenNebula 5

Problem: VMs that were started in OpenNebula 4 and STOPPED, get stuck in state PENDING when resuming.

Diagnosis

The underlying problem seems to be that the VNC port range used by OpenNebula has changed between v4 and v5 and that OpenNebula 5 refuses to schedule an VM with a ‘old’ VNC port.

Workaround

Update configuration

Update configuration