CN107102889A - A kind of resources of virtual machine method of adjustment and device - Google Patents
A kind of resources of virtual machine method of adjustment and device Download PDFInfo
- Publication number
- CN107102889A CN107102889A CN201710400845.3A CN201710400845A CN107102889A CN 107102889 A CN107102889 A CN 107102889A CN 201710400845 A CN201710400845 A CN 201710400845A CN 107102889 A CN107102889 A CN 107102889A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- configuration information
- system disk
- adjustment
- capacity
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000003362 replicative effect Effects 0.000 claims description 6
- 230000006870 function Effects 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000003860 storage Methods 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 239000011800 void material Substances 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- 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
-
- 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/45575—Starting, stopping, suspending or resuming virtual machine instances
-
- 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/45579—I/O management, e.g. providing access to device drivers or storage
-
- 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/45583—Memory management, e.g. access or allocation
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)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of resources of virtual machine method of adjustment, this method comprises the following steps:Receive user be directed to the first virtual machine resource adjust instruction when, close the first virtual machine;Obtain and replicate the configuration information of the first virtual machine;The system disk of the first virtual machine is replicated, temporary system disk is obtained;According to resource adjust instruction, the configuration information of the first virtual machine is adjusted;Delete the system disk of the first virtual machine and the first virtual machine;Based on the configuration information after adjustment, the second virtual machine is set up.The technical scheme provided using the embodiment of the present invention, can meet user while the operational requirements of unified adjustment virtual machine multiple resources, improve adjustment flexibility and the operating efficiency to resources of virtual machine.The invention also discloses a kind of resources of virtual machine adjusting apparatus, with relevant art effect.
Description
Technical field
The present invention relates to Computer Applied Technology field, more particularly to a kind of resources of virtual machine method of adjustment and device.
Background technology
With the fast development of computer technology, intel Virtualization Technology application is more and more extensive.Virtualization is that one kind can fill
Divide and utilize physical resource, the shared physical model of computing resource is realized by internet.It can provide resource on demand and
Service, can carry out dynamically distributes to resource.Central point that virtual machine is realized as virtualization technology, it is in use
Flexibility and versatility have obtained increasing concern.
In production environment, after virtual machine foundation, the data volume of some virtual machines can increase, and can usually go out in this case
Now increase the demand of virtual machine CPU, internal memory and disk, and the data volume of some virtual machines can be reduced, and can be dropped in this case
Low virtual machine configuration, release host resource uses for other virtual machines.
At present, the adjustment for resources of virtual machine is generally single adjustment, i.e., the CPU or single tune of single adjustment virtual machine
Internal memory of whole virtual machine etc., flexibility is poor, and trivial operations, operating efficiency is relatively low.
The content of the invention
It is unified to resources of virtual machine to meet it is an object of the invention to provide a kind of resources of virtual machine method of adjustment and device
Adjustment demand, improves adjustment flexibility and operating efficiency.
In order to solve the above technical problems, the present invention provides following technical scheme:
A kind of resources of virtual machine method of adjustment, including:
When receiving user and being directed to the resource adjust instruction of the first virtual machine, first virtual machine is closed;
Obtain and replicate the configuration information of first virtual machine;
The system disk of first virtual machine is replicated, temporary system disk is obtained;
According to the resource adjust instruction, the configuration information of first virtual machine is adjusted;
Delete the system disk of first virtual machine and first virtual machine;
Based on the configuration information after adjustment, the second virtual machine is set up.
In a kind of embodiment of the present invention, after the acquisition temporary system disk, described in the adjustment
Before the configuration information of first virtual machine, in addition to:
According to the resource adjust instruction, the newest capacity of the system disk of the user's request is determined;
If the newest capacity is more than or equal to the raw capacity of the system disk of first virtual machine, institute is performed
The step of stating the configuration information for adjusting first virtual machine.
In a kind of embodiment of the present invention, when the newest capacity is more than the raw capacity, described
Before the configuration information for adjusting first virtual machine, in addition to:
By the capacity extensions of the temporary system disk to the newest capacity.
In a kind of embodiment of the present invention, the configuration information of adjustment first virtual machine, including:
CPU numbers in the configuration information of first virtual machine are adjusted to the CPU numbers of the user's request;
Memory size in the configuration information of first virtual machine is adjusted to the memory size of the user's request;
Network interface card number in the configuration information of first virtual machine is adjusted to the network interface card number of the user's request.
In a kind of embodiment of the present invention, in the newest appearance of the system disk for determining the user's request
After amount, in addition to:
If the newest capacity is less than the raw capacity, prompt message is exported, to point out the user not support
Reduce system disk volume operation.
In a kind of embodiment of the present invention, the configuration information based on after adjustment sets up second empty
Plan machine, including:
The mark of the temporary system disk is changed to the mark of the system disk of first virtual machine;
Described in after the identifying of system disk based on first virtual machine, the mark of first virtual machine and adjustment
Configuration information, sets up the second virtual machine.
A kind of resources of virtual machine adjusting apparatus, including:
Virtual machine closedown module, for receive user be directed to the first virtual machine resource adjust instruction when, close institute
State the first virtual machine;
Configuration information obtains module, the configuration information for obtaining and replicating first virtual machine;
Disk copy module, the system disk for replicating first virtual machine obtains temporary system disk;
Configuration information adjusting module, for according to the resource adjust instruction, adjust first virtual machine to match somebody with somebody confidence
Breath;
Virtual machine and disk removing module, the system magnetic for deleting first virtual machine and first virtual machine
Disk;
Virtual machine sets up module, for based on the configuration information after adjustment, setting up the second virtual machine.
In a kind of embodiment of the present invention, in addition to capacity comparison module, it is used for:
After the acquisition temporary system disk, before the configuration information of adjustment first virtual machine, according to
The resource adjust instruction, determines the newest capacity of the system disk of the user's request;
If the newest capacity is more than or equal to the raw capacity of the system disk of first virtual machine, institute is triggered
State configuration information adjusting module.
In a kind of embodiment of the present invention, in addition to dilatation module, it is used for:
When the newest capacity is more than the raw capacity, the adjustment first virtual machine configuration information it
Before, by the capacity extensions of the temporary system disk to the newest capacity.
In a kind of embodiment of the present invention, the configuration information adjusting module, specifically for:
CPU numbers in the configuration information of first virtual machine are adjusted to the CPU numbers of the user's request;
Memory size in the configuration information of first virtual machine is adjusted to the memory size of the user's request;
Network interface card number in the configuration information of first virtual machine is adjusted to the network interface card number of the user's request.
The technical scheme provided using the embodiment of the present invention, is adjusted receiving resource of the user for the first virtual machine
During instruction, the first virtual machine is closed, the configuration information of the first virtual machine is obtained and replicate, the system magnetic of the first virtual machine is replicated
Disk, obtains temporary system disk, according to resource adjust instruction, adjusts the configuration information of the first virtual machine, deletes the first virtual machine
And first virtual machine system disk, based on the configuration information after adjustment, set up the second virtual machine.User can be met to unite simultaneously
The operational requirements of one adjustment virtual machine multiple resources, improve adjustment flexibility and the operating efficiency to resources of virtual machine.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of implementing procedure figure of resources of virtual machine method of adjustment in the embodiment of the present invention;
Fig. 2 is a kind of structural representation of resources of virtual machine adjusting apparatus in the embodiment of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.Obviously, described embodiment is only a part of embodiment of the invention, rather than
Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work premise
Lower obtained every other embodiment, belongs to the scope of protection of the invention.
It is shown in Figure 1, a kind of implementing procedure figure of the resources of virtual machine method of adjustment provided by the embodiment of the present invention,
This method may comprise steps of:
S110:Receive user be directed to the first virtual machine resource adjust instruction when, close the first virtual machine.
In production environment, user is dynamic change to the demand of resources of virtual machine.User can according to the actual requirements,
Send the resource adjust instruction for the first virtual machine.First virtual machine is any one virtual machine that user uses.
Receive user be directed to the first virtual machine resource adjust instruction when, the first virtual machine can be closed.
S120:Obtain and replicate the configuration information of the first virtual machine.
The configuration information of first virtual machine can include CPU numbers, network interface card number and resource identification, memory size, system
Resource identification, virtual machine mark of all disks of disk size, virtual machine etc..
The configuration information of first virtual machine can be obtained by the configuration file for reading the first virtual machine, while can be to the
The configuration information of one virtual machine carries out duplication storage.
S130:The system disk of the first virtual machine is replicated, temporary system disk is obtained.
In embodiments of the present invention, after resource adjust instruction of the user for the first virtual machine is received, it can replicate
The system disk of first virtual machine, obtains temporary system disk.To avoid the occurrence of the problem of virtual-machine data is lost.
It should be noted that the embodiment of the present invention is not limited to step S120 and step S130 execution sequence, step
S120 and step S130 can be performed simultaneously, can also order execution.
S140:According to resource adjust instruction, the configuration information of the first virtual machine is adjusted.
User's adjustment demand data is carried in resource adjust instruction, user's adjustment demand data can include user's request
CPU numbers, the network interface card number of user's request, the memory size of user's request, the system disk capacity of user's request etc..
According to resource adjust instruction, user's adjustment demand data can be obtained, so as to adjust demand number according to user
According to adjustment replicates the configuration information of the first obtained virtual machine.The embodiment of the present invention is virtual to first not on the first virtual machine
The configuration information of machine is adjusted, but the configuration information of the first virtual machine obtained to duplication is adjusted.
In one embodiment of the invention, after step s 130, before step S140, this method can also include with
Lower step:
According to resource adjust instruction, the newest capacity of the system disk of user's request is determined;If newest capacity be more than or
Equal to the raw capacity of the system disk of the first virtual machine, then step S140 operation is performed.
In embodiments of the present invention, according to resource adjust instruction, it may be determined that go out user's request system disk it is newest
Capacity.The raw capacity of newest capacity and the system disk of the first virtual machine is compared.
If newest capacity is equal to raw capacity, show that user need not adjust the size of system disk, can be direct
It is adjusted the operation of the configuration information of the first virtual machine.
If newest capacity is more than raw capacity, show that the system disk capacity of user's request is more than the first virtual machine
System disk capacity, in such a case, it is possible to by the capacity extensions of temporary system disk to newest capacity, i.e., to temporary system
Disk carries out dilatation operation, is adjusted the operation of the configuration information of the first virtual machine after dilatation again.
If newest capacity is less than raw capacity, the resource adjust instruction of user can be not responding to, in this case,
Prompt message can also be exported, to point out user not support to reduce system disk volume operation.User, can according to the prompt message
To change resource adjust instruction.
In a kind of embodiment of the present invention, step S140 may comprise steps of:
Step one:CPU numbers in the configuration information of first virtual machine are adjusted to the CPU numbers of user's request;
Step 2:Memory size in the configuration information of first virtual machine is adjusted to the memory size of user's request;
Step 3:Network interface card number in the configuration information of first virtual machine is adjusted to the network interface card number of user's request.
In embodiments of the present invention, according to resource adjust instruction, user's adjustment demand data can be obtained, user's adjustment is needed
CPU numbers, the memory size of user's request, network interface card number of user's request of user's request etc. can be included by asking in data.
CPU numbers in the configuration information of first virtual machine are adjusted to the CPU numbers of user's request, by the first virtual machine
Configuration information in memory size be adjusted to the memory size of user's request, by the network interface card in the configuration information of the first virtual machine
Number is adjusted to the network interface card number of user's request.To meet user while the operational requirements of unified adjustment virtual machine multiple resources.
It should be noted that the embodiment of the present invention is not limited the execution sequence of above-mentioned steps one, step 2 and step 3
System.
S150:Delete the system disk of the first virtual machine and the first virtual machine.
After the configuration information for adjusting the first virtual machine, the system disk of the first virtual machine and the first virtual machine can be deleted.
S160:Based on the configuration information after adjustment, the second virtual machine is set up.
In step S140 according to resource adjust instruction, after the configuration information for adjusting the first virtual machine, it can be based on after adjustment
Configuration information, set up the second virtual machine.
In a kind of embodiment of the present invention, step S160 may comprise steps of:
First step:The mark of temporary system disk is changed to the mark of the system disk of the first virtual machine;
Second step:After the mark of system disk based on the first virtual machine, the mark of the first virtual machine and adjustment
Configuration information, sets up the second virtual machine.
For ease of description, above-mentioned two step is combined and illustrated.
After the system disk for deleting the first virtual machine and the first virtual machine, the mark of temporary system disk can be changed to
The mark of the system disk of first virtual machine, the mark of the system disk based on the first virtual machine, the mark of the first virtual machine and
Configuration information after adjustment, a newly-built virtual machine, i.e. the second virtual machine, the second virtual machine is the first void after adjustresources
Plan machine.
So far, the resource adjustment of the first virtual machine is completed, the CPU numbers, network interface card number, internal memory for realizing virtual machine are held
The unified adjustment of amount and disk size etc., improves flexibility and the operating efficiency of user's operation.
The method provided using the embodiment of the present invention, is receiving resource adjust instruction of the user for the first virtual machine
When, the first virtual machine is closed, the configuration information of the first virtual machine is obtained and replicate, the system disk of the first virtual machine is replicated, obtains
Temporary system disk is obtained, according to resource adjust instruction, the configuration information of the first virtual machine is adjusted, deletes the first virtual machine and first
The system disk of virtual machine, based on the configuration information after adjustment, sets up the second virtual machine.User can be met while unified adjustment
The operational requirements of virtual machine multiple resources, improve adjustment flexibility and the operating efficiency to resources of virtual machine.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of resources of virtual machine adjusting apparatus, under
A kind of resources of virtual machine adjusting apparatus of text description can mutually corresponding ginseng with a kind of above-described resources of virtual machine method of adjustment
According to.
Shown in Figure 2, the device is included with lower module:
Virtual machine closedown module 210, for receive user be directed to the first virtual machine resource adjust instruction when, close
First virtual machine;
Configuration information obtains module 220, the configuration information for obtaining and replicating the first virtual machine;
Disk copy module 230, the system disk for replicating the first virtual machine, obtains temporary system disk;
Configuration information adjusting module 240, for according to resource adjust instruction, adjusting the configuration information of the first virtual machine;
Virtual machine and disk removing module 250, the system disk for deleting the first virtual machine and the first virtual machine;
Virtual machine sets up module 260, for based on the configuration information after adjustment, setting up the second virtual machine.
The device provided using the embodiment of the present invention, is receiving resource adjust instruction of the user for the first virtual machine
When, the first virtual machine is closed, the configuration information of the first virtual machine is obtained and replicate, the system disk of the first virtual machine is replicated, obtains
Temporary system disk is obtained, according to resource adjust instruction, the configuration information of the first virtual machine is adjusted, deletes the first virtual machine and first
The system disk of virtual machine, based on the configuration information after adjustment, sets up the second virtual machine.User can be met while unified adjustment
The operational requirements of virtual machine multiple resources, improve adjustment flexibility and the operating efficiency to resources of virtual machine.
In a kind of embodiment of the present invention, in addition to capacity comparison module, it is used for:
After acquisition temporary system disk, before the configuration information of the first virtual machine of adjustment, according to resource adjust instruction,
Determine the newest capacity of the system disk of user's request;
If newest capacity is more than or equal to the raw capacity of the system disk of the first virtual machine, triggering configuration information is adjusted
Mould preparation block 240.
In a kind of embodiment of the present invention, in addition to dilatation module, it is used for:
When newest capacity is more than raw capacity, before the configuration information of the first virtual machine is adjusted, by temporary system magnetic
The capacity extensions of disk are to newest capacity.
In a kind of embodiment of the present invention, configuration information adjusting module 240, specifically for:
CPU numbers in the configuration information of first virtual machine are adjusted to the CPU numbers of user's request;
Memory size in the configuration information of first virtual machine is adjusted to the memory size of user's request;
Network interface card number in the configuration information of first virtual machine is adjusted to the network interface card number of user's request.
In a kind of embodiment of the present invention, in addition to prompt message output module, it is used for:
It is determined that user's request system disk newest capacity after, if newest capacity be less than raw capacity, it is defeated
Go out prompt message, to point out user not support to reduce system disk volume operation.
In a kind of embodiment of the present invention, virtual machine sets up module, specifically for:
The mark of temporary system disk is changed to the mark of the system disk of the first virtual machine;
Configuration information after the mark of system disk based on the first virtual machine, the mark of the first virtual machine and adjustment, builds
Vertical second virtual machine.
The embodiment of each in this specification is described by the way of progressive, what each embodiment was stressed be with it is other
Between the difference of embodiment, each embodiment same or similar part mutually referring to.For being filled disclosed in embodiment
For putting, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is referring to method part
Explanation.
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description
And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software, generally describes the composition and step of each example according to function in the above description.These
Function is performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specialty
Technical staff can realize described function to each specific application using distinct methods, but this realization should not
Think beyond the scope of this invention.
Directly it can be held with reference to the step of the method or algorithm that the embodiments described herein is described with hardware, processor
Capable software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Specific case used herein is set forth to the principle and embodiment of the present invention, and above example is said
It is bright to be only intended to help and understand technical scheme and its core concept.It should be pointed out that for the common of the art
For technical staff, under the premise without departing from the principles of the invention, some improvement and modification can also be carried out to the present invention, these
Improve and modification is also fallen into the protection domain of the claims in the present invention.
Claims (10)
1. a kind of resources of virtual machine method of adjustment, it is characterised in that including:
When receiving user and being directed to the resource adjust instruction of the first virtual machine, first virtual machine is closed;
Obtain and replicate the configuration information of first virtual machine;
The system disk of first virtual machine is replicated, temporary system disk is obtained;
According to the resource adjust instruction, the configuration information of first virtual machine is adjusted;
Delete the system disk of first virtual machine and first virtual machine;
Based on the configuration information after adjustment, the second virtual machine is set up.
2. resources of virtual machine method of adjustment according to claim 1, it is characterised in that in the acquisition temporary system disk
Afterwards, before the configuration information of adjustment first virtual machine, in addition to:
According to the resource adjust instruction, the newest capacity of the system disk of the user's request is determined;
If the newest capacity is more than or equal to the raw capacity of the system disk of first virtual machine, the tune is performed
The step of configuration information of whole first virtual machine.
3. resources of virtual machine method of adjustment according to claim 2, it is characterised in that be more than in the newest capacity described
During raw capacity, before the configuration information of adjustment first virtual machine, in addition to:
By the capacity extensions of the temporary system disk to the newest capacity.
4. resources of virtual machine method of adjustment according to claim 3, it is characterised in that adjustment first virtual machine
Configuration information, including:
CPU numbers in the configuration information of first virtual machine are adjusted to the CPU numbers of the user's request;
Memory size in the configuration information of first virtual machine is adjusted to the memory size of the user's request;
Network interface card number in the configuration information of first virtual machine is adjusted to the network interface card number of the user's request.
5. resources of virtual machine method of adjustment according to claim 2, it is characterised in that determine the user's request described
System disk newest capacity after, in addition to:
If the newest capacity is less than the raw capacity, prompt message is exported, to point out the user not support reduction
System disk volume operation.
6. the resources of virtual machine method of adjustment according to any one of claim 1 to 5, it is characterised in that described based on adjustment
The configuration information afterwards, sets up the second virtual machine, including:
The mark of the temporary system disk is changed to the mark of the system disk of first virtual machine;
The configuration after the identifying of system disk based on first virtual machine, the mark of first virtual machine and adjustment
Information, sets up the second virtual machine.
7. a kind of resources of virtual machine adjusting apparatus, it is characterised in that including:
Virtual machine closedown module, for when receiving user and being directed to the resource adjust instruction of the first virtual machine, closing described the
One virtual machine;
Configuration information obtains module, the configuration information for obtaining and replicating first virtual machine;
Disk copy module, the system disk for replicating first virtual machine obtains temporary system disk;
Configuration information adjusting module, for according to the resource adjust instruction, adjusting the configuration information of first virtual machine;
Virtual machine and disk removing module, the system disk for deleting first virtual machine and first virtual machine;
Virtual machine sets up module, for based on the configuration information after adjustment, setting up the second virtual machine.
8. resources of virtual machine adjusting apparatus according to claim 7, it is characterised in that also including capacity comparison module, is used
In:
After the acquisition temporary system disk, before the configuration information of adjustment first virtual machine, according to described
Resource adjust instruction, determines the newest capacity of the system disk of the user's request;
If raw capacity of the newest capacity more than or equal to the system disk of first virtual machine, match somebody with somebody described in triggering
Confidence ceases adjusting module.
9. resources of virtual machine adjusting apparatus according to claim 8, it is characterised in that also including dilatation module, be used for:
When the newest capacity is more than the raw capacity, before the configuration information of adjustment first virtual machine,
By the capacity extensions of the temporary system disk to the newest capacity.
10. resources of virtual machine adjusting apparatus according to claim 9, it is characterised in that the configuration information adjusting module,
Specifically for:
CPU numbers in the configuration information of first virtual machine are adjusted to the CPU numbers of the user's request;
Memory size in the configuration information of first virtual machine is adjusted to the memory size of the user's request;
Network interface card number in the configuration information of first virtual machine is adjusted to the network interface card number of the user's request.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710400845.3A CN107102889B (en) | 2017-05-31 | 2017-05-31 | Virtual machine resource adjusting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710400845.3A CN107102889B (en) | 2017-05-31 | 2017-05-31 | Virtual machine resource adjusting method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107102889A true CN107102889A (en) | 2017-08-29 |
CN107102889B CN107102889B (en) | 2021-02-02 |
Family
ID=59660898
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710400845.3A Active CN107102889B (en) | 2017-05-31 | 2017-05-31 | Virtual machine resource adjusting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107102889B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107562520A (en) * | 2017-09-07 | 2018-01-09 | 郑州云海信息技术有限公司 | The method and apparatus of the internal memory of dilatation virtual machine |
CN107729122A (en) * | 2017-10-16 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of virtual machine management method and device |
CN109669757A (en) * | 2017-10-16 | 2019-04-23 | 中兴通讯股份有限公司 | Virtual machine delet method and device |
CN109857429A (en) * | 2019-01-04 | 2019-06-07 | 浪潮商用机器有限公司 | A kind of update method, device, equipment and the storage medium of resources of virtual machine configuration |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101211272A (en) * | 2006-12-29 | 2008-07-02 | 英特尔公司 | Dynamic virtual machine generation |
CN103870341A (en) * | 2014-03-12 | 2014-06-18 | 汉柏科技有限公司 | Method and system of adjusting resources of virtual machine |
CN104407916A (en) * | 2014-12-15 | 2015-03-11 | 北京国双科技有限公司 | Cloning method and device of virtual machine |
-
2017
- 2017-05-31 CN CN201710400845.3A patent/CN107102889B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101211272A (en) * | 2006-12-29 | 2008-07-02 | 英特尔公司 | Dynamic virtual machine generation |
CN103870341A (en) * | 2014-03-12 | 2014-06-18 | 汉柏科技有限公司 | Method and system of adjusting resources of virtual machine |
CN104407916A (en) * | 2014-12-15 | 2015-03-11 | 北京国双科技有限公司 | Cloning method and device of virtual machine |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107562520A (en) * | 2017-09-07 | 2018-01-09 | 郑州云海信息技术有限公司 | The method and apparatus of the internal memory of dilatation virtual machine |
CN107729122A (en) * | 2017-10-16 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of virtual machine management method and device |
CN109669757A (en) * | 2017-10-16 | 2019-04-23 | 中兴通讯股份有限公司 | Virtual machine delet method and device |
CN109857429A (en) * | 2019-01-04 | 2019-06-07 | 浪潮商用机器有限公司 | A kind of update method, device, equipment and the storage medium of resources of virtual machine configuration |
CN109857429B (en) * | 2019-01-04 | 2022-05-06 | 浪潮商用机器有限公司 | Method, device, equipment and storage medium for updating resource allocation of virtual machine |
Also Published As
Publication number | Publication date |
---|---|
CN107102889B (en) | 2021-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107102889A (en) | A kind of resources of virtual machine method of adjustment and device | |
CN106062742B (en) | System and method for improving snapshot performance | |
CN106802840A (en) | A kind of virtual machine backup, restoration methods and device | |
CN106227587B (en) | A kind of band snapshot virtual machine complete machine dynamic migration method and device | |
CN106055388A (en) | Cloud platform application automatic deployment framework | |
CN106569904A (en) | Information storage method and device and server | |
Raghavan et al. | Tiera: Towards flexible multi-tiered cloud storage instances | |
CN109710185A (en) | Data processing method and device | |
CN107153571A (en) | A kind of dispositions method and device of virtual management node | |
CN105678183B (en) | A kind of user data management and device of intelligent terminal | |
CN105138284A (en) | Virtual machine disk mirror image synchronization operation optimization system and method | |
CN109471843A (en) | A kind of metadata cache method, system and relevant apparatus | |
CN107885580A (en) | A kind of cloud moving method, device, equipment and storage medium | |
CN107665255A (en) | Method, apparatus, equipment and the storage medium of key value database data change | |
CN107277152A (en) | A kind of public cloud data safety backup system | |
CN107526608A (en) | A kind of OTA AKUs upgrade method and equipment | |
CN106844012A (en) | A kind of method and system of unshared storage dynamic migration virtual machine | |
CN109522043A (en) | A kind of management method of configuration data, device and storage medium | |
CN104536852B (en) | Data recovery method and device | |
CN107391314A (en) | A kind of data consistency keeping method and device for supporting dual-active | |
CN108234551A (en) | A kind of data processing method and device | |
CN103034669A (en) | System for providing user data storage environment using network-based file system | |
CN107391539B (en) | Transaction processing method, server and storage medium | |
US20150347320A1 (en) | ENCRYPTION FOR SOLID STATE DRIVES (SSDs) | |
CN107786650A (en) | A kind of synchronous method, the apparatus and system of storage medium and management strategy |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20201230 Address after: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd. Address before: Room 1601, floor 16, 278 Xinyi Road, Zhengdong New District, Zhengzhou City, Henan Province Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |