CN112506534A - Method and system for starting qcow2 format system mirror image by physical machine - Google Patents

Method and system for starting qcow2 format system mirror image by physical machine Download PDF

Info

Publication number
CN112506534A
CN112506534A CN202011497064.9A CN202011497064A CN112506534A CN 112506534 A CN112506534 A CN 112506534A CN 202011497064 A CN202011497064 A CN 202011497064A CN 112506534 A CN112506534 A CN 112506534A
Authority
CN
China
Prior art keywords
voi
client
disk
image file
operating system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011497064.9A
Other languages
Chinese (zh)
Inventor
谈振华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Os Easy Cloud Computing Co ltd
Original Assignee
Wuhan Os Easy Cloud Computing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Os Easy Cloud Computing Co ltd filed Critical Wuhan Os Easy Cloud Computing Co ltd
Priority to CN202011497064.9A priority Critical patent/CN112506534A/en
Publication of CN112506534A publication Critical patent/CN112506534A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45579I/O management, e.g. providing access to device drivers or storage

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a system for starting a system image in a qcow2 format by a physical machine, relating to the technical field of VOI (virtual object interface), wherein the method comprises the steps of distributing a system image file in the qcow2 format to a VOI client, and storing the system image file into an image file system of a VOI client to which the VOI client belongs; a VOI client bottom driver creates a first virtual disk corresponding to a mirror disk to which a system mirror image file belongs; booting an operating system based on an operating system boot program in the first virtual disk; the upper layer drive of the VOI client establishes a second virtual disk corresponding to the mirror image disk to which the system mirror image file belongs; and the kernel of the operating system identifies the second virtual disk, and takes the identified second virtual disk as a system disk to continue initializing the operating system so as to complete the starting of the operating system. The invention enables the operating system to be started in the virtual disk device by calling the operating system bootstrap program in the virtual disk, thereby completing the starting of the operating system.

Description

