Summary of the invention
It is a primary object of the present invention to propose a kind of virtual network method for parameter configuration and device, it is intended to solve virtual net
The complex technical problem of network parameter configuration.
To achieve the above object, the present invention provides a kind of virtual network method for parameter configuration, and the virtual network parameter is matched
Set method the following steps are included:
When receiving the instruction of virtual network parameter configuration, virtual network parameter configuration template selection interface is shown;
When receiving the selection instruction based on stencil-chosen interface triggering, the corresponding void of the selection instruction is obtained
Quasi- network parameter configuration template;
The corresponding configuration parameter of parameter configuration template generates virtual machine according to the virtual network, and configures the virtual machine
Network parameter.
Preferably, the corresponding configuration parameter of the parameter configuration template according to the virtual network generates virtual machine, and matches
The step of setting the network parameter of the virtual machine include:
Display scale parameter and address information input interface;
It the corresponding configuration parameter of parameter configuration template and is received according to the virtual network based on the input interface
Scale parameter generate virtual machine;
According to the virtual machine that the address information configuration received based on the input interface is generated, and it is based on institute
Stating address information will be in the virtual machine of corresponding operating system migration to generation.
Preferably, the virtual machine generated according to address information configuration, and will based on the address information
After step of the corresponding operating system migration into the virtual machine generated, the virtual network method for parameter configuration is also wrapped
Include step:
When receiving virtual machine configuration parameter change instruction, display configuration parameter updates interface;
When receiving the size values change directive based on configuration parameter update interface triggering, according to current virtual
The size values after network parameter configuration template and change configure virtual machine;
The virtual machine is configured according to the current address information, it will be corresponding based on the configured address information
Operating system migration is into the virtual machine.
Preferably, receive virtual machine configuration parameter change instruction when, display configuration parameter update interface the step of it
Afterwards, the virtual network method for parameter configuration further comprises the steps of:
When receiving the address information change directive based on configuration parameter update interface triggering, according to the address
The corresponding address information of information change directive reconfigures the virtual machine, is by the corresponding operation of the address information reconfigured
System is migrated into the virtual machine.
Preferably, the step of corresponding configuration parameter of parameter configuration template generates virtual machine according to the virtual network is wrapped
It includes:
According to the incidence relation between the preset network parameter configuration template and address information, obtain described virtual
The associated address information of network parameter configuration template;
The associated address information of parameter configuration template obtains the configuration parameter according to the virtual network, and using acquisition
The configuration parameter arrived generates the virtual machine.
In addition, to achieve the above object, the present invention also proposes a kind of virtual network parameter configuration device, the virtual network
Parameter configuration device includes:
Display module, for showing virtual network parameter configuration template when receiving the instruction of virtual network parameter configuration
Selection interface;
Module is obtained, for obtaining the choosing when receiving the selection instruction based on stencil-chosen interface triggering
Select the corresponding virtual network parameter configuration template of instruction;
Configuration module generates virtual machine for the corresponding configuration parameter of parameter configuration template according to the virtual network, and
Configure the network parameter of the virtual machine.
Preferably, the configuration module includes:
Display unit, for showing size values and address information input interface;
Generation unit, for the corresponding configuration parameter of parameter configuration template according to the virtual network and based on described defeated
Enter the scale parameter that interface receives and generates virtual machine;
Configuration unit, the void for being generated according to the address information configuration received based on the input interface
Quasi- machine, and will be in the virtual machine of corresponding operating system migration to generation based on the address information.
Preferably, the display module is also used to when receiving virtual machine configuration parameter change instruction, display configuration ginseng
Number updates interface;The configuration module is also used to receiving the size values for updating interface triggering based on the configuration parameter
When change directive, virtual machine is configured according to the size values after current virtual network parameter configuration template and change, with
And the virtual machine is configured according to the current address information, it is by corresponding operation based on the configured address information
System is migrated into the virtual machine.
Preferably, the configuration module is also used to receiving the address for updating interface triggering based on the configuration parameter
When information change directive, the virtual machine is reconfigured according to the corresponding address information of the address information change directive, is based on
By the corresponding operating system migration of the address information reconfigured into the virtual machine.
Preferably, the configuration module includes:
Acquiring unit, for being closed according to the association between the preset network parameter configuration template and address information
System, obtains the associated address information of virtual network parameter configuration template, and parameter configuration mould according to the virtual network
The associated address information of plate obtains the configuration parameter;
Generation unit, for generating the virtual machine using the configuration parameter got.
Virtual network method for parameter configuration and device proposed by the present invention are receiving the instruction of virtual network parameter configuration
When, it can show virtual network parameter configuration template selection interface, and the virtual network parameter configuration template pair selected according to user
The configuration parameter answered generates virtual machine, and configures the network parameter of the virtual machine, very fast;User does not need simultaneously
Solve the function of each virtual machine, it is only necessary to according to the template that application scenarios select itself to need, improve virtual network parameter
The flexibility of configuration.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of virtual network method for parameter configuration.
Referring to Fig.1, Fig. 1 is the flow diagram of virtual network method for parameter configuration first embodiment of the present invention.
The present embodiment proposes that a kind of virtual network method for parameter configuration, the virtual network method for parameter configuration include:
Step S10, when receiving the instruction of virtual network parameter configuration, display virtual network parameter configuration template selects boundary
Face;
In the present embodiment, virtual network parameter configuration instruction can be by the physical button on all-in-one machine, can also be by one
Virtual control on machine or the controlling terminal being connect with virtual machine triggering;When receiving the instruction of virtual network parameter configuration,
It can show the selection interface including each network parameter configuration template mark, each network parameter configuration template mark may include this
Network parameter configuration template identifies corresponding application scenarios, further, to reduce the operation that user is manually entered, network ginseng
Number configuration template mark may also comprise network parameter configuration template and identify the scale of corresponding application scenarios (as allowed access terminal
Quantity), certainly, the scale of the application scenarios can also be manually entered by user.
Step S20 obtains the selection instruction when receiving the selection instruction based on stencil-chosen interface triggering
Corresponding virtual network parameter configuration template;
Step S30, the corresponding configuration parameter of parameter configuration template generates virtual machine according to the virtual network, and configures institute
State the network parameter of virtual machine.
In the present embodiment, the corresponding configuration parameter of parameter configuration template generates the step of virtual machine according to the virtual network
Suddenly include:
According to the incidence relation between the preset network parameter configuration template and address information, obtain described virtual
The associated address information of network parameter configuration template;
The associated address information of parameter configuration template obtains the configuration parameter according to the virtual network, and using acquisition
The configuration parameter arrived generates the virtual machine.
It, can be by the corresponding configuration parameter of virtual network parameter configuration template when generating virtual network parameter configuration template
It is stored in some path (i.e. address information) of the file system in server, and by the address information and virtual network parameter
Configuration template association saves, and can get configuration parameter by the address information.
Generally in accession page, for example http://vmp.sangfor.com, the resource loaded (js, picture etc.) are right
Some path of file system on server, such as/sf/www have been answered, as browse request http: //
When vmp.sangfor.com/favicon.ico, corresponding web services then load/sf/www/favicon.ico file, are formed
One-to-one resource impact relationship, if then the file of load is /home/a.js, the file being mapped in equipment is exactly/sf/
www/home/a.js.If operation expanding, the management for increasing third side plug on all-in-one machine is want, third side plug must obtain
It is present in the file system of server, but considers for system maintainability, it will not be by the text of third party's file and main frame
Part coexists in same a catalogue, but on URL, they look like the method for coexisting and solving this problem on one system
It is exactly that URL is rewritten.
Assuming that the third side plug of extension is configuration parameter, independent specified directory, such as/sf/www- are dropped it off
Ext/ad, and the URL requested is /mod-ad/a.js, need to do is exactly that need are to be loaded originally URL:/mod-ad/a.js
File path is adjusted to/sf/www-ext/ad/a.js by/sf/www/mod-ad/a.js, that is, realizes address information and net
The association of network parameter configuration template.
When getting the corresponding virtual network parameter configuration template of selection instruction, the virtual net can be obtained by server
The corresponding configuration parameter of network parameter configuration template, the configuration parameter may include the corresponding system parameter of each virtual machine, and each
The quantity of a virtual machine and the configuration relation of virtual machine.
It in the present embodiment, include associated virtual machine in the corresponding configuration parameter of virtual network parameter configuration template
Parameter produces corresponding virtual machine according to the configuration parameter, and configures to the virtual machine of generation.
It is understood that improve the flexibility of virtual machine configuration, scale and ground that can manually to each virtual machine
The parameters such as location information are configured, i.e., include: referring to Fig. 2, step S30
Step S31 shows size values and address information input interface;
Step S32, according to the virtual network the corresponding configuration parameter of parameter configuration template and be based on input circle
The scale parameter that face receives generates virtual machine;
Step S33 configures the virtual machine generated, and base according to the address information received based on the input interface
It will be in the virtual machine of corresponding operating system migration to generation in the address information.
In the present embodiment, which is that can access the number of terminal, according to the accessible terminal of user's input
Number configures the quantity of virtual machine, generally requires the quantity according to scale parameter configuration virtual server, in a Virtual Service
When the capacity of device is inadequate, it can configure more virtual servers and be supported.Address information can be the address information of each server,
In order to client terminal login, it is to be understood that address information can also be automatically generated in order to user's subsequent login, such as on
Net application scenarios.
It is illustrated so that scene is issued in application as an example below, it is corresponding in the virtual network parameter configuration template that user chooses
When application scenarios are application publication scene, size values and address information input interface can be shown, so that user's input can connect
Enter the number of terminal and the IP address of application publisher server, the number of virtual server is determined according to the number of accessible terminal
Amount, and done according to the corresponding configuration parameter of the virtual network parameter configuration template such as virtual machine parameter and based on http session number
The preferential QOS strategy of dynamic load leveling, flow control policy, business, the configurations such as tree-shaped virtual network deployment of single layer then can root
According to, and the IP address by applying publisher server, by P2V tool, by existing application publisher server system migration to void
In virtual server in quasi-ization cluster, the configuration of virtual machine is realized.
It is understood that can also refer to the configuration that mode as shown in Figure 3 carries out virtual network parameter, machine user selection
After virtual network parameter configuration template, parameter setting interface as shown in Figure 3 is shown, user can select setting address at the interface
The parameters such as information.
It is to be appreciated that being pushed to all-in-one machine updated after server end updates virtual network parameter configuration template
Virtual network parameter configuration template can also obtain updated virtual network parameter to server when all-in-one machine is switched on every time
Configuration template sends to preset server that is, in the starting-up signal for receiving all-in-one machine and updates request (in update request
Including version number);Server obtains the update request version number when receiving update request;In the version got
Number with local terminal storage version number it is identical when, server can to all-in-one machine feed back be not required to upgrading information, in the version got
When version number's difference number with local terminal storage, server is to the updated virtual network parameter configuration template of all-in-one machine;According to clothes
The virtual network parameter configuration template of the virtual network parameter configuration template local terminal storage for device feedback of being engaged in.
The virtual network method for parameter configuration that the present embodiment proposes can when receiving the instruction of virtual network parameter configuration
It shows virtual network parameter configuration template selection interface, and matches according to the virtual network parameter configuration template that user selects is corresponding
It sets parameter and generates virtual machine, and configure the network parameter of the virtual machine, very fast;User does not need to understand each simultaneously
The function of virtual machine, it is only necessary to according to the template that application scenarios select itself to need, improve virtual network parameter configuration
Flexibility.
Virtual network method for parameter configuration second embodiment of the present invention is proposed based on first embodiment, in the present embodiment,
After step S33, further includes:
When receiving virtual machine configuration parameter change instruction, display configuration parameter updates interface;
When receiving the size values change directive based on configuration parameter update interface triggering, according to current virtual
The size values after network parameter configuration template and change configure virtual machine;
The virtual machine is configured according to the current address information, is based on the configured address information for corresponding behaviour
Make system migration into the virtual machine.
In the present embodiment, user can modify to the parameter of configuration after carrying out virtual network parameter configuration, should
Virtual machine configuration parameter change instruction can be triggered by the physical button on the virtual control or all-in-one machine of all-in-one machine display interface.
After renewal scale information, more updated size values it can increase or reduce the quantity of virtual machine, and virtual updating
It re-starts the migration of operating system after the quantity of machine and configures the relationship between each virtual machine.
It is understood that address information also may be updated in user, then receiving based on configuration parameter update interface
When the address information change directive of triggering, the void is reconfigured according to the corresponding address information of the address information change directive
Quasi- machine, based on by the corresponding operating system migration of the address information reconfigured into the virtual machine.
For example, after applying the address information of publisher server in updating application publication scene, it can be by the address information pair
The operating system migration for the server answered is into virtual server, with the operating system before replacement.
The embodiment is by way of user's manual modification configuration parameter, so that the configuration of virtual network parameter is cleverer
It is living.
The present invention further provides a kind of virtual network parameter configuration devices.
It is the functional block diagram of virtual network parameter configuration device first embodiment of the present invention referring to Fig. 4, Fig. 4.
It is emphasized that it will be apparent to those skilled in the art that functional block diagram shown in Fig. 4 is only one preferably real
The exemplary diagram of example is applied, those skilled in the art surrounds the functional module of virtual network parameter configuration device shown in Fig. 4, can be light
Easily carry out the supplement of new functional module;The title of each functional module is self-defined title, is only used for auxiliary and understands virtual network
Each program function block of parameter configuration device is not used in restriction technical solution of the present invention, the core of technical solution of the present invention
It is the function to be reached of the functional module of each self-defined title.The virtual network parameter configuration device can run on embedded
In mainboard.
The present embodiment proposes that a kind of virtual network parameter configuration device, the virtual network parameter configuration device include:
Display module 10, for showing virtual network parameter configuration mould when receiving the instruction of virtual network parameter configuration
Plate selection interface;
In the present embodiment, virtual network parameter configuration instruction can be by the physical button on all-in-one machine, can also be by one
Virtual control on machine or the controlling terminal being connect with virtual machine triggering;When receiving the instruction of virtual network parameter configuration,
It can show the selection interface including each network parameter configuration template mark, each network parameter configuration template mark may include this
Network parameter configuration template identifies corresponding application scenarios, further, to reduce the operation that user is manually entered, network ginseng
Number configuration template mark may also comprise network parameter configuration template and identify the scale of corresponding application scenarios (as allowed access terminal
Quantity), certainly, the scale of the application scenarios can also be manually entered by user.
Module 20 is obtained, for when receiving the selection instruction based on stencil-chosen interface triggering, described in acquisition
The corresponding virtual network parameter configuration template of selection instruction;
When getting the corresponding virtual network parameter configuration template of selection instruction, the virtual net can be obtained by server
The corresponding configuration parameter of network parameter configuration template, the virtual data may include the corresponding system parameter of each virtual machine, and each
The quantity of a virtual machine and the configuration relation of virtual machine.
Configuration module 30 generates virtual machine for the corresponding configuration parameter of parameter configuration template according to the virtual network,
And configure the network parameter of the virtual machine.
In the present embodiment, the configuration module 30 includes:
Acquiring unit, for being closed according to the association between the preset network parameter configuration template and address information
System, obtains the associated address information of virtual network parameter configuration template, and parameter configuration mould according to the virtual network
The associated address information of plate obtains the configuration parameter;
Generation unit, for generating the virtual machine using the configuration parameter got.
Generally in accession page, for example http://vmp.sangfor.com, the resource loaded (js, picture etc.) are right
Some path of file system on server, such as/sf/www have been answered, as browse request http: //
When vmp.sangfor.com/favicon.ico, corresponding web services then load/sf/www/favicon.ico file, are formed
One-to-one resource impact relationship, if then the file of load is /home/a.js, the file being mapped in equipment is exactly/sf/
www/home/a.js.If operation expanding, the management for increasing third side plug on all-in-one machine is want, third side plug must obtain
It is present in the file system of server, but considers for system maintainability, it will not be by the text of third party's file and main frame
Part coexists in same a catalogue, but on URL, they look like the method for coexisting and solving this problem on one system
It is exactly that URL is rewritten.
Assuming that the third side plug of extension is configuration parameter, independent specified directory, such as/sf/www- are dropped it off
Ext/ad, and the URL requested is /mod-ad/a.js, need to do is exactly that need are to be loaded originally URL:/mod-ad/a.js
File path is adjusted to/sf/www-ext/ad/a.js by/sf/www/mod-ad/a.js, that is, realizes address information and net
The association of network parameter configuration template.
It in the present embodiment, include associated virtual machine in the corresponding configuration parameter of virtual network parameter configuration template
Parameter produces corresponding virtual machine according to the configuration parameter, and configures to the virtual machine of generation.
It is understood that improve the flexibility of virtual machine configuration, scale and ground that can manually to each virtual machine
The parameters such as location information are configured, i.e., referring to Fig. 5, the configuration module 30 includes:
Display unit 31, for showing size values and address information input interface;
Generation unit 32, for the corresponding configuration parameter of parameter configuration template according to the virtual network and based on described
The scale parameter that input interface receives generates virtual machine;
Configuration unit 33, for according to the address information configuration generation received based on the input interface
Virtual machine, and will be in the virtual machine of corresponding operating system migration to generation based on the address information.
In the present embodiment, which is that can access the number of terminal, according to the accessible terminal of user's input
Number configures the quantity of virtual machine, generally requires the quantity according to scale parameter configuration virtual server, in a Virtual Service
When the capacity of device is inadequate, it can configure more virtual servers and be supported.Address information can be the address information of each server,
In order to client terminal login, it is to be understood that address information can also be automatically generated in order to user's subsequent login, such as on
Net application scenarios.
It is illustrated so that scene is issued in application as an example below, it is corresponding in the virtual network parameter configuration template that user chooses
When application scenarios are application publication scene, size values and address information input interface can be shown, so that user's input can connect
Enter the number of terminal and the IP address of application publisher server, the number of virtual server is determined according to the number of accessible terminal
Amount, and done according to the corresponding configuration parameter of the virtual network parameter configuration template such as virtual machine parameter and based on http session number
The preferential QOS strategy of dynamic load leveling, flow control policy, business, the configurations such as tree-shaped virtual network deployment of single layer then can root
According to, and the IP address by applying publisher server, by P2V tool, by existing application publisher server system migration to void
In virtual server in quasi-ization cluster, the configuration of virtual machine is realized.
It is understood that can also refer to the configuration that mode as shown in Figure 3 carries out virtual network parameter, machine user selection
After virtual network parameter configuration template, parameter setting interface as shown in Figure 3 is shown, user can select setting address at the interface
The parameters such as information.
It is to be appreciated that being pushed to all-in-one machine updated after server end updates virtual network parameter configuration template
Virtual network parameter configuration template can also obtain updated virtual network parameter to server when all-in-one machine is switched on every time
Configuration template sends to preset server that is, in the starting-up signal for receiving all-in-one machine and updates request (in update request
Including version number);Server obtains the update request version number when receiving update request;In the version got
Number with local terminal storage version number it is identical when, server can to all-in-one machine feed back be not required to upgrading information, in the version got
When version number's difference number with local terminal storage, server is to the updated virtual network parameter configuration template of all-in-one machine;According to clothes
The virtual network parameter configuration template of the virtual network parameter configuration template local terminal storage for device feedback of being engaged in.
The virtual network parameter configuration device that the present embodiment proposes can when receiving the instruction of virtual network parameter configuration
It shows virtual network parameter configuration template selection interface, and matches according to the virtual network parameter configuration template that user selects is corresponding
It sets parameter and generates virtual machine, and configure the network parameter of the virtual machine, very fast;User does not need to understand each simultaneously
The function of virtual machine, it is only necessary to according to the template that application scenarios select itself to need, improve virtual network parameter configuration
Flexibility.
Virtual network parameter configuration device second embodiment of the present invention is proposed based on first embodiment, in the present embodiment,
The display module 10 is also used to when receiving virtual machine configuration parameter change instruction, and display configuration parameter updates interface;Institute
Configuration module 30 is stated, is also used to when receiving the size values change directive based on configuration parameter update interface triggering,
Virtual machine is configured according to the size values after current virtual network parameter configuration template and change, and according to current
The address information configures the virtual machine, is based on the configured address information for corresponding operating system migration to the void
In quasi- machine.
In the present embodiment, user can modify to the parameter of configuration after carrying out virtual network parameter configuration, should
Virtual machine configuration parameter change instruction can be triggered by the physical button on the virtual control or all-in-one machine of all-in-one machine display interface.
After renewal scale information, more updated size values it can increase or reduce the quantity of virtual machine, and virtual updating
It re-starts the migration of operating system after the quantity of machine and configures the relationship between each virtual machine.
It is understood that user also may be updated address information, then the configuration module 30 is also used to be based on receiving
When the configuration parameter updates the address information change directive of interface triggering, correspondingly according to the address information change directive
Location information reconfigures the virtual machine, based on by the corresponding operating system migration of the address information reconfigured to described virtual
In machine.
For example, after applying the address information of publisher server in updating application publication scene, it can be by the address information pair
The operating system migration for the server answered is into virtual server, with the operating system before replacement.
The embodiment is by way of user's manual modification configuration parameter, so that the configuration of virtual network parameter is cleverer
It is living.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to contain the non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, cloud
Hold server, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.