CN109542587A - A kind of virtual machine access method, device and computer equipment - Google Patents

A kind of virtual machine access method, device and computer equipment Download PDF

Info

Publication number
CN109542587A
CN109542587A CN201811416569.0A CN201811416569A CN109542587A CN 109542587 A CN109542587 A CN 109542587A CN 201811416569 A CN201811416569 A CN 201811416569A CN 109542587 A CN109542587 A CN 109542587A
Authority
CN
China
Prior art keywords
virtual machine
log
request
message
operating system
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
CN201811416569.0A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811416569.0A priority Critical patent/CN109542587A/en
Publication of CN109542587A publication Critical patent/CN109542587A/en
Pending legal-status Critical Current

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of virtual machine access method, device and computer equipments.Be related to software development technique, solve the problems, such as user log in virtual machine process in it is cumbersome, experience it is poor.This method comprises: extracting corresponding log-on message according to the request when receiving the request for jumping to virtual machine access interface;Using the log-on message, virtual machine entry is completed;Jump to the access interface of the virtual machine.Technical solution provided by the invention is suitable for virtual machine page access, realizes and simplifies efficiently virtual machine entry operation.

Description

A kind of virtual machine access method, device and computer equipment
Technical field
The present invention relates to software development technique, espespecially a kind of virtual machine access method, device and computer equipment.
Background technique
Using and disposing for virtualizing under present cloud computing environment all relies on greatly hardware-accelerated virtualization, and many hard Part platform also both provides the support to virtualization.For convenience, general user operates some hardware vendors to KVM, After Linux system opens KVM, the page of a HTML5 is provided.
Existing common management system usually jumps directly to server admin to the HTML5 page of access KVM The page, login service device management system find the KVM page in a management system, click menu access.In the process, user It needs to carry out multi-pass operation, and needs to input such as user name, password and log in token, cumbersome, user experience effect is poor.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of virtual machine access method, device and computer equipments. It is automatically performed virtual machine entry by middleware, so that user is directly entered virtual machine access interface, simplifies in login process User's operation, solve the problems, such as user log in virtual machine process in it is cumbersome, experience it is poor.
In order to reach the object of the invention, the present invention provides a kind of virtual machine access methods, comprising:
When receiving the request for jumping to virtual machine access interface, corresponding log-on message is extracted according to the request;
Using the log-on message, virtual machine entry is completed;
Jump to the access interface of the virtual machine.
Preferably, it when receiving the request for jumping to virtual machine access interface, is stepped on accordingly according to request extraction Before the step of recording information, comprising:
The preset log-on message in resource management system, the log-on message include at least any in following information One or any multinomial:
User name, password, port, operating system IP address, Schema agreement.
Preferably, using the log-on message, the step of completing virtual machine entry, includes:
New request is generated according to the log-on message, the operating system of Xiang Suoshu virtual machine sends the new request;
According to the return value that the operating system is fed back, generate session (session);
It extracts in the return value and forges token (CSRF Token) and caching (Cookie) across station domain request, be added to The head of HTTP request.
Preferably, new request is generated according to the log-on message, the operating system of Xiang Suoshu virtual machine sends described new Request the step of include:
The username and password is encrypted in middleware, in conjunction with the port, operating system IP address, Schema protocol information generates new request.
Preferably, the access interface of the virtual machine is the interface HTML5.
The present invention also provides a kind of virtual machine access mechanisms, comprising:
Data obtaining module, for being mentioned according to the request when receiving the request for jumping to virtual machine access interface Take corresponding log-on message;
Middleware automated log on module completes virtual machine entry for using the log-on message;
Interface jump module, for jumping to the access interface of the virtual machine.
Preferably, which includes:
Resource management system, is used for the preset log-on message, and the log-on message includes at least appointing in following information Meaning one is any multinomial:
User name, password, port, operating system IP address, Schema agreement.
Preferably, the middleware automated log on module includes:
Generation unit is requested, for generating new request, the operating system of Xiang Suoshu virtual machine according to the log-on message Send the new request;
Session generation unit, the return value for being fed back according to the operating system generate session;
HTTP request generation unit is added to HTTP for extracting CSRF Token and Cookie in the return value The head of request.
Preferably, the request generation unit, specifically for being encrypted in middleware to the username and password, In conjunction with the port, operating system IP address, Schema protocol information, new request is generated.
The present invention also provides a kind of computer equipment, including processor and memory, the memory is stored with calculating The step of machine program, described program realizes above-mentioned virtual machine access method when being executed by the processor.
The present invention provides a kind of virtual machine access method, system and computer equipments, jump to virtual machine receiving When accessing the request at interface, corresponding log-on message is extracted according to the request, then uses the log-on message, completed virtual Machine logs in, then jumps to the access interface of the virtual machine.User only needs once to be jumped to virtual machine entry interface Entire login process can be completed in request, into operating system, realizes and simplifies efficiently virtual machine entry operation, solve use Family logs in cumbersome, experience difference problem in virtual machine process.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is a kind of flow diagram for virtual machine access method that one embodiment of the invention provides;
Fig. 2 is the idiographic flow schematic diagram of step 103 in Fig. 1;
Fig. 3 is a kind of structural schematic diagram for virtual machine access mechanism that one embodiment of the invention provides;
Fig. 4 is the schematic diagram of internal structure of middleware automated log on module 302 in Fig. 3.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable Sequence executes shown or described step.
Existing common management system usually jumps directly to server admin to the HTML5 page of access KVM The page, login service device management system find the KVM page in a management system, click menu access.In the process, user It needs to carry out multi-pass operation, and needs to input such as user name, password and log in token, cumbersome, user experience effect is poor.
To solve the above-mentioned problems, the embodiment provides a kind of virtual machine access method, device and computers Equipment.It is automatically performed virtual machine entry by middleware, so that user is directly entered virtual machine access interface, simplifies login process In user's operation, solve the problems, such as user log in virtual machine process in it is cumbersome, experience it is poor.User's operation is reduced, is mentioned The experience that user accesses KVM is risen, access KVM pilot process is handled by way of middleware, finally directly accesses KVM The interface HTML5.
With reference to the accompanying drawing, the embodiment of the present invention is described in detail.
One embodiment of the invention provides a kind of virtual machine access method, the access username of pre-recorded server and Password accesses some preconditions of KVM, including user name password login by Middleware implementation, obtains token, generates Session generates access request.
Detailed process is as shown in Figure 1, comprising:
Step 101, the preset log-on message in resource management system.
In the embodiment of the present invention, the information such as the user name of typing server operating system, password in the asset management system. The log-on message includes at least any one or any multinomial in following information:
User name, password, port, operating system IP address, Schema agreement.
Step 102, receive jump to virtual machine access interface request when, according to the request extract step on accordingly Record information.
In the embodiment of the present invention, an access KVM access buttons are produced, issues and jumps to when user clicks the button Virtual machine accesses the request at interface, calls the interface for obtaining log-on message.When the KVM page to be accessed, button is clicked, is taken out rigid The log-on messages such as user name, the password of ability.
Step 103 uses the log-on message, completion virtual machine entry.
In this step, user name, password are encrypted in middleware, assisted in conjunction with port, operating system and schema The information such as view generate new request, and cookie, CSRF Token are got in return value, generate session.Specifically such as Fig. 2 institute Show, comprising:
Step 1031 generates new request according to the log-on message, described in the operating system of Xiang Suoshu virtual machine is sent New request.
In this step, the request of login service device operating system is generated specifically, according to information such as user name, passwords Between the username and password is encrypted in part, in conjunction with the port, operating system IP address, Schema protocol information, Generate new request.
Step 1032, the return value fed back according to the operating system, generate session.
CSRF Token and Cookie in step 1033, the extraction return value, are added to the head of HTTP request (Header)。
Step 104, the access interface for jumping to the virtual machine.
In the embodiment of the present invention, KVM access interface is jumped to.The access interface of the virtual machine is the interface HTML5.
One embodiment of the invention additionally provides a kind of virtual machine access mechanism, and structure is as shown in Figure 3, comprising:
Data obtaining module 301, for receive jump to virtual machine access interface request when, according to the request Extract corresponding log-on message;
Middleware automated log on module 302 completes virtual machine entry for using the log-on message;
Interface jump module 303, for jumping to the access interface of the virtual machine.
Preferably, which includes:
Resource management system 304, is used for the preset log-on message, and the log-on message includes at least in following information Any one is any multinomial:
User name, password, port, operating system IP address, Schema agreement.
Preferably, the structure of the middleware automated log on module 302 is as shown in Figure 4, comprising:
Generation unit 3021 is requested, for generating new request, the operation of Xiang Suoshu virtual machine according to the log-on message System sends the new request;
Session generation unit 3022, the return value for being fed back according to the operating system generate session;
HTTP request generation unit 3023 is added to for extracting CSRF Token and Cookie in the return value The head of HTTP request.
Preferably, the request generation unit 3021 is specifically used for carrying out the username and password in middleware Encryption, in conjunction with the port, operating system IP address, Schema protocol information, generates new request.
The embodiment of the invention also provides a kind of computer equipment, including processor and memory, the memory storage There is computer program, the access of the virtual machine as provided by the embodiment of the present invention is realized when described program is executed by the processor The step of method.
The embodiment provides a kind of virtual machine access method, system and computer equipments, jump receiving When accessing the request at interface to virtual machine, corresponding log-on message is extracted according to the request, then uses the log-on message, Virtual machine entry is completed, then jumps to the access interface of the virtual machine.User only needs once to be jumped to virtual machine and steps on Entire login process can be completed in the request at record interface, into operating system, realizes and simplifies efficiently virtual machine entry operation, Solve the problems, such as user log in virtual machine process in it is cumbersome, experience it is poor.
Using front end middleware Technology, analog access operating system process makes whole system seem more whole, convenient User directly accesses KVM in systems, and does not have to log in again, while also ensuring all pages all in single-page program in this way In, it ensure that the consistency of routing.User's operation is saved, user does not need to jump to the operating system page to have logged in and jump to again KVM access interface checks that the user experience is improved.This embedded mode and iframe difference, all intermediary operations are all external It hides, whole system is made to seem more to unify.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment, Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain groups Part or all components may be implemented as by processor, such as the software that digital signal processor or microprocessor execute, or by It is embodied as hardware, or is implemented as integrated circuit, such as specific integrated circuit.Such software can be distributed in computer-readable On medium, computer-readable medium may include computer storage medium (or non-transitory medium) and communication media (or temporarily Property medium).As known to a person of ordinary skill in the art, term computer storage medium is included in for storing information (such as Computer readable instructions, data structure, program module or other data) any method or technique in the volatibility implemented and non- Volatibility, removable and nonremovable medium.Computer storage medium include but is not limited to RAM, ROM, EEPROM, flash memory or its His memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, tape, disk storage or other Magnetic memory apparatus or any other medium that can be used for storing desired information and can be accessed by a computer.This Outside, known to a person of ordinary skill in the art to be, communication media generally comprises computer readable instructions, data structure, program mould Other data in the modulated data signal of block or such as carrier wave or other transmission mechanisms etc, and may include any information Delivery media.

