CN104424015B - A kind of virtual machine management method and device - Google Patents
A kind of virtual machine management method and device Download PDFInfo
- Publication number
- CN104424015B CN104424015B CN201310412362.7A CN201310412362A CN104424015B CN 104424015 B CN104424015 B CN 104424015B CN 201310412362 A CN201310412362 A CN 201310412362A CN 104424015 B CN104424015 B CN 104424015B
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- label
- instruction
- state
- deletion
- 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.)
- Active
Links
- 238000007726 management method Methods 0.000 title claims abstract description 23
- 238000012217 deletion Methods 0.000 claims abstract description 70
- 230000037430 deletion Effects 0.000 claims abstract description 70
- 238000000034 method Methods 0.000 claims abstract description 25
- 238000003860 storage Methods 0.000 claims description 30
- 230000001960 triggered effect Effects 0.000 claims description 10
- 239000011800 void material Substances 0.000 claims description 7
- 238000011084 recovery Methods 0.000 abstract 1
- 230000006870 function Effects 0.000 description 5
- 230000006399 behavior Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000012790 confirmation Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000007306 turnover Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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; CALCULATING OR 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/45562—Creating, deleting, cloning 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)
- Storage Device Security (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A kind of virtual machine management method of the embodiment of the present invention offer and device, are related to computer realm, provide a kind of virtual machine deletion mode of band protection, avoid the loss that accidentally delete operation is brought and provided facility to the user.Its method is:Instruction is deleted by receiving user, status indication is carried out to virtual machine in delete operation.System can be given for change operation by label deletion state virtual machine recovery normal condition by reception user operation instruction execution or execute permanent delet operation by label deletion state virtual machine permanent delet and discharge all resources;It directly can also execute or remind user to execute permanent delet operation according to preset condition.The embodiment of the present invention is used for the operational administrative to virtual machine.
Description
Technical field
The present invention relates to computer realm more particularly to a kind of virtual machine management methods and device.
Background technology
Virtualization technology is one of key technology of cloud computing, is mainly used for the physical resource of a physical machine is virtual
At multiple virtual machines(Virtual Machine, VM)So that each virtual machine can realize the function of physical machine.Virtual machine
It is the abstract representative of the physical computer system of necessary being, in practical application, if enterprise handles official business, call center, school's religion
It educates, it is often necessary to which a large amount of deployment use.In some cases, since student leaves school, the various originals such as labor turnover, business migration
Cause needs to delete virtual machine.
Currently, being broadly divided into two classes to the delete operation of virtual machine in the prior art:
The first kind be by the direct permanent delet of virtual machine, it is permanent to discharge calculating that virtual machine occupied, deposit when deleting
The resources such as storage, network.Another kind is also by the direct permanent delet of virtual machine, but while deleting can select to retain depositing for virtual machine
Resource is stored up, in this way when deleting, only release calculating, Internet resources, do not discharge storage resource.System manager can subsequently find
The originally corresponding disk of virtual machine restores virtual machine again using the disk.
During stating virtual machine deletion in realization, inventor has found that at least there are the following problems in the prior art:
The first kind deletes the protection deficiency to user misoperation, once occur accidentally to delete, the number in virtual machine and virtual machine
According to can not all restore, may bring about great losses to user.Although the deletion of the second class can restore empty from magnetic disk of virtual machine
Data of quasi- machine, but since the magnetic disc ID that magnetic disk of virtual machine mark uses is uncorrelated to virtual machine title, to find with virtually
The corresponding disk of machine is relatively difficult;And the disk that remains can occupy a large amount of storage resource when deleting virtual machine, need be
System administrator deletes manually, and system scale is larger, when virtual machine quantity is more, administrator be difficult find it is corresponding with virtual machine
Disk.
Invention content
A kind of virtual machine management method of the embodiment of the present invention offer and device, shape is carried out in delete operation to virtual machine
State mark, by preset condition or operation to virtual machine carry out permanent delet, solve user's delete operation safety it is poor, work
The low problem of efficiency.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that:
In a first aspect, a kind of virtual machine management method is provided, including:
Obtain the deletion instruction that user executes virtual machine delete operation;
If the deletion is designated as the first puncturing pattern, the virtual machine is closed, and by the virtual machine mark
It is denoted as label deletion state, label is obtained and deletes state virtual machine;
Operational order is obtained, and state virtual machine is deleted to the label according to the operational order and is grasped accordingly
Make.
With reference to first aspect, in the first possible implementation, described to close the virtual machine, and by the void
Labeled as label deletion state, obtain label deletion state virtual machine includes quasi- machine:
The virtual machine is closed, the computing resource of the virtual machine is discharged, retains storage resource, the net of the virtual machine
Network resource, and be label deletion state by the virtual machine indicia, it obtains label and deletes state virtual machine.
With reference to first aspect, in second of possible realization method, the operational order is to give instruction for change or permanently delete
Except instruction;
The permanent delet instruction is to be triggered to generate according to preset condition, or generated by user's operation.
Second of possible realization method with reference to first aspect, it is described permanent in the third possible realization method
It is to include according to what preset condition triggering generated to delete instruction:
If meeting the preset condition, triggering system generate user reminding message, so as to by user's operation generate described in forever
Instruction is deleted long;Or,
If meeting the preset condition, triggers the system and generate the permanent delet instruction;
The preset condition includes:
The time span that the virtual machine is in the label deletion state is more than predetermined time period;And/or system is surplus
Remaining storage resource is less than the default storage resource threshold value of system.
Second of possible realization method with reference to first aspect or the third possible realization method, in the 4th kind of possibility
Realization method in, it is described state virtual machine deleted to the label according to the operational order carry out corresponding operation include:
If the operational order instructs for permanent delet, the label is deleted into state virtual machine permanent delet, and release
Put all resources that the label deletes state virtual machine;
If the operational order is to give instruction for change, label deletion state virtual machine is reverted into normal condition, and
Virtual machine to restore normal condition redistributes required resource.
With reference to first aspect, in the 5th kind of possible realization method, the method further includes:
If the deletion is designated as the second puncturing pattern, directly by the virtual machine permanent delet, and institute is discharged
State all resources of virtual machine.
Second aspect provides a kind of virtual machine management device, including:
Instruction acquisition unit, the deletion for executing delete operation to virtual machine for obtaining user instruct;
Deleting unit is marked, for when the deletion is designated as the first puncturing pattern, the virtual machine to be closed,
And the virtual machine indicia is obtained label and delete state virtual machine to mark deletion state;
Operating unit, for obtaining operational order, according to the operational order to the label delete state virtual machine into
The corresponding operation of row.
In conjunction with second aspect, in the first possible implementation, the label deleting unit is specifically used for:
The virtual machine is closed, the computing resource of the virtual machine is discharged, retains storage resource, the net of the virtual machine
Network resource, and be label deletion state by the virtual machine indicia, it obtains label and deletes state virtual machine.
In conjunction with second aspect, in second of possible realization method, the operational order is to give instruction for change or permanently delete
Except instruction;
The permanent delet instruction is to be triggered to generate according to preset condition, or generated by user's operation.
In conjunction with second of possible realization method of second aspect, in the third possible realization method, the operation
Unit is specifically used for:
The permanent delet instruction is generated according to preset condition triggering, including:
If meeting the preset condition, triggering system generate user reminding message, so as to by user's operation generate described in forever
Instruction is deleted long;Or,
If meeting the preset condition, triggers the system and generate the permanent delet instruction;
The preset condition includes:
The time span that the virtual machine is in the label deletion state is more than predetermined time period;And/or system is surplus
Remaining storage resource is less than the default storage resource threshold value of system.
In conjunction with second of the possible realization method or the third possible realization method of second aspect, in the 4th kind of possibility
Realization method in, the operating unit is specifically used for:
If the operational order instructs for permanent delet, the label is deleted into state virtual machine permanent delet, and release
Put all resources that the label deletes state virtual machine;
If the operational order is to give instruction for change, label deletion state virtual machine is reverted into normal condition, and
Virtual machine to restore normal condition redistributes required resource.
In conjunction with second aspect, in the 5th kind of possible realization method, the label deleting unit is additionally operable to:
When the deletion is designated as the second puncturing pattern, directly by the virtual machine permanent delet, and institute is discharged
State all resources of virtual machine.
A kind of virtual machine management method of the embodiment of the present invention offer and device are deleted instruction by receiving user, are being deleted
Status indication is carried out to virtual machine when division operation.System can give operation for change by label deletion by receiving user operation instruction execution
State virtual machine restores normal condition or executes permanent delet operation by label deletion state virtual machine permanent delet and discharge institute
There is resource;It directly can also execute or remind user to execute permanent delet operation according to preset condition.It is deleted in this way, improving user
The safety of division operation improves delete operation working efficiency, has provided facility to the user.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow diagram of virtual machine management method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another virtual machine management method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram one of virtual machine management device provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram two of virtual machine management device provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment provides a kind of virtual machine management methods, as shown in Figure 1, this method includes:
S101, the deletion instruction that user executes virtual machine delete operation is obtained.
If S102, deletion are designated as the first puncturing pattern, virtual machine is closed, and is label by virtual machine indicia
Deletion state obtains label and deletes state virtual machine.
S103, operational order is obtained, and state virtual machine is deleted to label according to operational order and is operated accordingly.
The embodiment of the present invention provides a kind of virtual machine management method, instruction is deleted by receiving user, in delete operation
When to virtual machine carry out status indication.System can give operation for change by label deletion state void by receiving user operation instruction execution
Quasi- machine restores normal condition or label is deleted state virtual machine permanent delet and discharge all moneys by the operation of execution permanent delet
Source;It directly can also execute or remind user to execute permanent delet operation according to preset condition.In this way, improving user deletes behaviour
The safety of work improves delete operation working efficiency, has provided facility to the user.
In order to enable those skilled in the art to be more clearly understood that technical solution provided in an embodiment of the present invention, lead to below
Specific embodiment is crossed, another virtual machine management method provided in an embodiment of the present invention is described in detail, such as Fig. 2 institutes
Show, this method includes:
S201, the deletion instruction that user executes virtual machine delete operation is obtained.
Specifically, the deletion that the deletion instruction that user executes virtual machine delete operation can be label delete operation refers to
It enables, or the deletion instruction of permanent delet operation.
Wherein, the deletion of delete operation is marked to be designated as the first puncturing pattern;The deletion instruction of permanent delet operation
It is designated as the second puncturing pattern.
S202, judge deleting instruction.
If being designated as the first puncturing pattern specifically, deleting, S203 is executed;If deletion is designated as second and deletes
Except pattern, then S206 is directly executed.
S203, delete operation is marked to virtual machine, obtains label and deletes state virtual machine.
Specifically, virtual machine is closed, the computing resource of virtual machine is discharged, retains storage resource, the network money of virtual machine
Source, and be label deletion state by virtual machine indicia, it obtains label and deletes state virtual machine.State virtual machine is deleted not to label
It can carry out such as starting, stop various conventional virtual machine operations, can only carry out giving operation or permanent delet operation for change.
S204, obtain the operational order that state virtual machine is deleted label.
Specifically, operational order is to give instruction or permanent delet instruction for change;
Wherein, giving instruction for change is generated by user's operation, and user can delete state virtual machine to label as needed
It carries out giving operation for change, instruction is given in execution for change;Permanent delet instruction can be according to preset condition trigger generate, or by with
Family operation generates.
Illustratively, it is triggered to generate permanent delet and instruct according to preset condition and may include:
If meeting preset condition, triggering system generates user reminding message, and user is reminded to delete state virtual machine to label
Permanent delet is carried out, user can delete state virtual machine to label by hand and carry out permanent delet operation, hold after confirmation is errorless
Row permanent delet instructs;Or,
If meeting preset condition, triggering system generates permanent delet instruction, and directly state virtual is deleted to label by system
Machine executes permanent delet operation, executes permanent delet instruction.
Wherein, preset condition includes:The time span that virtual machine is in label deletion state is more than predetermined time period;
And/or system spare storage resource is less than the default storage resource threshold value of system.
In addition, it is noted that it is above-mentioned meet remind after preset condition user to delete state virtual machine to label to carry out
The mode of permanent delet, and directly label deletion state virtual machine execution permanent delet is grasped by system after meeting preset condition
The mode of work can select any of which, can also use simultaneously.It is exemplary when using above two mode at the same time
, it could be provided as:By taking storage resource as an example, it is assumed that pre-set the first threshold and the second threshold about remaining storage resource
Value can first remind user to delete state virtual machine to label and carry out forever when system spare storage resource is less than first threshold
Deletion long, then confirm to delete after the label deletes state virtual machine by user and permanent delet just is carried out to it, if no couple of user
Label deletes state virtual machine and carries out permanent delet, then when system spare storage resource is less than second threshold, no longer to user
It is reminded, the label is directly deleted into state virtual machine permanent delet.
S205, according to operational order, state virtual machine is deleted to label and is operated accordingly.
If operational order instructs for permanent delet, S206 is executed;If operational order is to give instruction for change, S207 is executed.
S206, permanent delet operation is carried out to virtual machine.
Specifically, by virtual machine permanent delet, and discharge all resources of virtual machine.Wherein, all resources include virtual
Calculating that machine is occupied, storage, Internet resources.
S207, label deletion state virtual machine is reverted into normal condition, and to restore the virtual machine of normal condition again
Resource needed for distribution.
The embodiment of the present invention provides a kind of virtual machine management method, instruction is deleted by receiving user, in delete operation
When to virtual machine carry out status indication.System can give operation for change by label deletion state void by receiving user operation instruction execution
Quasi- machine restores normal condition or label is deleted state virtual machine permanent delet and discharge all moneys by the operation of execution permanent delet
Source;It directly can also execute or remind user to execute permanent delet operation according to preset condition.In this way, improving user deletes behaviour
The safety of work improves delete operation working efficiency, has provided facility to the user.
The embodiment of the present invention also provides a kind of virtual machine management device 00, and such as Fig. 3, which includes:
Instruction acquisition unit 001, the deletion for executing delete operation to virtual machine for obtaining user instruct;
Deleting unit 002 is marked, for when deletion is designated as the first puncturing pattern, virtual machine to be closed, and will
Virtual machine indicia is label deletion state, obtains label and deletes state virtual machine;
Operating unit 003 is deleted state virtual machine to label according to operational order and is carried out accordingly for obtaining operational order
Operation.
Optionally, label deleting unit 002 is specifically used for:
Virtual machine is closed, the computing resource of virtual machine is discharged, retains storage resource, the Internet resources of virtual machine, and will
Virtual machine indicia is label deletion state, obtains label and deletes state virtual machine.
Optionally, operational order is to give instruction or permanent delet instruction for change;
Wherein, permanent delet instruction is to be triggered to generate according to preset condition, or generated by user's operation.
Optionally, operating unit 003 is specifically used for:
It is triggered according to preset condition and generates permanent delet instruction, including:
If meeting preset condition, triggering system generates user reminding message, refers to generate permanent delet by user's operation
It enables;Or,
If meeting preset condition, triggering system generates permanent delet instruction.
Preset condition includes:
The time span that virtual machine is in label deletion state is more than predetermined time period;And/or system spare storage money
Source is less than the default storage resource threshold value of system.
Optionally, operating unit 003 can be also used for:
If operational order instructs for permanent delet, label is deleted into state virtual machine permanent delet, and release mark is deleted
Except all resources of state virtual machine;
If operational order is to give instruction for change, label is deleted into state virtual machine and reverts to normal condition, and to restore just
The virtual machine of normal state redistributes required resource.
Optionally, label deleting unit 002 can be also used for:
When deletion is designated as the second puncturing pattern, directly by virtual machine permanent delet, and the institute of virtual machine is discharged
There is resource.
The embodiment of the present invention provides a kind of virtual machine management device, instruction is deleted by receiving user, in delete operation
When to virtual machine carry out status indication.System can give operation for change by label deletion state void by receiving user operation instruction execution
Quasi- machine restores normal condition or label is deleted state virtual machine permanent delet and discharge all moneys by the operation of execution permanent delet
Source;It directly can also execute or remind user to execute permanent delet operation according to preset condition.In this way, improving user deletes behaviour
The safety of work improves delete operation working efficiency, has provided facility to the user.
The embodiment of the present invention additionally provides a kind of virtual machine management device 01, as shown in figure 4, the virtual machine management device 01
Including:
Bus 011 and the processor 012, memory 013 and interface 014 for being connected to bus 011, wherein interface 014 are used
It is communicated in external equipment;
For storing instruction, the processor 012 is for executing the instruction for obtaining user to virtual machine for the memory 013
Execute the deletion instruction of delete operation;
The processor 012 executes the instruction and is additionally operable to when deletion is designated as the first puncturing pattern, by virtual organ
It closes, and is label deletion state by virtual machine indicia, obtain label and delete state virtual machine;
The processor 012 executes the instruction and is additionally operable to obtain operational order, empty to label deletion state according to operational order
Quasi- machine is operated accordingly.
In embodiments of the present invention, optionally, which executes the instruction and can be specifically used for:By virtual organ
It closes, discharges the computing resource of virtual machine, retain storage resource, the Internet resources of virtual machine, and be that label is deleted by virtual machine indicia
Except state, obtains label and delete state virtual machine.
In embodiments of the present invention, optionally, aforesaid operations instruction can be to give instruction or permanent delet instruction for change,
In, permanent delet instruction is to be triggered to generate according to preset condition, or generated by user's operation.
In embodiments of the present invention, optionally, which executes the instruction and is generated for being triggered according to preset condition
Permanent delet instructs:
If meeting preset condition, triggering system generates user reminding message, refers to generate permanent delet by user's operation
It enables;Or, directly triggering system generates permanent delet instruction.
Wherein, preset condition includes:The time span that virtual machine is in label deletion state is more than predetermined time period;
And/or system spare storage resource is less than the default storage resource threshold value of system.
In embodiments of the present invention, optionally, which executes the instruction and can be also used for:
If operational order instructs for permanent delet, label is deleted into state virtual machine permanent delet, and release mark is deleted
Except all resources of state virtual machine;
If operational order is to give instruction for change, label is deleted into state virtual machine and reverts to normal condition, and to restore just
The virtual machine of normal state redistributes required resource.
In embodiments of the present invention, optionally, which executes the instruction and can be also used for:
When deletion is designated as the second puncturing pattern, directly by virtual machine permanent delet, and the institute of virtual machine is discharged
There is resource.
The embodiment of the present invention provides a kind of virtual machine management device, instruction is deleted by receiving user, in delete operation
When to virtual machine carry out status indication.System can give operation for change by label deletion state void by receiving user operation instruction execution
Quasi- machine restores normal condition or label is deleted state virtual machine permanent delet and discharge all moneys by the operation of execution permanent delet
Source;It directly can also execute or remind user to execute permanent delet operation according to preset condition.In this way, improving user deletes behaviour
The safety of work improves delete operation working efficiency, has provided facility to the user.
In several embodiments provided herein, it should be understood that disclosed device and method, it can be by other
Mode realize.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only
For a kind of division of logic function, formula that in actual implementation, there may be another division manner.Another point, shown or discussed module phase
Connection between mutually can be by some interfaces, can be electrical, machinery or other forms.
The modules may or may not be physically separated, and may or may not be physics
Unit.Some or all of module therein can be selected according to the actual needs to achieve the purpose of the solution of this embodiment.
In addition, each function module in each embodiment of the present invention can be integrated in a processing module, it can also
That the independent physics of modules includes, can also two or more modules be integrated in a module.Above-mentioned integrated mould
The form that hardware had both may be used in block is realized, can also be realized in the form of hardware adds software function module.
The above-mentioned integrated module being realized in the form of SFU software functional unit can be stored in one and computer-readable deposit
In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions are used so that a computer
Equipment(Can be personal computer, server or the network equipment etc.)Execute the portion of each embodiment the method for the present invention
Step by step.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory(Read-Only Memory, referred to as
ROM), random access memory(Random Access Memory, abbreviation RAM), magnetic disc or CD etc. are various to store
The medium of program code.The above description is merely a specific embodiment, but protection scope of the present invention is not limited to
This, any one skilled in the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement,
It should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with the protection model of the claim
Subject to enclosing.
Claims (8)
1. a kind of virtual machine management method, which is characterized in that the method includes:
Obtain the deletion instruction that user executes virtual machine delete operation;
If the deletion is designated as the first puncturing pattern, the virtual machine is closed, and is by the virtual machine indicia
Deletion state is marked, label is obtained and deletes state virtual machine;
Operational order is obtained, and state virtual machine is deleted to the label according to the operational order and is operated accordingly;
It is described to close the virtual machine, and be label deletion state by the virtual machine indicia, it is empty to obtain label deletion state
Quasi- machine includes:
The virtual machine is closed, the computing resource of the virtual machine is discharged, retains storage resource, the network money of the virtual machine
Source, and be label deletion state by the virtual machine indicia, it obtains label and deletes state virtual machine;
When the operational order be give instruction for change when, it is described according to the operational order to the label deletion state virtual machine into
Operation includes row accordingly:
Label deletion state virtual machine is reverted into normal condition, and institute is redistributed for the virtual machine for restoring normal condition
The resource needed;
It is described that state virtual is deleted to the label according to the operational order when the operational order is that permanent delet instructs
Machine carries out corresponding operation:
The label is deleted into state virtual machine permanent delet, and discharges all resources that the label deletes state virtual machine.
2. according to the method described in claim 1, it is characterized in that,
The permanent delet instruction is to be triggered to generate according to preset condition, or generated by user's operation.
3. according to the method described in claim 2, it is characterized in that, permanent delet instruction is to be triggered to give birth to according to preset condition
At include:
If meeting the preset condition, triggering system generates user reminding message, described is permanently deleted to be generated by user's operation
Except instruction;Or,
If meeting the preset condition, triggers the system and generate the permanent delet instruction;
The preset condition includes:
The time span that the virtual machine is in the label deletion state is more than predetermined time period;And/or system spare is deposited
Store up the default storage resource threshold value that resource is less than system.
4. according to the method described in claim 1, it is characterized in that, the method further includes:
If the deletion is designated as the second puncturing pattern, directly by the virtual machine permanent delet, and the void is discharged
All resources of quasi- machine.
5. a kind of virtual machine management device, which is characterized in that described device includes:
Instruction acquisition unit, the deletion for executing delete operation to virtual machine for obtaining user instruct;
Deleting unit is marked, for when the deletion is designated as the first puncturing pattern, the virtual machine to be closed, is discharged
The computing resource of the virtual machine retains storage resource, the Internet resources of the virtual machine, and is mark by the virtual machine indicia
Remember deletion state, obtains label and delete state virtual machine;
The label, if the operational order instructs for permanent delet, is deleted shape by operating unit for obtaining operational order
State virtual machine permanent delet, and discharge all resources that the label deletes state virtual machine;
If the operational order is to give instruction for change, label deletion state virtual machine is reverted into normal condition, and be extensive
The virtual machine of multiple normal condition redistributes required resource.
6. device according to claim 5, which is characterized in that the permanent delet instruction is to be triggered to give birth to according to preset condition
At, or generated by user's operation.
7. device according to claim 6, which is characterized in that the operating unit is specifically used for:
The permanent delet instruction is generated according to preset condition triggering, including:
If meeting the preset condition, triggering system generates user reminding message, described is permanently deleted to be generated by user's operation
Except instruction;Or,
If meeting the preset condition, triggers the system and generate the permanent delet instruction;
The preset condition includes:
The time span that the virtual machine is in the label deletion state is more than predetermined time period;And/or system spare is deposited
Store up the default storage resource threshold value that resource is less than system.
8. device according to claim 5, which is characterized in that the label deleting unit is additionally operable to:
When the deletion is designated as the second puncturing pattern, directly by the virtual machine permanent delet, and the void is discharged
All resources of quasi- machine.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310412362.7A CN104424015B (en) | 2013-09-11 | 2013-09-11 | A kind of virtual machine management method and device |
PCT/CN2014/078130 WO2015035798A1 (en) | 2013-09-11 | 2014-05-22 | Virtual machine management method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310412362.7A CN104424015B (en) | 2013-09-11 | 2013-09-11 | A kind of virtual machine management method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104424015A CN104424015A (en) | 2015-03-18 |
CN104424015B true CN104424015B (en) | 2018-10-09 |
Family
ID=52665020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310412362.7A Active CN104424015B (en) | 2013-09-11 | 2013-09-11 | A kind of virtual machine management method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104424015B (en) |
WO (1) | WO2015035798A1 (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107341058A (en) * | 2017-07-13 | 2017-11-10 | 郑州云海信息技术有限公司 | A kind of its recovery method as resource and device |
CN109308232B (en) * | 2017-07-28 | 2022-09-06 | 阿里巴巴集团控股有限公司 | Method, device and system for rollback after virtual machine live migration fault |
CN109324867A (en) * | 2017-07-31 | 2019-02-12 | 郑州云海信息技术有限公司 | A kind of virtual machine temporary storage method, restoration methods and device |
CN107395429A (en) * | 2017-08-15 | 2017-11-24 | 郑州云海信息技术有限公司 | The method and apparatus that virtual machine is managed in cloud data center |
CN109669757A (en) * | 2017-10-16 | 2019-04-23 | 中兴通讯股份有限公司 | Virtual machine delet method and device |
CN108984266B (en) * | 2018-06-15 | 2021-09-03 | 华为技术有限公司 | Virtual machine management method, device and system |
CN109379412A (en) * | 2018-09-27 | 2019-02-22 | 郑州云海信息技术有限公司 | A kind of method and apparatus for deleting cloud host |
CN110018883A (en) * | 2019-04-11 | 2019-07-16 | 苏州浪潮智能科技有限公司 | A kind of virtual machine delet method, device, equipment and storage medium |
CN110377616A (en) * | 2019-07-30 | 2019-10-25 | 北京金山云网络技术有限公司 | A kind of data-erasure method, device, electronic equipment and storage medium |
CN112732406B (en) * | 2021-01-12 | 2021-12-24 | 华云数据控股集团有限公司 | Cloud platform virtual machine recovery method and computer equipment |
CN113296956A (en) * | 2021-06-17 | 2021-08-24 | 银清科技有限公司 | Resource recovery device and method in cloud computing platform |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102103518A (en) * | 2011-02-23 | 2011-06-22 | 运软网络科技(上海)有限公司 | System for managing resources in virtual environment and implementation method thereof |
CN102651729A (en) * | 2011-02-23 | 2012-08-29 | 中国移动通信集团公司 | Resource configuration method and device |
CN103473296A (en) * | 2013-09-04 | 2013-12-25 | 国云科技股份有限公司 | Recycle bin mechanism and recycle bin system applicable to cloud computing |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5440273B2 (en) * | 2010-03-09 | 2014-03-12 | 富士通株式会社 | Snapshot management method, snapshot management device, and program |
CN102214117B (en) * | 2010-04-07 | 2014-06-18 | 中兴通讯股份有限公司南京分公司 | Virtual machine management method, system and server |
-
2013
- 2013-09-11 CN CN201310412362.7A patent/CN104424015B/en active Active
-
2014
- 2014-05-22 WO PCT/CN2014/078130 patent/WO2015035798A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102103518A (en) * | 2011-02-23 | 2011-06-22 | 运软网络科技(上海)有限公司 | System for managing resources in virtual environment and implementation method thereof |
CN102651729A (en) * | 2011-02-23 | 2012-08-29 | 中国移动通信集团公司 | Resource configuration method and device |
CN103473296A (en) * | 2013-09-04 | 2013-12-25 | 国云科技股份有限公司 | Recycle bin mechanism and recycle bin system applicable to cloud computing |
Also Published As
Publication number | Publication date |
---|---|
WO2015035798A1 (en) | 2015-03-19 |
CN104424015A (en) | 2015-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104424015B (en) | A kind of virtual machine management method and device | |
US9491313B2 (en) | Optimizing storage between mobile devices and cloud storage providers | |
CN104166606B (en) | File backup method and main storage device | |
US9483288B2 (en) | Method and system for running a virtual appliance | |
CN106168885B (en) | A kind of method and system of the logical volume dynamic capacity-expanding based on LVM | |
CN108132838A (en) | A kind of method, apparatus and system of diagram data processing | |
CN110198243A (en) | A kind of method for network access and relevant device of virtual machine | |
CN105511806B (en) | The method and mobile terminal of processing write requests | |
CN102955861B (en) | Method and device for generating index files based on backup files | |
CN104160374A (en) | Cloud bursting and management of cloud-bursted applications | |
CN104168135A (en) | Network card resource pooling management method and system | |
CN106156998A (en) | The management method of a kind of Pending tasks and device | |
EP3537281A1 (en) | Storage controller and io request processing method | |
CN110018883A (en) | A kind of virtual machine delet method, device, equipment and storage medium | |
CN107273182A (en) | A kind of resources of virtual machine dynamic expanding method and system | |
CN105988863B (en) | A kind of method and device of processing event | |
CN103257700B (en) | The power-economizing method of a kind of android system and device | |
CN108897601A (en) | A kind of FPGA application method, system and relevant apparatus based on virtualization | |
CN104391736B (en) | The park mode method to set up and device of virtual machine | |
CN108268301A (en) | The virtual machine deployment method and device of virtual network function | |
CN104424125A (en) | Clearing method for mobile terminal cache, device and mobile terminal | |
CN107908957A (en) | A kind of safe operation management method and system of intelligent terminal | |
CN110471769A (en) | A kind of method for managing resource and device of virtual machine | |
CN108241558A (en) | A kind of mirror image warehouse back-up device and method | |
CN104246716B (en) | The processing method and equipment of memory space object |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220217 Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province Patentee after: Huawei Cloud Computing Technologies Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |
|
TR01 | Transfer of patent right |