CN107071012B - Method, device and system for automatically connecting cloud terminal to virtual machine - Google Patents

Method, device and system for automatically connecting cloud terminal to virtual machine Download PDF

Info

Publication number
CN107071012B
CN107071012B CN201710197608.1A CN201710197608A CN107071012B CN 107071012 B CN107071012 B CN 107071012B CN 201710197608 A CN201710197608 A CN 201710197608A CN 107071012 B CN107071012 B CN 107071012B
Authority
CN
China
Prior art keywords
virtual machine
configuration file
cloud terminal
name
cloud
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710197608.1A
Other languages
Chinese (zh)
Other versions
CN107071012A (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.)
GCI Science and Technology Co Ltd
Original Assignee
GCI Science and Technology 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 GCI Science and Technology Co Ltd filed Critical GCI Science and Technology Co Ltd
Priority to CN201710197608.1A priority Critical patent/CN107071012B/en
Publication of CN107071012A publication Critical patent/CN107071012A/en
Application granted granted Critical
Publication of CN107071012B publication Critical patent/CN107071012B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • 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

Abstract

The invention provides a method for automatically connecting a cloud terminal to a virtual machine, which comprises the following steps: after monitoring an instruction of a newly-built virtual machine, reading a first configuration file, and generating the virtual machine according to a virtual machine IP in the first configuration file and a corresponding virtual machine name; capturing a connection instruction from a cloud terminal, and acquiring an encrypted value of the first configuration file and an encrypted value of a second configuration file local to the cloud terminal to be connected; and when the encryption values are the same, sending a name acquisition instruction to the cloud terminal so that the cloud terminal can obtain a corresponding virtual machine name by inquiring from the second configuration file according to the converted virtual machine IP, and connecting the cloud terminal to the virtual machine corresponding to the virtual machine name. The invention also provides a device and a system for automatically connecting the cloud terminal to the virtual machine, so that the management effectiveness is enhanced, the misoperation probability is reduced, and the working efficiency is improved.

Description

