CN108491347B - Communication method and electronic device - Google Patents

Communication method and electronic device Download PDF

Info

Publication number
CN108491347B
CN108491347B CN201810286896.2A CN201810286896A CN108491347B CN 108491347 B CN108491347 B CN 108491347B CN 201810286896 A CN201810286896 A CN 201810286896A CN 108491347 B CN108491347 B CN 108491347B
Authority
CN
China
Prior art keywords
interface
access request
management controller
virtual machine
baseboard management
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
CN201810286896.2A
Other languages
Chinese (zh)
Other versions
CN108491347A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201810286896.2A priority Critical patent/CN108491347B/en
Publication of CN108491347A publication Critical patent/CN108491347A/en
Application granted granted Critical
Publication of CN108491347B publication Critical patent/CN108491347B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • 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/45579I/O management, e.g. providing access to device drivers or storage
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Abstract

The present disclosure provides a communication method comprising receiving, by a baseboard management controller, an access request for a virtual machine, determining, based on the access request, a data interface associated with the virtual machine, wherein the data interface comprises a first interface on a motherboard and a second interface on the baseboard management controller, the first interface and the second interface being communicably connected, and responding to the access request through the data interface. The present disclosure also provides an electronic device.

Description

Communication method and electronic device
Technical Field
The present disclosure relates to a communication method and an electronic device.
Background
The serial port on the baseboard management controller in the server is typically allocated to the host operating system so that the host can communicate with the baseboard management controller, however, the virtual machine in the server cannot communicate with the baseboard management controller, and thus the virtual machine in the server cannot use some functions provided by the baseboard management controller, such as sol (serial over lan) functions. The SOL function can provide man-machine interaction operation and log output, and is an effective debugging means when an operating system fails.
How to enable the virtual machine in the server to communicate with the bmc, so that the virtual machine can use the functions provided by the bmc, is an urgent problem to be solved.
Disclosure of Invention
One aspect of the present disclosure provides a communication method including receiving, by a baseboard management controller, an access request for a virtual machine, determining, based on the access request, a data interface associated with the virtual machine, wherein the data interface includes a first interface on a motherboard and a second interface on the baseboard management controller, the first interface and the second interface being communicably connected, and responding to the access request through the data interface.
Optionally, the data interface comprises a universal serial bus interface.
Optionally, the responding, through the data interface, to the access request includes converting a signal format of the usb interface into a serial signal format, packaging the serial signal format into an IPMI protocol packet, and responding to the access request based on the IPMI protocol packet.
Another aspect of the disclosure provides an electronic device comprising a motherboard, a baseboard management controller, and a memory having computer-readable instructions stored thereon that, when executed by the baseboard management controller, cause the baseboard management controller to receive an access request to a virtual machine, determine a data interface associated with the virtual machine based on the access request, wherein the data interface comprises a first interface on the motherboard and a second interface on the baseboard management controller, the first and second interfaces communicatively coupled, and respond to the access request through the data interface.
Optionally, the data interface comprises a universal serial bus interface.
Optionally, the substrate management controller responds to the access request through the data interface, including converting a signal format of the usb interface into a serial signal format, packaging the serial signal format into an IPMI protocol packet, and responding to the access request based on the IPMI protocol packet.
Another aspect of the disclosure provides a communication system, including a receiving module configured to receive an access request to a virtual machine through a baseboard management controller, a determining module configured to determine a data interface associated with the virtual machine based on the access request, wherein the data interface includes a first interface on a motherboard and a second interface on the baseboard management controller, the first interface and the second interface being communicatively connected, and a responding module configured to respond to the access request through the data interface.
Optionally, the data interface comprises a universal serial bus interface.
Optionally, the response module includes a conversion sub-module configured to convert a signal format of the usb interface into a serial signal format, an encapsulation sub-module configured to encapsulate the serial signal format into an IPMI protocol packet, and a response sub-module configured to respond to the access request based on the IPMI protocol packet.
Another aspect of the disclosure provides a computer readable medium having stored thereon executable instructions that, when executed, cause a processor to perform the method as described above.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
Drawings
For a more complete understanding of the present disclosure and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
fig. 1 schematically shows a schematic diagram of a communication method in the prior art;
FIG. 2 schematically illustrates a hardware schematic of a communication method according to an embodiment of the disclosure;
FIG. 3 schematically illustrates a schematic diagram of a physical device being added to a virtual machine according to an embodiment of the disclosure;
fig. 4 schematically shows a system architecture diagram of an application communication method according to an embodiment of the present disclosure;
fig. 5 schematically illustrates a flow chart of a communication method according to an embodiment of the present disclosure;
FIG. 6 schematically illustrates a flow chart for responding to the access request through the data interface according to an embodiment of the present disclosure;
fig. 7 schematically illustrates a block diagram of a communication system according to an embodiment of the present disclosure;
FIG. 8 schematically illustrates a block diagram of a response module according to an embodiment of the disclosure; and
fig. 9 schematically shows a block diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). It will be further understood by those within the art that virtually any disjunctive word and/or phrase presenting two or more alternative terms, whether in the description, claims, or drawings, should be understood to contemplate the possibilities of including one of the terms, either of the terms, or both terms. For example, the phrase "a or B" should be understood to include the possibility of "a" or "B", or "a and B".
Some block diagrams and/or flow diagrams are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations thereof, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the instructions, which execute via the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). In addition, the techniques of this disclosure may take the form of a computer program product on a computer-readable medium having instructions stored thereon for use by or in connection with an instruction execution system. In the context of this disclosure, a computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the instructions. For example, the computer readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. Specific examples of the computer readable medium include: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and/or wired/wireless communication links.
Embodiments of the present disclosure provide a communication method including receiving, by a baseboard management controller, an access request for a virtual machine, determining, based on the access request, a data interface associated with the virtual machine, wherein the data interface includes a first interface on a motherboard and a second interface on the baseboard management controller, the first interface and the second interface being communicably connected, and responding to the access request through the data interface. The method associates a virtual machine in the server with a data interface so that the virtual machine in the server can communicate with the baseboard management controller, thereby enabling the virtual machine to use a function provided by the baseboard management controller, such as an SOL function.
Fig. 1 schematically shows a schematic diagram of a communication method in the prior art.
As shown in fig. 1, in the prior art, the terminal device 110 may communicate with the host 120 of the server through a management portal, such as a network interface card. The terminal device 110 is, for example, an administrator computer, wherein the host 120 of the server at least includes a baseboard management controller BMC121 and a motherboard 122.
As shown in fig. 1, the BMC121 includes a Serial Over LAN (local area network) functional module capable of receiving data sent by a management network port, a Serial Over LAN (local area network) SOL module sending a received Serial port signal to a Universal Asynchronous Receiver/Transmitter (UART) Serial port of the BMC121, and the BMC121 communicates with the motherboard 122 through the UART. However, the virtual machine installed on the server cannot use the UART serial port, so that the virtual machine cannot communicate with the BMC121 and cannot use functions provided by the BMC121, such as the SOL function, which retransmits information directed to the serial port through the local area network, thereby providing remote access to the emergency management service, the Windows dedicated management console, or the Linux serial console.
The server 120 may be a server that provides various services, such as a back-office management server (for example only) that provides support for websites browsed by users using the client devices 110. The backend management server may analyze and otherwise process the received data such as the user request, and feed back a processing result (e.g., a web page, information, or data obtained or generated according to the user request) to the client device.
It should be understood that the number of terminal devices and servers in fig. 1 is merely illustrative. There may be any number of terminal devices and servers as desired.
Aiming at the technical problem that the virtual machine cannot use the function provided by the baseboard management controller BMC in the prior art, the disclosure provides a communication method, so that the virtual machine can use the function provided by the baseboard management controller, such as the SOL function, and when a network is attacked or the network fails, a terminal device of an administrator can interact with the virtual machine, thereby effectively operating or debugging the virtual machine. An embodiment of a communication method according to the present disclosure is described below in conjunction with fig. 2 and 3.
Fig. 2 schematically illustrates a hardware principle schematic diagram of a communication method according to an embodiment of the disclosure.
As shown in fig. 2, a Universal Serial Bus (USB) Serial port conversion function module is designed in the BMC 221, and the USB Serial port conversion function module can realize the interconversion between the USB signal and the Serial port signal, and the USB Serial port conversion device is respectively in communication with the SOL function module and the USB interface of the BMC 221 to convert the received USB signal into the Serial port signal or convert the received Serial port signal into the USB signal. The baseboard management controller BMC 221 is connected to the motherboard 222 via a USB signal line.
When the terminal device 210 needs to remotely access the virtual machine, the terminal device 210 communicates with the BMC 221 of the server 220 through the management network port and sends an access request to the BMC 221, the SOL function module on the BMC 221 receives the access request sent by the management network port and sends the access request to the USB serial port conversion device in a serial port signal format, and the USB serial port conversion device converts the serial port signal format into a USB signal format, so that the USB serial port conversion device is received by the virtual machine and responds to the USB signal. The access result of the virtual machine to the access request is transmitted to the baseboard management controller 221 through the USB signal line, and the USB serial port conversion device converts the USB signal into a serial port signal and sends the serial port signal to the SOL function module, so that the SOL function module can provide information that is directed to the serial port through the local area network, and the response result is sent to the terminal device 210.
It should be noted that the communication method provided by the embodiment of the present disclosure may be executed by the server 220. Accordingly, the control device provided by the embodiment of the present disclosure may be generally disposed in the server 220. The control method provided by the embodiment of the present disclosure may also be executed by a server or a server cluster that is different from the server 220 and is capable of communicating with the terminal device 210.
FIG. 3 schematically illustrates a schematic of the addition of a physical device to a virtual machine.
As shown in fig. 3, an electronic Device, such as a server, can recognize multiple physical devices, for example, a physical Device recognized by a Host USB controller (USB Host Device) can be selected, and a universal Mass Storage Device (Generic Mass Storage) recognized by the Host USB controller is added to a virtual machine for use by the virtual machine.
Fig. 4 schematically shows a system architecture diagram of an application communication method according to an embodiment of the present disclosure.
As shown in fig. 4, the server 400 includes a virtual machine 1, virtual machines 2, … …, and a virtual machine N, the hardware of the server 400 at least includes a motherboard 410 and a baseboard management controller BMC420, and the baseboard management controller BMC420 includes a USB serial port conversion device 421.
The USB serial port conversion device 421 converts the serial port signal into a USB signal or converts the USB signal into a serial port signal. The USB controller 411 on the motherboard is virtualized using the IO virtualization technology, so that the virtual machine can use the virtual USB controller to identify the USB serial port conversion function module as the USB device through the virtual USB controller. One USB serial port conversion function module may be allocated to one virtual machine, for example, one USB serial port conversion function module in fig. 4 may be allocated to virtual machine 1, but not allocated to virtual machines 2, … … and N, and a plurality of USB serial port conversion function modules may be set in the BMC to allocate to a plurality of virtual machines.
Fig. 5 schematically shows a flow chart of a communication method according to an embodiment of the present disclosure.
As shown in fig. 5, the method includes operations S510, S520, and S530.
In operation S510, an access request to a virtual machine is received through a baseboard management controller.
In operation S520, a data interface associated with the virtual machine is determined based on the access request, where the data interface includes a first interface on a motherboard and a second interface on the baseboard management controller, and the first interface and the second interface are communicably connected.
In operation S530, the access request is responded to through the data interface.
The method associates a virtual machine in the server with a data interface so that the virtual machine in the server can communicate with the baseboard management controller, thereby enabling the virtual machine to use a function provided by the baseboard management controller, such as an SOL function.
According to an embodiment of the present disclosure, an access request to a virtual machine is received through a baseboard management controller in operation S510. For example, the method is applied to a server, and a baseboard management controller on the server can receive an access request for a virtual machine sent by a terminal device such as a computer of an administrator. The basic management controller may receive a request for accessing the virtual machine, which is sent by the terminal device, through the portal, for example. According to the embodiment of the disclosure, the SOL functional module on the basic management controller communicates with the network port, and sends the received access request to the UART serial port and/or USB serial port conversion equipment.
According to an embodiment of the present disclosure, in operation S520, a data interface associated with the virtual machine is determined based on the access request, where the data interface includes a first interface on a motherboard and a second interface on the baseboard management controller, and the first interface and the second interface are communicably connected. According to an embodiment of the present disclosure, the data interface includes a universal serial bus interface. According to the embodiment of the disclosure, a plurality of virtual machines can be installed in the server, and each virtual machine can be allocated with one USB serial port conversion function module. According to the embodiment of the present disclosure, a parameter may be set in an access request, where the parameter can specify a USB serial port conversion function module to be used, for example, a parameter b is defined, when an access request sent by a terminal device is, for example, ipmitool-I lan plus-U admin-P admin-H10.141.73.67 sol activate, the parameter b is not included in the access request, the access request is determined to access a host, when an access request sent by the terminal device is, for example, ipmitool-I lan plus-U admin-P admin-H10.141.73.67-b 0 sol activate, the access request includes a parameter b, and which USB serial port conversion module to be used is determined according to the parameter b, for example, b 0: and determining the USB serial port conversion functional module with the serial number of 0. According to the schematic diagram of the hardware principle of the communication method according to the embodiment of the present disclosure shown in fig. 2, the USB serial port conversion function module communicates with the USB interface, so as to determine the data interface associated with the virtual machine.
According to an embodiment of the present disclosure, the access request is responded to through the data interface in operation S530. The access request sent by the terminal equipment is received by the virtual machine through the data interface, so that the virtual machine responds to the access request.
Fig. 6 schematically illustrates a flow chart for responding to the access request through the data interface according to an embodiment of the present disclosure.
As shown in fig. 6, the method includes operations S610 to S630.
In operation S610, the signal format of the usb interface is converted into a serial port signal format.
In operation S620, the serial port signal format is encapsulated into an IPMI protocol packet.
In operation S630, the access request is responded based on the IPMI protocol package.
The method enables the signal of the virtual machine to use the SOL function provided by the baseboard management controller, and solves the problem that the SOL function cannot be used by the virtual machine at present.
According to an embodiment of the present disclosure, in operation S610, a signal format of the USB interface is converted into a serial signal format, for example, a USB serial conversion function module on the bmc converts a USB signal format acquired from the USB interface of the host into a serial signal format, for example, into a serial signal format of the RS232 standard.
According to an embodiment of the present disclosure, the serial port signal format is packaged into an IPMI protocol packet in operation S620. As shown in fig. 2, the USB serial port conversion function module communicates with the serial port SOL function module to send the converted serial port signal to the SOL function module, and the SOL function module encapsulates the serial port signal format into an ipmi (intelligent Platform Management interface) protocol package.
According to an embodiment of the present disclosure, the access request is responded based on the IPMI protocol package in operation S630. As shown in fig. 2, the IPMI protocol package is sent to the management port by the SOL function unit, and the terminal device and the baseboard management controller communicate via the management port to receive data sent by the SOL function unit of the baseboard management controller in response to the access request.
Fig. 7 schematically illustrates a block diagram of a communication system 700 according to an embodiment of the disclosure.
As shown in fig. 7, communication system 700 includes a receiving module 710, a determining module 720, and a responding module 730.
The receiving module 710, for example, performs operation S510 described with reference to fig. 5, for receiving, by the baseboard management controller, an access request for the virtual machine.
The determining module 720, for example, performs operation S520 described with reference to fig. 5, to determine, based on the access request, a data interface associated with the virtual machine, where the data interface includes a first interface on the motherboard and a second interface on the baseboard management controller, and the first interface and the second interface are communicatively connected.
The response module 730, for example, executes the operation S530 described with reference to fig. 5, for responding to the access request through the data interface.
According to an embodiment of the present disclosure, the data interface includes a universal serial bus interface.
Fig. 8 schematically illustrates a block diagram of the response module 730 according to an embodiment of the disclosure.
As shown in fig. 8, response module 730 includes a conversion sub-module 731, an encapsulation sub-module 732, and a response sub-module 733.
The converting sub-module 731, for example, performs operation S610 described with reference to fig. 6, for converting the signal format of the usb interface into a serial port signal format.
The encapsulation sub-module 732, for example, performs operation S620 described with reference to fig. 6, for encapsulating the serial port signal format into an IPMI protocol packet.
The response sub-module 733 performs, for example, operation S630 described with reference to fig. 6, for responding to the access request based on the IPMI protocol package.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any plurality of the receiving module 710, the determining module 720, the responding module 730, the converting sub-module 731, the encapsulating sub-module 732, and the responding sub-module 733 may be combined in one module to be implemented, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the receiving module 710, the determining module 720, the responding module 730, the converting submodule 731, the encapsulating submodule 732, and the responding submodule 733 may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware by any other reasonable manner of integrating or packaging a circuit, or may be implemented in any one of three implementations of software, hardware, and firmware, or in a suitable combination of any of them. Alternatively, at least one of the receiving module 710, the determining module 720, the responding module 730, the converting sub-module 731, the encapsulating sub-module 732, and the responding sub-module 733 may be at least partially implemented as a computer program module, which when executed, may perform a corresponding function.
Fig. 9 schematically shows a block diagram of an electronic device 900 adapted to implement the above described method according to an embodiment of the present disclosure. The computer system illustrated in FIG. 9 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the disclosure.
As shown in fig. 9, electronic device 900 includes baseboard management controller 910, computer-readable storage medium 920, and motherboard 930. The electronic device 900 may perform a method according to an embodiment of the disclosure.
Baseboard management controller 910 receives an access request to a virtual machine, determines a data interface associated with the virtual machine based on the access request, wherein the data interface includes a first interface on a motherboard and a second interface on the baseboard management controller, the first interface and the second interface are communicatively connected, and responds to the access request through the data interface.
According to an embodiment of the present disclosure, the data interface includes a universal serial bus interface.
According to the embodiment of the disclosure, the substrate management controller responds to the access request through the data interface, including converting the signal format of the universal serial bus interface into a serial port signal format, packaging the serial port signal format into an IPMI protocol packet, and responding to the access request based on the IPMI protocol packet.
In particular, baseboard management controller 910 can include, for example, a general purpose microprocessor, an instruction set processor and/or related chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. Baseboard management controller 910 can also include on-board memory for caching purposes. Baseboard management controller 910 can be a single processing unit or multiple processing units for performing different actions of a method flow according to embodiments of the present disclosure.
Computer-readable storage medium 920 may be, for example, any medium that can contain, store, communicate, propagate, or transport the instructions. For example, a readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. Specific examples of the readable storage medium include: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and/or wired/wireless communication links.
The computer-readable storage medium 920 may include a computer program 921, which computer program 921 may include code/computer-executable instructions that, when executed by the baseboard management controller 910, cause the baseboard management controller 910 to perform a method according to an embodiment of the present disclosure, or any variation thereof.
The computer program 921 may be configured with, for example, computer program code comprising computer program modules. For example, in an example embodiment, code in computer program 921 may include one or more program modules, including 921A, modules 921B, … …, for example. It should be noted that the dividing manner and number of modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, when these program modules are executed by the baseboard management controller 910, the baseboard management controller 910 may execute the method according to the embodiment of the present disclosure or any variation thereof.
According to an embodiment of the present disclosure, baseboard management controller 910 can interact with motherboard 930 to perform a method according to an embodiment of the present disclosure or any variation thereof.
According to an embodiment of the present invention, at least one of the receiving module 710, the determining module 720, the responding module 730, the converting sub-module 731, the encapsulating sub-module 732, and the responding sub-module 733 may be implemented as computer program modules described with reference to fig. 9, which when executed by the baseboard management controller 910, may implement the corresponding operations described above.
The present disclosure also provides a computer-readable medium, which may be embodied in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable medium carries one or more programs which, when executed, perform the methods according to embodiments of the present disclosure, or any variations thereof.
According to embodiments of the present disclosure, a computer readable medium may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, optical fiber cable, radio frequency signals, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
While the disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents. Accordingly, the scope of the present disclosure should not be limited to the above-described embodiments, but should be defined not only by the appended claims, but also by equivalents thereof.