Claims (10)

1. a kind of virtual machine access method characterized by comprising
When receiving the request for jumping to virtual machine access interface, corresponding log-on message is extracted according to the request;
Using the log-on message, virtual machine entry is completed;
Jump to the access interface of the virtual machine.
2. virtual machine access method according to claim 1, which is characterized in that jump to virtual machine access circle receiving When the request in face, before the step of request extraction corresponding log-on message, comprising:
The preset log-on message in resource management system, the log-on message include at least any one in following information Or it is any multinomial:
User name, password, port, operating system IP address, Schema agreement.
3. virtual machine access method according to claim 2, which is characterized in that use the log-on message, complete virtual Machine log in the step of include:
New request is generated according to the log-on message, the operating system of Xiang Suoshu virtual machine sends the new request;
According to the return value that the operating system is fed back, session session is generated;
It extracts in the return value and forges token CSRF Token and caching Cookie across station domain request, be added to HTTP request Head.
4. virtual machine access method according to claim 3, which is characterized in that generate new ask according to the log-on message It asks, the step of operating system of Xiang Suoshu virtual machine sends the new request includes:
The username and password is encrypted in middleware, in conjunction with the port, operating system IP address, Schema association Information is discussed, new request is generated.
5. virtual machine access method according to claim 1, which is characterized in that the access interface of the virtual machine is The interface HTML5.
6. a kind of virtual machine access mechanism characterized by comprising
Data obtaining module, for extracting phase according to the request when receiving the request for jumping to virtual machine access interface The log-on message answered;
Middleware automated log on module completes virtual machine entry for using the log-on message;
Interface jump module, for jumping to the access interface of the virtual machine.
7. virtual machine access mechanism according to claim 6, which is characterized in that the device includes:
Resource management system, is used for the preset log-on message, and the log-on message includes at least any one in following information Item is any multinomial:
User name, password, port, operating system IP address, Schema agreement.
8. virtual machine access mechanism according to claim 7, which is characterized in that the middleware automated log on module packet It includes:
Generation unit is requested, for generating new request according to the log-on message, the operating system of Xiang Suoshu virtual machine is sent The new request;
Session generation unit, the return value for being fed back according to the operating system generate session session;
HTTP request generation unit forges token CSRF Token and caching across station domain request for extracting in the return value Cookie is added to the head of HTTP request.
9. virtual machine access mechanism according to claim 8, which is characterized in that
The request generation unit, specifically for being encrypted in middleware to the username and password, in conjunction with the end Mouth, operating system IP address, Schema protocol information, generate new request.
10. a kind of computer equipment, including processor and memory, which is characterized in that the memory is stored with computer journey Sequence, the step of method as described in any one of claim 1-5 is realized when described program is executed by the processor.
CN201811416569.0A 2018-11-26 2018-11-26 A kind of virtual machine access method, device and computer equipment Pending CN109542587A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811416569.0A CN109542587A (en) 2018-11-26 2018-11-26 A kind of virtual machine access method, device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811416569.0A CN109542587A (en) 2018-11-26 2018-11-26 A kind of virtual machine access method, device and computer equipment