Method and system for starting qcow2 format system mirror image by physical machine
Technical Field
The invention relates to the technical field of Virtual operating system (VOI), in particular to a method and a system for starting a qcow2 format system image by a physical machine.
Background
In a physical machine, an operating system is usually installed on a physical disk, and the physical machine can start the operating system from the physical disk, but in a VOI environment, centralized management and on-demand distribution of the operating system are required, so the operating system needs to be stored in a disk image file, and thus the VOI server performs centralized management on the disk image file and distributes the disk image file to a VOI client for use on demand.
qcow2 is a popular image file format at present, and meets the requirements of VOI for centralized management and on-demand distribution of disk images, but in a physical machine, an operating system cannot be directly started from a system image in the qcow2 format.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a method and a system for starting a system image in a qcow2 format by a physical machine, wherein an operating system is started in a virtual disk device by calling an operating system bootstrap program in the virtual disk, so that the starting of the operating system is completed.
In order to achieve the above object, the present invention provides a method for starting a qcow2 format system image by a physical machine, which comprises the following steps:
distributing a system image file in a qcow2 format to a VOI client, and storing the system image file into an image file system of a VOI client to which the VOI client belongs;
a VOI client bottom driver creates a first virtual disk corresponding to a mirror disk to which a system mirror image file belongs, and realizes a read-write function on the created first virtual disk;
booting an operating system based on an operating system bootstrap program in a first virtual disk, and loading VOI client upper-layer drive by an operating system kernel when the operating system enters a kernel initialization stage;
the upper layer drive of the VOI client establishes a second virtual disk corresponding to the mirror image disk to which the system mirror image file belongs, and realizes the read-write function on the established second virtual disk;
and the kernel of the operating system identifies the second virtual disk, and takes the identified second virtual disk as a system disk to continue initializing the operating system so as to complete the starting of the operating system.
On the basis of the above technical solution, the distributing a system image file in the qcow2 format to a VOI client, and storing the system image file in an image file system of a VOI client to which the VOI client belongs, specifically includes the steps of:
the VOI server side sends the system image file in the qcow2 format to the VOI client side;
and the VOI client receives the system image file and stores the received system image file into an image file system of a VOI client to which the VOI client belongs.
On the basis of the technical scheme, the VOI client bottom driver creates a first virtual disk corresponding to a mirror image disk to which a system mirror image file belongs, and the specific steps include:
starting a VOI client belonging to the VOI client, entering a UEFI BIOS environment, and loading a VOI client bottom driver;
the VOI client bottom driver opens a system image file in the image file system by using the opening function of the qcow2 algorithm module to obtain an image disk handle;
the VOI client bottom layer driver obtains the size of the mirror image disk based on the obtained mirror image disk handle and by using the function of obtaining the size of the mirror image disk of the qcow2 algorithm module;
and calling a creating disk device interface of UEFI (unified extensible firmware interface) by the bottom driver of the VOI client, and creating a first virtual disk with the size equal to that of the mirror image disk.
On the basis of the technical scheme, the bottom-layer drive of the VOI client is a first starting item of UEFI.
On the basis of the technical scheme, the VOI client upper driver creates a second virtual disk corresponding to the mirror image disk to which the system mirror image file belongs, and the specific steps include:
the upper layer drive of the VOI client opens a system mirror image file in a mirror image file system by using the opening function of the qcow2 algorithm module to obtain a mirror image disk handle;
the upper layer drive of the VOI client acquires the size of the mirror image disk based on the acquired mirror image disk handle and by using the function of acquiring the size of the mirror image disk of the qcow2 algorithm module;
and the upper layer driver of the VOI client calls a disk device creating interface of a Windows or Linux kernel, and creates a second virtual disk with the size equal to that of the mirror image disk.
On the basis of the technical proposal, the device comprises a shell,
the qcow2 algorithm module is used for providing an operation function for the system image file;
the operation functions comprise creating, opening, reading and writing, closing and obtaining the size of the mirror image disk.
On the basis of the technical scheme, the read-write function of the first virtual disk and the read-write function of the second virtual disk are realized by calling the read-write function of the qcow2 algorithm module through the mirror disk handle.
On the basis of the above technical solution, the operating system is booted based on the operating system boot program in the first virtual disk, and when the operating system enters a kernel initialization stage, the operating system kernel loads the upper driver of the VOI client, and the specific steps include:
loading an operating system bootstrap program in a first virtual disk by a VOI client bottom driver;
the boot of the operating system is realized through the loaded operating system boot program;
and the operating system enters a kernel starting stage in a Windows or Linux system from a boot stage in a UEFI environment, so that the loading of the upper-layer driver of the VOI client in the kernel of the operating system is realized.
On the basis of the technical scheme, the operating system boot program is located in an ESP partition of the first virtual disk.
The invention provides a system for starting a qcow2 format system image by a physical machine, which comprises:
the system comprises a sending module, a storage module and a processing module, wherein the sending module is used for distributing a system image file in a qcow2 format to a VOI client and storing the system image file into an image file system of a VOI client to which the VOI client belongs;
the system comprises a first creation module, a second creation module and a third creation module, wherein the first creation module is used for driving a VOI client bottom driver to create a first virtual disk corresponding to a mirror image disk to which a system mirror image file belongs, and realizing a read-write function on the created first virtual disk;
the loading module is used for loading an operating system bootstrap program in the first virtual disk to guide the operating system, so that the booting of the operating system is realized, and when the operating system enters a kernel initialization stage, the kernel loads the upper driver of the VOI client;
and the second creating module is used for driving the upper layer drive of the VOI client to create a second virtual disk corresponding to the mirror image disk to which the system mirror image file belongs, and realizing a read-write function on the created second virtual disk.
Compared with the prior art, the invention has the advantages that: storing a qcow2 format disk image file distributed by a VOI server in an image file system of a VOI client, respectively creating a virtual disk device for the client at the stage of booting and starting a kernel of an operating system through the VOI client in the starting process of the VOI client to realize the read-write function of the virtual disk, analyzing the read-write operation on the virtual disk into the read-write operation on a corresponding qcow2 format image file in the image file system through a qcow2 algorithm module, and calling an operating system bootstrap program in the virtual disk to start the operating system in the virtual disk device, thereby finishing the starting of the operating system.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for starting a qcow2 format system image by a physical machine according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a system for starting a qcow 2-format system image by a physical machine in an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method for starting a qcow2 format system image by a physical machine, which comprises the steps of respectively creating a virtual disk for a client at the stage of booting and starting a kernel of an operating system, realizing the read-write function of the virtual disk, analyzing the read-write operation of the virtual disk into the read-write operation of a corresponding qcow2 format image file in an image file system through a qcow2 algorithm module, calling an operating system boot program in the virtual disk, starting the operating system in a virtual disk device, and finishing the starting of the operating system. The embodiment of the invention correspondingly provides a system for starting the system image with the qcow2 format by the physical machine.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, the method for starting a qcow 2-format system image by using a physical machine according to the embodiment of the present invention specifically includes the following steps:
s1: distributing a system image file in a qcow2 format to a VOI client, and storing the system image file into an image file system of a VOI client to which the VOI client belongs;
s2: a VOI client bottom driver creates a first virtual disk corresponding to a mirror disk to which a system mirror image file belongs, and realizes a read-write function on the created first virtual disk;
s3: booting an operating system based on an operating system bootstrap program in a first virtual disk, and loading VOI client upper-layer drive by an operating system kernel when the operating system enters a kernel initialization stage;
s4: the upper layer drive of the VOI client establishes a second virtual disk corresponding to the mirror image disk to which the system mirror image file belongs, and realizes the read-write function on the established second virtual disk;
s5: and the kernel of the operating system identifies the second virtual disk, and takes the identified second virtual disk as a system disk to continue initializing the operating system so as to complete the starting of the operating system.
In the embodiment of the present invention, a system image file in qcow2 format is distributed to a VOI client, and the system image file is stored in an image file system of a VOI client to which the VOI client belongs, and the specific steps are as follows:
s101: the VOI server side sends the system image file in the qcow2 format to the VOI client side;
s102: and the VOI client receives the system image file and stores the received system image file into an image file system of a VOI client to which the VOI client belongs.
In the embodiment of the invention, a VOI client bottom driver creates a first virtual disk corresponding to a mirror disk to which a system mirror image file belongs, and the specific steps comprise:
s201: the VOI client belonging to the VOI client is started and enters a UEFI (Unified Extensible Firmware Interface) BIOS (Basic Input Output System) environment, and the bottom driver of the VOI client is loaded. The bottom driver of the VOI client in the embodiment of the invention is the first starting item of UEFI.
S202: the VOI client bottom driver opens a system image file in the image file system by using the opening function of the qcow2 algorithm module to obtain an image disk handle;
s203: the VOI client bottom layer driver obtains the size of the mirror image disk based on the obtained mirror image disk handle and by using the function of obtaining the size of the mirror image disk of the qcow2 algorithm module;
s204: and calling a creating disk device interface of UEFI (unified extensible firmware interface) by the bottom driver of the VOI client, and creating a first virtual disk with the size equal to that of the mirror image disk.
In the embodiment of the present invention, the creating, by the upper driver of the VOI client, a second virtual disk corresponding to the mirror image disk to which the system mirror image file belongs includes the specific steps of:
s401: the upper layer drive of the VOI client opens a system mirror image file in a mirror image file system by using the opening function of the qcow2 algorithm module to obtain a mirror image disk handle;
s402: the upper layer drive of the VOI client acquires the size of the mirror image disk based on the acquired mirror image disk handle and by using the function of acquiring the size of the mirror image disk of the qcow2 algorithm module;
s403: and the upper layer driver of the VOI client calls a disk device creating interface of a Windows or Linux kernel, and creates a second virtual disk with the size equal to that of the mirror image disk.
It should be noted that the qcow2 algorithm module is used to provide an operation function for the system image file; the operation functions comprise creating, opening, reading and writing, closing and obtaining the size of a mirror image disk. And the read-write function of the first virtual disk and the read-write function of the second virtual disk are realized by calling the read-write function of the qcow2 algorithm module through the mirror disk handle.
In the embodiment of the present invention, an operating system is booted based on an operating system boot program in a first virtual disk, and when the operating system enters a kernel initialization stage, a kernel of the operating system loads a VOI client upper driver, which specifically includes:
s301: loading an operating system bootstrap program in a first virtual disk by a VOI client bottom driver; the operating system boot program is located in an EFI System Partition (ESP) partition of the first virtual disk.
S302: the boot of the operating system is realized through the loaded operating system boot program;
s303: and the operating system enters a kernel starting stage in a Windows or Linux system from a boot stage in a UEFI environment, so that the loading of the upper-layer driver of the VOI client in the kernel of the operating system is realized.
In the embodiment of the invention, the VOI server is used for providing centralized management and distributing the qcow2 format image file according to needs; the VOI client is installed on the VOI client and provides functions of receiving the qcow2 format system image file distributed by the VOI server and creating a virtual disk.
The VOI client bottom driver runs in a pre-OS (operating system preloading) stage and is responsible for creating virtual disk equipment of a bottom layer, so that an operating system is guided in the created virtual disk, and in a UEFI environment, the VOI client is usually set as a first UEFI starting item during installation and automatically runs after being started.
The upper driver of the VOI client runs in an operating system startup kernel, initializes the kernel and runs, and is responsible for creating upper virtual disk equipment and enabling the operating system to use the virtual disk as a system disk.
The virtual disk uses the virtual disk created by the interface provided by the operating system kernel and used for creating the disk device, and redirects the I/O (Input/Output) operation on the disk device to the operation on the data in the qcow2 format system image file.
The image file system is a file system in the VOI client used to manage and access system image files.
The method for starting the qcow2 format system mirror image by the physical machine of the embodiment of the invention stores the qcow2 format disk mirror image file distributed by the VOI server in the mirror image file system of the VOI client, respectively establishes a virtual disk device for the client at the stage of guiding and starting a kernel of an operating system by the VOI client in the starting process of the VOI client, realizes the read-write function of the virtual disk, analyzes the read-write operation of the virtual disk into the read-write operation of the corresponding qcow2 format mirror image file in the mirror image file system by the qcow2 algorithm module, and calls the operating system bootstrap program in the virtual disk, so that the operating system is started in the virtual disk device, thereby completing the starting of the operating system.
Referring to fig. 2, the system for starting a qcow 2-format system image by using a physical machine according to an embodiment of the present invention includes a sending module, a first creating module, a loading module, and a second creating module.
The sending module is used for distributing the system image file in the qcow2 format to the VOI client and storing the system image file into an image file system of the VOI client to which the VOI client belongs; the first creating module is used for driving a bottom driver of the VOI client to create a first virtual disk corresponding to a mirror image disk to which a system mirror image file belongs, and realizing a read-write function on the created first virtual disk; the loading module is used for loading an operating system bootstrap program in the first virtual disk to guide the operating system, so that the booting of the operating system is realized, and when the operating system enters a kernel initialization stage, the kernel loads the upper driver of the VOI client; and the second creating module is used for driving the upper layer drive of the VOI client to create a second virtual disk corresponding to the mirror image disk to which the system mirror image file belongs and realizing the read-write function of the created second virtual disk.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

