[go: up one dir, main page]

CN112817703A - Method and device for accessing virtual machine console and cloud management platform - Google Patents

Method and device for accessing virtual machine console and cloud management platform Download PDF

Info

Publication number
CN112817703A
CN112817703A CN202110237627.9A CN202110237627A CN112817703A CN 112817703 A CN112817703 A CN 112817703A CN 202110237627 A CN202110237627 A CN 202110237627A CN 112817703 A CN112817703 A CN 112817703A
Authority
CN
China
Prior art keywords
host
virtual machine
management platform
console
information parameters
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.)
Pending
Application number
CN202110237627.9A
Other languages
Chinese (zh)
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.)
Aerospace Winhong Technology Co ltd
Winhong Information Technology Co ltd
Original Assignee
Aerospace Winhong Technology Co ltd
Winhong Information 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 Aerospace Winhong Technology Co ltd, Winhong Information Technology Co ltd filed Critical Aerospace Winhong Technology Co ltd
Priority to CN202110237627.9A priority Critical patent/CN112817703A/en
Publication of CN112817703A publication Critical patent/CN112817703A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a method and a device for accessing a console of a virtual machine and a cloud management platform, relates to the technical field of computer communication, and can acquire host information parameters of a host to which the specified virtual machine belongs when receiving an access instruction of the console of the specified virtual machine, encrypt the host information parameters and generate encrypted data; sending the encrypted data to a server console; if the selection indication of the server console is monitored, the encrypted data is decrypted through the server console to obtain host information parameters; the browser is started through the server console, and the browser jumps to the operating system of the virtual machine console, so that the virtual machine console can be safely and effectively accessed under the condition of network abnormity, and the use experience of a user is improved.

Description

