CN110327626A - Virtual server creation method and device - Google Patents

Virtual server creation method and device Download PDF

Info

Publication number
CN110327626A
CN110327626A CN201910613159.3A CN201910613159A CN110327626A CN 110327626 A CN110327626 A CN 110327626A CN 201910613159 A CN201910613159 A CN 201910613159A CN 110327626 A CN110327626 A CN 110327626A
Authority
CN
China
Prior art keywords
server
template
information
mark
virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910613159.3A
Other languages
Chinese (zh)
Other versions
CN110327626B (en
Inventor
李元实
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910613159.3A priority Critical patent/CN110327626B/en
Publication of CN110327626A publication Critical patent/CN110327626A/en
Application granted granted Critical
Publication of CN110327626B publication Critical patent/CN110327626B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the present invention provides a kind of virtual server creation method and device, which comprises obtains virtual server request to create, the mark of first server template is carried in the virtual server request to create;According to the mark of the first server template, the corresponding first server template of mark of the first server template is determined at least one Server template;According to the first server template, the first virtual server is created on the host.The allocative efficiency of virtual server is improved, ensures that development of games process is gone on smoothly.

Description

Virtual server creation method and device
Technical field
The present embodiments relate to development of games field more particularly to a kind of virtual server creation methods and device.
Background technique
Staff in Game development teams is during development of games, it usually needs configures it according to demands of individuals Required server, and its development of games work is carried out on configured server, it is configured for example, Artist can pass through Good server carries out Beautification design to the personage in interface or game.
Currently, during configuration server, usually as special technical staff to running environment needed for server, Resource, execution order etc. are configured, and then complete configuration server, after completing configuration server, if desired to server When being updated, it is also necessary to be updated by special technical staff to server.In above process, it if desired configures multiple It can only be by special technical staff's configuration server (or more new demand servicing (when perhaps needing to update server) when server Device), cause the allocative efficiency of server lower, hinders development of games process.
Summary of the invention
The embodiment of the present invention provides a kind of virtual server creation method and device, improves the configuration effect of virtual server Rate ensures that development of games process is gone on smoothly.
In a first aspect, the embodiment of the present invention provides a kind of virtual server creation method, it is applied to host, comprising:
Virtual server request to create is obtained, the mark of first server template is carried in the virtual server request to create Know;
According to the mark of the first server template, the first server is determined at least one Server template The corresponding first server template of the mark of template;
According to the first server template, the first virtual server is created on the host.
It is described according to the Server template in a kind of possible embodiment, it is created on the host virtual Server, comprising:
Obtain the first operation information, the first attribute information and the first resource information in the Server template;Wherein, institute The start command, shutdown command and file manipulation command that the first operation information includes the virtual server are stated, described first belongs to Property information includes port mapping information, and the first resource information includes EMS memory occupation amount, CPU usage;
According to first operation information, first attribute information and the first resource information, create described virtual Server.
In alternatively possible embodiment, before the acquisition virtual server request to create, the method is also wrapped It includes:
Obtain Server template display request;
It is shown and is requested according to the Server template, send the Server template list, the server to client The mark and the corresponding template type of each mark of multiple Server templates are stored in template list.
It is described according to the Server template in alternatively possible embodiment, it is created on the host empty After quasi- server, the method also includes:
Receive the creation information that the virtual server is sent, the creation information be used to indicate successfully create it is described virtually Server or the creation virtual server failure;
According to the creation information, send prompt information to client, the prompt information for prompt user's success or Person unsuccessfully creates the virtual server.
It is described to be identified according to the Server template in alternatively possible embodiment, at least one server Before determining that the Server template identifies corresponding Server template in template, the method also includes:
Obtain at least one operation information, at least one attribute information and at least one resource information;
According at least one operation information, at least one attribute information and at least one resource information, obtain described Server template list, wherein operation information, attribute included by each Server template in the Server template list Information and resource information exist not with operation information included by other Server templates, attribute information and resource information Together.
It is described according to the Server template in alternatively possible embodiment, it is created on the host empty After quasi- server, the method also includes:
It is requested in response to template renewal, sends the Server template list to client;
Template renewal response is obtained, the calligraphy or painting model updates the mark that second server template is carried in response;
According to the mark of the first server template and the mark of the second server template, first clothes are determined The different information for the device template and the second server template of being engaged in;
According to the different information of the first server template and the second server template, by the first server Template renewal is the second server template.
It is described according to the first server template and the second server mould in alternatively possible embodiment The first server template renewal is the second server template by the different information of plate, comprising:
It, will be described if the second operation information of the second server template has differences with first operation information First operation information replaces with the second operation information;
It, will be described if the second attribute information of the second server template has differences with first attribute information First attribute information replaces with the second attribute information;
It, will be described if the Secondary resource information of the second server template has differences with the first resource information First resource information replaces with Secondary resource information.
It is described according to the Server template in alternatively possible embodiment, it is created on the host empty After quasi- server, the method also includes:
The read-write requests to the configuration file in the virtual server are obtained, the configuration file includes first behaviour Make information, first attribute information and the first resource information, the read-write requests include first operation information At least one of mark, the mark of first attribute information and mark of the first resource information;
The read-write requests are responded, according to the mark of first operation information, Xiang Suoshu client sends described first Operation information, according to the mark of first attribute information, Xiang Suoshu client sends first attribute information, according to described The mark of first resource information, Xiang Suoshu client send the first resource information.
Second aspect, the embodiment of the present invention provide a kind of virtual server creating device, are applied to host, described device It include: to obtain module, determining module and creation module, wherein
The acquisition module is used for, and is obtained virtual server request to create, is carried in the virtual server request to create The mark of first server template;
The determining module is used for, according to the mark of the first server template, at least one Server template Determine the corresponding first server template of the mark of the first server template;
The creation module is used for, and according to the first server template, is created first on the host and is virtually taken Business device.
In a kind of possible embodiment, the creation module is specifically used for:
Obtain the first operation information, the first attribute information and the first resource information in the Server template;Wherein, institute The start command, shutdown command and file manipulation command that the first operation information includes the virtual server are stated, described first belongs to Property information includes port mapping information, and the first resource information includes EMS memory occupation amount, CPU usage;
According to first operation information, first attribute information and the first resource information, create described virtual Server.
In alternatively possible embodiment, described device further include: sending module;
The acquisition module is also used to, and before obtaining virtual server request to create, acquisition Server template, which is shown, is asked It asks;
The sending module is used for, and is shown and is requested according to the Server template, sends the server mould to client Panel table is stored with the mark and each corresponding template of mark of multiple Server templates in the Server template list Type.
In alternatively possible embodiment, described device further include: receiving module;
The receiving module is used for, and after creating virtual server on the host, receives the virtual server The creation information of transmission, the creation information, which is used to indicate, successfully creates the virtual server or the creation virtual clothes Business device failure;
The sending module is also used to, and according to the creation information, sends prompt information, the prompt information to client For prompting user to succeed or unsuccessfully creating the virtual server.
In alternatively possible embodiment, the method also includes: list determining module;
The acquisition module is also used to, and the Server template mark pair is determined at least one Server template Before the Server template answered, at least one operation information, at least one attribute information and at least one resource information are obtained;
The list determining module is used for, according at least one operation information, at least one attribute information and at least A kind of resource information obtains the Server template list, wherein each Server template in the Server template list Included operation information, attribute information and resource information is believed with operation information included by other Server templates, attribute Breath and resource information exist different.
In alternatively possible embodiment, described device further includes update module;
The sending module is also used to, and after creating virtual server on the host, is asked in response to template renewal It asks, sends the Server template list to client;
The acquisition module is also used to, and obtains template renewal response, and the calligraphy or painting model, which updates in response, carries second server The mark of template;
The determining module is also used to, according to the mark of the first server template and the second server template Mark, determines the different information of the first server template Yu the second server template;
The update module is used for, and is believed according to the difference of the first server template and the second server template The first server template renewal is the second server template by breath.
In alternatively possible embodiment, the update module is specifically used for:
It, will be described if the second operation information of the second server template has differences with first operation information First operation information replaces with the second operation information;
It, will be described if the second attribute information of the second server template has differences with first attribute information First attribute information replaces with the second attribute information;
It, will be described if the Secondary resource information of the second server template has differences with the first resource information First resource information replaces with Secondary resource information.
In alternatively possible embodiment,
The acquisition module is also used to, and after creating virtual server on the host, is obtained to the virtual clothes The read-write requests for the configuration file being engaged in device, the configuration file includes first operation information, first attribute information With the first resource information, the read-write requests include the mark of first operation information, first attribute information At least one of the mark of mark and the first resource information;
The sending module is also used to, and responds the read-write requests, according to the mark of first operation information, Xiang Suoshu Client sends first operation information, and according to the mark of first attribute information, Xiang Suoshu client sends described the One attribute information, according to the mark of the first resource information, Xiang Suoshu client sends the first resource information.
The third aspect, the embodiment of the present invention provide a kind of virtual server creating device, comprising:
Memory, for storing program;
Processor, for executing the described program of memory storage, when described program is performed, the virtual clothes Business device creating device is for executing virtual server creation method in first aspect as above.
Fourth aspect, the embodiment of the present invention provides a kind of computer readable storage medium, including instruction, when it is in computer When upper operation, so that computer executes virtual server creation method in first aspect as above.
Virtual server creation method and device provided in an embodiment of the present invention, comprising: obtain virtual server creation and ask It asks, the mark of first server template is carried in virtual server request to create.According to the mark of first server template, extremely The corresponding first server template of first server template identification is determined in a kind of few Server template.According to first server mould Plate creates the first virtual server on host.In above process, it according to first server template, is created on host First virtual server improves the configuration of server without completing the configuration to virtual server by special technical staff Efficiency, and then ensure that development of games process is gone on smoothly.
Detailed description of the invention
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 technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is the application scenarios schematic diagram of virtual server creation method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram one of virtual server creation method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram two of virtual server creation method provided in an embodiment of the present invention;
Fig. 4 is virtual server creating device structural schematic diagram one provided in an embodiment of the present invention;
Fig. 5 is virtual server creating device structural schematic diagram two provided in an embodiment of the present invention;
Fig. 6 is virtual server creating device structural schematic diagram three provided in an embodiment of the present invention;
Fig. 7 is virtual server creating device structural schematic diagram four provided in an embodiment of the present invention;
Fig. 8 is virtual server creating device structural schematic diagram five provided in an embodiment of the present invention;
Fig. 9 is the hardware structural diagram of game server provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 is the application scenarios schematic diagram of virtual server creation method provided in an embodiment of the present invention.As shown in Figure 1, It include: client 11, host 12 and the virtual server 120 being arranged in host 12.
Wherein, client 11 can be interacted by cable network or wireless network with host 12.For example, having Gauze network can be any one in coaxial cable, twisted pair and optical fiber etc., wireless network can for 2G network, 3G network, Any one in 4G network or 5G network, Wireless Fidelity (WirelessFidelity, abbreviation WIFI) network etc..The present invention Embodiment to interactive concrete type or concrete form without limitation, as long as client is enabled to interact with host ?.
Optionally, client 11 can be desktop computer or laptop etc..In practical applications, client 11 Virtual server request to create etc. can be sent to host 12.2 clients 11 are illustratively given in Fig. 1, the present invention Embodiment is not particularly limited the particular number of client 11.
It should be noted that host 12 is physical machine.In practical applications, host 12 can receive the hair of client 11 The virtual server request to create sent, and virtual server 120 is created according to virtual server request to create.It is exemplary in Fig. 1 Give 2 virtual servers 120, the embodiment of the present invention is not particularly limited the particular number of virtual server 120.Tool Body, the number of virtual server 120 is usually equal with the number of client 11, that is, virtual server 120 and client 11 1 One is corresponding.
During development of games, if developer needs to create virtual server 120 in host 12, it can lead to It crosses client 11 and sends virtual server request to create to host 12, carry Server template in virtual server request to create Mark can be searched and be identified according to the mark of Server template after host 12 receives virtual server request to create Corresponding Server template, and virtual server 120 is created according to Server template, to avoid that special technology can only be relied on Personnel depaly server leads to problems such as the allocative efficiency of server lower.
In the following, virtual server creation method shown in the application is described in detail in conjunction with Fig. 2 embodiment.It needs to illustrate , below several specific embodiments can be combined with each other, for the same or similar content, in various embodiments no longer Carry out repeated explanation.
Fig. 2 is the flow diagram one of virtual server creation method provided in an embodiment of the present invention.As shown in Fig. 2, should Method includes:
S201: virtual server request to create is obtained, carries first server template in virtual server request to create Mark.
Optionally, the executing subject of the embodiment of the present invention can be host, can be arranged in it is virtual in host Server creating device, virtual server creating device can be realized by the combination of software and/or hardware.
Specifically, during development of games, when developer is (for example, game plan teacher, Artist, Black-box Testing people Member, programmer) when needing to create virtual server, Server template display request can be sent to host by client, It is requested in host response server template for displaying, sends Server template list to client, so that client display service After device template list, developer can select a Server template in Server template list, to realize to host Send virtual server request to create.
It should be noted that carrying the mark of first server template in virtual server request to create, mark can be Title, number of first server template etc..Specifically, the mark of first server template is not defined in the application, As long as first server template can be uniquely determined according to the mark of first server template.
S202: according to the mark of first server template, first server mould is determined at least one Server template The corresponding first server template of panel sign.
Specifically, after host receives virtual server request to create, can to virtual server request to create into Row dissection process obtains the mark of first server template.It, can be according to after the mark for getting first server template The mark of one Server template determines first server template.
In practical applications, it is provided with memory in host, at least one Server template is preserved in memory, often Kind Server template is provided with mark.Wherein, the mark of each Server template has uniqueness, that is, a Server template Only one mark, the mark of different server template is different.
It should be noted that the mark due to first server template has uniqueness, it can be according to first service The mark of device template uniquely determines the first clothes corresponding with the mark of first server template at least one Server template Business device template.
S203: according to first server template, the first virtual server is created on host.
It in embodiments of the present invention, include operation letter required for the first Virtual Service of creation in first server template Breath, attribute information and resource information.Host can read operation information in first server template, attribute information and resource letter Breath, and the first virtual server is created according to operation information, attribute information and resource information.
Unlike the prior art, in the prior art, it needs by special technical staff to different developer institutes The server needed is separately configured, strong to the dependence of technology, and the allocative efficiency of server is lower.And in this application, Developer sends virtual server request to create to host by client, and host is created according to virtual server Request is automatically performed the creation of virtual server, completes without special technical staff, weak to the dependence of technology, virtual to take The allocative efficiency of business device is high.
Virtual server creation method provided in an embodiment of the present invention, comprising: obtain virtual server request to create, virtually The mark of first server template is carried in server request to create.According to the mark of first server template, at least one The corresponding first server template of first server template identification is determined in Server template.According to first server template, The first virtual server is created on host.In above process, according to first server template, it is empty that first is created on host Quasi- server improves the allocative efficiency of server without the configuration by special technical staff completion to virtual server, into And it ensures development of games process and goes on smoothly.
In the following, making further specifically in conjunction with Fig. 3 to virtual server creation method provided in an embodiment of the present invention It is bright, specifically, referring to Fig. 3.
Fig. 3 is the flow diagram two of virtual server creation method provided in an embodiment of the present invention.As shown in figure 3, should Method includes:
S301: Server template display request is obtained, is shown and is requested according to Server template, sends server to client Template list, be stored in Server template list multiple Server templates mark and each corresponding template class of mark Type.
In embodiments of the present invention, after client sends Server template display request to host, host can be with Obtain Server template display request.A kind of client can be with to the method that host sends Server template display request are as follows: Server template list is stored in the predeterminated position of host, and predeterminated position has default domain name, and user can pass through client (for example, being desktop computer, desktop computer includes keyboard) opens any one browser, and input is pre- in the browser's address bar If domain name, and put " Enter " in beating keyboard and send Server template display request to realize to host.
It should be noted that for the virtual server of creation required for making user understand it, then in Server template The mark and the corresponding template type of each mark of multiple Server templates are stored in list, wherein each mark is respective Corresponding template type can be the post type of developer, for example, template type may include Artist's module (Artist's module), programmer's template (Programmer's module) and test teacher's template (Test Engineer's module) etc..
Further, before display server template list, further includes: generate Server template list.A kind of generation Server template tabulating method includes: to obtain at least one operation information, at least one attribute information and at least one resource letter Breath;According at least one operation information, at least one attribute information and at least one resource information, Server template column are obtained Table, wherein operation information included by each Server template in Server template list, attribute information and resource letter Breath, there are different from operation information included by other Server templates, attribute information and resource information.
For example, operation information has NiKind, attribute information has MjKind, resource information has PkKind, wherein i=1,2 ... n, j= 1,2 ... m, k=1,2 ... p, n, m and p can with when value be the integers such as 4,5,6, in NiA kind of behaviour is chosen in kind operation information Make information N1, in MjA kind of attribute information M is selected in attribute information2, in PkA kind of resource information P is selected in kind resource information2, Composition first server template (including N1、M2And P2), in NiA kind of operation information N is chosen in kind operation information2, in MjAttribute A kind of attribute information M is selected in information2, in PkA kind of resource information P is selected in kind resource information2, form second server template (including N2、M2And P2).Wherein, the operation information N in second server template2With the operation information N in first server module1 It is different.
Specifically, operation information N2With operation information N1Difference may include start command, shutdown command and file behaviour At least one of order difference.
S302: virtual server request to create is obtained, carries first server template in virtual server request to create Mark.
Specifically, S302 is identical as the execution method of S201, herein, the specific implementation procedure of S302 is repeated no more.
S303: according to the mark of first server template, first server mould is determined at least one Server template The corresponding first server template of panel sign.
Specifically, S303 is identical as the execution method of S202, herein, the specific implementation procedure of S303 is repeated no more.
S304: the first operation information, the first attribute information and the first resource information in Server template are obtained;Wherein, First operation information includes start command, shutdown command and the file manipulation command of virtual server, and the first attribute information includes Port mapping information, first resource information include EMS memory occupation amount, CPU usage.
Specifically, file manipulation command in the first operation information includes 3 seed types: operational order in virtual server, File manipulation command in host operational order and virtual server.Wherein, operational order can be virtual in virtual server It is executed in server and returns to implementing result to host;Host operational order can directly be executed by host and client Return to implementing result;File manipulation command can make user read and write the log of virtual server, text online in virtual server Part etc..
It should be noted that being provided with command processing module in host, command processing module can be using above-mentioned 3 kinds lives The corresponding universal code conversion method of type is enabled, the carry out code conversion processing to above-mentioned 3 kinds of command types obtains above-mentioned 3 kinds The order of type corresponds to executable code (wherein, the corresponding different types of executable code of different types of order), 3 seed types The corresponding executable code of order can be applied to different virtually change in technology platform.
Unlike the prior art, in the prior art, All Files operational order " is write firmly " by code, i.e., File manipulation command is written as executable code by technical staff, and the type of the executable code is identical, therefore can not be applied to Different virtually changes in technology platform.And in this application, it is corresponding logical using every kind of command type by command processing module With code conversion method, every kind of command type is handled, obtains the corresponding executable code of every kind of command type, this can hold Line code can be applied to different virtually change in technology platform.
In practical applications, the port mapping information in the first attribute information can configure what virtual server externally exposed Port number, Port Profile etc..Optionally, the first attribute information can also include catalogue mapping, can operation file path etc..It can Choosing, by Docker technology, the first attribute information is packaged into Docker mirror image.
In embodiments of the present invention, further include in Server template virtual server running environment information mirror image text Part, the image file can be Docker mirror image.
S305: according to the first operation information, the first attribute information and first resource information, virtual server is created.
In embodiments of the present invention, according to the first operation information, the first attribute information and first resource information, creation is virtual Server includes: the starting method that virtual server is configured according to start command;According to shutdown command, virtual server is configured Method for closing;According to file manipulation command, the operations such as duplication, stickup and the replacement to file in virtual server are configured Method;According to EMS memory occupation amount, the ratio memory that virtual server occupies host is configured;According to CPU usage, configuration is virtual CPU maximum occupancy of the server in host, wherein the computing resource etc. of CPU maximum occupancy instruction virtual server.
S306: receive virtual server send creation information, creation information be used to indicate successfully create virtual server, Or creation virtual server failure.
Specifically, virtual server can send creation information to host after completing creation virtual server.It is optional , creation information can be " 0 " or " 1 " digital information, or the characters such as " Success " or " failure " String information, wherein " 1 " and " Success " is used to indicate and successfully creates virtual server, and " 0 " and " failure " is used for Instruction creation virtual server failure.Specifically, in this application, not being defined to the concrete form of creation information.
S307: according to creation information, to client send prompt information, prompt information for prompt user success or Failure creation virtual server.
Optionally, for example, successfully creating virtual server using " 1 " instruction, indicate that creation virtual server loses using " 0 " It loses, then, after host receives creation information, however, it is determined that when creation information is " 1 ", sending to client " is successfully your wound Build virtual server ", however, it is determined that when creation information is " 0 ", " failure of creation virtual server " is sent to client.
Virtual server creation method provided in an embodiment of the present invention, comprising: Server template display request is obtained, according to Server template display request sends Server template list to client, is stored with multiple services in Server template list The mark of device template and each corresponding template type of mark.Obtain virtual server request to create, virtual server wound It builds in request and carries the mark of first server template.According to the mark of first server template, at least one server mould The corresponding first server template of first server template identification is determined in plate.Obtain the first operation letter in Server template Breath, the first attribute information and first resource information;Wherein, the first operation information includes the start command of virtual server, closes Order and file manipulation command, the first attribute information include port mapping information, first resource information include EMS memory occupation amount, CPU usage.According to the first operation information, the first attribute information and first resource information, virtual server is created.It receives virtual The creation information that server is sent, creation information, which is used to indicate, successfully creates virtual server or creation virtual server mistake It loses.According to creation information, prompt information is sent to client, prompt information is used to prompt user's success or unsuccessfully create empty Quasi- server.In the above-mentioned methods, non-technical personnel or technical staff only need to send server to host by client Template for displaying request sends virtual server request to create, host to host after client display server template list Machine can voluntarily complete creation virtual server, and the creation process of virtual server is participated in without special technical staff, improve The allocative efficiency of virtual server ensures that development of games process is gone on smoothly.Further, according to Server template, creation Virtual server improves the versatility of virtual server creation method.
In embodiments of the present invention, after creating virtual server, virtual server can be updated.It is optional , virtual server can be updated by updating software Subversion, following feasible method pair can also be passed through Virtual server is updated.
Specifically, a kind of feasible virtual server update method includes:
It is requested in response to template renewal, sends Server template list to client;
Template renewal response is obtained, calligraphy or painting model updates the mark that second server template is carried in response;According to first service The mark of device template and the mark of second server template determine that the difference of first server template and second server template is believed Breath;
It is the by first server template renewal according to the different information of first server template and second server template Two Server templates.
Specifically, host response template updates after user sends template renewal request to host by client Request sends Server template list to client.Optionally, template renewal request can show request phase with Server template Together.After client display server template list, user can be selected by client a kind of Server template (for example, Second server template), it realizes to host and sends template renewal response, template renewal response carries second server template Mark, host can determine second server according to the mark of second server template at least one Server template The corresponding second server template of the mark of template, and according to first server template and second server template, determine first The different information of Server template and second server template.
Further, according to the different information of first server template and second server template, by first server mould Plate is updated to second server template, comprising:
If the second operation information of second server template has differences with the first operation information, by the first operation information Replace with the second operation information;
If the second attribute information of second server template has differences with the first attribute information, by the first attribute information Replace with the second attribute information;
If the Secondary resource information of second server template has differences with first resource information, by first resource information Replace with Secondary resource information.
It should be noted that the second operation information includes start command, shutdown command and the file operation of virtual server Order, the second attribute information includes port mapping information, and Secondary resource information includes EMS memory occupation amount, CPU usage.
Optionally, the second operation information has differences with the first operation information, including start command, shutdown command and file At least one of operational order has differences.Second attribute information has differences with the first attribute information, including port mapping Information, catalogue mapping and can at least one of operation file path have differences.Secondary resource information and first resource information It has differences, including at least one of EMS memory occupation amount, CPU usage have differences.
In embodiments of the present invention, after creating virtual server on host, the method also includes:
The read-write requests to the configuration file in virtual server are obtained, configuration file includes the first operation information, first Attribute information and first resource information, read-write requests include the mark of the first operation information, the mark of the first attribute information and At least one of the mark of one resource information;
Read-write requests are responded, according to the mark of the first operation information, the first operation information are sent to client, according to first The mark of attribute information sends the first attribute information to client, according to the mark of first resource information, sends the to client One resource information.
During development of games, for example, the process that the games of developer's exploitation are run in virtual server In, if the implementing result of games takes the memory headroom of virtual server configuration, user can be by client to place Host read-write requests include the mark of first resource information in read-write requests, and after host receives read-write requests, response is read Write request sends first resource information corresponding with the mark of first resource information to client, allows user to first EMS memory occupation amount in resource information is rewritten, to increase EMS memory occupation amount of the virtual server in host, to protect Demonstrate,prove normal operation of the games in virtual server.
Fig. 4 is virtual server creating device structural schematic diagram one provided in an embodiment of the present invention.As shown in figure 4, described Virtual server creating device is applied to host, and the virtual server creating device 40 includes: to obtain module 41, determine mould Block 42 and creation module 43, wherein
The acquisition module 41 is used for, and is obtained virtual server request to create, is taken in the virtual server request to create Mark with first server template;
The determining module 42 is used for, according to the mark of the first server template, at least one Server template The corresponding first server template of mark of the middle determination first server template;
The creation module 43 is used for, and according to the first server template, it is virtual that first is created on the host Server.
Virtual server creating device provided in this embodiment, can be used for executing the technical solution of above method embodiment, That the realization principle and technical effect are similar is similar for it, and details are not described herein again for the present embodiment.
In a kind of possible design, the creation module 43 is specifically used for:
Obtain the first operation information, the first attribute information and the first resource information in the Server template;Wherein, institute The start command, shutdown command and file manipulation command that the first operation information includes the virtual server are stated, described first belongs to Property information includes port mapping information, and the first resource information includes EMS memory occupation amount, CPU usage;
According to first operation information, first attribute information and the first resource information, create described virtual Server.
Fig. 5 is virtual server creating device structural schematic diagram two provided in an embodiment of the present invention.On the basis of fig. 4, As shown in figure 5, described device further include: sending module 44;
The acquisition module 41 is also used to, and before obtaining virtual server request to create, is obtained Server template and is shown Request;
The sending module 44 is used for, and is shown and is requested according to the Server template, sends the server to client Template list, be stored in the Server template list multiple Server templates mark and each corresponding mould of mark Board type.
In a kind of possible design, the acquisition module 41 is also used to, and creates virtual server on the host Later, the read-write requests to the configuration file in the virtual server are obtained, the configuration file includes first operation Information, first attribute information and the first resource information, the read-write requests include the mark of first operation information At least one of knowledge, the mark of first attribute information and mark of the first resource information;
The sending module 44 is also used to, and responds the read-write requests, according to the mark of first operation information, to institute It states client and sends first operation information, according to the mark of first attribute information, described in Xiang Suoshu client is sent First attribute information, according to the mark of the first resource information, Xiang Suoshu client sends the first resource information.
Virtual server creating device provided in this embodiment, can be used for executing the technical solution of above method embodiment, That the realization principle and technical effect are similar is similar for it, and details are not described herein again for the present embodiment.
Fig. 6 is virtual server creating device structural schematic diagram three provided in an embodiment of the present invention.On the basis of Fig. 5, As shown in fig. 6, described device further include: receiving module 45;
The receiving module 45 is used for, and after creating virtual server on the host, receives the Virtual Service The creation information that device is sent, the creation information, which is used to indicate, to be successfully created the virtual server or creates described virtual Server failure;
The sending module 44 is also used to, and according to the creation information, sends prompt information, the prompt letter to client Breath is for prompting user successfully or unsuccessfully to create the virtual server.
Virtual server creating device provided in this embodiment, can be used for executing the technical solution of above method embodiment, That the realization principle and technical effect are similar is similar for it, and details are not described herein again for the present embodiment.
Virtual server creating device provided in this embodiment, can be used for executing the technical solution of above method embodiment, That the realization principle and technical effect are similar is similar for it, and details are not described herein again for the present embodiment.
Fig. 7 is virtual server creating device structural schematic diagram four provided in an embodiment of the present invention.On the basis of Fig. 6, As shown in fig. 7, described device further include: list determining module 46;
The acquisition module 41 is also used to, and the Server template mark is determined at least one Server template Before corresponding Server template, at least one operation information, at least one attribute information and at least one resource information are obtained;
The list determining module 46 is used for, according at least one operation information, at least one attribute information and extremely A kind of few resource information, obtains the Server template list, wherein each server mould in the Server template list Operation information included by plate, attribute information and resource information, with operation information included by other Server templates, attribute Information and resource information exist different.
Fig. 8 is virtual server creating device structural schematic diagram five provided in an embodiment of the present invention.On the basis of Fig. 7, As shown in figure 8, described device further include: update module 47;
The sending module 44 is also used to, after creating virtual server on the host, in response to template renewal Request sends the Server template list to client;
The acquisition module 41 is also used to, and obtains template renewal response, and the calligraphy or painting model, which updates in response, carries second service The mark of device template;
The determining module 42 is also used to, according to the mark of the first server template and the second server template Mark, determine the different information of the first server template Yu the second server template;
The update module 47 is used for, and is believed according to the difference of the first server template and the second server template The first server template renewal is the second server template by breath.
In a kind of possible design, the update module 47 is specifically used for:
It, will be described if the second operation information of the second server template has differences with first operation information First operation information replaces with the second operation information;
It, will be described if the second attribute information of the second server template has differences with first attribute information First attribute information replaces with the second attribute information;
It, will be described if the Secondary resource information of the second server template has differences with the first resource information First resource information replaces with Secondary resource information.
Virtual server creating device provided in this embodiment, can be used for executing the technical solution of above method embodiment, That the realization principle and technical effect are similar is similar for it, and details are not described herein again for the present embodiment.
Fig. 9 is the hardware structural diagram of game server provided in an embodiment of the present invention.As shown in figure 9, the present embodiment Game server 50 include: processor 51 and memory 52;Wherein
Memory 52, for storing computer executed instructions;
Processor 51 is virtually taken for executing the computer executed instructions of memory storage with realizing in above-described embodiment Each step performed by business device creation method.It specifically may refer to the associated description in preceding method embodiment.
Optionally, memory 52 can also be integrated with processor 51 either independent.
When memory 52 is independently arranged, which further includes bus 53, for connecting memory 52 and processing Device 51.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored in computer readable storage medium Calculation machine executes instruction, and when processor executes computer executed instructions, realizes virtual server creation method as above.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, apparatus embodiments described above are merely indicative, for example, the division of module, only A kind of logical function partition, there may be another division manner in actual implementation, such as multiple modules can combine or can be with It is integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or module, can To be electrically mechanical or other forms.
The above-mentioned integrated module realized in the form of software function module, can store and computer-readable deposit at one 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.) or processor (English: processor) execute this Shen Please each embodiment the method part steps.
It should be understood that above-mentioned processor can be central processing unit (English: Central Processing Unit, letter Claim: CPU), can also be other general processors, digital signal processor (English: Digital Signal Processor, Referred to as: DSP), specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC) etc..General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with hair The step of bright disclosed method, can be embodied directly in hardware processor and execute completion, or with hardware in processor and soft Part block combiner executes completion.
Memory may include high speed RAM memory, it is also possible to and it further include non-volatile memories NVM, for example, at least one Magnetic disk storage can also be USB flash disk, mobile hard disk, read-only memory, disk or CD etc..
Bus can be industry standard architecture (Industry Standard Architecture, ISA) bus, outer Portion's apparatus interconnection (Peripheral Component, PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, EISA) bus etc..Bus can be divided into address bus, data/address bus, control Bus etc..For convenient for indicating, the bus in illustrations does not limit only a bus or a type of bus.
Above-mentioned storage medium can be by any kind of volatibility or non-volatile memory device or their combination It realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable Read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, Disk or CD.Storage medium can be any usable medium that general or specialized computer can access.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (11)