Claims (10)

1. A method for starting a qcow2 format system image by a physical machine is characterized by comprising the following steps:
distributing a system image file in a qcow2 format to a VOI client, and storing the system image file into an image file system of a VOI client to which the VOI client belongs;
a VOI client bottom driver creates a first virtual disk corresponding to a mirror disk to which a system mirror image file belongs, and realizes a read-write function on the created first virtual disk;
booting an operating system based on an operating system bootstrap program in a first virtual disk, and loading VOI client upper-layer drive by an operating system kernel when the operating system enters a kernel initialization stage;
the upper layer drive of the VOI client establishes a second virtual disk corresponding to the mirror image disk to which the system mirror image file belongs, and realizes the read-write function on the established second virtual disk;
and the kernel of the operating system identifies the second virtual disk, and takes the identified second virtual disk as a system disk to continue initializing the operating system so as to complete the starting of the operating system.
2. The method for physical machine boot qcow 2-formatted system image according to claim 1, wherein the step of distributing the qcow 2-formatted system image file to the VOI client and storing the system image file in the image file system of the VOI client to which the VOI client belongs comprises the following steps:
the VOI server side sends the system image file in the qcow2 format to the VOI client side;
and the VOI client receives the system image file and stores the received system image file into an image file system of a VOI client to which the VOI client belongs.
3. The method for starting the qcow 2-format system image by the physical machine according to claim 1, wherein the VOI client bottom driver creates a first virtual disk corresponding to the image disk to which the system image file belongs, and the specific steps include:
starting a VOI client belonging to the VOI client, entering a UEFI BIOS environment, and loading a VOI client bottom driver;
the VOI client bottom driver opens a system image file in the image file system by using the opening function of the qcow2 algorithm module to obtain an image disk handle;
the VOI client bottom layer driver obtains the size of the mirror image disk based on the obtained mirror image disk handle and by using the function of obtaining the size of the mirror image disk of the qcow2 algorithm module;
and calling a creating disk device interface of UEFI (unified extensible firmware interface) by the bottom driver of the VOI client, and creating a first virtual disk with the size equal to that of the mirror image disk.
4. The method for physical machine boot qcow2 formatted system images of claim 3, wherein: the VOI client bottom layer driver is a first starting item of UEFI.
5. The method for starting a qcow 2-format system image by a physical machine according to claim 1, wherein the step of creating a second virtual disk corresponding to the image disk to which the system image file belongs by the upper driver of the VOI client comprises the following specific steps:
the upper layer drive of the VOI client opens a system mirror image file in a mirror image file system by using the opening function of the qcow2 algorithm module to obtain a mirror image disk handle;
the upper layer drive of the VOI client acquires the size of the mirror image disk based on the acquired mirror image disk handle and by using the function of acquiring the size of the mirror image disk of the qcow2 algorithm module;
and the upper layer driver of the VOI client calls a disk device creating interface of a Windows or Linux kernel, and creates a second virtual disk with the size equal to that of the mirror image disk.
6. The method for starting the qcow 2-format system image by the physical machine, according to claim 3 or 5, wherein the method comprises the following steps:
the qcow2 algorithm module is used for providing an operation function for the system image file;
the operation functions comprise creating, opening, reading and writing, closing and obtaining the size of the mirror image disk.
7. The method for physical machine boot qcow2 formatted system images of claim 6, wherein: and the read-write function of the first virtual disk and the read-write function of the second virtual disk are realized by calling the read-write function of the qcow2 algorithm module through the mirror disk handle.
8. The method as claimed in claim 1, wherein the method for starting the qcow 2-format system image by the physical machine, the method comprises the following steps that an operating system boot program based on the operating system in the first virtual disk boots the operating system, and a VOI client upper driver is loaded by an operating system kernel when the operating system enters a kernel initialization phase, and the method comprises:
loading an operating system bootstrap program in a first virtual disk by a VOI client bottom driver;
the boot of the operating system is realized through the loaded operating system boot program;
and the operating system enters a kernel starting stage in a Windows or Linux system from a boot stage in a UEFI environment, so that the loading of the upper-layer driver of the VOI client in the kernel of the operating system is realized.
9. The method for physical machine boot qcow2 formatted system images of claim 8, wherein: the operating system boot program is located in an ESP partition of the first virtual disk.
10. A system for physical machine boot qcow2 formatted system mirroring, comprising:
the system comprises a sending module, a storage module and a processing module, wherein the sending module is used for distributing a system image file in a qcow2 format to a VOI client and storing the system image file into an image file system of a VOI client to which the VOI client belongs;
the system comprises a first creation module, a second creation module and a third creation module, wherein the first creation module is used for driving a VOI client bottom driver to create a first virtual disk corresponding to a mirror image disk to which a system mirror image file belongs, and realizing a read-write function on the created first virtual disk;
the loading module is used for loading an operating system bootstrap program in the first virtual disk to guide the operating system, so that the booting of the operating system is realized, and when the operating system enters a kernel initialization stage, the kernel loads the upper driver of the VOI client;
and the second creating module is used for driving the upper layer drive of the VOI client to create a second virtual disk corresponding to the mirror image disk to which the system mirror image file belongs, and realizing a read-write function on the created second virtual disk.
CN202011497064.9A 2020-12-17 2020-12-17 Method and system for starting qcow2 format system mirror image by physical machine Pending CN112506534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011497064.9A CN112506534A (en) 2020-12-17 2020-12-17 Method and system for starting qcow2 format system mirror image by physical machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011497064.9A CN112506534A (en) 2020-12-17 2020-12-17 Method and system for starting qcow2 format system mirror image by physical machine

