Virtual machine upgrading method and device
A technology of virtual machine and virtual machine template, applied in the field of communication, can solve problems such as low efficiency of virtual machine upgrade, and achieve the effect of improving upgrade efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0033] In this embodiment, a method for upgrading a virtual machine is provided, figure 1 is a flow chart of upgrading a virtual machine according to an embodiment of the present invention, such as figure 1 As shown, the process includes the following steps:
[0034] Step S102, upgrade the virtual machine template before upgrading to obtain the upgraded virtual machine template, wherein the upgraded template disk file is recorded in the upgraded virtual machine template;
[0035] Step S104, searching for a virtual machine created by the pre-upgraded virtual machine template;
[0036] Step S106, using the upgraded template disk file to update the disk file in the virtual machine to obtain the upgraded virtual machine.
[0037]Optionally, in this embodiment, the method for upgrading virtual machines includes, but is not limited to, realizing batch upgrade of virtual machines based on the existing disk snapshots and interfaces between templates and virtual machine templates in ...
Embodiment 1
[0083] In this embodiment, the upgrade of the virtual machine mainly includes the following steps:
[0084] Step S61, converting the virtual machine template into a virtual machine: the virtualization management center provides an interface for converting a template into a virtual machine, and the interface can convert the selected template into a virtual machine. The converted virtual machine can do any operation like a normal virtual machine. During the conversion process, the virtualization management center will statically pull out a leaf file from the existing template disk file, and the converted virtualization will run on the leaf file;
[0085] Step S62, virtual machine software upgrade: enter the virtual machine converted from the virtual machine template, mount the iso installation package required for the upgrade, and perform an upgrade operation on the virtual machine;
[0086] Step S63, upgrade virtual machines in batches: find all the virtual machines under the ...
Embodiment 2
[0089] Optionally, in this embodiment mainly combine Figure 5 Describes in detail how to upgrade a virtual machine. Figure 5 It is a flow chart of upgrading virtual machines in batches according to the embodiment of the present invention, and the specific process is as follows:
[0090] Step S501: converting the virtual machine template into a virtual machine;
[0091] Step S502: upgrading the software of the virtual machine;
[0092] Step S503: converting the upgraded virtual machine into an upgraded virtual machine template;
[0093] Step S504: Find all virtual machines under the virtual machine template;
[0094] Step S505: delete the found disk file of the virtual machine;
[0095] Step S506: Create a new disk file using the upgraded virtual machine template disk file;
[0096] Step S507: Merge the virtual machine template disk files.
[0097] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