Method and device for accessing virtual machine console and cloud management platform
Technical Field
The invention relates to the technical field of computer communication, in particular to a method and a device for accessing a virtual machine console and a cloud management platform.
Background
Today, with the rapid development of cloud computing, a cloud management platform is on the stage of information construction of various industries, and with the development of cloud computing, a private cloud platform constructed by a virtualization technology gradually becomes a mainstream framework of a data center of a financial enterprise.
Virtualization refers to virtualizing one physical computer into a plurality of logical computers, i.e., virtual machines. A plurality of logic computers are simultaneously operated on one computer, each logic computer can operate different operating systems, and application programs can operate in mutually independent spaces without mutual influence, so that the working efficiency of the computer is obviously improved, and the use cost of a user is reduced. However, in the case of an abnormal network, how to implement effective operation on the virtual machine becomes a key issue.
At present, in case of Network abnormality, a Virtual Network Controller (VNC) technology is mostly adopted to implement web page access to a Virtual machine controller desktop. The VNC is not safe in connection, the VNC is easy to intercept and monitor, delay exists in display speed on a remote screen, the phenomenon that double mice with different degrees are prone to occur, and the virtual machine console is difficult to access effectively and safely, so that use and experience of users are reduced.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method, an apparatus and a cloud management platform for accessing a virtual machine console, so as to alleviate a technical problem that it is difficult to effectively operate a virtual machine operating system when an abnormality occurs in a network.
In a first aspect, an embodiment of the present invention provides a method for accessing a virtual machine console, where the method is applied to a cloud management platform, and the method includes: if an access instruction of a console of a specified virtual machine is received, acquiring a host information parameter of a host to which the specified virtual machine belongs, wherein the access instruction carries identification information of the virtual machine; encrypting the host information parameters to generate encrypted data; sending the encrypted data to a server console; if the selection indication of the server console is monitored, the encrypted data is decrypted through the server console to obtain host information parameters; and starting a browser through the server console, and jumping to an operating system of the virtual machine console through the browser.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where a cloud management platform is configured with a database, where the database includes host information parameters of hosts of the cloud management platform and identification information of virtual machines configured by each host; the step of obtaining the host information parameter of the host to which the designated virtual machine belongs comprises the following steps: extracting identification information of the virtual machine carried by the access indication; and searching host information parameters of the host corresponding to the identification information in the database.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the cloud management platform is configured with an IVM management platform or an HMC management platform, and the step of searching the host information parameter of the host corresponding to the identification information in the database includes: host information parameters of the host corresponding to the identification information are searched based on the IVM management platform, wherein the host information parameters required by the IVM management platform at least comprise: the method comprises the following steps of (1) identifying a physical host IP address, a user name, a password, a physical host name and a bottom layer identifier of a designated virtual machine; or, searching for host information parameters of a host corresponding to the identification information based on the HMC management platform, where the host information parameters required by the HMC management platform at least include: the system comprises a physical host IP address, a user name, a password, a physical host name to which a designated virtual machine belongs, and a bottom layer identification of the designated virtual machine.
With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the step of encrypting the host information parameter includes: assembling the acquired host information parameters according to a preset SSH protocol format; and encrypting the assembled host information parameters.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the step of jumping to an operating system of a virtual machine console through a browser includes: displaying the running data of the virtual machine console corresponding to the host information parameters on a browser page; and displaying the address and the encrypted data of the server console in an address bar of the browser.
In a second aspect, an embodiment of the present invention further provides an apparatus for accessing a virtual machine console, where the apparatus is applied to a cloud management platform, and the apparatus includes: the acquisition module is used for acquiring host information parameters of a host to which the designated virtual machine belongs if an access instruction of a console of the designated virtual machine is received, wherein the access instruction carries identification information of the virtual machine; the encryption module is used for encrypting the host information parameters to generate encrypted data; the sending module is used for sending the encrypted data to the server console; the decryption module is used for decrypting the encrypted data through the server console to acquire host information parameters if the selection indication of the server console is monitored; and the jumping module is used for starting the browser through the server console and jumping to an operating system of the virtual machine console through the browser.
With reference to the second aspect, an embodiment of the present invention provides a first possible implementation manner of the second aspect, where the cloud management platform is configured with a database, and the database includes host information parameters of hosts of the cloud management platform and identification information of virtual machines configured by each host; the acquisition module is used for: extracting identification information of the virtual machine carried by the access indication; and searching host information parameters of the host corresponding to the identification information in the database.
With reference to the first possible implementation manner of the second aspect, an embodiment of the present invention provides a second possible implementation manner of the second aspect, where the cloud management platform is configured with an IVM management platform or an HMC management platform, and the obtaining module is further configured to: host information parameters of the host corresponding to the identification information are searched based on the IVM management platform, wherein the host information parameters required by the IVM management platform at least comprise: the method comprises the following steps of (1) identifying a physical host IP address, a user name, a password, a physical host name and a bottom layer identifier of a designated virtual machine; or, searching for host information parameters of a host corresponding to the identification information based on the HMC management platform, where the host information parameters required by the HMC management platform at least include: the system comprises a physical host IP address, a user name, a password, a physical host name to which a designated virtual machine belongs, and a bottom layer identification of the designated virtual machine.
In a third aspect, an embodiment of the present invention further provides a cloud management platform, where the cloud management platform includes a memory and a processor, the memory is used to store a program that supports the processor to execute the foregoing method, and the processor is configured to execute the program stored in the memory.
In a fourth aspect, embodiments of the present invention also provide a computer storage medium, where computer program instructions are stored, and when the computer program instructions are executed by a computer, the method described above is performed.
The embodiment of the invention has the following beneficial effects:
according to the method, the device and the cloud management platform for accessing the console of the virtual machine, provided by the embodiment of the invention, when the access instruction of the console of the specified virtual machine is received, the host information parameter of the host to which the specified virtual machine belongs can be obtained, and the host information parameter is encrypted to generate encrypted data; sending the encrypted data to a server console; if the selection indication of the server console is monitored, the encrypted data is decrypted through the server console to obtain host information parameters; the browser is started through the server console, and the browser jumps to the operating system of the virtual machine console, so that the virtual machine console can be safely and effectively accessed under the condition of network abnormity, and the use experience of a user is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for accessing a console of a virtual machine according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a cloud management platform accessing a virtual machine console according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for accessing a console of a virtual machine according to an embodiment of the present invention;
fig. 4 is a block diagram of a cloud management platform according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. 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.
At present, when a web page accesses a desktop of a Virtual machine Console by using a Virtual Network Console (VNC) technology under the condition of a Network anomaly, because the VNC is easily intercepted and monitored and cannot provide file uploading and downloading capabilities, and the display speed on a remote screen has the disadvantages of time delay, and the like, the use and experience of a user are reduced.
For the convenience of understanding the embodiment, a detailed description will be given to a method for accessing a console of a virtual machine according to the embodiment of the present invention.
The first embodiment is as follows:
an embodiment of the present invention provides a method for accessing a virtual machine console, where the method is applied to a cloud management platform, and as shown in fig. 1, the method includes the following steps:
step S102, if an access instruction of a console of the specified virtual machine is received, a host information parameter of a host to which the specified virtual machine belongs is obtained, wherein the access instruction carries identification information of the virtual machine.
In a specific implementation, the access instruction is generally an access instruction input by a user, the cloud management platform is configured with a database, and the database comprises host information parameters of hosts of the cloud management platform and identification information of virtual machines configured by each host; therefore, when receiving an access instruction of a specified virtual machine console, the cloud management platform can extract the identification information of the virtual machine carried by the access instruction, and then search the host information parameter of the host corresponding to the identification information in the database.
Step S104, the host information parameter is encrypted to generate encrypted data.
Step S106, the encrypted data is sent to the server console.
In particular, the server console is typically an open source component that enables the cloud management platform to access the operating system of the virtual machine through the server console. Generally, the life cycle of the server console is controlled by the cloud management platform, and the server console can be automatically installed and deployed when the cloud management platform is installed.
And step S108, if the selection indication of the server console is monitored, the encrypted data is decrypted through the server console to obtain the host information parameters.
Specifically, the selection instruction is generally a selection instruction input by a user in a browser, and after the user inputs the selection instruction, the server console may decrypt the encrypted data to obtain the host information parameter.
And step S110, starting the browser through the server console, and jumping to an operating system of the virtual machine console through the browser.
According to the method for accessing the console of the virtual machine, provided by the embodiment of the invention, the host information parameter of the host to which the specified virtual machine belongs can be obtained after the access instruction of the console of the specified virtual machine is received, and the host information parameter is encrypted to generate encrypted data; sending the encrypted data to a server console; if the selection indication of the server console is monitored, the encrypted data is decrypted through the server console to obtain host information parameters; the browser is started through the server console, and the browser jumps to the operating system of the virtual machine console, so that the virtual machine console can be safely and effectively accessed under the condition of network abnormity, and the use experience of a user is improved.
In practical use, the server console may generally adopt a GateOne proxy console, specifically, GateOne is a web page version SSH (Secure Shell protocol) terminal simulator written by using a fifth version of HTML (HyperText Markup Language) technology, and GateOne is based on a modern HTML5 technology, can support multiple SSH processes without any browser plug-in, and can be embedded into any other application program.
Therefore, the server console in the embodiment of the invention can be based on the GateOne source code base, the GateOne function is expanded and optimized, so that the GateOne function can be safely docked with a PowerVM virtualization console, based on the GateOne technology, the method for accessing the virtual machine console provided by the embodiment of the invention can access the desktop of the virtual machine console through the Web page of the cloud management platform and based on the SSH protocol, and, the method can realize remote connection of the virtual machine console by directly using the Browser of the cloud management platform based on a B/S architecture (Browser/Server, Browser/Server mode) without installing a client tool, and supports native SSH protocol, can remotely connect, log in, manage Linux/Unix server, the server can comprise a virtualization host machine and a virtual machine, so that unified management of a PowerVM virtual machine server console and a host machine server console is achieved.
In actual use, the cloud Management platform in the embodiment of the present invention may generally configure an IVM (Interactive Visual Media) Management platform or an HMC (Hardware control Console) Management platform, and since the two platforms have different manners of acquiring the virtual machine Console, in the step S102, when acquiring the host information parameter of the host to which the virtual machine belongs, the IVM Management platform or the HMC Management platform is also different. When the host information parameter of the host corresponding to the identification information is searched by the IVM management platform, the host information parameter at least comprises: parameter information such as IP address of the physical host, user name, password, name of the physical host, bottom layer identification of the designated virtual machine and the like; when the HMC management platform searches for the host information parameter of the host corresponding to the identification information, the host information parameter at least includes: parameters such as a physical host IP address, a user name, a password, a physical host name to which the designated virtual machine belongs, a bottom layer identifier of the designated virtual machine and the like;
after the cloud management platform obtains the host information parameters, the corresponding parameters can be assembled so as to be convenient for encryption operation, and the parameters are sent to the server console. Generally, an AES (Advanced Encryption Standard) Encryption algorithm may be used for the Encryption process of the host information parameter, and accordingly, when the server console decrypts the encrypted data, a decryption algorithm corresponding to the AES Encryption algorithm may be used, and the specific Encryption operation and decryption operation may be implemented by referring to related data, which is not limited in the embodiment of the present invention.
In order to facilitate understanding of the process of the cloud management platform accessing the virtual machine console, fig. 2 shows a system framework diagram of the cloud management platform accessing the virtual machine console, which includes the cloud management platform, and a server controller deployed on the cloud management platform, and an IVM management platform and an HMC management platform configured by the cloud management platform, wherein the HMC management platform can manage a plurality of hosts, the IVM management platform can manage one host, and a plurality of virtual machines can be virtualized on each host, as shown in fig. 2, wherein in fig. 2, the HMC management platform manages two hosts, each host includes two virtual machines as an example, it should be understood that fig. 2 is merely an exemplary system architecture, in other embodiments, the number of hosts managed by the HMC management platform, and the number of virtual machines included in each host can be set according to actual situations, the embodiments of the present invention are not limited in this regard.
Based on the system framework of the cloud management platform accessing the virtual machine console shown in fig. 2, when the cloud management platform accesses the specified virtual machine console, the host information parameters of the host where the virtual machine is located need to be sent to the server console after being subjected to operations such as assembly encryption and the like, because the server console in the embodiment of the invention adopts the GateOne proxy console which is a web page version SSH terminal simulator written based on the HTML5 technology, when the host information parameters are encrypted, the host information parameters need to be assembled according to a preset SSH protocol format, and then the assembled host information parameters are encrypted.
In actual use, the SSH protocol is a general, powerful, software-based network security solution, typically built on an application layer basis. SSH protocols are currently more reliable protocols that provide security for telnet sessions and other web services. The SSH protocol can effectively prevent the problem of information leakage in the remote management process.
Further, in the embodiment of the present invention, because the manners of acquiring the console of the virtual machine by the IVM management platform and the HMC management platform are different, when the host information parameter of the host in which the virtual machine is managed and controlled is acquired, the IVM management platform and the HMC management platform are also different, and therefore, the process of performing group entry of the host information parameter according to the preset SSH protocol format is also different, where the host information parameter required by the IVM management platform at least includes: the method comprises the following steps of assembling host information parameters, namely a physical host IP address, a user name, a password, a physical host name and a bottom layer identifier of a designated virtual machine, wherein the host information parameters comprise the following steps:
ssh:// { user name }: password } @ { physical host name }: 22/? ac ═ clear% 26% 26rmvt-id { lparsSelected }% 26% 26mkvt-id { lparsSelected }% 26% 26exit ";
the host information parameters required by the HMC management platform at least comprise: the IP address of the physical host, the user name, the password, the name of the physical host to which the appointed virtual machine belongs and the bottom layer identification of the appointed virtual machine are assembled into host information parameters as follows: ssh:// { user name }: password } @ { hmc IP }: 22/? ac-clear% 26% 26rmvterm-m { physical host name } - -id { lparsSelected }% 26% 26mkvterm-m { physical host name } - -id { lparsSelected }.
Wherein lparsSelected represents the underlying identity of the virtual machine.
And assembling the host information parameters according to the method, and encrypting and sending the host information parameters to the server console.
Further, the encrypted data are decrypted in the server console to obtain the address of the virtual machine, the browser is started through the server console, and the browser jumps to the operating system of the virtual machine console.
Generally, the step of the browser jumping to the operating system of the virtual machine console comprises: displaying the running data of the virtual machine console corresponding to the host information parameters on a browser page; and displaying the address and the encrypted data of the server console in an address bar of the browser.
Specifically, the data of the virtual machine console running can be displayed on the browser page; the address encryption data of the server console may also be displayed on the address bar of the browser.
In practical use, a user can log in a cloud management platform through a browser, after inputting a legal user name and password, a plurality of virtual machines managed and controlled by the current cloud management platform can be displayed on a display interface of the cloud management platform, if the user needs to access a certain virtual machine console, an icon of the virtual machine can be selected (for example, an icon corresponding to the virtual machine is clicked through a mouse, and the like), the cloud management platform can receive an access instruction of a console of a specified virtual machine, further host information parameters of a host to which the specified virtual machine belongs are obtained and encrypted and sent to the server console, at the moment, the icon of the server console can be displayed on the display interface of the cloud management platform, if the icon is selected by the user, the cloud management platform can monitor the selected instruction of the server console, further the encrypted data are decrypted to obtain the host information parameters, and simultaneously, starting a browser through the server console, and jumping to an operating system of the virtual machine console through the browser.
Based on the above process, the method for accessing a virtual machine console provided in the embodiments of the present invention is implemented based on a web page, and therefore, due to the problem of the browser version, a situation that a function of the server console cannot be opened or a screen is lost when a graphical command is executed after the server console is opened may occur.
Specifically, a component selected by the browser version has an applet component or an html5 component, and generally, whether to use the html5 component may be determined according to a return result of the $.
Further, in the homepage of the web page version SSH browser written by the open source tool GateOne using the HTML5 technology, a WebUtil component may be introduced to avoid the situation that the first server console is always displayed when the same browser opens a duplicate page, specifically, a logical modification may be performed on + wcuid behind sessionId of the original GateOne, so that the server console can start a window of the browser to access the operating system being executed by the virtual machine console, and the security of accessing the virtual machine console is enhanced.
Example two:
corresponding to the method for accessing a virtual machine console provided in the foregoing embodiment, an embodiment of the present invention further provides an apparatus for accessing a virtual machine console, as shown in fig. 3, where the apparatus is applied to a cloud management platform, and the apparatus includes:
an obtaining module 302, configured to obtain a host information parameter of a host to which a specified virtual machine belongs if an access instruction of a console of the specified virtual machine is received, where the access instruction carries identification information of the virtual machine;
the encryption module 304 is configured to encrypt the host information parameter to generate encrypted data;
a sending module 306, configured to send the encrypted data to a server console;
the decryption module 308 is configured to, if the selected indication of the server console is monitored, decrypt the encrypted data through the server console to obtain host information parameters;
and the jump module 310 is configured to start the browser through the server console, and jump to the operating system of the virtual machine console through the browser.
Specifically, the cloud management platform is configured with a database, and the database comprises host information parameters of hosts of the cloud management platform and identification information of virtual machines configured by each host; the obtaining module 302 is configured to: extracting identification information of the virtual machine carried by the access indication; and searching host information parameters of the host corresponding to the identification information in the database.
Further, the cloud management platform is configured with an IVM management platform or an HMC management platform, and the obtaining module 302 is further configured to: host information parameters of the host corresponding to the identification information are searched based on the IVM management platform, wherein the host information parameters required by the IVM management platform at least comprise: the method comprises the following steps of (1) identifying a physical host IP address, a user name, a password, a physical host name and a bottom layer identifier of a designated virtual machine; or, searching for host information parameters of a host corresponding to the identification information based on the HMC management platform, where the host information parameters required by the HMC management platform at least include: the system comprises a physical host IP address, a user name, a password, a physical host name to which a designated virtual machine belongs, and a bottom layer identification of the designated virtual machine.
The device for accessing the console of the virtual machine provided by the embodiment of the invention has the same technical characteristics as the method for accessing the console of the virtual machine provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
The embodiment of the invention also provides a cloud management platform, which comprises a memory and a processor, wherein the memory is used for storing the program which supports the processor to execute the method, and the processor is configured to execute the program stored in the memory.
Referring to fig. 4, a block diagram of a cloud management platform includes: a processor 400, a memory 401, a bus 402 and a communication interface 403, wherein the processor 400, the communication interface 403 and the memory 401 are connected through the bus 402; the processor 400 is used to execute executable modules, such as computer programs, stored in the memory 401.
The Memory 401 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 403 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
Bus 402 can be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 4, but that does not indicate only one bus or one type of bus.
Processor 400 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 400. The Processor 400 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 401, and the processor 400 reads the information in the memory 401 and completes the steps of the method in combination with the hardware.
Embodiments of the present invention also provide a computer storage medium, which is used for storing computer program instructions, and when the computer executes the computer program instructions, the method described above is performed.
The method and the apparatus for accessing a virtual machine console and the computer program product of the cloud management platform provided by the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the cloud management platform and the cloud management apparatus described above may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that the following embodiments are merely illustrative of the present invention, and not restrictive, and the scope of the present invention is not limited thereto: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for accessing a virtual machine console is applied to a cloud management platform, and comprises the following steps:
if an access instruction of a console of a specified virtual machine is received, acquiring host information parameters of a host to which the specified virtual machine belongs, wherein the access instruction carries identification information of the virtual machine;
encrypting the host information parameters to generate encrypted data;
sending the encrypted data to a server console;
if the selection indication of the server console is monitored, the encrypted data is decrypted through the server console to obtain the host information parameters;
and starting a browser through the server console, and jumping to an operating system of the virtual machine console through the browser.
2. The method according to claim 1, wherein the cloud management platform is configured with a database, the database comprising host information parameters of hosts of the cloud management platform and identification information of virtual machines configured for each of the hosts;
the step of obtaining the host information parameters of the host to which the specified virtual machine belongs comprises:
extracting identification information of the virtual machine carried by the access indication;
and searching host information parameters of the host corresponding to the identification information in the database.
3. The method according to claim 2, wherein the cloud management platform is configured with an IVM management platform or an HMC management platform, and the step of searching the database for the host information parameter of the host corresponding to the identification information comprises:
searching for host information parameters of the host corresponding to the identification information based on the IVM management platform, wherein the host information parameters required by the IVM management platform at least include: the system comprises a physical host IP address, a user name, a password, a physical host name and a bottom layer identification of the specified virtual machine; or,
searching for host information parameters of the host corresponding to the identification information based on the HMC management platform, wherein the host information parameters required by the HMC management platform at least include: the system comprises a physical host IP address, a user name, a password, a physical host name to which the specified virtual machine belongs, and a bottom layer identifier of the specified virtual machine.
4. The method of claim 1, wherein the step of encrypting the host information parameter comprises:
assembling the acquired host information parameters according to a preset SSH protocol format;
and encrypting the assembled host information parameters.
5. The method of claim 1, wherein jumping to an operating system of the virtual machine console via the browser comprises:
displaying the running data of the virtual machine console corresponding to the host information parameters on the browser page; and the number of the first and second groups,
and displaying the address of the server console and the encrypted data in an address bar of the browser.
6. An apparatus for accessing a console of a virtual machine, the apparatus being applied to a cloud management platform, the apparatus comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring host information parameters of a host to which a specified virtual machine belongs if an access instruction of a console of the specified virtual machine is received, and the access instruction carries identification information of the virtual machine;
the encryption module is used for encrypting the host information parameters to generate encrypted data;
the sending module is used for sending the encrypted data to a server console;
the decryption module is used for decrypting the encrypted data through the server console to acquire the host information parameters if the selected indication of the server console is monitored;
and the jumping module is used for starting a browser through the server console and jumping to an operating system of the virtual machine console through the browser.
7. The apparatus of claim 6, wherein the cloud management platform is configured with a database comprising host information parameters of hosts of the cloud management platform and identification information of virtual machines configured for each of the hosts;
the acquisition module is configured to:
extracting identification information of the virtual machine carried by the access indication;
and searching host information parameters of the host corresponding to the identification information in the database.
8. The apparatus of claim 7, wherein the cloud management platform is configured with an IVM management platform or an HMC management platform, and wherein the obtaining module is further configured to:
searching for host information parameters of the host corresponding to the identification information based on the IVM management platform, wherein the host information parameters required by the IVM management platform at least include: the system comprises a physical host IP address, a user name, a password, a physical host name and a bottom layer identification of the specified virtual machine; or,
searching for host information parameters of the host corresponding to the identification information based on the HMC management platform, wherein the host information parameters required by the HMC management platform at least include: the system comprises a physical host IP address, a user name, a password, a physical host name to which the specified virtual machine belongs, and a bottom layer identifier of the specified virtual machine.
9. A cloud management platform comprising a memory for storing a program that enables the processor to perform the method of any of claims 1 to 5 and a processor configured to execute the program stored in the memory.
10. A computer storage medium storing computer program instructions for performing the method of any one of claims 1 to 5 when executed by a computer.
CN202110237627.9A 2021-03-03 2021-03-03 Method and device for accessing virtual machine console and cloud management platform Pending CN112817703A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110237627.9A CN112817703A (en) 2021-03-03 2021-03-03 Method and device for accessing virtual machine console and cloud management platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110237627.9A CN112817703A (en) 2021-03-03 2021-03-03 Method and device for accessing virtual machine console and cloud management platform