Claims (4)

1. A method of communication, comprising:
receiving an access request to a virtual machine through a baseboard management controller;
determining, based on the access request, a data interface associated with the virtual machine, the data interface comprising a universal serial bus interface, wherein the data interface comprises a first interface on a motherboard and a second interface on the baseboard management controller, the first interface and the second interface being communicatively connected; and
responding to the access request through the data interface, wherein the method comprises the following steps:
converting the signal format of the universal serial bus interface into a serial port signal format;
packaging the serial port signal format into an IPMI protocol packet; and
and responding to the access request based on the IPMI protocol packet.
2. An electronic device, comprising:
a main board;
a baseboard management controller; and
a memory having computer readable instructions stored thereon that, when executed by a baseboard management controller, cause the baseboard management controller to:
receiving an access request to a virtual machine;
determining, based on the access request, a data interface associated with the virtual machine, the data interface comprising a universal serial bus interface, wherein the data interface comprises a first interface on a motherboard and a second interface on the baseboard management controller, the first interface and the second interface being communicatively connected; and
responding to the access request through the data interface, wherein the method comprises the following steps:
converting the signal format of the universal serial bus interface into a serial port signal format;
packaging the serial port signal format into an IPMI protocol packet; and
and responding to the access request based on the IPMI protocol packet.
3. A communication system, comprising:
the receiving module is used for receiving an access request to the virtual machine through the baseboard management controller;
a determining module, configured to determine, based on the access request, a data interface associated with the virtual machine, where the data interface includes a universal serial bus interface, where the data interface includes a first interface on a motherboard and a second interface on the baseboard management controller, and the first interface and the second interface are communicably connected; and
a response module, configured to respond to the access request through the data interface, where the response module includes:
the conversion submodule is used for converting the signal format of the universal serial bus interface into a serial port signal format;
the packaging submodule is used for packaging the serial port signal format into an IPMI protocol packet; and
and the response submodule is used for responding to the access request based on the IPMI protocol packet.
4. A computer readable medium having stored thereon executable instructions that, when executed, cause a processor to perform the method of claim 1.
CN201810286896.2A 2018-04-02 2018-04-02 Communication method and electronic device Active CN108491347B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810286896.2A CN108491347B (en) 2018-04-02 2018-04-02 Communication method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810286896.2A CN108491347B (en) 2018-04-02 2018-04-02 Communication method and electronic device

