CN113467887A - Fault repairing method, host machine and readable storage medium - Google Patents

Fault repairing method, host machine and readable storage medium Download PDF

Info

Publication number
CN113467887A
CN113467887A CN202110716783.3A CN202110716783A CN113467887A CN 113467887 A CN113467887 A CN 113467887A CN 202110716783 A CN202110716783 A CN 202110716783A CN 113467887 A CN113467887 A CN 113467887A
Authority
CN
China
Prior art keywords
disk
virtual machine
repair
boot
starting
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.)
Granted
Application number
CN202110716783.3A
Other languages
Chinese (zh)
Other versions
CN113467887B (en
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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN202110716783.3A priority Critical patent/CN113467887B/en
Publication of CN113467887A publication Critical patent/CN113467887A/en
Application granted granted Critical
Publication of CN113467887B publication Critical patent/CN113467887B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • 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/45591Monitoring or debugging support

Landscapes

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

Abstract

The invention discloses a fault repairing method, a host machine and a readable storage medium, wherein the fault repairing method comprises the following steps: modifying a starting guide disk of the first virtual machine from the first disk to a second disk; if a first virtual machine starting instruction is received, starting a second virtual machine based on the winpe system stored in the second disk in a guiding way, and repairing a guiding file in the first disk through the second virtual machine; and if the repair is detected to be completed, modifying the starting guide disk of the first virtual machine from the second disk to the first disk. The invention improves the fault repairing efficiency and solves the problem of low fault repairing efficiency.

Description

Fault repairing method, host machine and readable storage medium
Technical Field
The invention relates to the field of cloud computing, in particular to a fault repairing method, a host machine and a readable storage medium.
Background
The virtual machine windows system often encounters the situations of upgrading and updating failure, damaged boot files and the like, so that the virtual machine windows system cannot normally enter the system after being restarted next time. When similar faults of a virtual machine of a certain scale occur, the manual repair efficiency is low.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a fault repairing method, which aims to improve the fault repairing efficiency and solve the problem of low fault repairing efficiency.
In order to achieve the above object, the present invention provides a fault repairing method, including the steps of:
modifying a starting guide disk of the first virtual machine from the first disk to a second disk;
if a first virtual machine starting instruction is received, starting a second virtual machine based on the winpe system stored in the second disk in a guiding way, and repairing a guiding file in the first disk through the second virtual machine;
and if the repair is detected to be completed, modifying the starting guide disk of the first virtual machine from the second disk to the first disk.
Further, the fault repairing method further comprises the following steps:
when the situation that the system cannot be guided to enter the system normally is detected, displaying system repair prompt information, wherein a display interface of the system repair prompt information also comprises a repair control;
and if the repair control is triggered, executing the step of modifying the starting guide disk of the first virtual machine from the first disk to the second disk.
Further, when it is detected that the system cannot be normally guided to enter the system, system repair prompt information is displayed, wherein after the step of repairing the control is further included in the display interface of the system repair prompt information, the method further includes:
if the repair control is triggered, carrying out snapshot on the first disk so as to reserve the original data of the first disk;
after the step of booting and starting the second virtual machine based on the winpe system saved in the second disk and repairing the boot file in the first disk by the second virtual machine, the method further includes:
and if a recovery instruction is received, updating the restored boot file in the first disk into the original data.
Further, if a first virtual machine start instruction is received, the step of starting a second virtual machine based on the winpe system boot stored in the second disk, and repairing the boot file in the first disk by the second virtual machine includes:
if a first virtual machine starting instruction is received, starting a second virtual machine based on the winpe system stored in the second disk;
after the second virtual machine is started, a boot repair tool is started through the second virtual machine, so that the second virtual machine can identify and repair the boot file in the first disk through the boot repair tool.
Further, if a first virtual machine start instruction is received, the step of starting a second virtual machine based on the winpe system boot stored in the second disk includes:
if a first virtual machine starting instruction is received, finding a second disk according to a guide disk path of the first virtual machine;
and booting and starting a second virtual machine through a winpe system in the second disk.
Further, after the step of starting a boot repair tool by the second virtual machine after the second virtual machine is started, so that the second virtual machine identifies and repairs the boot file in the first disk by the boot repair tool, the method further includes:
if the repair is detected to be completed, displaying a repair completion prompt message of the system to prompt a user that the repair is completed;
and after the prompt information is displayed, executing the step of modifying the starting guide disk of the first virtual machine from the second disk to the first disk.
Further, after the step of modifying the boot disk of the first virtual machine from the second disk to the first disk if the repair is detected to be completed, the method further includes:
after a first virtual machine starting instruction is received, the first virtual machine is started through the first disk;
and displaying a user password login interface generated by the first virtual machine so that a user can log in the system.
Further, before the step of modifying the boot disk of the first virtual machine from the first disk to the second disk, the method further includes:
and when the repair control is triggered, acquiring the winpe system from the system background, and mounting the winpe system mirror image to the second disk so as to modify the boot disk of the first virtual machine from the first disk to the second disk.
In order to achieve the above object, the present invention further provides a host, where the host includes a memory, a processor, and a fault repairing program stored in the memory and operable on the processor, and the fault repairing program, when executed by the processor, implements the steps of the fault repairing method described in any one of the above.
In order to achieve the above object, the present invention further provides a readable storage medium having a fault recovery program stored thereon, the fault recovery program implementing the steps of the fault recovery method according to any one of the above when executed by a processor.
In the technical scheme of the invention, a boot disk of a first virtual machine is modified from a first disk to a second disk; if a first virtual machine starting instruction is received, starting a second virtual machine based on the winpe system stored in the second disk in a guiding way, and repairing a guiding file in the first disk through the second virtual machine; if the completion of the repair is detected, the starting guide disk of the first virtual machine is modified from the second disk to the first disk, so that the second virtual machine is added, the guide disk of the first virtual machine to be repaired is modified to the second virtual machine, the guide file in the first disk of the original guide disk of the first virtual machine is repaired by the second virtual machine starting guide repair tool, the fault can be repaired by executing the steps only by confirming the repair by a user, manual repair is not needed, the fault repair efficiency is improved, and the problem of low fault repair efficiency is solved.
Drawings
FIG. 1 is a schematic diagram of an apparatus in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a fault recovery method according to the present invention;
FIG. 3 is a flowchart illustrating a fault recovery method according to a second embodiment of the present invention;
fig. 4 is a detailed flowchart of step S200 in the fourth embodiment of the fault repairing method according to the present invention;
fig. 5 is a detailed flowchart of step S210 in the fault repairing method according to the fifth embodiment of the present invention;
FIG. 6 is a flowchart illustrating a method for repairing a fault according to a sixth embodiment of the present invention;
fig. 7 is a flowchart illustrating a fault repairing method according to a seventh embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The technical scheme of the invention is mainly as follows:
modifying a starting guide disk of the first virtual machine from the first disk to a second disk;
if a first virtual machine starting instruction is received, starting a second virtual machine based on the winpe system stored in the second disk in a guiding way, and repairing a guiding file in the first disk through the second virtual machine;
and if the repair is detected to be completed, modifying the starting guide disk of the first virtual machine from the second disk to the first disk.
In the related technology, after a professional maintainer enters a system through a CDROM mounted winpe for solving a guide fault, a repair tool disc is used for repairing the guide of an original virtual machine by constructing a special command, and when the guide fault occurs to a certain scale number of virtual machines, the efficiency is low due to the fact that the manual repair process is complicated.
In the technical scheme of the invention, a boot disk of a first virtual machine is modified from a first disk to a second disk; if a first virtual machine starting instruction is received, starting a second virtual machine based on the winpe system stored in the second disk in a guiding way, and repairing a guiding file in the first disk through the second virtual machine; and if the repair is detected to be completed, modifying the starting guide disk of the first virtual machine from the second disk to the first disk. Therefore, the second virtual machine is added, the guide disk of the first virtual machine to be repaired is modified into the second virtual machine, the guide repairing tool is started through the second virtual machine to repair the guide file in the first disk of the original guide disk of the first virtual machine, the user can repair the fault only by determining to repair the guide file, the fault can be repaired without manual repair, the fault repairing efficiency is improved, and the problem of low fault repairing efficiency is solved.
As shown in fig. 1, fig. 1 is a schematic diagram of a hardware operating environment of a terminal according to an embodiment of the present invention.
As shown in fig. 1, a terminal according to an embodiment of the present invention is a host, and the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the terminal shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a fail-over program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the bug fix program stored in the memory 1005 and perform the following operations:
modifying a starting guide disk of the first virtual machine from the first disk to a second disk;
if a first virtual machine starting instruction is received, starting a second virtual machine based on the winpe system stored in the second disk in a guiding way, and repairing a guiding file in the first disk through the second virtual machine;
and if the repair is detected to be completed, modifying the starting guide disk of the first virtual machine from the second disk to the first disk.
Further, the processor 1001 may call a bug fix program stored in the memory 1005, and also perform the following operations:
when the situation that the system cannot be guided to enter the system normally is detected, displaying system repair prompt information, wherein a display interface of the system repair prompt information also comprises a repair control;
and if the repair control is triggered, executing the step of modifying the starting guide disk of the first virtual machine from the first disk to the second disk.
Further, the processor 1001 may call a bug fix program stored in the memory 1005, and also perform the following operations:
if the repair control is triggered, carrying out snapshot on the first disk so as to reserve the original data of the first disk;
after the step of booting and starting the second virtual machine based on the winpe system saved in the second disk and repairing the boot file in the first disk by the second virtual machine, the method further includes:
and if a recovery instruction is received, updating the restored boot file in the first disk into the original data.
Further, the processor 1001 may call a bug fix program stored in the memory 1005, and also perform the following operations:
if a first virtual machine starting instruction is received, starting a second virtual machine based on the winpe system stored in the second disk;
after the second virtual machine is started, a boot repair tool is started through the second virtual machine, so that the second virtual machine can identify and repair the boot file in the first disk through the boot repair tool.
Further, the processor 1001 may call a bug fix program stored in the memory 1005, and also perform the following operations:
if a first virtual machine starting instruction is received, finding a second disk according to a guide disk path of the first virtual machine;
and booting and starting a second virtual machine through a winpe system in the second disk.
Further, the processor 1001 may call a bug fix program stored in the memory 1005, and also perform the following operations:
if the repair is detected to be completed, displaying a repair completion prompt message of the system to prompt a user that the repair is completed;
and after the prompt information is displayed, executing the step of modifying the starting guide disk of the first virtual machine from the second disk to the first disk.
Further, the processor 1001 may call a bug fix program stored in the memory 1005, and also perform the following operations:
after a first virtual machine starting instruction is received, the first virtual machine is started through the first disk;
and displaying a user password login interface generated by the first virtual machine so that a user can log in the system.
Further, the processor 1001 may call a bug fix program stored in the memory 1005, and also perform the following operations:
and when the repair control is triggered, acquiring the winpe system from the system background, and mounting the winpe system mirror image to the second disk so as to modify the boot disk of the first virtual machine from the first disk to the second disk.
As shown in fig. 2, according to a first embodiment of the present invention, the fault repairing method includes the following steps:
step S100, modifying a starting guide disk of a first virtual machine from a first disk to a second disk;
in this embodiment, the first disk is an original boot disk of the first virtual machine, and when the first virtual machine needs to be started, a path of the boot disk in the first virtual machine needs to be acquired, a corresponding boot disk is found through the path, and the first virtual machine is started through the boot disk; the second disk is a CDROM mounted with a winpe system, the winpe system executes a designated script and an application program after being started, when the system is subjected to conditions such as failure in upgrading and updating, damage to a boot file and the like, and cannot be normally booted to enter the system after being restarted next time, the boot file in the first disk of the boot disk of the first virtual machine needs to be repaired, at the moment, the starting boot disk of the first virtual machine is modified from the first disk to the second disk, so that the boot file in the first disk can be repaired by starting the second virtual machine through the second disk.
Step S200, if a first virtual machine starting instruction is received, a second virtual machine is started based on the winpe system stored in the second disk in a guiding mode, and a guiding file in the first disk is repaired through the second virtual machine;
in this embodiment, after the boot disk of the first virtual machine is modified from the first disk to the second disk, the boot disk path of the first virtual machine is modified to the address of the second disk, and when a first virtual machine boot instruction is received, the second disk is booted according to the path of the boot disk in the first virtual machine, so as to boot the second virtual machine, at this time, the second virtual machine boots the boot repair tool disp, and the boot repair tool may identify the boot file in the first disk and repair the boot file.
Step S300, if the completion of the repair is detected, the boot disk of the first virtual machine is modified from the second disk to the first disk.
In this embodiment, after the repair guidance tool dis repairs the guidance file of the first disk, the repair guidance tool notifies the second virtual machine that the repair is completed, the second virtual machine executes a shutdown operation after receiving the notification, after the host detects that the second virtual machine is powered off, a prompt message pops up on a display screen to prompt a user that the repair is completed, and then before starting the first virtual machine next time, the start guidance disk of the first virtual machine is modified from the second disk to the first disk, so that the first virtual machine is started through the first disk.
In summary, the application modifies the boot disk of the first virtual machine from the first disk to the second disk; if a first virtual machine starting instruction is received, starting a second virtual machine based on the winpe system stored in the second disk in a guiding way, and repairing a guiding file in the first disk through the second virtual machine; if the completion of the repair is detected, the starting guide disk of the first virtual machine is modified from the second disk to the first disk, so that the second virtual machine is added, the guide disk of the first virtual machine to be repaired is modified to the second virtual machine, the guide file in the first disk of the original guide disk of the first virtual machine is repaired by the second virtual machine starting guide repair tool, and the fault can be repaired by executing the steps only by determining the repair by a user, so that the fault repair efficiency is improved, and the problem of low fault repair efficiency is solved.
As shown in fig. 3, based on the second embodiment of the fault repairing method of the present invention proposed by the first embodiment, the fault repairing method further includes the following steps:
step S400, when the situation that the system cannot be guided to enter the system normally is detected, system repair prompt information is displayed, wherein a display interface of the system repair prompt information also comprises a repair control;
step S500, if the repair control is triggered, executing the step of modifying the boot disk of the first virtual machine from the first disk to the second disk.
In this embodiment, when the virtual machine windows system encounters conditions such as update failure and damaged boot files, and cannot normally enter the system after being restarted next time, the host displays system repair prompt information on the display interface, and the display interface further includes a repair control, and when the repair control is triggered, the host modifies the boot disk of the first virtual machine from the first disk to the second disk so as to close the first disk, and the boot file in the first disk is repaired by using the boot repair tool of the second virtual machine. Therefore, the fault repairing program can be started by triggering the repairing control without manual repairing, and the fault repairing efficiency is improved.
Based on the third embodiment of the failure method in the present invention proposed by the second embodiment, after the step S400, the method further includes:
if the repair control is triggered, carrying out snapshot on the first disk so as to reserve the original data of the first disk;
after the step of booting and starting the second virtual machine based on the winpe system saved in the second disk and repairing the boot file in the first disk by the second virtual machine, the method further includes:
and if a recovery instruction is received, updating the restored boot file in the first disk into the original data.
In this embodiment, when the repair control on the display interface is triggered, a snapshot technique is used to record data in the first disk, so that the data in the first disk is reserved before the second virtual machine is started to repair the boot file in the first disk, because a repair failure condition may occur in the process of repairing the boot file, in order to avoid that the first disk cannot be normally used due to such a condition, the data in the first disk is stored by using the snapshot technique, when the first disk cannot be normally used, after a recovery instruction is received, the repaired boot file in the first disk is updated to the original data, and the first disk is recovered to the state before the repair control is triggered. Therefore, the files in the first disk are saved by snapshooting the files in the first disk, and a user can conveniently restore the first disk to a state before restoration and booting in the future.
As shown in fig. 4, based on the fourth embodiment of the fault repairing method of the present invention proposed by the first embodiment, step S200 includes:
step S210, if a first virtual machine starting instruction is received, a second virtual machine is started based on the winpe system boot stored in the second disk;
step S220, after the second virtual machine is started, starting a boot repair tool through the second virtual machine, so that the second virtual machine can identify and repair the boot file in the first disk through the boot repair tool.
In the embodiment, when the boot disk of the first virtual machine is modified from the first disk to the second disk, the boot disk path of the first virtual machine is also modified from the address of the first disk to the address of the second disk, when a first virtual machine starting instruction is received, finding the second disk according to the starting guide disk path of the first virtual machine, wherein the winpe system mirror image is mounted to the second disk as a boot disk for starting the first virtual machine, after the second virtual machine is started, the second virtual machine starts a boot repair tool, the boot repair tool performs a boot repair on a boot file in the first disk, and repairing the boot file, wherein the boot repairing tool informs the second virtual machine that the repair is completed after the repair is completed, so that the second virtual machine executes the next operation according to the notification. Therefore, the second virtual machine is started through the winpe system in the second disk, and then the second virtual machine operates the guiding repair tool to repair the guiding file of the first disk, so that a fault repair program completes repair work, manual repair is not needed, and the fault repair efficiency is improved.
As shown in fig. 5, based on the fifth embodiment of the fault repairing method of the present invention proposed by the fourth embodiment, step S210 includes:
step S211, if a first virtual machine starting instruction is received, finding a second disk according to a guide disk path of the first virtual machine;
and step S212, booting and starting a second virtual machine through the winpe system in the second disk.
In this embodiment, after the boot disk of the first virtual machine is modified from the first disk to the second disk, when a first virtual machine boot instruction is received, the second disk is found according to the boot disk path of the first virtual machine, and the winpe system image is mounted to the second disk to boot the second virtual machine, so that the second virtual machine runs a boot repair tool, and the boot repair tool repairs the boot file in the first disk.
As shown in fig. 6, based on the sixth embodiment of the fault repairing method of the present invention proposed by the fourth embodiment, after step S220, the method further includes:
step S230, if the repair is detected to be completed, displaying a repair completion prompt message of the system to prompt a user that the repair is completed;
and step S240, after the prompt message is displayed, executing the step of modifying the starting guide disk of the first virtual machine from the second disk to the first disk.
In this embodiment, after the boot repair tool completes repairing the boot file in the first disk, a notification is sent to the second virtual machine, the second virtual machine receives the notification and is automatically closed, when the host detects that the second virtual machine is closed, that is, when it detects that the repair is completed, the host displays a prompt message indicating that the system completes the repair on the display screen to prompt the user that the repair is completed, and then automatically starts up the computer, after the prompt message is displayed, the host modifies the boot disk of the first virtual machine from the second disk to the repaired first disk, that is, modifies the boot disk path of the first virtual machine from the address of the second disk to the address of the first disk, so that the host takes the original boot disk of the first virtual machine as the boot disk to pull up the first virtual machine. Therefore, after the repair is completed, the prompt message is displayed on the display screen, and the guide disk of the first virtual machine is modified into the first disk, so that the first virtual machine can be restarted and enter the system through normal guide.
As shown in fig. 7, based on the seventh embodiment of the fault repairing method of the present invention proposed in the first embodiment, after step S300, the method further includes:
step S600, after receiving a first virtual machine starting instruction, guiding and starting the first virtual machine through the first disk;
and S700, displaying a user password login interface generated by the first virtual machine so that a user can log in the system.
In this embodiment, after a boot file in a first disk is repaired, a host modifies a boot disk from a second disk to the first disk, after a first virtual machine boot instruction is received, a corresponding boot disk boot path is obtained through the first virtual machine, the first disk is found and started according to the path, the first virtual machine is booted through the first disk, and the first virtual machine inputs a generated user password login interface into the host, so that the host displays the user password login interface on a display screen for a user to enter and use the system after inputting information.
Based on the eighth embodiment of the fault repairing method provided by the first embodiment, before the step S100, the method further includes:
and when the repair control is triggered, acquiring the winpe system from the system background, and mounting the winpe system mirror image to the second disk so as to modify the boot disk of the first virtual machine from the first disk to the second disk.
In this embodiment, the winpe system is stored in a system background, after the winpe system is started, a specified script and an application program are executed, the winpe system is mounted to a second disk to boot and start a second virtual machine, and a boot disk of the first virtual machine is modified from a first disk to the second disk, so that the second virtual machine is started through the winpe system, and then the second virtual machine runs a boot repair tool to repair a boot file in the first disk, so as to obtain a repaired first disk, and complete fault repair.
In order to achieve the above object, the present invention further provides a host, where the host includes a memory, a processor, and a fault repairing program stored in the memory and operable on the processor, and the fault repairing program, when executed by the processor, implements the steps of the fault repairing method described in any one of the above.
In order to achieve the above object, the present invention further provides a readable storage medium having a fault recovery program stored thereon, the fault recovery program implementing the steps of the fault recovery method according to any one of the above when executed by a processor.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be substantially or partially embodied in the form of a software product, which is stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling an electronic device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A fault repairing method is applied to a host machine, and comprises the following steps:
modifying a starting guide disk of the first virtual machine from the first disk to a second disk;
if a first virtual machine starting instruction is received, starting a second virtual machine based on the winpe system stored in the second disk in a guiding way, and repairing a guiding file in the first disk through the second virtual machine;
and if the repair is detected to be completed, modifying the starting guide disk of the first virtual machine from the second disk to the first disk.
2. The fault repair method of claim 1, further comprising:
when the situation that the system cannot be guided to enter the system normally is detected, displaying system repair prompt information, wherein a display interface of the system repair prompt information also comprises a repair control;
and if the repair control is triggered, executing the step of modifying the starting guide disk of the first virtual machine from the first disk to the second disk.
3. The fault repairing method according to claim 2, wherein when it is detected that the system cannot be normally guided into the system, a system repair prompt message is displayed, wherein after the step of further including a repair control in a display interface of the system repair prompt message, the method further comprises:
if the repair control is triggered, carrying out snapshot on the first disk so as to reserve the original data of the first disk;
after the step of booting and starting the second virtual machine based on the winpe system saved in the second disk and repairing the boot file in the first disk by the second virtual machine, the method further includes:
and if a recovery instruction is received, updating the restored boot file in the first disk into the original data.
4. The method for repairing a failure according to claim 1, wherein the step of booting and starting the second virtual machine based on a winpe system stored in the second disk and repairing the boot file in the first disk by the second virtual machine, if the first virtual machine boot instruction is received, comprises:
if a first virtual machine starting instruction is received, starting a second virtual machine based on the winpe system stored in the second disk;
after the second virtual machine is started, a boot repair tool is started through the second virtual machine, so that the second virtual machine can identify and repair the boot file in the first disk through the boot repair tool.
5. The method for repairing a failure as claimed in claim 4, wherein the step of booting the second virtual machine based on the winpe system stored in the second disk if the first virtual machine boot instruction is received comprises:
if a first virtual machine starting instruction is received, finding a second disk according to a guide disk path of the first virtual machine;
and booting and starting a second virtual machine through a winpe system in the second disk.
6. The method for repairing a failure of claim 4, wherein after the step of starting a boot repair tool by the second virtual machine after the second virtual machine is started, for the second virtual machine to identify and repair the boot file in the first disk by the boot repair tool, further comprises:
if the repair is detected to be completed, displaying a repair completion prompt message of the system to prompt a user that the repair is completed;
and after the prompt information is displayed, executing the step of modifying the starting guide disk of the first virtual machine from the second disk to the first disk.
7. The method for repairing a failure of claim 1, wherein after the step of modifying the boot disk of the first virtual machine from the second disk to the first disk if the completion of the repair is detected, further comprising:
after a first virtual machine starting instruction is received, the first virtual machine is started through the first disk;
and displaying a user password login interface generated by the first virtual machine so that a user can log in the system.
8. The method for failover according to claim 1, wherein prior to the step of modifying the boot disk of the first virtual machine from the first disk to the second disk, further comprising:
when the repair control is triggered, the winpe system is called from the system background, and the winpe system mirror image is mounted to the second disk so as to modify the guide disk of the first virtual machine from the first disk to the second disk.
9. A host comprising a memory, a processor and a failover program stored on the memory and operable on the processor, the failover program when executed by the processor implementing the steps of the failover method of any of claims 1 to 8.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a fault remediation program which, when executed by a processor, carries out the steps of the fault remediation method of any one of claims 1 to 8.
CN202110716783.3A 2021-06-25 2021-06-25 Fault repairing method, host machine and readable storage medium Active CN113467887B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110716783.3A CN113467887B (en) 2021-06-25 2021-06-25 Fault repairing method, host machine and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110716783.3A CN113467887B (en) 2021-06-25 2021-06-25 Fault repairing method, host machine and readable storage medium

Publications (2)

Publication Number Publication Date
CN113467887A true CN113467887A (en) 2021-10-01
CN113467887B CN113467887B (en) 2024-02-23

Family

ID=77873181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110716783.3A Active CN113467887B (en) 2021-06-25 2021-06-25 Fault repairing method, host machine and readable storage medium

Country Status (1)

Country Link
CN (1) CN113467887B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662783A (en) * 2012-03-20 2012-09-12 浪潮电子信息产业股份有限公司 Method for repairing virtual machine under desktop cloud environment
CN102819470A (en) * 2012-08-13 2012-12-12 广州杰赛科技股份有限公司 Private cloud computing platform-based virtual machine repair method
CN103885863A (en) * 2012-12-24 2014-06-25 腾讯科技(深圳)有限公司 System fault processing method and virtual machine
CN104503772A (en) * 2014-11-21 2015-04-08 北京奇虎科技有限公司 Operating system installation and test environment establishment method and device based on virtual machine
CN105843682A (en) * 2016-03-29 2016-08-10 新浪网技术(中国)有限公司 Method and apparatus for migrating virtual machine to IaaS cloud platform
CN106445730A (en) * 2016-07-22 2017-02-22 平安科技(深圳)有限公司 Method for improving performance of virtual machine, and terminal
US9740520B1 (en) * 2015-09-30 2017-08-22 Veritas Technologies Systems and methods for virtual machine boot disk restoration
US20170371547A1 (en) * 2016-06-28 2017-12-28 International Business Machines Corporation File level access to block level incremental backups of a virtual disk
CN110109773A (en) * 2019-04-11 2019-08-09 苏州浪潮智能科技有限公司 A kind of detection method and system of magnetic disk of virtual machine consistency
CN110196749A (en) * 2018-02-26 2019-09-03 中兴通讯股份有限公司 The restoration methods and device of virtual machine, storage medium and electronic device
CN111966526A (en) * 2019-05-20 2020-11-20 中兴通讯股份有限公司 Virtual machine backup method and device based on cloud platform data center
US20200371882A1 (en) * 2019-05-24 2020-11-26 Beijing Baidu Netcom Science And Technology Co., Ltd. Method, Apparatus, Device and Medium for Starting Virtual Machine
CN112286634A (en) * 2020-10-29 2021-01-29 北京浪潮数据技术有限公司 Method, system, equipment and readable storage medium for repairing virtual machine
WO2021098267A1 (en) * 2019-11-22 2021-05-27 苏州浪潮智能科技有限公司 Magnetic disk processing method, system, and device, and readable storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662783A (en) * 2012-03-20 2012-09-12 浪潮电子信息产业股份有限公司 Method for repairing virtual machine under desktop cloud environment
CN102819470A (en) * 2012-08-13 2012-12-12 广州杰赛科技股份有限公司 Private cloud computing platform-based virtual machine repair method
CN103885863A (en) * 2012-12-24 2014-06-25 腾讯科技(深圳)有限公司 System fault processing method and virtual machine
CN104503772A (en) * 2014-11-21 2015-04-08 北京奇虎科技有限公司 Operating system installation and test environment establishment method and device based on virtual machine
US9740520B1 (en) * 2015-09-30 2017-08-22 Veritas Technologies Systems and methods for virtual machine boot disk restoration
CN105843682A (en) * 2016-03-29 2016-08-10 新浪网技术(中国)有限公司 Method and apparatus for migrating virtual machine to IaaS cloud platform
US20170371547A1 (en) * 2016-06-28 2017-12-28 International Business Machines Corporation File level access to block level incremental backups of a virtual disk
CN106445730A (en) * 2016-07-22 2017-02-22 平安科技(深圳)有限公司 Method for improving performance of virtual machine, and terminal
CN110196749A (en) * 2018-02-26 2019-09-03 中兴通讯股份有限公司 The restoration methods and device of virtual machine, storage medium and electronic device
CN110109773A (en) * 2019-04-11 2019-08-09 苏州浪潮智能科技有限公司 A kind of detection method and system of magnetic disk of virtual machine consistency
CN111966526A (en) * 2019-05-20 2020-11-20 中兴通讯股份有限公司 Virtual machine backup method and device based on cloud platform data center
US20200371882A1 (en) * 2019-05-24 2020-11-26 Beijing Baidu Netcom Science And Technology Co., Ltd. Method, Apparatus, Device and Medium for Starting Virtual Machine
WO2021098267A1 (en) * 2019-11-22 2021-05-27 苏州浪潮智能科技有限公司 Magnetic disk processing method, system, and device, and readable storage medium
CN112286634A (en) * 2020-10-29 2021-01-29 北京浪潮数据技术有限公司 Method, system, equipment and readable storage medium for repairing virtual machine

Also Published As

Publication number Publication date
CN113467887B (en) 2024-02-23

Similar Documents

Publication Publication Date Title
CN106775610B (en) Electronic equipment starting method and electronic equipment
US11314665B2 (en) Information processing system, information processing device, BIOS updating method for information processing device, and BIOS updating program for information processing device
CN115794257B (en) System starting method, device, electronic equipment and storage medium
CN110780942A (en) System starting method and device, node equipment and computer readable storage medium
WO2018049798A1 (en) Method and apparatus for reconstructing cache partition
CN111698558A (en) Television software upgrading method, television terminal and computer readable storage medium
CN113485755B (en) Device driver verification method, device and storage medium
CN109408133B (en) Method and equipment for starting assembly
CN112579361B (en) Backup data reconstruction method, device, equipment and storage medium
CN110597662A (en) Backup data automatic verification method and device, user equipment and storage medium
CN113360379A (en) Program testing method and program testing device
CN113467887A (en) Fault repairing method, host machine and readable storage medium
CN115913913B (en) Network card pre-starting execution environment function fault positioning method and device
CN111857740A (en) Software upgrading method and device
CN112882871B (en) Host conflict detection method, device, equipment and storage medium
CN106792193B (en) Android television-based repair system and repair method
CN115658152A (en) Firmware upgrading method, firmware, electronic device and computer readable storage medium
CN114995854A (en) Application program online upgrading method and device, terminal and operation machine
CN110673930B (en) Virtual machine migration method, virtualization device, storage medium and device
CN112035136A (en) Firmware image recovery method and system based on UEFI
CN113515291A (en) Equipment online upgrading method and device
CN114968297A (en) OTA (over the air) upgrading method, electronic equipment and chip system
CN117234782A (en) Method, system, equipment and medium for repairing boot black screen of Linux system by combination key
CN111273981B (en) Android system-based display screen adaptation method and system
CN112783522B (en) File loading method, file loading device and electronic equipment

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
GR01 Patent grant
GR01 Patent grant