Publications (1)

Publication Number Publication Date
CN112817703A true CN112817703A (en) 2021-05-18

Family

ID=75862818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110237627.9A Pending CN112817703A (en) 2021-03-03 2021-03-03 Method and device for accessing virtual machine console and cloud management platform

Country Status (1)

Country Link
CN (1) CN112817703A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115766382A (en) * 2022-10-21 2023-03-07 济南浪潮数据技术有限公司 Cloud computing platform-based inspection method, system, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120096271A1 (en) * 2010-10-15 2012-04-19 Microsoft Corporation Remote Access to Hosted Virtual Machines By Enterprise Users
CN107864055A (en) * 2017-10-31 2018-03-30 云宏信息科技股份有限公司 The management method and platform of virtualization system
CN109194742A (en) * 2018-09-04 2019-01-11 郑州云海信息技术有限公司 A kind of connection method, device and the storage medium of virtual machine console
WO2019080010A1 (en) * 2017-10-25 2019-05-02 深圳市互盟科技股份有限公司 Cloud computing-based virtual machine control system and method therefor
CN109857429A (en) * 2019-01-04 2019-06-07 浪潮商用机器有限公司 A kind of update method, device, equipment and the storage medium of resources of virtual machine configuration
CN110995705A (en) * 2019-12-03 2020-04-10 广州西麦科技股份有限公司 Method for remotely and safely accessing virtual machine

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120096271A1 (en) * 2010-10-15 2012-04-19 Microsoft Corporation Remote Access to Hosted Virtual Machines By Enterprise Users
WO2019080010A1 (en) * 2017-10-25 2019-05-02 深圳市互盟科技股份有限公司 Cloud computing-based virtual machine control system and method therefor
CN109997345A (en) * 2017-10-25 2019-07-09 深圳市互盟科技股份有限公司 Cloud computing-based virtual machine control system and method
CN107864055A (en) * 2017-10-31 2018-03-30 云宏信息科技股份有限公司 The management method and platform of virtualization system
CN109194742A (en) * 2018-09-04 2019-01-11 郑州云海信息技术有限公司 A kind of connection method, device and the storage medium of virtual machine console
CN109857429A (en) * 2019-01-04 2019-06-07 浪潮商用机器有限公司 A kind of update method, device, equipment and the storage medium of resources of virtual machine configuration
CN110995705A (en) * 2019-12-03 2020-04-10 广州西麦科技股份有限公司 Method for remotely and safely accessing virtual machine

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
党飞;江铭炎;袁东风;: "基于KVM的B/S架构虚拟化管理系统", 计算机工程与设计, no. 06, 16 June 2013 (2013-06-16) *
杨浚;: "虚拟网络实验平台中构建基于web的ssh客户端工具", 济南职业学院学报, no. 04, 15 August 2013 (2013-08-15) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115766382A (en) * 2022-10-21 2023-03-07 济南浪潮数据技术有限公司 Cloud computing platform-based inspection method, system, equipment and medium

