CN107071012A - Cloud terminal is connected automatically to the method for virtual machine, apparatus and system - Google Patents
Cloud terminal is connected automatically to the method for virtual machine, apparatus and system Download PDFInfo
- Publication number
- CN107071012A CN107071012A CN201710197608.1A CN201710197608A CN107071012A CN 107071012 A CN107071012 A CN 107071012A CN 201710197608 A CN201710197608 A CN 201710197608A CN 107071012 A CN107071012 A CN 107071012A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- configuration file
- cloud terminal
- title
- secret value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a kind of method that cloud terminal is connected automatically to virtual machine, comprise the following steps:After the instruction of newly-built virtual machine is listened to, the first configuration file, and virtual machine IP and corresponding virtual machine title generation virtual machine in first configuration file are read;The link order from cloud terminal is captured, the secret value of the secret value and the second configuration file positioned at the cloud terminal local to be connected of first configuration file is obtained;When secret value is identical, name acquiring is sent to instruct to the cloud terminal, so that the cloud terminal is inquired about according to the virtual machine IP conversed from second configuration file obtains corresponding virtual machine title, the cloud terminal is connected on consistent virtual machine corresponding with the virtual machine title.Present invention also offers the apparatus and system that a kind of cloud terminal is connected automatically to virtual machine, managerial effectiveness is enhanced, maloperation probability is reduced, improves operating efficiency.
Description
Technical field
The present invention relates to field of cloud calculation, more particularly to a kind of cloud terminal be connected automatically to the method for virtual machine, device and
System.
Background technology
Cloud desktop is the PC application based on cloud computing technology, because it can be integrally interconnected net elite application, and according to
Height AES is held in the palm, therefore easy, abundant, safe, intimate service can be provided for internet user at all levels.
When using cloud desktop, user needs to remotely access the virtual machine in cloud computing environment by local terminal,
To obtain computation interface.During actually in high volume virtual machine is built based on Hyper-V clouds desktop, it is normally based on
The for Do statements of powershell scripts come newly-built virtual machine, virtual machine entitled XX-1, XX-2, XX- after building up
3 ... the titles waited.
During it will build office cloud for working environment based on Hyper-V clouds desktop, due to virtual machine title, behaviour
Make system host name, domain user name three's title often inconsistent, it is difficult to realize that cloud terminal is connected automatically on virtual machine, and use
Family intuitively can not quickly judge the corresponding relation of cloud terminal and virtual machine, cause the inconvenience of management, also easily cause maloperation,
Cause and delete by mistake, miss the unfavorable factors such as modification.
The content of the invention
In view of the above-mentioned problems, the method for virtual machine, apparatus and system are connected automatically to the invention provides a kind of cloud terminal,
It can realize that cloud terminal is connected automatically on virtual machine, allow users to the corresponding relation of intuitive judgment cloud terminal and virtual machine,
Managerial effectiveness is enhanced, maloperation probability is reduced, improves operating efficiency.
The invention provides a kind of method that cloud terminal is connected automatically to virtual machine, including:
After the instruction of newly-built virtual machine is listened to, the first configuration file is read, and according in first configuration file
Virtual machine IP and corresponding virtual machine title generation virtual machine;Wherein, first configuration file include virtual machine IP with
And with the one-to-one virtual machine titles of the virtual machine IP;
The link order from cloud terminal is captured, the secret value of first configuration file is obtained with being located at institute to be connected
State the secret value of the second configuration file of cloud terminal local;
When the secret value of first configuration file is identical with the secret value of second configuration file, sends title and obtain
The cloud terminal is given in instruction fetch, so that the cloud terminal converses corresponding virtual machine IP according to local IP, and according to conversing
Virtual machine IP inquired about from second configuration file and obtain corresponding virtual machine title;
The virtual machine title sent according to the cloud terminal, the cloud terminal is connected to corresponding with the virtual machine title
On consistent virtual machine.
Preferably, in the link order of the capture from cloud terminal, obtain the secret value of first configuration file with
After the secret value of the second configuration file of cloud terminal local to be connected, in addition to:
It is whole to the cloud when the secret value of first configuration file is different from the secret value of second configuration file
End sends first configuration file, so that the cloud terminal is matched somebody with somebody according to the first configuration file of reception to local described second
Put file and be updated replacement.
Preferably, it is described after the instruction of newly-built virtual machine is listened to, first configuration file is read, and according to described
Virtual machine IP and corresponding virtual machine title generation virtual machine in first configuration file, be specially:
After the instruction of newly-built virtual machine is listened to, it is newly-built and run virtual machine script with read it is described first configuration text
Part;
Corresponding virtual machine title is obtained according to the virtual machine IP read, generation possesses the virtual machine IP and virtual machine
The virtual machine of title.
Preferably, the virtual machine title is with possessing the cloud terminal that the virtual machine of the virtual machine title is connected
Local domain user name name.
Preferably, newly-built virtual machine operations are obtained described, reads first configuration file, and match somebody with somebody according to described first
After putting virtual machine IP in file and corresponding virtual machine title generation virtual machine, in addition to:
Installed on the virtual machine with the desktop operating system of the virtual machine name nominating of the virtual machine.
Present invention also offers the device that a kind of cloud terminal is connected automatically to virtual machine, including:
Virtual machine generation module, for after the instruction of newly-built virtual machine is listened to, reads the first configuration file, and according to
Virtual machine IP and corresponding virtual machine title generation virtual machine in first configuration file;Wherein, first configuration
File include virtual machine IP and with the one-to-one virtual machine titles of the virtual machine IP;
Secret value acquisition module, for capturing the link order from cloud terminal, obtains adding for first configuration file
Close value and the secret value of the second configuration file positioned at the cloud terminal local to be connected;
Name acquiring module, for the secret value when first configuration file and the secret value of second configuration file
When identical, send name acquiring and instruct to the cloud terminal, so that the cloud terminal is changed according to local IP and default incremental number
Corresponding virtual machine IP is calculated, and is inquired about according to the virtual machine IP conversed from second configuration file and obtains corresponding void
Plan machine title;
Link block, for the virtual machine title sent according to the cloud terminal, by the cloud terminal be connected to it is described
On the consistent virtual machine of virtual machine title correspondence.
Preferably,
The device that the cloud terminal is connected automatically to virtual machine also includes:
Update module is different from the secret value of second configuration file for the secret value when first configuration file
When, send first configuration file to the cloud terminal so that the cloud terminal according to the first configuration file of reception to this
Second configuration file on ground is replaced.
Preferably,
The virtual machine generation module, is specifically included:
Reading unit, it is newly-built and run virtual machine script to read for after the instruction of newly-built virtual machine is listened to
State the first configuration file;
Generation unit, for obtaining corresponding virtual machine title according to the virtual machine IP read, generation possesses the void
Plan machine IP and virtual machine title virtual machine.
Preferably,
The device that the cloud terminal is connected automatically to virtual machine also includes:
Operating system installs module, for being installed on the virtual machine with the virtual machine name nominating of the virtual machine
Desktop operating system.
The present invention also provides the system that a kind of cloud terminal is connected automatically to virtual machine, including Cloud Server, virtual machine and cloud
Terminal;Wherein:
The Cloud Server, for after the instruction of newly-built virtual machine is listened to, the first configuration file being read, according to described
Virtual machine IP and corresponding virtual machine title generation virtual machine in first configuration file;
The Cloud Server, is additionally operable to capture the link order from cloud terminal, obtains adding for first configuration file
Close value and the secret value of the second configuration file positioned at cloud terminal local to be connected;
The cloud terminal, the secret value phase for the secret value when first configuration file and second configuration file
Meanwhile, corresponding virtual machine IP is conversed according to local IP, and according to the virtual machine IP conversed from second configuration file
Middle inquiry obtains corresponding virtual machine title, sends the virtual machine title to Cloud Server, makes the Cloud Server according to institute
Virtual machine title is stated to be connected on the consistent virtual machine of correspondence title.
The method of virtual machine, apparatus and system are connected automatically to the invention provides a kind of cloud terminal, cloud server end exists
Monitor after virtual machine generation instruction by the first configuration file matching virtual machine IP and the corresponding relation of virtual machine title, realize energy
Enough mass customized virtual machine titles set up virtual machine, while cloud terminal converses corresponding virtual machine IP according to local IP, pass through
Second configuration file matching virtual machine IP and the corresponding relation of virtual machine title, are correctly connected automatically to correspondence virtual machine title one
On the virtual machine of cause, the corresponding relation of intuitive judgment cloud terminal and virtual machine is allowed users to, managerial effectiveness is enhanced, reduced
Maloperation probability, improves operating efficiency, convenient unified management, it is to avoid cause maloperation and cause delete by mistake, miss modification etc. no
Sharp factor.
Brief description of the drawings
In order to illustrate more clearly of technical scheme, the required accompanying drawing used in embodiment will be made below
Simply introduce, it should be apparent that, drawings in the following description are only some embodiments of the present invention, general for this area
For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet for the method that cloud terminal provided in an embodiment of the present invention is connected automatically to virtual machine.
Fig. 2 is the structural representation for the device that cloud terminal provided in an embodiment of the present invention is connected automatically to virtual machine.
Fig. 3 is another structural representation for the device that cloud terminal provided in an embodiment of the present invention is connected automatically to virtual machine
Figure.
Fig. 4 is another structural representation for the device that cloud terminal provided in an embodiment of the present invention is connected automatically to virtual machine
Figure.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
The invention provides the system that a kind of cloud terminal is connected automatically to virtual machine, including Cloud Server, virtual machine and cloud
Terminal.Wherein, the Cloud Server, virtual machine and cloud terminal can be connected by real-time performance.
The Cloud Server, for after the instruction of newly-built virtual machine is listened to, the first configuration file being read, according to described
Virtual machine IP and corresponding virtual machine title generation virtual machine in first configuration file.
Specifically, first configuration file can be described by the Cloud Server according to planning requirement command generation is received
First configuration file include virtual machine IP and with the one-to-one virtual machine titles of the virtual machine IP.
The Cloud Server, is additionally operable to capture the link order from cloud terminal, obtains adding for first configuration file
Close value and the secret value of the second configuration file positioned at cloud terminal local to be connected.
Wherein, first configuration file and second configuration file are encrypted by MD5 algorithms.
The cloud terminal, the secret value phase for the secret value when first configuration file and second configuration file
Meanwhile, corresponding virtual machine IP is conversed according to local IP and default incremental number, and according to the virtual machine IP conversed from institute
State inquiry in the second configuration file and obtain corresponding virtual machine title, send the virtual machine title to Cloud Server, make described
The cloud terminal is connected on the consistent virtual machine of correspondence title by Cloud Server according to the virtual machine title.
In embodiments of the present invention, the system that the cloud terminal is connected automatically to virtual machine, realizes that cloud terminal is connected automatically
Onto virtual machine, the workload of manual operation is reduced, managerial effectiveness is improved, maloperation probability is reduced, work effect is improved
Rate, convenient unified management, it is to avoid cause maloperation and cause delete by mistake, miss the unfavorable factors such as modification.
Referring to Fig. 1, the embodiments of the invention provide a kind of method that cloud terminal is connected automatically to virtual machine, it can be by cloud
Server is performed, and is comprised the following steps:
S101, after the instruction of newly-built virtual machine is listened to, reads the first configuration file, and according to the described first configuration text
Virtual machine IP and corresponding virtual machine title generation virtual machine in part;Wherein, first configuration file includes virtual machine
IP and with the one-to-one virtual machine titles of the virtual machine IP.
In embodiments of the present invention, the Cloud Server can generate first and configure according to the planning requirement command received
File;Wherein, first configuration file include virtual machine IP and with the one-to-one virtual machine titles of the virtual machine IP.
The virtual machine title is with the local domain user name with possessing the cloud terminal that the virtual machine of the virtual machine title is connected
Name.
In embodiments of the present invention, demand, i.e., the number of the cloud terminal connected automatically as needed are planned according to user
Amount, generation includes virtual machine IP and the first configuration file with the one-to-one virtual machine titles of the virtual machine IP, by institute
State that virtual machine IP is corresponding with virtual machine title, planning distribution virtual machine IP and the corresponding relation of the cloud terminal, for example, described the
There is the configuration information that form is (192.168.0.1, test) in one configuration file, that is, show that virtual machine IP is
192.168.0.1 the entitled test of virtual machine of virtual machine, the local domain user for the cloud terminal being connected with the virtual machine
Name is also test.
In embodiments of the present invention, specifically, the S101 includes:
S1011, it is newly-built and run virtual machine script and matched somebody with somebody with reading described first after the instruction of newly-built virtual machine is listened to
Put file.
S1012, corresponding virtual machine title is obtained according to the virtual machine IP that reads, generation possess the virtual machine IP and
The virtual machine of virtual machine title.
In embodiments of the present invention, Cloud Server can install Vmware systems, XenServer systems or Hyper-V systems
Unite to provide generation virtual machine service.
The Vmware systems do not need subregion or boots just to use two or more operation systems on same PC
System, such as Windows, DOS or LINUX system;Operating environment that is completely isolated and protecting different OS and all it is arranged on
Application software and data above OS;Can also interactive operation, including network, periphery, sharing files and multiple between different OS
Paste functionality processed;There is recovery (Undo) function;The operating environment of operating system can be set and change at any time, such as:Internal memory, magnetic
Dish space, peripheral equipment etc.;Thermophoresis, high availability.
The XenServer systems reduce power supply, cooling and data center space demand to reduce by integrated service device
Cost allows the completion new demand servicing device within a few minutes to purchase and IT service offerings, and then raising IT flexibilities ensure to consistently achieve
Application requirement and performance level standard reduce fault impact, are against any misfortune, and then reduce shutdown to greatest extent, equipped with 64
System supervisor and centralized management, real-time migration and crossover tool, can create a virtual platform to improve to greatest extent
Virtual machine density and performance.
The Hyper-V systems use the framework of micro-kernel, have taken into account the requirement of security and performance.Hyper-V bottoms
Hypervisor operate under highest privilege level, Microsoft is referred to as ring-1, and (and Intel is then referred to as root
Mode), and the O/S kernel of virtual machine and driving operate in ring 0, application program is operated under ring 3, and this framework is just not
Need, using complicated BT (translation of binary system privileged instruction) technology, can further improve security.Between user each other every
From-flexibility and direct control VPS main frames;Comprehensive any application software of control-operation to VPS, create matching somebody with somebody for any customization
Put;High security-higher security means higher service reliability simultaneously;Resources control and peak value-ensure user
Obtain higher levels of service and resource.Peak value is allowed to be better than independent master there is provided one using idle server resource
The service of machine level (the separate server resource of many low sides is all inferior to the level of server used in DS);Template and application program
The application of external member-acquisition newly.Operating system and application software can upgrade in time, reduce security risk;Client's control panel-self-service
Manage and use failure diagnosis tool:Restart, repair, resetting, backing up, monitoring VPS operations in real time;Light migration-carry out liter
Without stopping service when level and migration.Service provider can meet the demand of almost all host services from low to high;Backup and recover-
With backup and recovery function.Many DS service hosts rent scheme and all include the space backed up for user.
S102, captures the link order from cloud terminal, obtains the secret value of first configuration file with being located at the company for the treatment of
The secret value of second configuration file of the cloud terminal local connect.
In embodiments of the present invention, usable hash function is encrypted to provide the integrity protection of message.For example, making
First configuration file and second configuration file positioned at the cloud terminal local to be connected are carried out with MD5 algorithms
Encryption, MD5 algorithms have the characteristics that:
1st, compressibility:The data of random length, the MD5 values length calculated is all fixed.
2nd, easily calculate:MD5 values are calculated from former data to be easy to.
3rd, anti-modification:Former data are made any change, even only changing 1 byte, resulting MD5 values have very
Big difference.
4th, strong impact resistant:Known former data and its MD5 value, want that finding a data with identical MD5 values (forges number
According to) it is extremely difficult.
MD5 effect is to allow Large Copacity information to be protected before private key is signed with digital signature software by " compression " into one kind
Close form (being exactly the hexadecimal number word string for the byte serial of a random length being transformed into a fixed length), it is ensured that information it is complete
Whole property.
S103, when the secret value of first configuration file is identical with the secret value of second configuration file, sends
Name acquiring is instructed to the cloud terminal, so that the cloud terminal converses corresponding virtual machine IP according to local IP, and according to
The virtual machine IP conversed is inquired about from second configuration file and is obtained corresponding virtual machine title.
In embodiments of the present invention, enter when first configuration file is consistent with second configuration file matching and be connected
Stage, Cloud Server sends name acquiring and instructed to the cloud terminal, so that the cloud terminal reads local IP, passes through local IP
And default incremental number converses corresponding virtual machine IP during planning demand, such as local IP is 192.168.0.1, plans demand
When default incremental number be 50, then the virtual machine IP conversed be 192.168.0.51, according to the virtual machine IP conversed
Inquiry obtains corresponding virtual machine title from second configuration file.
The cloud terminal is connected to and virtual machine name by S104, the virtual machine title sent according to the cloud terminal
Claim on the consistent virtual machine of correspondence.
In embodiments of the present invention, cloud terminal is connected on corresponding virtual machine by virtual machine title, allows user
Intuitively judged whether according to virtual machine title to be connected correctly to the corresponding virtual machine specified very much.
In summary, the invention provides a kind of method that cloud terminal is connected automatically to virtual machine, cloud server end according to
The generation of planning demand includes the first configuration file of virtual machine IP and virtual machine title corresponding with virtual machine IP, monitors virtual machine
By the first configuration file matching virtual machine IP and the corresponding relation of virtual machine title after generation instruction, realization can be mass customized
Virtual machine title sets up virtual machine, while cloud terminal converses corresponding virtual machine IP according to local IP and default incremental number,
By the second configuration file matching virtual machine IP and the corresponding relation of virtual machine title, correspondence virtual machine name is correctly connected automatically to
Claim on consistent virtual machine, allow users to the corresponding relation of intuitive judgment cloud terminal and virtual machine, enhance managerial effectiveness,
Maloperation probability is reduced, operating efficiency, convenient unified management is improved, it is to avoid causes maloperation and cause delete, change by mistake by mistake
Etc. unfavorable factor.
For the ease of the understanding of the present invention, some currently preferred embodiments of the present invention will be done further retouch below
State.
First preferred embodiment:
Preferably, after the S102, in addition to:
S105, when the secret value of first configuration file is different from the secret value of second configuration file, to institute
State cloud terminal and send first configuration file so that the cloud terminal according to the first configuration file of reception to described in local
Second configuration file is updated replacement.
In a preferred embodiment of the invention, when the secret value of first configuration file and adding for second configuration file
It is close value it is different when, then be likely to occur following 2 kinds of situations:1st, the first configuration file on Cloud Server updates and the cloud terminal
Second configuration file does not update;2nd, the cloud terminal is not belonging in the range of Cloud Server cloud terminal to be connected;For situation
1, Cloud Server sends first configuration file to update the second configuration file of the cloud terminal to the cloud terminal;For
Situation 2, connection request of the Cloud Server refusal from the cloud terminal.
In a preferred embodiment of the invention, the occurrence of taking into full account a variety of simultaneously takes corresponding measure, it is ensured that virtual machine
It is connected correctly on corresponding virtual machine.
Second preferred embodiment:
Preferably, after step slol, in addition to:
S106, is installed on the virtual machine with the desktop operating system of the virtual machine name nominating of the virtual machine.
In a preferred embodiment of the invention, the virtual machine installs desktop operating system, such as Windows or Linux, cloud
Terminal installing terminal system is connected with virtual machine, for example, the virtual machine for installing windows desktop operating system starts long-range table
Face, the terminal system installation of the cloud terminal remotely accesses application program and is connected with the virtual machine.
In a preferred embodiment of the invention, the desktop behaviour with the virtual machine name nominating of the virtual machine is installed on virtual machine
Make system, then the virtual machine title of the virtual machine, the sheet of operating system host name and the cloud terminal being connected with the virtual machine
Ground domain user name is consistent, convenient to manage and quickly judge corresponding relation, it is to avoid the maloperation caused by relation is inconsistent.
Referring to Fig. 2, present invention also offers the device that a kind of cloud terminal is connected automatically to virtual machine, including:
Virtual machine generation module 100, for after the instruction of newly-built virtual machine is listened to, reading the first configuration file, and
Virtual machine IP and corresponding virtual machine title generation virtual machine in first configuration file;Wherein, described first
Configuration file include virtual machine IP and with the one-to-one virtual machine titles of the virtual machine IP.
Secret value acquisition module 200, for capturing the link order from cloud terminal, obtains first configuration file
The secret value of secret value and the second configuration file positioned at the cloud terminal local to be connected.
Name acquiring module 300, for the secret value when first configuration file and second configuration file plus
It is close value it is identical when, send name acquiring instruct to the cloud terminal so that the cloud terminal is according to local IP and default increment
Number converses corresponding virtual machine IP, and inquire about and obtain correspondingly from second configuration file according to the virtual machine IP conversed
Virtual machine title.
Link block 400, for the virtual machine title sent according to the cloud terminal, the cloud terminal is connected to and institute
State on the consistent virtual machine of virtual machine title correspondence.
Preferably, referring to Fig. 3, the device that the cloud terminal is connected automatically to virtual machine also includes:
Update module 500, for the secret value when first configuration file and the secret value of second configuration file
When different, first configuration file is sent to the cloud terminal, so that first configuration file of the cloud terminal according to reception
Replacement is updated to local second configuration file.
Preferably, the virtual machine generation module 100 is specifically included:
Reading unit, it is newly-built and run virtual machine script to read for after the instruction of newly-built virtual machine is listened to
State the first configuration file.
Generation unit, for obtaining corresponding virtual machine title according to the virtual machine IP read, generation possesses the void
Plan machine IP and virtual machine title virtual machine.
Preferably, the virtual machine title is with possessing the cloud terminal that the virtual machine of the virtual machine title is connected
Local domain user name name.
Preferably, referring to Fig. 4, the device that the cloud terminal is connected automatically to virtual machine also includes:
Operating system installs module 600, for installing the virtual machine title life with the virtual machine on the virtual machine
The desktop operating system of name.
Above disclosed is only a kind of preferred embodiment of the invention, can not limit the power of the present invention with this certainly
Sharp scope, one of ordinary skill in the art will appreciate that all or part of flow of above-described embodiment is realized, and according to present invention power
Profit requires made equivalent variations, still falls within and invents covered scope.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Claims (10)
1. a kind of method that cloud terminal is connected automatically to virtual machine, it is characterised in that comprise the following steps:
After the instruction of newly-built virtual machine is listened to, the first configuration file, and the void in first configuration file are read
Plan machine IP and corresponding virtual machine title generation virtual machine;Wherein, first configuration file include virtual machine IP and with
The one-to-one virtual machine titles of virtual machine IP;
The link order from cloud terminal is captured, the secret value of first configuration file is obtained with being located at the cloud to be connected
The secret value of second configuration file of terminal local;
When the secret value of first configuration file is identical with the secret value of second configuration file, sends name acquiring and refer to
Make to the cloud terminal, so that the cloud terminal converses corresponding virtual machine IP according to local IP, and according to the void conversed
Plan machine IP is inquired about from second configuration file and is obtained corresponding virtual machine title;
The virtual machine title sent according to the cloud terminal, the cloud terminal is connected to corresponding consistent with the virtual machine title
Virtual machine on.
2. the method that cloud terminal according to claim 1 is connected automatically to virtual machine, it is characterised in that come in the capture
From the link order of cloud terminal, the secret value of first configuration file is obtained with being located at the second of cloud terminal local to be connected
After the secret value of configuration file, in addition to:
When the secret value of first configuration file is different from the secret value of second configuration file, sent out to the cloud terminal
First configuration file is sent, so that the cloud terminal is literary to local second configuration according to the first configuration file of reception
Part is updated replacement.
3. the method that cloud terminal according to claim 1 is connected automatically to virtual machine, it is characterised in that described to listen to
After the instruction of newly-built virtual machine, read first configuration file, and the virtual machine IP in first configuration file with
And corresponding virtual machine title generation virtual machine, it is specially:
It is newly-built and run virtual machine script to read first configuration file after the instruction of newly-built virtual machine is listened to;
Corresponding virtual machine title is obtained according to the virtual machine IP read, generation possesses the virtual machine IP and virtual machine title
Virtual machine.
4. the method that cloud terminal according to claim 1 is connected automatically to virtual machine, it is characterised in that the virtual machine name
Claim to name with the local domain user name for possessing the cloud terminal that the virtual machine of the virtual machine title is connected.
5. the method that the cloud terminal according to Claims 1-4 any one is connected automatically to virtual machine, it is characterised in that
Newly-built virtual machine operations are obtained described, first configuration file is read, and it is virtual in first configuration file
Machine IP and corresponding virtual machine title are generated after virtual machine, in addition to:
Installed on the virtual machine with the desktop operating system of the virtual machine name nominating of the virtual machine.
6. a kind of cloud terminal is connected automatically to the device of virtual machine, it is characterised in that including:
Virtual machine generation module, for after the instruction of newly-built virtual machine is listened to, reading the first configuration file, and according to described
Virtual machine IP and corresponding virtual machine title generation virtual machine in first configuration file;Wherein, first configuration file
Including virtual machine IP and with the one-to-one virtual machine titles of the virtual machine IP;
Secret value acquisition module, for capturing the link order from cloud terminal, obtains the secret value of first configuration file
With the secret value of the second configuration file positioned at the cloud terminal local to be connected;
Name acquiring module is identical with the secret value of second configuration file for the secret value when first configuration file
When, send name acquiring and instruct to the cloud terminal, so that the cloud terminal converses corresponding virtual machine IP according to local IP,
And inquired about according to the virtual machine IP conversed from second configuration file and obtain corresponding virtual machine title;
Link block, for the virtual machine title sent according to the cloud terminal, by the cloud terminal be connected to it is described virtual
On the consistent virtual machine of machine title correspondence.
7. cloud terminal according to claim 6 is connected automatically to the device of virtual machine, it is characterised in that the cloud terminal is certainly
The dynamic device for being connected to virtual machine also includes:
Update module, for when the secret value of first configuration file is different from the secret value of second configuration file,
Send first configuration file to the cloud terminal so that the cloud terminal according to the first configuration file of reception to local
Second configuration file is updated replacement.
8. cloud terminal according to claim 6 is connected automatically to the device of virtual machine, it is characterised in that the virtual machine life
Into module, specifically include:
Reading unit, it is newly-built and run virtual machine script to read described for after the instruction of newly-built virtual machine is listened to
One configuration file;
Generation unit, for obtaining corresponding virtual machine title according to the virtual machine IP read, generation possesses the virtual machine
IP and virtual machine title virtual machine.
9. cloud terminal according to claim 6 is connected automatically to the device of virtual machine, it is characterised in that the cloud terminal is certainly
The dynamic device for being connected to virtual machine also includes:
Operating system installs module, for being installed on the virtual machine with the desktop of the virtual machine name nominating of the virtual machine
Operating system.
10. the system that a kind of cloud terminal is connected automatically to virtual machine, it is characterised in that including Cloud Server, virtual machine and cloud are whole
End;Wherein:
The Cloud Server, for after the instruction of newly-built virtual machine is listened to, the first configuration file being read, according to described first
Virtual machine IP and corresponding virtual machine title generation virtual machine in configuration file;Wherein, first configuration file includes
Virtual machine IP and with the one-to-one virtual machine titles of the virtual machine IP;
The Cloud Server, is additionally operable to capture the link order from cloud terminal, obtains the secret value of first configuration file
With the secret value of the second configuration file positioned at cloud terminal local to be connected;
The cloud terminal is identical with the secret value of second configuration file for the secret value when first configuration file
When, corresponding virtual machine IP is conversed according to local IP and default incremental number, and according to the virtual machine IP conversed from described
Inquiry obtains corresponding virtual machine title in second configuration file, sends the virtual machine title to Cloud Server, makes the cloud
The cloud terminal is connected on the consistent virtual machine of correspondence title by server according to the virtual machine title.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710197608.1A CN107071012B (en) | 2017-03-29 | 2017-03-29 | Method, device and system for automatically connecting cloud terminal to virtual machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710197608.1A CN107071012B (en) | 2017-03-29 | 2017-03-29 | Method, device and system for automatically connecting cloud terminal to virtual machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107071012A true CN107071012A (en) | 2017-08-18 |
CN107071012B CN107071012B (en) | 2020-01-14 |
Family
ID=59618321
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710197608.1A Active CN107071012B (en) | 2017-03-29 | 2017-03-29 | Method, device and system for automatically connecting cloud terminal to virtual machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107071012B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107733717A (en) * | 2017-11-01 | 2018-02-23 | 国云科技股份有限公司 | A kind of network collocating method of cloud platform movable type O&M |
CN108052374A (en) * | 2017-12-29 | 2018-05-18 | 郑州云海信息技术有限公司 | A kind of method and device of deployment container micro services |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102546601A (en) * | 2011-12-19 | 2012-07-04 | 广州杰赛科技股份有限公司 | Auxiliary device of cloud computing terminal for accessing virtual machine |
CN102821091A (en) * | 2012-06-28 | 2012-12-12 | 用友软件股份有限公司 | Control device and control method of virtual machine |
CN102917046A (en) * | 2012-10-17 | 2013-02-06 | 广州杰赛科技股份有限公司 | Virtual machine starting control method in cloud system |
CN103729234A (en) * | 2013-12-20 | 2014-04-16 | 中电长城网际系统应用有限公司 | Method and device for clustering management of virtual machines |
CN103729233A (en) * | 2013-12-20 | 2014-04-16 | 中电长城网际系统应用有限公司 | Multiple virtual machines management method and device |
CN105354493A (en) * | 2015-10-22 | 2016-02-24 | 中国人民解放军装备学院 | Virtualization technology based terminal trust enhancement method and system |
CN105373417A (en) * | 2015-11-04 | 2016-03-02 | 浪潮(北京)电子信息产业有限公司 | Method and system for virtual machine management in cloud computing |
-
2017
- 2017-03-29 CN CN201710197608.1A patent/CN107071012B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102546601A (en) * | 2011-12-19 | 2012-07-04 | 广州杰赛科技股份有限公司 | Auxiliary device of cloud computing terminal for accessing virtual machine |
CN102821091A (en) * | 2012-06-28 | 2012-12-12 | 用友软件股份有限公司 | Control device and control method of virtual machine |
CN102917046A (en) * | 2012-10-17 | 2013-02-06 | 广州杰赛科技股份有限公司 | Virtual machine starting control method in cloud system |
CN103729234A (en) * | 2013-12-20 | 2014-04-16 | 中电长城网际系统应用有限公司 | Method and device for clustering management of virtual machines |
CN103729233A (en) * | 2013-12-20 | 2014-04-16 | 中电长城网际系统应用有限公司 | Multiple virtual machines management method and device |
CN105354493A (en) * | 2015-10-22 | 2016-02-24 | 中国人民解放军装备学院 | Virtualization technology based terminal trust enhancement method and system |
CN105373417A (en) * | 2015-11-04 | 2016-03-02 | 浪潮(北京)电子信息产业有限公司 | Method and system for virtual machine management in cloud computing |
Non-Patent Citations (1)
Title |
---|
万宏凤: "基于openstack的云端自动化部署机制研究与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107733717A (en) * | 2017-11-01 | 2018-02-23 | 国云科技股份有限公司 | A kind of network collocating method of cloud platform movable type O&M |
CN107733717B (en) * | 2017-11-01 | 2021-07-30 | 国云科技股份有限公司 | Network configuration method for mobile operation and maintenance of cloud platform |
CN108052374A (en) * | 2017-12-29 | 2018-05-18 | 郑州云海信息技术有限公司 | A kind of method and device of deployment container micro services |
CN108052374B (en) * | 2017-12-29 | 2021-08-31 | 郑州云海信息技术有限公司 | Method and device for deploying container microservice |
Also Published As
Publication number | Publication date |
---|---|
CN107071012B (en) | 2020-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4521456B2 (en) | Information processing system and control method of information processing system | |
CN102437938B (en) | Large-scale network monitoring oriented virtual deployment system and method | |
US10713183B2 (en) | Virtual machine backup using snapshots and current configuration | |
US20080215728A1 (en) | Computer Management System and Computer Management Method | |
WO2012065815A1 (en) | Method and system for generating a virtual machine based on templates | |
CN107247648B (en) | Method, device and system for realizing remote project system supervision based on Docker | |
CN102917046B (en) | Virtual machine starting control method in cloud system | |
CN103077071B (en) | The acquisition methods of a kind of KVM virtual machine progress information and system | |
CN103716188B (en) | The management of Linux server cluster management and maintaining method | |
CN103309721A (en) | Virtual machine monitor management system and method | |
CN104754032A (en) | Method and device for deploying OpenStack | |
CN114666333A (en) | Control method for cloud computing resource scheduling problem based on multi-tenant theory | |
US20110225405A1 (en) | Managing a computing device | |
CN103281208B (en) | A kind of data backup & disaster recovery and comprehensive monitoring system | |
CN103685567A (en) | Virtual application server configuration method under cloud environment | |
CN106170763A (en) | A kind of software check method and apparatus | |
CN105224358A (en) | Under a kind of cloud computing software automatically pack dispose system and method | |
CN103942128A (en) | Double-computer reinforcing method for high-performance job scheduling management node | |
CN112199157A (en) | Cloud environment management method | |
CN107071012A (en) | Cloud terminal is connected automatically to the method for virtual machine, apparatus and system | |
CN104135483A (en) | Automatic configuration management system for network security | |
CN105404530A (en) | System and method for realizing simple deployment and using private cloud | |
CN105843725A (en) | Monitoring method and device of IaaS platform | |
CN107968816A (en) | A kind of method that cloud platform is built using mobile terminal | |
CN107229977A (en) | A kind of automatic reinforcement means of Host Security baseline and system |
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 |