1. a kind of virtual server creation method, which is characterized in that be applied to host, which comprises
Virtual server request to create is obtained, the mark of first server template is carried in the virtual server request to create;
According to the mark of the first server template, the first server template is determined at least one Server template The corresponding first server template of mark;
According to the first server template, the first virtual server is created on the host.
2. the method according to claim 1, wherein described according to the Server template, in the host Upper creation virtual server, comprising:
Obtain the first operation information, the first attribute information and the first resource information in the Server template;Wherein, described One operation information includes start command, shutdown command and the file manipulation command of the virtual server, the first attribute letter Breath includes port mapping information, and the first resource information includes EMS memory occupation amount, CPU usage;
According to first operation information, first attribute information and the first resource information, the Virtual Service is created Device.
3. described according to the method described in claim 2, it is characterized in that, before the acquisition virtual server request to create Method further include:
Obtain Server template display request;
It is shown and is requested according to the Server template, send the Server template list, the Server template to client The mark and the corresponding template type of each mark of multiple Server templates are stored in list.
4. according to the method described in claim 3, it is characterized in that, described according to the Server template, in the host After upper creation virtual server, the method also includes:
The creation information that the virtual server is sent is received, the creation information, which is used to indicate, successfully creates the Virtual Service Device or the creation virtual server failure;
According to the creation information, prompt information is sent to client, the prompt information is for prompting user's success or losing Lose the creation virtual server.
5. according to the method described in claim 3, it is characterized in that, described identify according to the Server template, at least one Before determining that the Server template identifies corresponding Server template in kind Server template, the method also includes:
Obtain at least one operation information, at least one attribute information and at least one resource information;
According at least one operation information, at least one attribute information and at least one resource information, the service is obtained Device template list, wherein operation information, attribute information included by each Server template in the Server template list And resource information, there are different from operation information included by other Server templates, attribute information and resource information.
6. according to method described in claim 3-5, which is characterized in that it is described according to the Server template, in the host After creating virtual server on machine, the method also includes:
It is requested in response to template renewal, sends the Server template list to client;
Template renewal response is obtained, the calligraphy or painting model updates the mark that second server template is carried in response;
According to the mark of the first server template and the mark of the second server template, the first server is determined The different information of template and the second server template;
According to the different information of the first server template and the second server template, by the first server template It is updated to the second server template.
7. according to the method described in claim 6, it is characterized in that, described according to the first server template and described second The first server template renewal is the second server template by the different information of Server template, comprising:
If the second operation information of the second server template has differences with first operation information, by described first Operation information replaces with the second operation information;
If the second attribute information of the second server template has differences with first attribute information, by described first Attribute information replaces with the second attribute information;
If the Secondary resource information of the second server template has differences with the first resource information, by described first Resource information replaces with Secondary resource information.
8. according to method described in claim 2-5, which is characterized in that it is described according to the Server template, in the host After creating virtual server on machine, the method also includes:
The read-write requests to the configuration file in the virtual server are obtained, the configuration file includes the first operation letter Breath, first attribute information and the first resource information, the read-write requests include first operation information mark, The mark of first attribute information and at least one of the mark of the first resource information;
The read-write requests are responded, according to the mark of first operation information, Xiang Suoshu client sends first operation Information, according to the mark of first attribute information, Xiang Suoshu client sends first attribute information, according to described first The mark of resource information, Xiang Suoshu client send the first resource information.
9. a kind of virtual server creating device, which is characterized in that be applied to host, described device include: obtain module, really Cover half block and creation module, wherein
The acquisition module is used for, and is obtained virtual server request to create, is carried first in the virtual server request to create The mark of Server template;
The determining module is used for, and according to the mark of the first server template, is determined at least one Server template The corresponding first server template of the mark of the first server template;
The creation module is used for, and according to the first server template, the first virtual server is created on the host.
10. a kind of virtual server creating device characterized by comprising
Memory, for storing program;
Processor, for executing the described program of memory storage, when described program is performed, the virtual server Creating device is used to execute the method as described in any in claim 1 to 8.
11. a kind of computer readable storage medium, which is characterized in that including instruction, when run on a computer, make to succeed in one's scheme Calculation machine executes the method as described in any in claim 1 to 8.
CN201910613159.3A 2019-07-09 2019-07-09 Virtual server creation method and device Active CN110327626B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910613159.3A CN110327626B (en) 2019-07-09 2019-07-09 Virtual server creation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910613159.3A CN110327626B (en) 2019-07-09 2019-07-09 Virtual server creation method and device