Publications (1)

Publication Number Publication Date
CN109542587A true CN109542587A (en) 2019-03-29

Family

ID=65850070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811416569.0A Pending CN109542587A (en) 2018-11-26 2018-11-26 A kind of virtual machine access method, device and computer equipment

Country Status (1)

Country Link
CN (1) CN109542587A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933483A (en) * 2005-11-28 2007-03-21 王伟珣 System and method for network accession utilizing single clicking single pointing
US20120110576A1 (en) * 2010-11-02 2012-05-03 Institute For Information Industry Resource sharing system and method thereof
CN104580496A (en) * 2015-01-22 2015-04-29 深圳先进技术研究院 Virtual machine visit system and server based on temporary agent
CN105359486A (en) * 2013-05-03 2016-02-24 思杰系统有限公司 Secured access to resources using a proxy
CN107291432A (en) * 2016-04-01 2017-10-24 中兴通讯股份有限公司 Cloud desktop management-control method, device and cloud desktop access method, device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933483A (en) * 2005-11-28 2007-03-21 王伟珣 System and method for network accession utilizing single clicking single pointing
US20120110576A1 (en) * 2010-11-02 2012-05-03 Institute For Information Industry Resource sharing system and method thereof
CN105359486A (en) * 2013-05-03 2016-02-24 思杰系统有限公司 Secured access to resources using a proxy
CN104580496A (en) * 2015-01-22 2015-04-29 深圳先进技术研究院 Virtual machine visit system and server based on temporary agent
CN107291432A (en) * 2016-04-01 2017-10-24 中兴通讯股份有限公司 Cloud desktop management-control method, device and cloud desktop access method, device