Publications (2)

Publication Number Publication Date
CN108491347A CN108491347A (en) 2018-09-04
CN108491347B true CN108491347B (en) 2021-04-13

Family

ID=63317720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810286896.2A Active CN108491347B (en) 2018-04-02 2018-04-02 Communication method and electronic device

Country Status (1)

Country Link
CN (1) CN108491347B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11442767B2 (en) * 2020-02-27 2022-09-13 Hewlett Packard Enterprise Development Lp Virtual serial ports for virtual machines
CN112866061A (en) * 2021-01-26 2021-05-28 浪潮电子信息产业股份有限公司 NCSI (network control information system) testing method, device, equipment and medium of onboard network port
CN113076567B (en) * 2021-04-13 2023-07-25 浪潮电子信息产业股份有限公司 Communication management method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533375A (en) * 2008-03-10 2009-09-16 联想(北京)有限公司 USB equipment accessing method, device and control system thereof in virtual machine system
CN104410606A (en) * 2014-10-31 2015-03-11 国云科技股份有限公司 Server access method for application IPMI protocol
CN105224487A (en) * 2015-09-28 2016-01-06 广州炫智电子科技有限公司 A kind of all-in-one and control method thereof with virtual touch shortcut
CN105635184A (en) * 2016-03-22 2016-06-01 青岛海信宽带多媒体技术有限公司 Communication protocol conversion method, device and system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882698B (en) * 2011-07-14 2016-08-03 鸿富锦精密工业(深圳)有限公司 virtual machine management method and system
CN103136083A (en) * 2011-11-29 2013-06-05 鸿富锦精密工业(深圳)有限公司 Test device and test method of universal serial bus
CN102523264B (en) * 2011-12-06 2014-07-02 北京航空航天大学 USB (Universal Serial Bus) equipment remote sharing method and system for virtual machine
CN102880533A (en) * 2012-07-11 2013-01-16 曙光信息产业(北京)有限公司 Baseboard management control device
CN102983989B (en) * 2012-11-07 2015-07-08 华为技术有限公司 Removing method, device and equipment of server virtual address
CN106933753B (en) * 2015-12-31 2020-04-21 华为技术有限公司 Control method and device of intelligent interface card
CN107357743A (en) * 2017-07-28 2017-11-17 郑州云海信息技术有限公司 A kind of method and device for controlling USB device
CN108170518B (en) * 2018-01-10 2022-07-26 联想(北京)有限公司 Server management control system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533375A (en) * 2008-03-10 2009-09-16 联想(北京)有限公司 USB equipment accessing method, device and control system thereof in virtual machine system
CN104410606A (en) * 2014-10-31 2015-03-11 国云科技股份有限公司 Server access method for application IPMI protocol
CN105224487A (en) * 2015-09-28 2016-01-06 广州炫智电子科技有限公司 A kind of all-in-one and control method thereof with virtual touch shortcut
CN105635184A (en) * 2016-03-22 2016-06-01 青岛海信宽带多媒体技术有限公司 Communication protocol conversion method, device and system