Method, device and system for automatically connecting cloud terminal to virtual machine
Technical Field
The invention relates to the field of cloud computing, in particular to a method, a device and a system for automatically connecting a cloud terminal to a virtual machine.
Background
The cloud desktop is a personal computer application based on a cloud computing technology, and can provide simple, rich, safe and intimate services for users at all levels of the Internet due to the fact that the cloud desktop can integrate the essential applications of the Internet and rely on a high-level encryption algorithm.
When the cloud desktop is used, a user needs to remotely access to a virtual machine in a cloud computing environment through a local terminal to obtain a computer operation interface. In the process of actually building virtual machines in a large batch based on the Hyper-V cloud desktop, the virtual machines are usually built based on the for loop statements of powershell scripting language, and the names of the built virtual machines are XX-1, XX-2, XX-3 … … and the like.
In the process of using a Hyper-V cloud-based desktop for building an office cloud in an office environment, due to the fact that names of a virtual machine, a host name of an operating system and a domain user name are often inconsistent, automatic connection of a cloud terminal to the virtual machine is difficult to achieve, and a user cannot visually and quickly judge the corresponding relation between the cloud terminal and the virtual machine, so that management is inconvenient, misoperation is easily caused, and adverse factors such as mistaken deletion and mistaken modification are caused.
Disclosure of Invention
In order to solve the problems, the invention provides a method, a device and a system for automatically connecting a cloud terminal to a virtual machine, which can realize the automatic connection of the cloud terminal to the virtual machine, so that a user can visually judge the corresponding relation between the cloud terminal and the virtual machine, the management effectiveness is enhanced, the misoperation probability is reduced, and the working efficiency is improved.
The invention provides a method for automatically connecting a cloud terminal to a virtual machine, which comprises the following steps:
after monitoring an instruction of a newly-built virtual machine, reading a first configuration file, and generating the virtual machine according to a virtual machine IP in the first configuration file and a corresponding virtual machine name; the first configuration file comprises virtual machine IPs and virtual machine names which correspond to the virtual machine IPs one to one;
capturing a connection instruction from a cloud terminal, and acquiring an encrypted value of the first configuration file and an encrypted value of a second configuration file local to the cloud terminal to be connected;
when the encryption value of the first configuration file is the same as the encryption value of the second configuration file, sending a name acquisition instruction to the cloud terminal, so that the cloud terminal converts a corresponding virtual machine IP according to a local IP and inquires from the second configuration file according to the converted virtual machine IP to obtain a corresponding virtual machine name;
and connecting the cloud terminal to the virtual machine corresponding to the virtual machine name according to the virtual machine name sent by the cloud terminal.
Preferably, after the capturing the connection instruction from the cloud terminal, and acquiring the encrypted value of the first configuration file and the encrypted value of the second configuration file local to the cloud terminal to be connected, the method further includes:
when the encryption value of the first configuration file is different from the encryption value of the second configuration file, the first configuration file is sent to the cloud terminal, so that the cloud terminal updates and replaces the local second configuration file according to the received first configuration file.
Preferably, after monitoring an instruction to newly build a virtual machine, the first configuration file is read, and a virtual machine is generated according to the virtual machine IP in the first configuration file and the corresponding virtual machine name, which specifically includes:
after an instruction of newly building a virtual machine is monitored, a virtual machine script is newly built and operated to read the first configuration file;
and acquiring a corresponding virtual machine name according to the read virtual machine IP, and generating the virtual machine with the virtual machine IP and the virtual machine name.
Preferably, the virtual machine name is named by a local domain user name of the cloud terminal connected to the virtual machine owning the virtual machine name.
Preferably, after the monitoring of the instruction to newly create the virtual machine, reading the first configuration file, and generating the virtual machine according to the virtual machine IP in the first configuration file and the corresponding virtual machine name, the method further includes:
and installing a desktop operating system named by the virtual machine name of the virtual machine on the virtual machine.
The invention also provides a device for automatically connecting the cloud terminal to the virtual machine, which comprises the following steps:
the virtual machine generation module is used for reading a first configuration file after monitoring an instruction of a newly-built virtual machine, and generating the virtual machine according to a virtual machine IP in the first configuration file and a corresponding virtual machine name; the first configuration file comprises virtual machine IPs and virtual machine names which correspond to the virtual machine IPs one to one;
the cloud terminal comprises an encryption value acquisition module, a connection instruction acquisition module and a connection module, wherein the encryption value acquisition module is used for capturing a connection instruction from the cloud terminal and acquiring an encryption value of the first configuration file and an encryption value of a second configuration file local to the cloud terminal to be connected;
the name acquisition module is used for sending a name acquisition instruction to the cloud terminal when the encryption value of the first configuration file is the same as the encryption value of the second configuration file, so that the cloud terminal converts a corresponding virtual machine IP according to a local IP and a preset increment number, and inquires the second configuration file according to the converted virtual machine IP to obtain a corresponding virtual machine name;
and the connection module is used for connecting the cloud terminal to the virtual machine corresponding to the virtual machine name according to the virtual machine name sent by the cloud terminal.
Preferably, the first and second electrodes are formed of a metal,
the device for automatically connecting the cloud terminal to the virtual machine further comprises:
and the updating module is used for sending the first configuration file to the cloud terminal when the encryption value of the first configuration file is different from the encryption value of the second configuration file, so that the cloud terminal replaces the local second configuration file according to the received first configuration file.
Preferably, the first and second electrodes are formed of a metal,
the virtual machine generation module specifically includes:
the reading unit is used for newly building and running a virtual machine script to read the first configuration file after monitoring the instruction of newly building the virtual machine;
and the generating unit is used for acquiring a corresponding virtual machine name according to the read virtual machine IP and generating the virtual machine with the virtual machine IP and the virtual machine name.
Preferably, the first and second electrodes are formed of a metal,
the device for automatically connecting the cloud terminal to the virtual machine further comprises:
and the operating system installation module is used for installing a desktop operating system named by the virtual machine name of the virtual machine on the virtual machine.
The invention also provides a system for automatically connecting the cloud terminal to the virtual machine, which comprises a cloud server, the virtual machine and the cloud terminal; wherein:
the cloud server is used for reading a first configuration file after monitoring an instruction of a newly-built virtual machine, and generating a virtual machine according to a virtual machine IP in the first configuration file and a corresponding virtual machine name;
the cloud server is further used for capturing a connection instruction from the cloud terminal and acquiring an encrypted value of the first configuration file and an encrypted value of a second configuration file local to the cloud terminal to be connected;
and the cloud terminal is used for converting a corresponding virtual machine IP according to a local IP when the encryption value of the first configuration file is the same as the encryption value of the second configuration file, inquiring from the second configuration file according to the converted virtual machine IP to obtain a corresponding virtual machine name, and sending the virtual machine name to the cloud server so that the cloud server is connected to the virtual machines with the same corresponding name according to the virtual machine name.
The invention provides a method, a device and a system for automatically connecting a cloud terminal to a virtual machine, wherein a cloud server side matches the corresponding relation between a virtual machine IP and the virtual machine name through a first configuration file after monitoring a virtual machine generation instruction, so that the virtual machine name can be customized in batches to establish the virtual machine, meanwhile, the cloud terminal converts the corresponding virtual machine IP according to the local IP, matches the corresponding relation between the virtual machine IP and the virtual machine name through a second configuration file, and is correctly and automatically connected to the virtual machine with the corresponding virtual machine name consistent, so that a user can visually judge the corresponding relation between the cloud terminal and the virtual machine, the management effectiveness is enhanced, the misoperation probability is reduced, the working efficiency is improved, the unified management is facilitated, and adverse factors such as misoperation, mistaken deletion, mistaken modification and the like are avoided.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for automatically connecting a cloud terminal to a virtual machine according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of an apparatus for automatically connecting a cloud terminal to a virtual machine according to an embodiment of the present invention.
Fig. 3 is another schematic structural diagram of an apparatus for automatically connecting a cloud terminal to a virtual machine according to an embodiment of the present invention.
Fig. 4 is another schematic structural diagram of an apparatus for automatically connecting a cloud terminal to a virtual machine according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a system for automatically connecting a cloud terminal to a virtual machine. The cloud server, the virtual machine and the cloud terminal can be connected through a network.
The cloud server is used for reading the first configuration file after monitoring the instruction of the new virtual machine, and generating the virtual machine according to the virtual machine IP in the first configuration file and the corresponding virtual machine name.
Specifically, the first configuration file may be generated by the cloud server according to a received planning demand instruction, where the first configuration file includes a virtual machine IP and virtual machine names corresponding to the virtual machine IP one to one.
The cloud server is further configured to capture a connection instruction from the cloud terminal, and acquire the encrypted value of the first configuration file and the encrypted value of the second configuration file located locally at the cloud terminal to be connected.
Wherein the first configuration file and the second configuration file are encrypted by an MD5 algorithm.
And the cloud terminal is used for converting a corresponding virtual machine IP according to a local IP and a preset increment number when the encryption value of the first configuration file is the same as that of the second configuration file, inquiring from the second configuration file according to the converted virtual machine IP to obtain a corresponding virtual machine name, and sending the virtual machine name to the cloud server so that the cloud server connects the cloud terminal to the virtual machine with the same corresponding name according to the virtual machine name.
In the embodiment of the invention, the cloud terminal is automatically connected to the system of the virtual machine, so that the cloud terminal is automatically connected to the virtual machine, the workload of manual operation is reduced, the management effectiveness is improved, the misoperation probability is reduced, the working efficiency is improved, the unified management is facilitated, and the adverse factors of misoperation, deletion error, modification error and the like are avoided.
Referring to fig. 1, an embodiment of the present invention provides a method for a cloud terminal to automatically connect to a virtual machine, which can be executed by a cloud server, and includes the following steps:
s101, after monitoring an instruction of a newly-built virtual machine, reading a first configuration file, and generating the virtual machine according to a virtual machine IP in the first configuration file and a corresponding virtual machine name; the first configuration file comprises virtual machine IPs and virtual machine names in one-to-one correspondence with the virtual machine IPs.
In the embodiment of the invention, the cloud server can generate a first configuration file according to the received planning demand instruction; the first configuration file comprises virtual machine IPs and virtual machine names in one-to-one correspondence with the virtual machine IPs. The virtual machine name is named by a local domain user name of the cloud terminal connected with the virtual machine having the virtual machine name.
In the embodiment of the present invention, according to a user planning requirement, that is, according to the number of cloud terminals that need to be automatically connected, a first configuration file including virtual machine IPs and virtual machine names that are in one-to-one correspondence with the virtual machine IPs is generated, the virtual machine IPs are made to correspond to the virtual machine names, and a correspondence between the virtual machine IPs and the cloud terminals is planned and allocated, for example, configuration information in a format of (192.168.0.1, test) exists in the first configuration file, that is, the virtual machine name of a virtual machine whose virtual machine IP is 192.168.0.1 is a test, and a local domain user name of a cloud terminal connected to the virtual machine is a test.
In this embodiment of the present invention, specifically, the S101 includes:
s1011, after the instruction of the new virtual machine is monitored, a virtual machine script is newly built and operated so as to read the first configuration file.
And S1012, acquiring a corresponding virtual machine name according to the read virtual machine IP, and generating the virtual machine with the virtual machine IP and the virtual machine name.
In the embodiment of the invention, the cloud server can be provided with a Vmware system, a XenServer system or a Hyper-V system to provide the service of generating the virtual machine.
The Vmware system can use more than two operating systems on the same PC without partition or reboot, such as Windows, DOS or LINUX system; completely isolating and protecting the operating environment of different OSs and all application software and data installed on the OSs; different OSs can also carry out interactive operation, including network, periphery, file sharing and copying and pasting functions; has the function of restoring (Undo); the operating environment of the operating system can be set and modified at any time, such as: memory, disk space, peripheral devices, etc.; heat transfer, high availability.
The XenServer system reduces the power supply, cooling and data center space requirements to reduce the cost by integrating servers, allows new server preparation and IT service delivery to be completed within a few minutes, further improves IT flexibility, ensures that the application requirements and performance level standards can be met all the time, reduces fault influence, prevents disasters, further reduces machine halt to the maximum extent, is provided with 64-bit system management programs and centralized management, real-time migration and conversion tools, and can create a virtual platform to improve the density and performance of virtual machines to the maximum extent.
The Hyper-V system adopts a micro-kernel architecture, and meets the requirements of safety and performance. The Hypervisor at the bottom of the Hyper-V runs under the highest privilege level, the Hypervisor is called ring-1 by Microsoft (and called rootmode by Intel), the OS kernel and the driver of the virtual machine run under ring 0, and the application program runs under ring 3. Isolation of users from each other-flexibility and direct control of the VPS host; overall control of VPS-running any application software, creating any custom configuration; high security-higher security at the same time means higher service reliability; resource control and peaking-ensuring that users get a higher level of service and resources. Allowing peak use of unused server resources, providing a better than independent host level of service (many low end independent server resources are inferior to the level of servers used by the DS); template and application suite-get new application. The operating system and the application software can be updated in time, so that the safety risk is reduced; customer control panel-self-service management and use of fault diagnosis tools: restarting, repairing, reinstalling, backing up and monitoring VPS operation in real time; easy migration-upgrades and migration do not require service shutdown. The service provider can meet the requirements of almost all host services from low to high; backup and restore-having backup and restore functionality. Many DS service host leasing schemes include space for backup for users.
S102, capturing a connection instruction from the cloud terminal, and acquiring the encrypted value of the first configuration file and the encrypted value of a second configuration file local to the cloud terminal to be connected.
In embodiments of the present invention, the encryption may be performed using a hash function to provide integrity protection for the message. For example, the MD5 algorithm is used to encrypt the first configuration file and the second configuration file local to the cloud terminal to be connected, and the MD5 algorithm has the following characteristics:
1. compressibility: for any length of data, the calculated length of the MD5 value is fixed.
2. Easy to calculate: it is easy to calculate the MD5 value from the raw data.
3. Resistance to modification: any change to the original data, even if only 1 byte is modified, can result in a great difference in the value of MD 5.
4. Strong collision resistance: knowing the original data and its MD5 value, it is very difficult to find a data with the same MD5 value (i.e., counterfeit data).
MD5 functions to allow large volumes of information to be "compressed" into a secure format (i.e., a byte string of any length is converted into a fixed-length hexadecimal digital string) before the private key is signed by digital signature software, ensuring the integrity of the information.
S103, when the encryption value of the first configuration file is the same as that of the second configuration file, a name obtaining instruction is sent to the cloud terminal, so that the cloud terminal can convert the corresponding virtual machine IP according to the local IP, and the corresponding virtual machine name can be obtained by inquiring the second configuration file according to the converted virtual machine IP.
In this embodiment of the present invention, when the first configuration file and the second configuration file are matched and consistent, a connection phase is entered, the cloud server sends a name obtaining instruction to the cloud terminal, so that the cloud terminal reads a local IP, and converts a corresponding virtual machine IP according to the local IP and a preset increment number in a planning requirement, for example, the local IP is 192.168.0.1, and the preset increment number in the planning requirement is 50, the converted virtual machine IP is 192.168.0.51, and a corresponding virtual machine name is obtained by querying from the second configuration file according to the converted virtual machine IP.
And S104, connecting the cloud terminal to the virtual machine corresponding to the virtual machine name according to the virtual machine name sent by the cloud terminal.
In the embodiment of the invention, the cloud terminal is connected to the corresponding virtual machine through the virtual machine name, so that a user can intuitively judge whether the cloud terminal is correctly connected to the corresponding specified virtual machine according to the virtual machine name.
In summary, the present invention provides a method for automatically connecting a cloud terminal to a virtual machine, wherein a cloud server generates a first configuration file including a virtual machine IP and a virtual machine name corresponding to the virtual machine IP according to a planning requirement, monitors a virtual machine generation instruction, matches a corresponding relationship between the virtual machine IP and the virtual machine name through the first configuration file, so as to implement batch customization of the virtual machine names to establish the virtual machines, and simultaneously the cloud terminal converts the corresponding virtual machine IP according to a local IP and a preset increment number, matches a corresponding relationship between the virtual machine IP and the virtual machine name through a second configuration file, and correctly and automatically connects to the virtual machine with the corresponding virtual machine name, so that a user can visually judge the corresponding relationship between the cloud terminal and the virtual machine, thereby enhancing management effectiveness, reducing misoperation probability, improving work efficiency, facilitating unified management, avoiding causing misoperation and causing mistaken deletion, And mismodification and the like.
In order to facilitate an understanding of the invention, some preferred embodiments of the invention will now be described.
First preferred embodiment:
preferably, after S102, the method further includes:
s105, when the encryption value of the first configuration file is different from the encryption value of the second configuration file, sending the first configuration file to the cloud terminal, so that the cloud terminal updates and replaces the local second configuration file according to the received first configuration file.
In a preferred embodiment of the present invention, when the cryptographic value of the first profile is different from the cryptographic value of the second profile, the following 2 cases may occur: 1. updating a first configuration file on a cloud server and not updating a second configuration file of the cloud terminal; 2. the cloud terminal does not belong to the range of the cloud terminal to be connected with the cloud server; for case 1, the cloud server sends the first configuration file to the cloud terminal to update a second configuration file of the cloud terminal; for case 2, the cloud server rejects the connection request from the cloud terminal.
In the preferred embodiment of the invention, the occurrence of various conditions is fully considered and corresponding measures are taken to ensure that the virtual machines are correctly connected to the corresponding virtual machines.
Second preferred embodiment:
preferably, after step S101, the method further includes:
s106, installing a desktop operating system named by the virtual machine name of the virtual machine on the virtual machine.
In a preferred embodiment of the present invention, the virtual machine is installed with a desktop operating system, such as Windows or Linux, the cloud terminal installation terminal system is connected to the virtual machine, for example, the virtual machine installed with the Windows desktop operating system starts a remote desktop, and the terminal system of the cloud terminal is installed with a remote access application program and connected to the virtual machine.
In the preferred embodiment of the invention, the desktop operating system named by the virtual machine name of the virtual machine is installed on the virtual machine, so that the virtual machine name, the operating system host name and the local domain user name of the cloud terminal connected with the virtual machine are consistent, the corresponding relation is convenient to manage and quickly judged, and misoperation caused by inconsistent relation is avoided.
Referring to fig. 2, the present invention further provides an apparatus for automatically connecting a cloud terminal to a virtual machine, including:
the virtual machine generation module 100 is configured to read a first configuration file after monitoring an instruction of a newly-built virtual machine, and generate a virtual machine according to a virtual machine IP in the first configuration file and a corresponding virtual machine name; the first configuration file comprises virtual machine IPs and virtual machine names in one-to-one correspondence with the virtual machine IPs.
And an encrypted value obtaining module 200, configured to capture a connection instruction from the cloud terminal, and obtain an encrypted value of the first configuration file and an encrypted value of a second configuration file local to the cloud terminal to be connected.
A name obtaining module 300, configured to send a name obtaining instruction to the cloud terminal when the encrypted value of the first configuration file is the same as the encrypted value of the second configuration file, so that the cloud terminal converts a corresponding virtual machine IP according to a local IP and a preset increment number, and queries from the second configuration file according to the converted virtual machine IP to obtain a corresponding virtual machine name.
The connection module 400 is configured to connect the cloud terminal to a virtual machine corresponding to the virtual machine name according to the virtual machine name sent by the cloud terminal.
Preferably, referring to fig. 3, the apparatus for automatically connecting the cloud terminal to the virtual machine further includes:
an updating module 500, configured to send the first configuration file to the cloud terminal when the encrypted value of the first configuration file is different from the encrypted value of the second configuration file, so that the cloud terminal updates and replaces the local second configuration file according to the received first configuration file.
Preferably, the virtual machine generation module 100 specifically includes:
and the reading unit is used for newly building and running a virtual machine script to read the first configuration file after monitoring the instruction of newly building the virtual machine.
And the generating unit is used for acquiring a corresponding virtual machine name according to the read virtual machine IP and generating the virtual machine with the virtual machine IP and the virtual machine name.
Preferably, the virtual machine name is named by a local domain user name of the cloud terminal connected to the virtual machine owning the virtual machine name.
Preferably, referring to fig. 4, the apparatus for automatically connecting the cloud terminal to the virtual machine further includes:
and an operating system installing module 600, configured to install, on the virtual machine, a desktop operating system named by the virtual machine name of the virtual machine.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.