Similar Documents

Publication Publication Date Title
US11736469B2 (en) Single sign-on enabled OAuth token
US10516659B2 (en) User information obtaining method and apparatus, and server by an organization to deliver targated data to the user
US11206451B2 (en) Information interception processing method, terminal, and computer storage medium
US11513864B2 (en) Adoption of existing virtual computing resources into logical containers for management operations
CN108475312B (en) Single sign-on method for device security shell
CN109395400B (en) Cross-game chat information processing method and device, electronic equipment and storage medium
US10686778B2 (en) Account login method and apparatus
US11321734B2 (en) Information processing method, server, and computer storage medium
JP2019012529A (en) Document management and collaboration system
US11190501B2 (en) Hybrid single sign-on for software applications and services using classic and modern identity providers
EP3005213B1 (en) Dynamic registration of an application with an enterprise system
US11687354B2 (en) Virtual machine management using onboarding operations and openstack control
WO2016101635A1 (en) Method, apparatus and device for synchronizing login status, and computer storage medium
WO2016173199A1 (en) Mobile application single sign-on method and device
CN108469972B (en) Method and device for supporting display of multiple windows in WEB page
US20220365801A1 (en) Cloud shell extension framework
US20180083940A1 (en) System to resolve multiple identity crisis in indentity-as-a-service application environment
EP3276914A1 (en) Data sharing method and device for virtual desktop
US9948694B2 (en) Addressing application program interface format modifications to ensure client compatibility
CN110120933B (en) Wind control, man-machine recognition and data processing method, equipment and system
US20230097763A1 (en) Maintaining sessions information in multi-region cloud environment
CN109542587A (en) A kind of virtual machine access method, device and computer equipment
CN109739615B (en) Mapping method and device of virtual hard disk and cloud computing platform
US20130332591A1 (en) Dynamic script interpretation in remote contexts
JP2017215630A (en) Application utilization system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190329