Also Published As

Publication number Publication date
CN108491347A (en) 2018-09-04

Similar Documents

Publication Publication Date Title
US9400671B2 (en) Computer host with a baseboard management controller to manage virtual machines
CN108491347B (en) Communication method and electronic device
CN108768730B (en) Method and device for operating intelligent network card
US9477501B2 (en) Encapsulation of an application for virtualization
TWI613548B (en) Computing device-implemented method for remote platform management, non-transitory medium holding computer-exexutable instructions for remote platform management, and remotely managed computing device
CN103530167A (en) Virtual machine memory data migration method and relevant device and cluster system
JP2012530295A (en) Method, apparatus, and program for monitoring computer activity of a plurality of virtual computing devices
US10810024B2 (en) Redirection method and apparatus, and system
CN107278294B (en) Input device implementation method and implementation device thereof
CN104021069A (en) Management method and system for software performance test based on distributed virtual machine system
CN105556473A (en) I/O task processing method, device and system
CA2893001C (en) Dynamic licensing
CN114691286A (en) Server system, virtual machine creation method and device
US9804992B2 (en) Computer system and method for accessing virtual machine
CN101739284B (en) Computer and information processing method
US10404530B2 (en) Configurable AEN notification
KR101269416B1 (en) Account management system for broadcasting receivers using android platform
US9282062B2 (en) Providing I2C bus over Ethernet
CN104615934B (en) SQL injection attack safety protection method and system
US9996373B1 (en) Avoiding overloading of network adapters in virtual environments
Suzuki et al. Device-level IoT with virtual I/O device interconnection
CN111752906A (en) Request response method, device and system, computer system and readable storage medium
CN107533528B (en) Data channel allocation
CN111143265B (en) Data transmission method and device based on virtual machine
US8095715B1 (en) SCSI HBA management using logical units

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