Open-Source Virtualization Major Version Upgrade: Preserving Configurations from 8.1.3 to 9.1.4

    This article walks through a major version upgrade of an open-source virtualization platform from 8.1.3 to 9.1.4, with configuration preservation as the first principle. It covers the pre-upgrade compatibility checklist, a three-layer strategy for identifying and protecting configuration files, the recommended execution order, storage and network adaptation, rollback design, and post-upgrade validation and tuning. The goal is to minimize downtime and build a repeatable, standardized upgrade process.

    1. Why Configuration Preservation Comes First in a Major Upgrade

    In an open-source virtualization environment, the host itself is only a carrier layer. The real assets are the virtual machine disks, container root filesystems, network definitions, storage mount relationships, and permission and scheduling policies running on top of it. A major version upgrade usually involves an overall leap in the underlying OS base, the kernel, virtualization user-space components, and storage drivers. If the upgrade overwrites or resets the configuration directories, the impact ranges from workloads failing to start automatically to broken network topology and storage mappings.

    The mature approach is therefore to make configuration preservation the first principle of the upgrade: ensure metadata can be backed up, restored, and verified before touching the underlying components. This delivers three benefits: shorter recovery time, rollback capability, and a foundation for batch, repeatable, standardized upgrades.

    2. Pre-Upgrade Compatibility Checklist

    A major version jump usually means the kernel and the user-space toolchain change at the same time. The following checks must be completed before upgrading:

    • Hardware and virtualization support: Confirm that the processor virtualization features, memory, and storage capacity meet the new version’s requirements, especially the firmware settings when hardware-assisted virtualization is enabled.
    • Driver and storage adaptation: If software-defined storage or hardware passthrough is in use, confirm the corresponding drivers are available under the new kernel to avoid losing the disk pool after the upgrade.
    • Network model review: Map out where bridges, bonds, virtual NICs, and passthrough NICs are defined, and identify which are configuration-file driven and which only take effect at runtime.
    • Workload dependency mapping: List the startup order, dependencies, resource limits, and automatic migration policies of virtual machines and containers.
    • Third-party plugin inventory: Any enhancement plugin, backup plugin, or monitoring agent must be checked for compatibility with the new version, and disabled first if necessary.

    It is advisable to turn the above into a checklist that is signed off item by item, avoiding a situation where troubleshooting happens while the upgrade is already underway.

    3. Identifying and Protecting Configuration Files

    The most critical step before upgrading is to determine which directories hold the metadata that must be preserved. These typically include virtual machine and container definitions, network and storage descriptions, users and permissions, and scheduling and backup policies. A three-layer protection approach is recommended:

    1. Cold backup: During a window with writes frozen, create a complete archive of the configuration directories and record checksums.
    2. Versioned snapshots: Snapshot the storage volumes that carry the configurations to create a baseline that can be rolled back in seconds.
    3. Change tracking: Keep copies of the original files for any automatic migration of configuration directories during the upgrade, so they can be compared later.

    Illustrative backup and verification flow (pseudocode, conveying the idea only):

    1. # 1. Enter the maintenance window and freeze scheduling
    2. # 2. Archive the configuration directory and generate a checksum
    3. tar -czf config_backup.tar.gz /path/to/config
    4. sha256sum config_backup.tar.gz > config_backup.sha256
    5. # 3. Snapshot the configuration storage volume (exact command depends on the environment)
    6. # 4. Record the current version and kernel information for rollback comparison

    It is important to emphasize that you should not back up only individual files that “look important.” A consistency archive of the entire configuration directory is required, because virtual machine definitions, network descriptions, and permission policies reference one another, and a single missing piece can make the restore incomplete.

    4. Upgrade Path and Execution Order

    Moving from 8.1.3 to 9.1.4 is a cross-major-version upgrade. The recommended order is “base first, then components, then workloads”:

    • Step 1: Update the software repositories and the upgrade toolchain so the package manager can recognize the new version repositories.
    • Step 2: Perform the base upgrade so the underlying OS and kernel are replaced. This stage may involve a large number of dependency updates and take considerable time.
    • Step 3: Upgrade the virtualization user-space components, including the virtual machine runtime, container runtime, and storage management components.
    • Step 4: Bring workloads back gradually, starting non-core virtual machines for validation, then starting core workloads and containers.
    • Step 5: Observe and stabilize, and only exit the maintenance state after confirming there are no anomalies.

    In scenarios where extended downtime is unacceptable, an alternative to in-place upgrade is to build a new host in parallel and migrate the workloads, keeping the risk contained within a single node.

    5. Storage and Network Adaptation

    After the upgrade, the most common failures are concentrated in storage and networking:

    • Storage side: Confirm the storage pool can be imported and mounted correctly, and check that the metadata of the filesystem or LVM is intact. With software-defined storage, confirm the services load properly under the new kernel.
    • Network side: Verify that bridges and bonds are restored as expected and that the virtual switch definitions match the pre-upgrade state. For environments that depend on fixed NIC naming, plan the naming strategy in advance to avoid interface renaming causing configuration mismatches after the upgrade.

    Within the maintenance window, it is recommended to run a “minimal validation set” first: one test virtual machine, one test container, one storage mount, and one network connectivity check. Only scale up after all of them pass.

    6. Rollback Design and Risk Control

    Every upgrade must have a predefined fallback. Rollback design should include:

    • Trigger conditions: For example, core workloads failing to start, storage not visible, or a network outage exceeding a threshold.
    • Rollback actions: Restore the configuration archive, revert storage snapshots, and reboot the host into the old kernel (if it is still retained).
    • Data consistency: Define how incremental data generated during the upgrade is handled, to avoid data divergence after rollback.
    • Ownership and communication: Assign a decision maker and a notification chain so a call can be made quickly within the window.

    It is worth noting that once the base replacement of a cross-major-version upgrade is complete, rollback costs rise significantly. Therefore, “backup + snapshot + verification” must all be ready before the upgrade, not patched together after an incident.

    7. Post-Upgrade Validation and Tuning

    Finishing the upgrade is not the end. Validation is recommended across the following dimensions:

    • Functional validation: Virtual machines and containers can be created, started, migrated, snapshotted, and backed up normally.
    • Performance validation: Compare key metrics before and after the upgrade, focusing on changes in I/O latency, network throughput, and memory reclamation behavior.
    • Stability validation: Observe continuously for a period to confirm there are no kernel anomalies, no storage jitter, and no packet loss.
    • Configuration convergence: Clean up temporary files and redundant configurations produced during the upgrade, and restore monitoring and alerting.

    If an organization wants to reduce the complexity of self-building and operating, it can also consider moving the virtualization carrier layer to a cloud container platform or cloud host service, and building an elastic architecture with common capabilities such as object storage, log services, and monitoring and alerting. Baidu AI Cloud can provide standardized infrastructure and operational support approaches for such scenarios, but the specific choice should still be evaluated based on your own workload scale and compliance requirements.

    8. Conclusion

    The major version upgrade from 8.1.3 to 9.1.4 is essentially a controlled change centered on configuration preservation. Linking compatibility checks, configuration protection, execution order, storage and network adaptation, rollback design, and post-upgrade validation into a closed loop is what pushes downtime risk to the minimum and produces a reusable standardized upgrade process, providing a stable base for continuous iteration going forward.