Claims (10)

1. A method for automatically connecting a cloud terminal to a virtual machine is characterized by comprising the following steps:
after monitoring an instruction of a newly-built virtual machine, reading a first configuration file, and generating the virtual machine according to a virtual machine IP in the first configuration file and a corresponding virtual machine name; the first configuration file comprises virtual machine IPs and virtual machine names which correspond to the virtual machine IPs one to one;
capturing a connection instruction from a cloud terminal, and acquiring an encrypted value of the first configuration file and an encrypted value of a second configuration file local to the cloud terminal to be connected;
when the encryption value of the first configuration file is the same as the encryption value of the second configuration file, sending a name acquisition instruction to the cloud terminal, so that the cloud terminal converts a corresponding virtual machine IP according to a local IP and inquires from the second configuration file according to the converted virtual machine IP to obtain a corresponding virtual machine name;
and connecting the cloud terminal to the virtual machine corresponding to the virtual machine name according to the virtual machine name sent by the cloud terminal.
2. The method according to claim 1, wherein after the capturing the connection instruction from the cloud terminal, obtaining the encrypted value of the first profile and the encrypted value of the second profile local to the cloud terminal to be connected, further comprising:
when the encryption value of the first configuration file is different from the encryption value of the second configuration file, the first configuration file is sent to the cloud terminal, so that the cloud terminal updates and replaces the local second configuration file according to the received first configuration file.
3. The method according to claim 1, wherein after monitoring an instruction to newly build a virtual machine, the method reads the first configuration file, and generates a virtual machine according to a virtual machine IP and a corresponding virtual machine name in the first configuration file, specifically:
after an instruction of newly building a virtual machine is monitored, a virtual machine script is newly built and operated to read the first configuration file;
and acquiring a corresponding virtual machine name according to the read virtual machine IP, and generating the virtual machine with the virtual machine IP and the virtual machine name.
4. The method according to claim 1, wherein the virtual machine name is named with a local domain user name of the cloud terminal connected to the virtual machine having the virtual machine name.
5. The method according to any one of claims 1 to 4, wherein after the monitoring of the instruction to newly build a virtual machine, reading the first configuration file, and generating a virtual machine according to a virtual machine IP and a corresponding virtual machine name in the first configuration file, further comprising:
and installing a desktop operating system named by the virtual machine name of the virtual machine on the virtual machine.
6. An apparatus for automatically connecting a cloud terminal to a virtual machine, comprising:
the virtual machine generation module is used for reading a first configuration file after monitoring an instruction of a newly-built virtual machine, and generating the virtual machine according to a virtual machine IP in the first configuration file and a corresponding virtual machine name; the first configuration file comprises virtual machine IPs and virtual machine names which correspond to the virtual machine IPs one to one;
the cloud terminal comprises an encryption value acquisition module, a connection instruction acquisition module and a connection module, wherein the encryption value acquisition module is used for capturing a connection instruction from the cloud terminal and acquiring an encryption value of the first configuration file and an encryption value of a second configuration file local to the cloud terminal to be connected;
the name acquisition module is used for sending a name acquisition instruction to the cloud terminal when the encryption value of the first configuration file is the same as the encryption value of the second configuration file, so that the cloud terminal converts a corresponding virtual machine IP according to a local IP and inquires the second configuration file according to the converted virtual machine IP to obtain a corresponding virtual machine name;
and the connection module is used for connecting the cloud terminal to the virtual machine corresponding to the virtual machine name according to the virtual machine name sent by the cloud terminal.
7. The apparatus for automatically connecting the cloud terminal to the virtual machine according to claim 6, wherein the apparatus for automatically connecting the cloud terminal to the virtual machine further comprises:
and the updating module is used for sending the first configuration file to the cloud terminal when the encryption value of the first configuration file is different from the encryption value of the second configuration file, so that the cloud terminal updates and replaces the local second configuration file according to the received first configuration file.
8. The apparatus for automatically connecting the cloud terminal to the virtual machine according to claim 6, wherein the virtual machine generation module specifically includes:
the reading unit is used for newly building and running a virtual machine script to read the first configuration file after monitoring the instruction of newly building the virtual machine;
and the generating unit is used for acquiring a corresponding virtual machine name according to the read virtual machine IP and generating the virtual machine with the virtual machine IP and the virtual machine name.
9. The apparatus for automatically connecting the cloud terminal to the virtual machine according to claim 6, wherein the apparatus for automatically connecting the cloud terminal to the virtual machine further comprises:
and the operating system installation module is used for installing a desktop operating system named by the virtual machine name of the virtual machine on the virtual machine.
10. A system for automatically connecting a cloud terminal to a virtual machine is characterized by comprising a cloud server, the virtual machine and the cloud terminal; wherein:
the cloud server is used for reading a first configuration file after monitoring an instruction of a newly-built virtual machine, and generating a virtual machine according to a virtual machine IP in the first configuration file and a corresponding virtual machine name; the first configuration file comprises virtual machine IPs and virtual machine names which correspond to the virtual machine IPs one to one;
the cloud server is further used for capturing a connection instruction from the cloud terminal and acquiring an encrypted value of the first configuration file and an encrypted value of a second configuration file local to the cloud terminal to be connected;
and the cloud terminal is used for converting a corresponding virtual machine IP according to a local IP and a preset increment number when the encryption value of the first configuration file is the same as that of the second configuration file, inquiring from the second configuration file according to the converted virtual machine IP to obtain a corresponding virtual machine name, and sending the virtual machine name to the cloud server so that the cloud server connects the cloud terminal to the virtual machine with the same corresponding name according to the virtual machine name.
CN201710197608.1A 2017-03-29 2017-03-29 Method, device and system for automatically connecting cloud terminal to virtual machine Active CN107071012B (en)

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 CN107071012A (en) 2017-08-18
CN107071012B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107733717B (en) * 2017-11-01 2021-07-30 国云科技股份有限公司 Network configuration method for mobile operation and maintenance of cloud platform
CN108052374B (en) * 2017-12-29 2021-08-31 郑州云海信息技术有限公司 Method and device for deploying container microservice