Similar Documents

Publication Publication Date Title
EP3267350B1 (en) Method of and system for analysis of interaction patterns of malware with control centers for detection of cyber attack
Costin et al. A {Large-scale} analysis of the security of embedded firmwares
EP3097509B1 (en) Intercepting and supervising calls to transformed operations and objects
ES2882125T3 (en) System and procedure to identify attacks on the Internet
US12093387B2 (en) Endpoint detection and response attack process tree auto-play
US11374832B2 (en) Integration and customization of third-party services with remote computing infrastructure
EP3547121B1 (en) Combining device, combining method and combining program
CN112583815B (en) Operation instruction management method and device
EP2575043B1 (en) Method to secure an application executable in a distant server accessible via a public computer network, and improved virtual server.
Hornby Side-channel attacks on everyday applications: Distinguishing inputs with flush+ reload
CN110875899A (en) Data processing method, system and network system
WO2023034145A1 (en) Session management system
CN113449167A (en) Data acquisition abnormity detection method and device, electronic equipment and readable storage medium
US11418570B2 (en) Robust computing device identification framework
CN112817703A (en) Method and device for accessing virtual machine console and cloud management platform
CN111464594B (en) Http interface connection method, http interface connection device and storage medium
CN113127875A (en) Vulnerability processing method and related equipment
CN115114622A (en) Virus scanning and display method and system
CN110061864B (en) Method and system for automatically verifying domain name configuration
CN113886892B (en) Application program data acquisition method and device, storage medium and electronic equipment
US20160105443A1 (en) Resource access
HK40041388A (en) Operation instruction management method, device
WO2023194409A1 (en) Automated security analysis and response of container environments
CN117406920A (en) Data processing method, device, equipment and storage medium
CN115333838A (en) Test method, device, system and medium based on NTLM authentication login

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