Updating a cloud virtual machine
Updating MikoPBX deployed as a virtual machine in the cloud
We recommend updating sequentially, without skipping releases and versions.
This guide is intended for MikoPBX running as a full-fledged cloud virtual machine: from a Marketplace or from an imported RAW, VHD, or other disk image.
The primary method for updating a cloud PBX is through the web interface using an .img image. The ability to boot from an ISO depends on the particular cloud provider and is not universal.
Before updating, create two independent recovery points: a backup of the MikoPBX settings and a snapshot of the system disk or the entire virtual machine in the cloud provider's control panel.
Before you start
Make sure you have access to the cloud management panel and the MikoPBX web interface. Save a backup of the MikoPBX settings and call recordings outside the virtual machine being updated.
Create a snapshot of the system disk. If there is a separate disk with recordings, create a snapshot for it as well or use storage backup.
Write down the current external and internal IP addresses, Security Group rules, attached disks, and network settings.
Make sure at least 400 MB is free on the system disk with MikoPBX.
Schedule a maintenance window: active calls will be dropped.
Online update
Log in to the MikoPBX web interface.
Open "Maintenance" → "PBX update".

Find the version you need in the "Online updates available" table. Review the list of changes and start the download.

Once the download is complete, enter the phrase "Yes, I have a backup". Click Update.

Do not perform Restart or Stop from the cloud panel: MikoPBX will prepare the update and reboot on its own. During the reboot, the connection to the web interface will be interrupted. It is safer to monitor the process via the cloud provider's serial console or web console.
Updating with a downloaded IMG file
Use a local file if the version is not in the list or the cloud VM does not have direct access to the update server.
Download the
.imgof the required version from the MikoPBX releases page.

Verify that the image architecture matches the VM architecture.
Open Maintenance → PBX update.

Select the downloaded
.imgand click Apply update.

Enter the phrase "Yes, I have a backup" and confirm the operation.

Wait for the automatic reboot and the services to start again.
Is it possible to update a cloud VM via ISO
Updating via ISO is possible only when the cloud platform simultaneously allows you to:
upload or attach a custom ISO;
change the VM boot order;
open an interactive console;
after the update, disconnect the ISO and boot from the system disk again.
If the provider does not support ISO, do not try to imitate this method by replacing the system disk. Use the web update or restore from a snapshot.
If all the conditions are met (for example, as with Vultr), the procedure is the same as for a regular virtual machine:
Download and attach the ISO image of the required version from the MikoPBX releases page.

Start the machine and open its console. Wait for the message about booting in recovery mode - System booted in recovery mode (Live CD).

Press any key to open the console menu. Then open "[4] Install or recover".

Select "Update to version..."
Do not select the Install option. It starts a new installation and warns that data on the selected disk will be erased. To update while keeping the settings, use the Update to version ... option.

When finished, disconnect the ISO and boot from the system disk.
Last updated
Was this helpful?