Publications (1)

Publication Number Publication Date
CN112506534A true CN112506534A (en) 2021-03-16

Family

ID=74922257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011497064.9A Pending CN112506534A (en) 2020-12-17 2020-12-17 Method and system for starting qcow2 format system mirror image by physical machine

Country Status (1)

Country Link
CN (1) CN112506534A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312064A (en) * 2021-06-01 2021-08-27 中国民航信息网络股份有限公司 Installation configuration method and device of physical machine and computer readable medium
CN113377445A (en) * 2021-08-16 2021-09-10 北京升鑫网络科技有限公司 Method and device for starting multiple operating systems from online disk
CN114510278A (en) * 2022-01-21 2022-05-17 武汉噢易云计算股份有限公司 Data static recovery method, device and equipment and readable storage medium
CN115220797A (en) * 2022-04-21 2022-10-21 北京联合伟世科技股份有限公司 Operating system starting and deploying method, device, equipment, medium and program product

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312064A (en) * 2021-06-01 2021-08-27 中国民航信息网络股份有限公司 Installation configuration method and device of physical machine and computer readable medium
CN113312064B (en) * 2021-06-01 2024-03-26 中国民航信息网络股份有限公司 Method and device for installing and configuring physical machine and computer readable medium
CN113377445A (en) * 2021-08-16 2021-09-10 北京升鑫网络科技有限公司 Method and device for starting multiple operating systems from online disk
CN114510278A (en) * 2022-01-21 2022-05-17 武汉噢易云计算股份有限公司 Data static recovery method, device and equipment and readable storage medium
CN115220797A (en) * 2022-04-21 2022-10-21 北京联合伟世科技股份有限公司 Operating system starting and deploying method, device, equipment, medium and program product
CN115220797B (en) * 2022-04-21 2024-05-24 北京联合伟世科技股份有限公司 Operating system starting and deploying method, device, equipment, medium and program product