Citations (7)

* Cited by examiner, † Cited by third party
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
基于openstack的云端自动化部署机制研究与实现;万宏凤;《中国优秀硕士学位论文全文数据库信息科技辑》;20170215;I138-625页 *

Also Published As

Publication number Publication date
CN107071012A (en) 2017-08-18

Similar Documents

Publication Publication Date Title
CN108549580B (en) Method for automatically deploying Kubernets slave nodes and terminal equipment
US20140149696A1 (en) Virtual machine backup using snapshots and current configuration
US20120084768A1 (en) Capturing Multi-Disk Virtual Machine Images Automatically
CN103544096A (en) Method and system for feeding back information in case of operational failure of Android terminal
CN102917046B (en) Virtual machine starting control method in cloud system
WO2012065815A1 (en) Method and system for generating a virtual machine based on templates
WO2016109955A1 (en) Software verifying method and device
CN102207859A (en) Method, device and system for deploying solution plan
CN107247648B (en) Method, device and system for realizing remote project system supervision based on Docker
US20200117478A1 (en) Method, apparatus, and computer program product for managing service container
CN103970655A (en) Server automatic cluster testing method based on expect
CN111416853B (en) IDV cloud desktop remote starting method and system
CN107071012B (en) Method, device and system for automatically connecting cloud terminal to virtual machine
CN103685567A (en) Virtual application server configuration method under cloud environment
CN110890987A (en) Method, device, equipment and system for automatically creating cluster
CN110795105A (en) Automatic compiling and deploying method and system for power distribution automation master station system
CN113590140A (en) Manufacturing method and system of visual PXE system
CN104965741A (en) Method and apparatus for installing real-time application clusters
CN108762773B (en) Method for simulating user to log in installation program
CN111158952A (en) Method for automatically backing up configuration file by using external storage equipment
US9348849B1 (en) Backup client zero-management
CN114827117A (en) Remote access implementation method based on serial port virtualization
CN103309682A (en) Fast start and allocation method for virtual machine
CN102647419B (en) Security policy online detection system facing to terminal computers
CN104484231A (en) Virtual machine switching system and method

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