CN108255573A - Virtual machine starts restorative procedure and server - Google Patents
Virtual machine starts restorative procedure and server Download PDFInfo
- Publication number
- CN108255573A CN108255573A CN201611249007.2A CN201611249007A CN108255573A CN 108255573 A CN108255573 A CN 108255573A CN 201611249007 A CN201611249007 A CN 201611249007A CN 108255573 A CN108255573 A CN 108255573A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- script
- default
- reconstruction
- disk
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45575—Starting, stopping, suspending or resuming virtual machine instances
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
A kind of virtual machine provided in an embodiment of the present invention starts restorative procedure and server, after virtual machine startup starts the startup setting data BCD that the system partitioning of virtual machine is rebuild to the catalogue reconstruction virtual machine into the boot partition place disk of virtual machine and according to where the system partitioning of reconstruction can be instructed according to repairing.In disk where the system partitioning of virtual machine is rebuild to the boot partition of virtual machine due to the present invention, system partitioning virtualization can be realized, ensure that system starts successfully;Since present invention catalogue according to where the system partitioning of reconstruction has rebuild BCD, so that virtual machine can find the BCD of the reconstruction and be started using BCD guiding virtual machines according to the system partitioning of reconstruction.As it can be seen that the present invention solves physical server and is converted to the startup failure problem after virtual machine.
Description
Technical field
The present invention relates to server technology fields more particularly to a kind of virtual machine to start restorative procedure and server.
Background technology
At present, popularizing with virtualization, more and more servers are using virtualization.Before using physical machine deployment
Server is also required to be converted to virtual machine.
The start-up course of virtual machine is:
(1), system powers up, and (2), loading system subregion, (3), loading system subregion BCD, (4) boot the system to and open
Dynamic subregion, (5), the operating system catalogue for loading boot partition, (6), into operating system.
Inventor is the study found that since the operating system of virtual machine is after the updates of windows server 2008, virtually
For the boot partition and system partitioning of machine not in a disk partition, usual system partitioning is hidden partition, leads to physical machine
After the server of upper deployment is converted to virtual machine, system can not be caused to start failure system partitioning virtualization.Meanwhile physics
BCD in machine is hiding, and virtual machine can not find BCD but also virtual machine starts failure in virtual machine start-up course.
Invention content
In view of the above problems, it is proposed that the present invention overcomes the above problem in order to provide one kind or solves at least partly
Virtual machine startup restorative procedure and server, the scheme for stating problem are as follows:
A kind of virtual machine starts restorative procedure, including:
After virtual machine startup starts, judge reparation instruction whether is received in preset time period, if received, hold
The following processing of row:
In disk where the system partitioning of virtual machine is rebuild to the boot partition of virtual machine;
The startup that virtual machine is rebuild according to catalogue where the system partitioning of reconstruction sets data BCD, so that the BCD is guided
Virtual machine starts according to the system partitioning of reconstruction;
Restart the virtual machine.
Optionally, it is described to rebuild the system partitioning of virtual machine into disk where boot partition, including:By performing the
One default script rebuilds the system partitioning of virtual machine into disk where boot partition, wherein, the first default script is deposited
It is stored in the system directory of system boot disk of virtual machine;
The startup that the catalogue according to where the system partitioning of reconstruction rebuilds virtual machine sets data BCD, including:By holding
Row second presets the startup setting data BCD that script rebuilds virtual machine with catalogue where the system partitioning according to reconstruction, wherein, institute
The second default script is stated to be stored in the system directory of system boot disk of virtual machine;
It is described to restart the virtual machine, including:Restart the virtual machine by performing the described second default script.
Optionally, after reparation instruction is received in preset time period, the first default script and described second are performed
Before default script, the method further includes:
Display includes the script catalogue of the described first default script and the second default script.
Optionally, it is described to be rebuild the system partitioning of virtual machine to magnetic where boot partition by performing the first default script
In disk, including:
Selection operation of the user to the described first default script in the script catalogue of display is received, performs the first default foot
This rebuilds the system partitioning of virtual machine into disk where boot partition;
The startup for rebuilding virtual machine with catalogue where the system partitioning according to reconstruction by the second default script of execution
Data BCD is set, including:
Selection operation of the user to the described second default script in the script catalogue of display is received, performs the second default foot
This rebuilds the startup setting data BCD of virtual machine with catalogue where the system partitioning according to reconstruction.
Optionally, the method further includes:
In the first default script and the second default scenario process is performed, show the first default script and
The implementation progress information of the second default script.
A kind of server, including:It repairs instruction judging unit and repairs unit,
It is described to repair instruction judging unit, for after virtual machine startup starts, judging whether connect in preset time period
Reparation instruction is received, if received, triggers the reparation unit;
The reparation unit includes:Subregion rebuilds subelement, data reconstruction subelement and restarts subelement,
The subregion rebuilds subelement, for rebuilding the system partitioning of virtual machine to the boot partition place magnetic of virtual machine
In disk;
The data reconstruction subelement rebuilds the startup setting of virtual machine for catalogue where the system partitioning according to reconstruction
Data BCD, so that the BCD guides virtual machine to be started according to the system partitioning of reconstruction;
It is described to restart subelement, for restarting the virtual machine.
Optionally, the subregion rebuilds subelement, and the first default script is performed by the system of virtual machine specifically for passing through
Subregion is rebuild into disk where boot partition, wherein, the first default script is stored in the system boot disk of virtual machine
In system directory;
The data reconstruction subelement performs the second default script with according to the system partitioning of reconstruction institute specifically for passing through
The startup that virtual machine is rebuild in catalogue sets data BCD, so that BCD guiding virtual machines are opened according to the system partitioning of reconstruction
It is dynamic, wherein, the second default script is stored in the system directory of system boot disk of virtual machine;
It is described to restart subelement, it performs the described second default script specifically for passing through and restarts the virtual machine.
Optionally, the server further includes:Script display unit, for being preset in the instruction judging unit of repairing
After reparation instruction is received in period, before triggering the reparation unit, display includes the described first default script and described
The script catalogue of second default script.
Optionally, the subregion rebuilds subelement, is specifically used for:User is received to described the in the script catalogue of display
The selection operation of one default script performs the first default script and rebuilds the system partitioning of virtual machine to disk where boot partition
In, wherein, the first default script is stored in the system directory of system boot disk of virtual machine;
The data reconstruction subelement, is specifically used for:It is default to described second in the script catalogue of display to receive user
The selection operation of script is performed the second default script and is set with the startup of catalogue reconstruction virtual machine where the system partitioning according to reconstruction
Data BCD is put, so that the BCD guides virtual machine to be started according to the system partitioning of reconstruction, wherein, the second default script is deposited
It is stored in the system directory of system boot disk of virtual machine.
Optionally, the server further includes:Progress display unit, it is pre- for performing described first in the reparation unit
If in script and the second default scenario process, show the execution of the first default script and the second default script into
Spend information.
By above-mentioned technical proposal, a kind of virtual machine provided in an embodiment of the present invention starts restorative procedure and server, can
After virtual machine startup starts, the system partitioning of virtual machine is rebuild to where the boot partition of virtual machine according to instruction is repaired
In disk and the catalogue according to where the system partitioning of reconstruction rebuilds the startup setting data BCD of virtual machine.Since the present invention will be empty
The system partitioning of plan machine is rebuild in disk where to the boot partition of virtual machine, therefore can realize system partitioning virtualization, is protected
Card system starts successfully;Since present invention catalogue according to where the system partitioning of reconstruction has rebuild BCD, so that virtual machine can
To find the BCD of the reconstruction and be started using BCD guiding virtual machines according to the system partitioning of reconstruction.As it can be seen that the present invention solves
Physical server is converted to the startup failure problem after virtual machine.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, below the special specific embodiment for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this field
Technical staff will become clear.Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows that a kind of virtual machine provided in an embodiment of the present invention starts the flow chart of restorative procedure;
Fig. 2 shows the flow charts that another virtual machine provided in an embodiment of the present invention starts restorative procedure;
Fig. 3 shows a kind of structure diagram of server provided in an embodiment of the present invention;
Fig. 4 shows the structure diagram of another server provided in an embodiment of the present invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
As shown in Figure 1, an embodiment of the present invention provides a kind of virtual machines to start restorative procedure, can include:
After S001, virtual machine startup start, judge reparation instruction whether is received in preset time period, if received
It arrives, then performs step S002 to step S004 successively, otherwise, other processing can be performed, such as:Control virtual machine normally starts.
Wherein, it can be the click commands that user clicks certain button or menu to repair instruction.After reparation instruction is received,
It can be introduced into and repair interface, then perform step S002 again to step S004.
S002, the system partitioning of virtual machine is rebuild into the boot partition place disk of virtual machine;
Specifically, the system partitioning of virtual machine can be rebuild to magnetic where boot partition by performing the first default script
In disk, wherein, the first default script is stored in the system directory of system boot disk of virtual machine.
Wherein, the described first default script can be:
cd x:Sources recovery # enter repair system
Bootrec.exe/fixmbr# repairs disk guiding book
Bootrec.exe/fixboot# repair system subregions
Bootrec.exe/RebuildBcd# rebuilds BCD
bcdboot c:\windows/s c:# repair systems subregion and boot partition relationship.
It will be appreciated by persons skilled in the art that system partitioning be guidance comprising loading Windows (such as Ntldr,
Boot.ini, Ntdetect.com) needed for hardware specific file subregion.
Boot partition then refers to comprising operating system and its supports the subregion of file.
The startup that S003, the catalogue according to where the system partitioning of reconstruction rebuild virtual machine sets data BCD, so that described
BCD guides virtual machine to be started according to the system partitioning of reconstruction;
S004, restart the virtual machine.
Wherein it is possible to virtual machine is rebuild with catalogue where the system partitioning according to reconstruction by performing the second default script
Start setting data BCD, wherein, the second default script is stored in the system directory of system boot disk of virtual machine.
Specifically, the virtual machine can be restarted by performing the described second default script.
Wherein, the second default script can be:
Cd/d%SYSTEMROOT% System32# enter system directory
cd x:\sources\recovery\>>Startnet.cmd# enters repair system
Bootrec.exe/fixmbr>>Startnet.cmd# repairs disk guiding book
Bootrec.exe/fixboot>>Startnet.cmd# repair system subregions
bootrec.exe/RebuildBcd>>Startnet.cmd# rebuilds BCD
bcdboot c:\windows/s c:>>Startnet.cmd# repair systems subregion and boot partition relationship.
Wherein, the system directory of the system boot disk of virtual machine can be C:\windows.
It is the important startup configuration files of Windows to start setting data (BCD, Boot Configuration Data),
The startup of Windows is to be completed by configuration therein (including boot partition and system partitioning), and startup item is and magnetic
Disc signature is associated.
Since the first default script, the second default script are stored in the system directory of system boot disk of virtual machine, because
This will read the script when virtual machine starts so as to perform the script.
Wherein, step S001 judges reparation instruction whether is received in preset time period after virtual machine startup starts
Before, can also include:By virtual machine boot to system Bootable CD-ROM.By by virtual machine boot to system Bootable CD-ROM, just
So that virtual machine carries out start-up course according to system Bootable CD-ROM.And then read and perform the system boot disk for being stored in virtual machine
System directory in the first default script, the second default script.
Specifically, before the present invention is performed, technical staff can write the above-mentioned first default script and second in advance first
If script, and the two scripts are placed in the system directory of system boot disk of virtual machine.Then on physical server
Disk crossover tool is installed, physical server boot disk is converted to the virtual hard disk of vhdx forms using the disk crossover tool
File copies transformed virtual hard disk file on virtualization host to.Then virtual machine is created, by virtual hard disk file
The hard disk of virtual machine is configured to, Windows system Bootable CD-ROMs are configured to the CD of virtual machine.
Wherein, vhdx forms are that Hyper-V in Windows Server 2012 introduces the virtual hard of new version
Disk form.It is understood that physical server boot disk can also be converted to the virtual hard disk file of extended formatting, this hair
It is bright not limit herein.
By the CD that Windows system Bootable CD-ROMs are configured to virtual machine so that will start when system starts virtual
Machine.It is empty since the first default script and the second default script are placed in the system directory of system boot disk of virtual machine
Plan machine will read the two scripts when starting, after user sends out reparation instruction, the two scripts will be performed, virtual so as to complete
Machine, which starts, to be repaired and virtual machine is controlled to restart.After virtual machine is restarted, for user without carrying out startup reparation again, virtual machine will voluntarily
It successfully starts up.
A kind of virtual machine provided in an embodiment of the present invention starts restorative procedure, can after virtual machine starts and starts, according to
It repairs in disk where instruction rebuilds the system partitioning of virtual machine to the boot partition of virtual machine and according to the system of reconstruction point
Catalogue where area rebuilds the startup setting data BCD of virtual machine.Since the present invention rebuilds the system partitioning of virtual machine to virtual
It in disk where the boot partition of machine, therefore can realize system partitioning virtualization, ensure that system starts successfully;Due to the present invention
BCD has been rebuild according to catalogue where the system partitioning of reconstruction, has been somebody's turn to do so that virtual machine can find the BCD of the reconstruction and use
BCD guides virtual machine to be started according to the system partitioning of reconstruction.As it can be seen that the present invention is solved after physical server is converted to virtual machine
Startup failure problem.
As shown in Fig. 2, another kind virtual machine provided in an embodiment of the present invention starts restorative procedure, received in step S001
After repairing instruction, before performing step S002, further include:
S001a, display include the script catalogue of the described first default script and the second default script.
Display script catalogue can cause user to see the script that will carry out repair, and user is facilitated to find the two
Script carries out other processing.
In other embodiments of the present invention, the first default script and the second default script can not perform automatically, but
It is performed again after user's selection, such as:
After virtual machine startup starts, judge reparation instruction whether is received in preset time period, if received, hold
The following processing of row:
Display includes the script catalogue of the described first default script and the second default script;
Selection operation of the user to the described first default script in the script catalogue of display is received, performs the first default foot
This rebuilds the system partitioning of virtual machine into disk where boot partition;
Selection operation of the user to the described second default script in the script catalogue of display is received, performs the second default foot
This is rebuild the startup setting data BCD of virtual machine with catalogue where the system partitioning according to reconstruction and restarts the virtual machine.
Optionally, another virtual machine provided in an embodiment of the present invention starts restorative procedure, can also include:
In the first default script and the second default scenario process is performed, show the first default script and
The implementation progress information of the second default script.
By the display of implementation progress information, user can be caused to know current implementation progress so that repair process has more
There is interactivity.
Corresponding with above method embodiment, the present invention also provides a kind of servers.
As shown in figure 3, a kind of server provided in an embodiment of the present invention, can include:Repair instruction 100 He of judging unit
Unit 200 is repaired,
It is described to repair instruction judging unit 100, for after virtual machine startup starts, judge in preset time period whether
Reparation instruction is received, if received, triggers the reparation unit;
Wherein, it can be the click commands that user clicks certain button or menu to repair instruction.Repair instruction judging unit 100
After reparation instruction is received, it can be introduced into and repair interface, then trigger the reparation unit 200 again.
The reparation unit 200 includes:Subregion rebuilds subelement 210, data reconstruction subelement 220 and restarts subelement
230,
The subregion rebuilds subelement 210, for rebuilding the system partitioning of virtual machine to the boot partition institute of virtual machine
In disk;
Specifically, subregion reconstruction subelement 210 can be by performing the first default script by the system partitioning weight of virtual machine
It builds into disk where boot partition, wherein, the first default script is stored in the system mesh of the system boot disk of virtual machine
In record.
Wherein, the described first default script can be:
cd x:Sources recovery # enter repair system
Bootrec.exe/fixmbr# repairs disk guiding book
Bootrec.exe/fixboot# repair system subregions
Bootrec.exe/RebuildBcd# rebuilds BCD
bcdboot c:\windows/s c:# repair systems subregion and boot partition relationship.
It will be appreciated by persons skilled in the art that system partitioning be guidance comprising loading Windows (such as Ntldr,
Boot.ini, Ntdetect.com) needed for hardware specific file subregion.
Boot partition then refers to comprising operating system and its supports the subregion of file.
The data reconstruction subelement 220 rebuilds the startup of virtual machine for catalogue where the system partitioning according to reconstruction
Data BCD is set, so that the BCD guides virtual machine to be started according to the system partitioning of reconstruction;
It is described to restart subelement 230, for restarting the virtual machine.
Wherein, data reconstruction subelement 220 can be by performing the second default script with according to the system partitioning of reconstruction institute
The startup that virtual machine is rebuild in catalogue sets data BCD, so that BCD guiding virtual machines are opened according to the system partitioning of reconstruction
It is dynamic, wherein, the second default script is stored in the system directory of system boot disk of virtual machine.
Specifically, the virtual machine can be restarted by performing the described second default script by restarting subelement 230.
Wherein, the second default script can be:
Cd/d%SYSTEMROOT% System32# enter system directory
cd x:\sources\recovery\>>Startnet.cmd# enters repair system
Bootrec.exe/fixmbr>>Startnet.cmd# repairs disk guiding book
Bootrec.exe/fixboot>>Startnet.cmd# repair system subregions
bootrec.exe/RebuildBcd>>Startnet.cmd# rebuilds BCD
bcdboot c:\windows/s c:>>Startnet.cmd# repair systems subregion and boot partition relationship.
Wherein, the system directory of the system boot disk of virtual machine can be C:\windows.
It is the important startup configuration files of Windows to start setting data (BCD, Boot Configuration Data),
The startup of Windows is to be completed by configuration therein (including boot partition and system partitioning), and startup item is and magnetic
Disc signature is associated.
Since the first default script, the second default script are stored in the system directory of system boot disk of virtual machine, because
This will read the script when virtual machine starts so as to perform the script.
Wherein, server shown in Fig. 3 can also include:Guidance unit, for repairing instruction judging unit 100 virtual
After machine startup starts, before judging whether to receive reparation instruction in preset time period, virtual machine boot to system is started
CD.
By by virtual machine boot to system Bootable CD-ROM, allowing for virtual machine and according to system Bootable CD-ROM started
Journey.And then read and perform the first default script in the system directory of system boot disk for being stored in virtual machine, second default
Script.
Specifically, before the present invention is performed, technical staff can write the above-mentioned first default script and second in advance first
If script, and the two scripts are placed in the system directory of system boot disk of virtual machine.Then on physical server
Disk crossover tool is installed, physical server boot disk is converted to the virtual hard disk of vhdx forms using the disk crossover tool
File copies transformed virtual hard disk file on virtualization host to.Then virtual machine is created, by virtual hard disk file
The hard disk of virtual machine is configured to, Windows system Bootable CD-ROMs are configured to the CD of virtual machine.
Wherein, vhdx forms are that Hyper-V in Windows Server 2012 introduces the virtual hard of new version
Disk form.It is understood that physical server boot disk can also be converted to the virtual hard disk file of extended formatting, this hair
It is bright not limit herein.
By the CD that Windows system Bootable CD-ROMs are configured to virtual machine so that will start when system starts virtual
Machine.It is empty since the first default script and the second default script are placed in the system directory of system boot disk of virtual machine
Plan machine will read the two scripts when starting, after user sends out reparation instruction, the two scripts will be performed, virtual so as to complete
Machine, which starts, to be repaired and virtual machine is controlled to restart.After virtual machine is restarted, for user without carrying out startup reparation again, virtual machine will voluntarily
It successfully starts up.
A kind of server provided in an embodiment of the present invention, can be after virtual machine startup starts, will be empty according to instruction is repaired
The system partitioning of plan machine is rebuild in disk where to the boot partition of virtual machine and according to the system partitioning place catalogue weight of reconstruction
Build the startup setting data BCD of virtual machine.Since the present invention rebuilds the system partitioning of virtual machine to the boot partition of virtual machine
It in the disk of place, therefore can realize system partitioning virtualization, ensure that system starts successfully;Since the present invention according to reconstruction is
Catalogue where system subregion has rebuild BCD, so that virtual machine can find the BCD of the reconstruction and be guided using the BCD virtual
Machine starts according to the system partitioning of reconstruction.As it can be seen that the present invention, which solves physical server, is converted to the startup failure after virtual machine
Problem.
As shown in figure 4, another kind server provided in an embodiment of the present invention, can also include:Script display unit 300,
For after the reparation instruction judging unit 100 receives reparation instruction in preset time period, triggering the reparation unit
Before 200, display includes the script catalogue of the described first default script and the second default script.
Display script catalogue can cause user to see the script that will carry out repair, and user is facilitated to find the two
Script carries out other processing.
In other embodiments of the present invention, the first default script and the second default script can not perform automatically, but
It is performed again after user's selection, i.e.,:
The subregion rebuilds subelement 210, can be specifically used for:User is received to described the in the script catalogue of display
The selection operation of one default script performs the first default script and rebuilds the system partitioning of virtual machine to disk where boot partition
In, wherein, the first default script is stored in the system directory of system boot disk of virtual machine;
The data reconstruction subelement 220, can be specifically used for:User is received to described the in the script catalogue of display
The selection operation of two default scripts performs the second default script and rebuilds virtual machine with catalogue where the system partitioning according to reconstruction
Start setting data BCD, so that the BCD guides virtual machine to be started according to the system partitioning of reconstruction, wherein, described second is default
Script is stored in the system directory of system boot disk of virtual machine.
Optionally, another server provided in an embodiment of the present invention, can also include:
Progress display unit is preset for performing the described first default script and described second in the reparation unit 200
In scenario process, the implementation progress information of the first default script and the second default script is shown.
By the display of implementation progress information, user can be caused to know current implementation progress so that repair process has more
There is interactivity.
The server unit includes processor and memory, and above-mentioned reparation instruction judging unit, reparation unit, script are shown
Show that unit and progress display unit etc. in memory, storage are performed in memory by processor as program unit storage
Above procedure unit realize corresponding function.
Comprising kernel in processor, gone in memory to transfer corresponding program unit by kernel.Kernel can set one
Or more, solve the startup failure problem after physical server is converted to virtual machine by adjusting kernel parameter.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM), memory includes at least one deposit
Store up chip.
A kind of server provided in an embodiment of the present invention, can be after virtual machine startup starts, will be empty according to instruction is repaired
The system partitioning of plan machine is rebuild in disk where to the boot partition of virtual machine and according to the system partitioning place catalogue weight of reconstruction
Build the startup setting data BCD of virtual machine.Since the present invention rebuilds the system partitioning of virtual machine to the boot partition of virtual machine
It in the disk of place, therefore can realize system partitioning virtualization, ensure that system starts successfully;Since the present invention according to reconstruction is
Catalogue where system subregion has rebuild BCD, so that virtual machine can find the BCD of the reconstruction and be guided using the BCD virtual
Machine starts according to the system partitioning of reconstruction.As it can be seen that the present invention, which solves physical server, is converted to the startup failure after virtual machine
Problem.
Present invention also provides a kind of computer program products, first when being performed on data processing equipment, being adapted for carrying out
The program code of beginningization there are as below methods step:
After virtual machine startup starts, judge reparation instruction whether is received in preset time period, if received, hold
The following processing of row:
In disk where the system partitioning of virtual machine is rebuild to the boot partition of virtual machine;
The startup that virtual machine is rebuild according to catalogue where the system partitioning of reconstruction sets data BCD, so that the BCD is guided
Virtual machine starts according to the system partitioning of reconstruction;
Restart the virtual machine.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program
Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the application
Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the application
The computer program production that usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The application is with reference to the flow according to the method for the embodiment of the present application, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real
The device of function specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or
The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie
The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, CD-ROM read-only memory (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, available for storing the information that can be accessed by a computing device.It defines, calculates according to herein
Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It these are only embodiments herein, be not limited to the application.To those skilled in the art,
The application can have various modifications and variations.All any modifications made within spirit herein and principle, equivalent replacement,
Improve etc., it should be included within the scope of claims hereof.
Claims (10)
1. a kind of virtual machine starts restorative procedure, which is characterized in that including:
After virtual machine startup starts, judge reparation instruction whether is received in preset time period, if received, perform such as
Lower processing:
In disk where the system partitioning of virtual machine is rebuild to the boot partition of virtual machine;
The startup that virtual machine is rebuild according to catalogue where the system partitioning of reconstruction sets data BCD, so that BCD guiding is virtual
Machine starts according to the system partitioning of reconstruction;
Restart the virtual machine.
2. according to the method described in claim 1, it is characterized in that, described rebuild the system partitioning of virtual machine to boot partition
In the disk of place, including:The system partitioning of virtual machine is rebuild to disk where boot partition by performing the first default script
In, wherein, the first default script is stored in the system directory of system boot disk of virtual machine;
The startup that the catalogue according to where the system partitioning of reconstruction rebuilds virtual machine sets data BCD, including:By performing the
The startup that two default scripts rebuild virtual machine with catalogue where system partitioning according to reconstruction sets data BCD, wherein, described the
Two default scripts are stored in the system directory of system boot disk of virtual machine;
It is described to restart the virtual machine, including:Restart the virtual machine by performing the described second default script.
3. according to the method described in claim 2, it is characterized in that, after receiving reparation instruction in preset time period, perform
Before the first default script and the second default script, the method further includes:
Display includes the script catalogue of the described first default script and the second default script.
4. according to the method described in claim 3, it is characterized in that, described be by virtual machine by performing the first default script
System subregion is rebuild into disk where boot partition, including:
Selection operation of the user to the described first default script in the script catalogue of display is received, performing the first default script will
The system partitioning of virtual machine is rebuild into disk where boot partition;
It is described to be set by performing the second default script with the startup of catalogue reconstruction virtual machine where the system partitioning according to reconstruction
Data BCD, including:
User is received to the selection operation of the described second default script in the script catalogue of display, perform the second default script with
The startup setting data BCD of virtual machine is rebuild according to catalogue where the system partitioning of reconstruction.
5. according to the method described in claim 2, it is characterized in that, the method further includes:
In the first default script and the second default scenario process is performed, the first default script and described is shown
The implementation progress information of second default script.
6. a kind of server, which is characterized in that including:It repairs instruction judging unit and repairs unit,
It is described to repair instruction judging unit, for after virtual machine startup starts, judging whether received in preset time period
Instruction is repaired, if received, triggers the reparation unit;
The reparation unit includes:Subregion rebuilds subelement, data reconstruction subelement and restarts subelement,
The subregion rebuilds subelement, for rebuilding the system partitioning of virtual machine to the boot partition place disk of virtual machine
In;
The data reconstruction subelement, the startup that virtual machine is rebuild for catalogue where the system partitioning according to reconstruction set data
BCD, so that the BCD guides virtual machine to be started according to the system partitioning of reconstruction;
It is described to restart subelement, for restarting the virtual machine.
7. server according to claim 6, which is characterized in that the subregion rebuilds subelement, is held specifically for passing through
Row first presets script and rebuilds the system partitioning of virtual machine into disk where boot partition, wherein, the first default foot
Originally it is stored in the system directory of system boot disk of virtual machine;
The data reconstruction subelement performs the second default script with mesh where the system partitioning according to reconstruction specifically for passing through
The startup setting data BCD of virtual machine is rebuild in record, so that the BCD guides virtual machine to be started according to the system partitioning of reconstruction,
In, the second default script is stored in the system directory of system boot disk of virtual machine;
It is described to restart subelement, it performs the described second default script specifically for passing through and restarts the virtual machine.
8. server according to claim 7, which is characterized in that the server further includes:Script display unit, is used for
It is described repair instruction judging unit received in preset time period reparation instruction after, trigger it is described reparation unit before, display
Include the script catalogue of the described first default script and the second default script.
9. server according to claim 8, which is characterized in that the subregion rebuilds subelement, is specifically used for:It receives and uses
To the selection operation of the described first default script in the script catalogue of display, perform the first default script is by virtual machine at family
System subregion is rebuild into disk where boot partition, wherein, the first default script is stored in the system boot disk of virtual machine
System directory in;
The data reconstruction subelement, is specifically used for:User is received to the described second default script in the script catalogue of display
Selection operation, perform the second default script the startup of virtual machine rebuild with catalogue where system partitioning according to reconstruction number is set
According to BCD, so that the BCD guides virtual machine to be started according to the system partitioning of reconstruction, wherein, the second default script is stored in
In the system directory of the system boot disk of virtual machine.
10. server according to claim 7, which is characterized in that the server further includes:Progress display unit is used
In the first default script and the second default scenario process is performed in the reparation unit, display described first is default
The implementation progress information of script and the second default script.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611249007.2A CN108255573A (en) | 2016-12-29 | 2016-12-29 | Virtual machine starts restorative procedure and server |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611249007.2A CN108255573A (en) | 2016-12-29 | 2016-12-29 | Virtual machine starts restorative procedure and server |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN108255573A true CN108255573A (en) | 2018-07-06 |
Family
ID=62721628
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611249007.2A Pending CN108255573A (en) | 2016-12-29 | 2016-12-29 | Virtual machine starts restorative procedure and server |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108255573A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111381930A (en) * | 2018-12-29 | 2020-07-07 | 北京奇虎科技有限公司 | Method, device and electronic device for automatic deployment of virtual machine |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102799483A (en) * | 2012-06-28 | 2012-11-28 | 北京奇虎科技有限公司 | Method and device for converting runtime environments of operating system |
| CN103440111A (en) * | 2013-08-05 | 2013-12-11 | 北京京东尚科信息技术有限公司 | Method for expanding disk space of virtual machines, host machines and platform |
| CN103488515A (en) * | 2012-12-05 | 2014-01-01 | 张维加 | Equipment combining USB guide system and program virtual machine |
| CN103984910A (en) * | 2014-05-14 | 2014-08-13 | 清华大学深圳研究生院 | System partitioning hiding method |
| US20160092261A1 (en) * | 2014-09-30 | 2016-03-31 | Sangfor Technologies Company Limited | Method and system for physical computer system virtualization |
-
2016
- 2016-12-29 CN CN201611249007.2A patent/CN108255573A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102799483A (en) * | 2012-06-28 | 2012-11-28 | 北京奇虎科技有限公司 | Method and device for converting runtime environments of operating system |
| CN103488515A (en) * | 2012-12-05 | 2014-01-01 | 张维加 | Equipment combining USB guide system and program virtual machine |
| CN103440111A (en) * | 2013-08-05 | 2013-12-11 | 北京京东尚科信息技术有限公司 | Method for expanding disk space of virtual machines, host machines and platform |
| CN103984910A (en) * | 2014-05-14 | 2014-08-13 | 清华大学深圳研究生院 | System partitioning hiding method |
| US20160092261A1 (en) * | 2014-09-30 | 2016-03-31 | Sangfor Technologies Company Limited | Method and system for physical computer system virtualization |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111381930A (en) * | 2018-12-29 | 2020-07-07 | 北京奇虎科技有限公司 | Method, device and electronic device for automatic deployment of virtual machine |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11314499B2 (en) | Simulating end-to-end upgrade process in production environment | |
| US11934811B2 (en) | Container image building using dependency container images | |
| KR101533901B1 (en) | Networked recovery system | |
| US20180341471A1 (en) | Software appliance distribution with layer removal | |
| RU2409838C2 (en) | Archiving data in virtual application enviroinment | |
| CN103530162B (en) | The method and system that the on-line automatic software of a kind of virtual machine is installed | |
| CN107193615B (en) | Project code information updating and deploying method and device | |
| US20120246645A1 (en) | Method for managing virtual machine, information processing apparatus, and medium for virtual machine management program | |
| US8639973B2 (en) | System reset | |
| GB2508643A (en) | Method for Performing a Regression Test after Modifying Source Code File | |
| US9110699B2 (en) | Determining optimal methods for creating virtual machines | |
| CN107506221A (en) | Application program updating method, apparatus and equipment | |
| US10338910B2 (en) | Multi-tenant upgrading | |
| CN110941516B (en) | Operating system restoration method, device, equipment and storage medium | |
| CN112732367A (en) | Event flow processing method, device and equipment and readable storage medium | |
| CN112579077B (en) | Page processing method and device in application, application service platform and equipment | |
| CN108255573A (en) | Virtual machine starts restorative procedure and server | |
| US20240152371A1 (en) | Dynamic re-execution of parts of a containerized application pipeline | |
| US20210311766A1 (en) | Validation and pre-check of combined software/firmware updates | |
| CN118427162B (en) | Authorization control method and device for operating system, electronic equipment, storage medium and program product | |
| CN118409780B (en) | Method and device for generating kernel hot patch file, electronic equipment, storage medium and computer program product | |
| JP7504775B2 (en) | Computer system, program, and program correction method | |
| CN113347620B (en) | Method, device, equipment and storage medium for compatibility of multi-version application air card issuing | |
| CN109558208A (en) | Product is created or modified on the operating system volume of institute's carry | |
| CN119621086A (en) | Linux operating system installation method, device, electronic device and storage medium |
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 | ||
| CB02 | Change of applicant information |
Address after: 100080 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd. Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing Applicant before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd. |
|
| CB02 | Change of applicant information | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180706 |
|
| RJ01 | Rejection of invention patent application after publication |