Similar Documents

Publication Publication Date Title
CN112506534A (en) Method and system for starting qcow2 format system mirror image by physical machine
EP3557410B1 (en) Upgrade orchestrator
US10055218B2 (en) System and method for adding and storing groups of firmware default settings
US7441113B2 (en) Method and apparatus for virtualization of appliances
US8904159B2 (en) Methods and systems for enabling control to a hypervisor in a cloud computing environment
US20100037041A1 (en) Booting a Computer System from Central Storage
CN101438266A (en) Booting an operating system in discrete stages
US20190317750A1 (en) Upgradeable component detection and validation
US11307907B2 (en) Information handling system and method to automatically synchronize operating system and boot firmware languages
CN110083399B (en) Applet running method, computer device and storage medium
US10303487B2 (en) System and method for booting an information handling system
US10318343B2 (en) Migration methods and apparatuses for migrating virtual machine including locally stored and shared data
CN115357310A (en) System starting method and device, electronic equipment and storage medium
CN102207876B (en) Streaming client system base images
US9852028B2 (en) Managing a computing system crash
US20190310874A1 (en) Driver management method and host
CN111433747A (en) Virtual memory for loading an operating system
US10185572B2 (en) Operating system load device resource selection
US8949587B2 (en) Method for dynamic loading of operating systems on bootable devices
CN115291951A (en) UEFI (unified extensible firmware interface) starting method and device, electronic equipment and storage medium
US10996893B2 (en) Non-volatile storage partition identifier
CN109144527A (en) The method and apparatus of operating system are installed in openstack platform
US20240020103A1 (en) Parallelizing data processing unit provisioning
CN112540826B (en) Edge computer controller configuration method and related equipment
KR102292211B1 (en) Electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination