Virtual machine disk mirror image manufacturing method and device, computer equipment and storage medium
A technology of a virtual machine disk and a production method, which is applied in the direction of program control device, software simulation/interpretation/simulation, etc., and can solve problems such as inability to start a virtual machine, blue screen of a virtual machine, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] figure 1 It is a flowchart of a method for creating a virtual machine disk image provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of creating disk images for batch startup of virtual machines, and the method can be executed by the device for creating virtual machine disk images provided by the embodiment of the present invention, which can be implemented by means of hardware and / or software Realization, generally can be integrated in computer equipment. Such as figure 1 As shown, it specifically includes the following steps:
[0038] S11. Start a virtual machine instance, and pass a command line parameter to the virtual machine instance, so that the virtual machine instance will not exit when the virtual machine is shut down.
[0039] S12. Send a system shutdown instruction to the console of the virtual machine, so as to control the virtual machine to shut down.
[0040] S13. Determine whether the virtual machine is i...
Embodiment 2
[0049] figure 2 A schematic diagram of the structure of the virtual machine disk image creation device provided by Embodiment 2 of the present invention. The device can be implemented by hardware and / or software, and can generally be integrated into a computer device to execute the provided by any embodiment of the present invention. How to make a virtual machine disk image. Such as figure 2 As shown, the device includes:
[0050] The parameter transfer module 21 is used to start a virtual machine instance, and transfer command line parameters to the virtual machine instance, so that when the virtual machine is shut down, the virtual machine instance will not exit;
[0051] Control the shutdown module 22, configured to send a system shutdown command to the virtual machine console to control the virtual machine to shut down;
[0052] The image file generation module 23 is used to determine whether the virtual machine is closed, if so, then send a snapshot synchronization c...
Embodiment 3
[0068] image 3 The schematic structural diagram of the computer device provided for the third embodiment of the present invention shows a block diagram of an exemplary computer device suitable for implementing the embodiment of the present invention. image 3 The computer equipment shown is only an example, and should not bring any limitation to the functions and scope of use of the embodiments of the present invention. Such as image 3 As shown, the computer equipment includes a processor 31, a memory 32, an input device 33 and an output device 34; the number of processors 31 in the computer equipment can be one or more, image 3 Taking a processor 31 as an example, the processor 31, memory 32, input device 33 and output device 34 in the computer equipment can be connected by bus or other methods, image 3 Take connection via bus as an example.
[0069] The memory 32, as a computer-readable storage medium, can be used to store software programs, computer-executable progra...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