Publications (2)

Publication Number Publication Date
CN110327626A true CN110327626A (en) 2019-10-15
CN110327626B CN110327626B (en) 2023-06-27

Family

ID=68144804

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910613159.3A Active CN110327626B (en) 2019-07-09 2019-07-09 Virtual server creation method and device

Country Status (1)

Country Link
CN (1) CN110327626B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112915545A (en) * 2021-03-02 2021-06-08 上海哔哩哔哩科技有限公司 Data processing method and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060155674A1 (en) * 2005-01-07 2006-07-13 Microsoft Corporation Image server
US20140282519A1 (en) * 2013-03-15 2014-09-18 Bmc Software, Inc. Managing a server template
CN104303147A (en) * 2012-05-30 2015-01-21 惠普发展公司,有限责任合伙企业 Server profile templates
CN104360892A (en) * 2014-10-21 2015-02-18 普华基础软件股份有限公司 System and method for creating virtual machine
CN106775946A (en) * 2016-12-16 2017-05-31 无锡华云数据技术服务有限公司 A kind of virtual machine Method of Creation Process
CN107273178A (en) * 2016-04-06 2017-10-20 阿里巴巴集团控股有限公司 The method and apparatus for configuring virtualization system
CN107493220A (en) * 2016-06-13 2017-12-19 深圳市深信服电子科技有限公司 The border networks all-in-one and business virtual method of server virtualization
CN107783816A (en) * 2016-08-31 2018-03-09 阿里巴巴集团控股有限公司 The method and device that creation method and device, the big data cluster of virtual machine create

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060155674A1 (en) * 2005-01-07 2006-07-13 Microsoft Corporation Image server
CN104303147A (en) * 2012-05-30 2015-01-21 惠普发展公司,有限责任合伙企业 Server profile templates
US20140282519A1 (en) * 2013-03-15 2014-09-18 Bmc Software, Inc. Managing a server template
CN104360892A (en) * 2014-10-21 2015-02-18 普华基础软件股份有限公司 System and method for creating virtual machine
CN107273178A (en) * 2016-04-06 2017-10-20 阿里巴巴集团控股有限公司 The method and apparatus for configuring virtualization system
CN107493220A (en) * 2016-06-13 2017-12-19 深圳市深信服电子科技有限公司 The border networks all-in-one and business virtual method of server virtualization
CN107783816A (en) * 2016-08-31 2018-03-09 阿里巴巴集团控股有限公司 The method and device that creation method and device, the big data cluster of virtual machine create
CN106775946A (en) * 2016-12-16 2017-05-31 无锡华云数据技术服务有限公司 A kind of virtual machine Method of Creation Process

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112915545A (en) * 2021-03-02 2021-06-08 上海哔哩哔哩科技有限公司 Data processing method and system
CN112915545B (en) * 2021-03-02 2023-05-09 上海哔哩哔哩科技有限公司 Data processing method and system

Also Published As

Publication number Publication date
CN110327626B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
JP7110343B2 (en) Blockchain network transaction processing method, device, equipment and storage medium
CN105446793B (en) The method and apparatus for migrating fictitious assets
CN104598257B (en) The method and apparatus of remote application operation
US9940221B2 (en) System and method for testing data representation for different mobile devices
CN105378662B (en) Generate the method and associated computer system of the bundle for application
CN110750654A (en) Knowledge graph acquisition method, device, equipment and medium
KR20060047321A (en) Method and apparatus for generating forms using form types
US9747711B2 (en) Display of graphical representations of legends in virtualized data formats
CN110427182A (en) A kind of template type construction APP method and device
CN108920653A (en) A kind of page generation method, device, server and storage medium
JP2023036774A (en) Access control method of shared memory, access control device of shared memory, electronic apparatus, and autonomous vehicle
JP2022065636A (en) Computer-implemented method, computer program and computer system (digital twin enabled asset performance and upgrade management)
RU2433462C2 (en) Alternative graphics pipeline
CN110471740A (en) Execute method, apparatus, equipment and the computer storage medium of machine learning task
CN110327626A (en) Virtual server creation method and device
CN106161501A (en) The data sharing method of virtual desktop and device
CN109039697B (en) Virtual machine network card configuration method and device
US20190066533A1 (en) Methods for facilitating shortcut and hot key learning via computer application gamification and devices thereof
CN114741294A (en) Page debugging method, device, equipment and storage medium
CN109460226A (en) Test certificate image generation method, device, equipment and storage medium
CN111026371B (en) Game development method and device, electronic equipment and storage medium
EP3834080B1 (en) Static reconcilliation of application view hierarchies
CN113760317A (en) Page display method, device, equipment and storage medium
CN111782333B (en) Interface display method and device in game, storage medium and terminal equipment
US20230088280A1 (en) Conversational system action presentation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant