CN111371885A - Method, device, equipment and medium for transmitting file to VMWare virtual machine - Google Patents

Method, device, equipment and medium for transmitting file to VMWare virtual machine Download PDF

Info

Publication number
CN111371885A
CN111371885A CN202010132887.5A CN202010132887A CN111371885A CN 111371885 A CN111371885 A CN 111371885A CN 202010132887 A CN202010132887 A CN 202010132887A CN 111371885 A CN111371885 A CN 111371885A
Authority
CN
China
Prior art keywords
virtual machine
file
vmware virtual
vmware
http rest
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010132887.5A
Other languages
Chinese (zh)
Other versions
CN111371885B (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010132887.5A priority Critical patent/CN111371885B/en
Publication of CN111371885A publication Critical patent/CN111371885A/en
Priority to PCT/CN2020/118344 priority patent/WO2021169285A1/en
Application granted granted Critical
Publication of CN111371885B publication Critical patent/CN111371885B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • 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/45587Isolation or security of virtual machine instances
    • 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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for transmitting files to a VMWare virtual machine, which comprises the following steps: creating a first HTTP REST interface for the VMWare virtual machine, wherein the first HTTP REST interface is used for writing external files into the VMWare virtual machine; packaging a second HTTP REST interface for the NOVNC agent program, and calling the first HTTP REST interface by the second HTTP REST interface to transmit the file stream; establishing an uploading file node on a display interface of the NOVNC, and transmitting a file to be transmitted to an agent program by the NOVNC through the uploading file node in a file stream mode; and enabling the agent program to transmit the file to the VMWare virtual machine in a file flow mode through the second HTTP REST interface and the first HTTP REST interface. The invention also discloses a device, equipment and a medium. The invention can transmit files to the VMWare virtual machine under the condition of not invading the virtual machine.

Description

Method, device, equipment and medium for transmitting file to VMWare virtual machine
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for transmitting a file to a VMWare virtual machine.
Background
There are many methods for transferring files to a virtual machine in the industry: the method 1, install such 3 rd side software supporting FTP, HTTP agreement in the virtual machine by user oneself, through 3 rd side software provided visit customer end, transmit the file to the virtual machine, this kind of scheme needs to go to operate by user oneself completely, the operation step is relatively troublesome; mode 2, if the user virtual machine is a Linux system, the files are uploaded to the virtual machine through an SSH (secure Shell) protocol by using software similar to XShell generally; for windows, files are generally copied through a file sharing protocol SMB/CIFS or a remote desktop of a RDB protocol of windows; in either of these two methods, the user is required to download the 3 rd party software after the virtual machine is installed, and perform some configuration manually in the virtual machine. And 3, writing a small program, placing the small program in the virtual machine, providing an access interface in an HTTP mode for the program, receiving an external file and converting the external file into a file stream to be written into a local disk of the virtual machine by the program, wherein the mode has higher invasiveness for the client virtual machine.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a design scheme for implementing file transfer to a VMWare virtual machine through a VNC console by extending a NOVNC and a websocket agent thereof.
Based on the above object, an aspect of the present invention provides a method for transferring a file to a VMWare virtual machine, where the method includes:
creating a first HTTPREST interface for the VMWare virtual machine, wherein the first HTTPREST interface is used for writing external files into the VMWare virtual machine;
packaging a second HTTP REST interface for an agent program of the NOVNC, and calling the first HTTP REST interface to transmit file streams by the second HTTP REST interface;
establishing an uploading file node on a display interface of the NOVNC, and transmitting a file to be transmitted to the agent program by the NOVNC through the uploading file node in a file stream mode;
causing the agent to file-stream the file to the VMWare virtual machine through the second HTTP REST interface and the first HTTP REST interface.
In some embodiments of the present method of transferring files to a VMWare virtual machine, creating a first HTTP REST interface for the VMWare virtual machine for writing external files into the VMWare virtual machine further comprises:
and the first HTTP REST interface calls an SDK interface provided by the VMWare virtual machine to realize writing of the external file into the VMWare virtual machine.
In some embodiments of the method of the present invention for transferring files to VMWare virtual machines, the proxy of the NOVNC is websocket.
In some embodiments of the present invention, a method of transferring files to a VMWare virtual machine further comprises:
and installing VMWare Tools in the VMWare virtual machine, and creating the first HTTP REST interface for the VMWare virtual machine through a file writing node in the VMWare Tools.
In some embodiments of the present method of transferring files to a VMWare virtual machine, causing an agent to stream the files to the VMWare virtual machine through the second HTTP REST interface and the first HTTP REST interface further comprises:
and the agent program calls the first HTTP REST interface, transmits the file to a file writing node of the VMWare Tools, and writes the file into the VMWare virtual machine in a streaming manner by the file writing node.
In another aspect of the embodiments of the present invention, a device for transmitting a file to a VMWare virtual machine is further provided, where the device includes:
a write interface module configured to create a first HTTP REST interface for a VMWare virtual machine for writing an external file into the VMWare virtual machine;
the interface calling module is configured to package a second HTTP REST interface for an agent program of the NOVNC, and the second HTTP REST interface calls the first HTTP REST interface to transmit the file stream;
the file uploading module is configured to create an uploading file node on a display interface of the NOVNC, and the NOVNC transmits a file to be transmitted to the agent program in a file stream mode through the uploading file node;
a file delivery module configured to cause the agent to deliver the file to the VMWare virtual machine in a file stream via the second HTTP EST interface and the first HTTP REST interface.
In some embodiments of the present apparatus for transferring files to a VMWare virtual machine, the write interface module is further configured to:
and the first HTTP REST interface calls an SDK interface provided by the VMWare virtual machine to realize writing of the external file into the VMWare virtual machine.
In some embodiments of the present invention, an apparatus for transferring a file to a VMWare virtual machine, the apparatus further comprises:
a tool installation module configured to install VMWare Tools in the VMWare virtual machine, the first HTTPREST interface being created for the VMWare virtual machine by a file write node in the VMWare Tools.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including:
at least one processor; and
a memory storing a computer program operable on the processor, the processor executing the program to perform the aforementioned method of transferring files to the VMWare virtual machine.
In another aspect of the embodiments of the present invention, a computer-readable storage medium is further provided, where a computer program is stored, and the computer program is executed by a processor to perform the foregoing method for transferring a file to a VMWare virtual machine.
The invention has at least the following beneficial technical effects: the invention can transmit files to the VMWare virtual machine without installing the 3 rd party agent program in the virtual machine or installing the 3 rd party software by a user and without any invasion to the virtual machine.
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 only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 shows a schematic block diagram of an embodiment of a method of transferring files to a VMWare virtual machine in accordance with the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it is understood that "first" and "second" are only used for convenience of description and should not be construed as limiting the embodiments of the present invention, and the descriptions thereof in the following embodiments are omitted.
In view of the above object, a first aspect of the embodiments of the present invention provides an embodiment of a method for transferring a file to a VMWare virtual machine. Fig. 1 is a schematic diagram illustrating an embodiment of a method for transferring a file to a VMWare virtual machine according to the present invention. In the embodiment shown in fig. 1, the method comprises at least the following steps:
s100, creating a first HTTPREST interface for the VMWare virtual machine, wherein the first HTTPREST interface is used for writing external files into the VMWare virtual machine;
s200, packaging a second HTTP REST interface for the NOVNC agent program, and calling the first HTTP REST interface to transmit file streams through the second HTTP REST interface;
s300, creating an uploading file node on a display interface of the NOVNC, and transmitting a file to be transmitted to an agent program by the NOVNC through the uploading file node in a file stream mode;
and S400, enabling the agent program to transmit the file to the VMWare virtual machine in a file stream mode through the second HTTP REST interface and the first HTTP REST interface.
In some embodiments of the invention, the specific steps are as follows: providing a first HTTP REST interface for writing a file, and writing an external file into the virtual machine; modifying a WebSockify of the NOVNC agent program, encapsulating a second HTTP REST interface, and calling the first HTTP REST interface to transmit the file stream by the interface; and modifying NOVNC (VNC WEB client) and providing a button for uploading files on the display interface. After a user clicks a file uploading button, the NOVNC calls a NOVNC proxy websocket, a file is transmitted to a proxy program websocket in a file stream mode, the websocket calls a first HTTP REST interface provided by the websocket, and the file stream is written into the VMWare virtual machine in a stream mode through an SDK interface provided by the VMWare and used for injecting the file.
According to some embodiments of the method of transferring files to a VMWare virtual machine of the present invention, creating a first HTTP REST interface for the VMWare virtual machine for writing external files into the VMWare virtual machine further comprises:
and calling an SDK interface provided by the VMWare virtual machine by the first HTTP REST interface to realize writing of external files into the VMWare virtual machine.
In some embodiments of the invention, the SDK interface is provided by VMWare authorities to enable writing external files into the virtual machine.
According to some embodiments of the method of transferring files to VMWare virtual machines of the present invention, the proxy of the NOVNC is websocket.
In some embodiments of the present invention, the NOVNC is a VNC WEB client implemented based on HTML5, and is implemented by HTML 5WebSockets, Canvas, and JavaScript, and the NOVNC is currently and widely used in an access UI of a virtual machine console of each large cloud computing vendor. NOVNC is realized by Websockets, but at present, most VNC servers do not support Websockets, so that NOVNC cannot be directly connected with VNC servers, and conversion between Websockets and TCP sockets is performed through a websocket of the NOVNC.
According to some embodiments of the method of transferring files to a VMWare virtual machine of the present invention, the method further comprises:
and installing VMWare Tools in the VMWare virtual machine, and creating a first HTTP REST interface for the VMWare virtual machine through a file writing node in the VMWare Tools.
In some embodiments of the present invention, the VMWARE tools are enhancement tools that the virtual machine carries, including: device drivers in the virtual machine, folder sharing between the real machine and the virtual machine, plug-ins for developing functions and the like. In some embodiments of the present invention, development of some functions and the like is performed by installing VMWare Tools in the VMWare virtual machine.
According to some embodiments of the method of transferring files to a VMWare virtual machine of the present invention, causing the agent to stream files to the VMWare virtual machine through the second HTTP REST interface and the first HTTP REST interface further comprises:
and the agent program calls a first HTTP REST interface, transfers the file to a file writing node of the VMWare Tools, and writes the file into the VMWare virtual machine in a streaming mode by the file writing node.
In some embodiments of the present invention, the VMWare Tools includes a file writing node, and a HTTP REST interface (first HTTP REST interface) for writing a file may be provided by the file writing node, and the file may be written into the VMWare virtual machine in a streaming manner by the file writing node.
In another aspect of the embodiments of the present invention, an embodiment of an apparatus for transferring a file to a VMWare virtual machine is provided. The device includes:
the write interface module is configured to create a first HTTP REST interface for the VMWare virtual machine, wherein the first HTTP REST interface is used for writing external files into the VMWare virtual machine;
the interface calling module is configured to package a second HTTP REST interface for the NOVNC agent program, and the second HTTP REST interface calls the first HTTP REST interface to transmit the file stream;
the file uploading module is configured to create an uploading file node on a display interface of the NOVNC, and the NOVNC transmits a file to be transmitted to the agent program in a file stream mode through the uploading file node;
and the file transfer module is configured to enable the agent program to transfer the file to the VMWare virtual machine in a file stream mode through the second HTTP REST interface and the first HTTP REST interface.
According to some embodiments of the apparatus to transfer a file to a VMWare virtual machine of the present invention, the write interface module is further configured to:
and calling an SDK interface provided by the VMWare virtual machine by the first HTTP REST interface to realize writing of external files into the VMWare virtual machine.
According to some embodiments of the apparatus for transferring files to a VMWare virtual machine of the present invention, the apparatus further comprises:
the tool installation module is configured to install VMWare Tools in the VMWare virtual machine, and a first HTTP REST interface is created for the VMWare virtual machine through a file writing node in the VMWare Tools.
In view of the above object, another aspect of the embodiments of the present invention further provides a computer device, including: at least one processor; and a memory storing a computer program operable on the processor, the processor executing the program to perform the aforementioned method of transferring files to the VMWare virtual machine.
In another aspect of the embodiments of the present invention, a computer-readable storage medium is further provided, where a computer program is stored, and the computer program is executed by a processor to perform the foregoing method for transferring a file to a VMWare virtual machine.
Likewise, those skilled in the art will appreciate that all of the embodiments, features and advantages set forth above with respect to the method of transferring files to a VMWare virtual machine according to the present invention apply equally to the apparatus, computer device and medium according to the present invention. For the sake of brevity of the present disclosure, no repeated explanation is provided herein.
It should be particularly noted that, the steps in the embodiments of the method, apparatus, device and medium for transferring a file to a VMWare virtual machine described above may be mutually intersected, replaced, added or deleted, and therefore, the method, apparatus, device and medium for transferring a file to a VMWare virtual machine should also belong to the scope of the present invention, and should not limit the scope of the present invention to the embodiments.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes of the methods of the above embodiments can be implemented by a computer program to instruct related hardware, and the program of the method for transferring files to the VMWare virtual machine can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the methods disclosed according to embodiments of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method of transferring files to a VMWare virtual machine, the method comprising:
creating a first HTTP REST interface for the VMWare virtual machine, wherein the first HTTP REST interface is used for writing external files into the VMWare virtual machine;
packaging a second HTTP REST interface for an agent program of the NOVNC, and calling the first HTTP REST interface to transmit file streams by the second HTTP REST interface;
creating an uploading file node on a display interface of the NOVNC, and transmitting a file to be transmitted to the agent program in a file stream mode through the uploading file node by the NOVNC;
causing the agent to file-stream the file to the VMWare virtual machine through the second HTTP REST interface and the first HTTP REST interface.
2. The method of transferring files to a VMWare virtual machine in accordance with claim 1, wherein creating a first HTTP REST interface for the VMWare virtual machine for writing external files into the VMWare virtual machine further comprises:
and the first HTTP REST interface calls an SDK interface provided by the VMWare virtual machine to realize writing of the external file into the VMWare virtual machine.
3. The method of transferring files to a VMWare virtual machine of claim 1, wherein the agent of the NOVNC is websocks.
4. The method of transferring files to a VMWare virtual machine in accordance with claim 1, the method further comprising:
and installing VMWare Tools in the VMWare virtual machine, and creating the first HTTP REST interface for the VMWare virtual machine through a file writing node in the VMWare Tools.
5. The method of transferring a file to a VMWare virtual machine of claim 1, wherein causing the agent to file stream the file to the VMWare virtual machine through the second HTTP REST interface and the first HTTP REST interface further comprises:
and the agent program calls the first HTTP REST interface, transmits the file to a file writing node of the VMWare Tools, and writes the file into the VMWare virtual machine in a streaming manner by the file writing node.
6. An apparatus for transferring files to a VMWare virtual machine, the apparatus comprising:
a write interface module configured to create a first HTTP REST interface for a VMWare virtual machine for writing an external file into the VMWare virtual machine;
the interface calling module is configured to package a second HTTP REST interface for an agent program of the NOVNC, and the second HTTP REST interface calls the first HTTP REST interface to transmit the file stream;
the file uploading module is configured to create an uploading file node on a display interface of the NOVNC, and the NOVNC transmits a file to be transmitted to the agent program in a file stream mode through the uploading file node;
a file transfer module configured to cause the agent to transfer the file to the VMWare virtual machine in a file stream via the second HTTP REST interface and the first HTTP REST interface.
7. The apparatus for transferring files to a VMWare virtual machine of claim 6, wherein the write interface module is further configured to:
and the first HTTP REST interface calls an SDK interface provided by the VMWare virtual machine to realize writing of the external file into the VMWare virtual machine.
8. The apparatus for transferring files to a VMWare virtual machine in accordance with claim 6, wherein the apparatus further comprises:
a tool installation module configured to install VMWare Tools in the VMWare virtual machine, the first HTTP REST interface being created for the VMWare virtual machine by a file write node in the VMWare Tools.
9. A computer device, comprising:
at least one processor; and
memory storing a computer program operable on the processor, wherein the processor, when executing the program, performs the method of any of claims 1-5.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 5.
CN202010132887.5A 2020-02-29 2020-02-29 Method, device, equipment and medium for transmitting file to VMWare virtual machine Active CN111371885B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010132887.5A CN111371885B (en) 2020-02-29 2020-02-29 Method, device, equipment and medium for transmitting file to VMWare virtual machine
PCT/CN2020/118344 WO2021169285A1 (en) 2020-02-29 2020-09-28 Method and apparatus for transferring file to vmware virtual machine, device, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010132887.5A CN111371885B (en) 2020-02-29 2020-02-29 Method, device, equipment and medium for transmitting file to VMWare virtual machine

Publications (2)

Publication Number Publication Date
CN111371885A true CN111371885A (en) 2020-07-03
CN111371885B CN111371885B (en) 2022-02-18

Family

ID=71211684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010132887.5A Active CN111371885B (en) 2020-02-29 2020-02-29 Method, device, equipment and medium for transmitting file to VMWare virtual machine

Country Status (2)

Country Link
CN (1) CN111371885B (en)
WO (1) WO2021169285A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021169285A1 (en) * 2020-02-29 2021-09-02 苏州浪潮智能科技有限公司 Method and apparatus for transferring file to vmware virtual machine, device, and medium
CN113472878A (en) * 2021-06-29 2021-10-01 烽火通信科技股份有限公司 Method and device for realizing file dragging transmission in VNC by using browser plug-in

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130138783A1 (en) * 2011-11-28 2013-05-30 Wyse Technology Inc. Deployment and updating of applications and drivers on a client device using an extensible markup language (xml) configuration file
CN103200215A (en) * 2012-01-08 2013-07-10 佳都新太科技股份有限公司 Method achieving XenServer virtual machine remote control on https
US8589683B2 (en) * 2009-10-27 2013-11-19 Red Hat, Inc. Authentication of a secure virtual network computing (VNC) connection
CN103795759A (en) * 2012-10-31 2014-05-14 北京搜狐新媒体信息技术有限公司 Method and system for scheduling virtual machine mirror image file
CN104199683A (en) * 2014-08-07 2014-12-10 杭州华三通信技术有限公司 ISO mirror image document loading method and device
CN105338048A (en) * 2014-08-13 2016-02-17 北京云端时代科技有限公司 File transmission method and system under virtual desktop infrastructure
CN105933415A (en) * 2016-04-21 2016-09-07 国家计算机网络与信息安全管理中心 Virtual machine online screen record method in cloud computing environment based on VNC agent and virtual machine online screen record system thereof
CN107193634A (en) * 2017-05-23 2017-09-22 郑州云海信息技术有限公司 The access method and device of a kind of virtual machine
CN108512928A (en) * 2018-04-08 2018-09-07 上海微穹信息科技有限公司 Cloud virtual machine and its file management method, system, virtual machine thin-client
WO2019080010A1 (en) * 2017-10-25 2019-05-02 深圳市互盟科技股份有限公司 Cloud computing-based virtual machine control system and method therefor
CN109743293A (en) * 2018-12-13 2019-05-10 烽台科技(北京)有限公司 The access method and network target range system, computer storage medium in network target range

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8572162B2 (en) * 2008-12-01 2013-10-29 Novell, Inc. Adaptive screen painting to enhance user perception during remote management sessions
CN103281306B (en) * 2013-05-03 2016-02-24 四川省电力公司信息通信公司 Cloud data center virtualization base platform
CN106027629A (en) * 2016-05-13 2016-10-12 北京思特奇信息技术股份有限公司 Automatic cloud service provisioning method and system
CN107634892A (en) * 2017-09-08 2018-01-26 郑州云海信息技术有限公司 A kind of Xenserver realizes the method and device of console based on novnc
CN109194742B (en) * 2018-09-04 2021-07-02 郑州云海信息技术有限公司 Virtual machine console connection method and device and storage medium
CN111371885B (en) * 2020-02-29 2022-02-18 苏州浪潮智能科技有限公司 Method, device, equipment and medium for transmitting file to VMWare virtual machine

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8589683B2 (en) * 2009-10-27 2013-11-19 Red Hat, Inc. Authentication of a secure virtual network computing (VNC) connection
US20130138783A1 (en) * 2011-11-28 2013-05-30 Wyse Technology Inc. Deployment and updating of applications and drivers on a client device using an extensible markup language (xml) configuration file
CN103200215A (en) * 2012-01-08 2013-07-10 佳都新太科技股份有限公司 Method achieving XenServer virtual machine remote control on https
CN103795759A (en) * 2012-10-31 2014-05-14 北京搜狐新媒体信息技术有限公司 Method and system for scheduling virtual machine mirror image file
CN104199683A (en) * 2014-08-07 2014-12-10 杭州华三通信技术有限公司 ISO mirror image document loading method and device
CN105338048A (en) * 2014-08-13 2016-02-17 北京云端时代科技有限公司 File transmission method and system under virtual desktop infrastructure
CN105933415A (en) * 2016-04-21 2016-09-07 国家计算机网络与信息安全管理中心 Virtual machine online screen record method in cloud computing environment based on VNC agent and virtual machine online screen record system thereof
CN107193634A (en) * 2017-05-23 2017-09-22 郑州云海信息技术有限公司 The access method and device of a kind of virtual machine
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 深圳市互盟科技股份有限公司 Virtual machine control system and its method based on cloud computing
CN108512928A (en) * 2018-04-08 2018-09-07 上海微穹信息科技有限公司 Cloud virtual machine and its file management method, system, virtual machine thin-client
CN109743293A (en) * 2018-12-13 2019-05-10 烽台科技(北京)有限公司 The access method and network target range system, computer storage medium in network target range

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
OSC_22TO9SE2: "通过noVNC和websockify连接到QEMU/KVM 转", 《开源博客HTTPS://MY.OSCHINA.NET/U/4288583/BLOG/3413806》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021169285A1 (en) * 2020-02-29 2021-09-02 苏州浪潮智能科技有限公司 Method and apparatus for transferring file to vmware virtual machine, device, and medium
CN113472878A (en) * 2021-06-29 2021-10-01 烽火通信科技股份有限公司 Method and device for realizing file dragging transmission in VNC by using browser plug-in

Also Published As

Publication number Publication date
CN111371885B (en) 2022-02-18
WO2021169285A1 (en) 2021-09-02

Similar Documents

Publication Publication Date Title
WO2021184824A1 (en) Application program interface gateway based method for separating front and back ends and related device
CN114008994B (en) Method and system for proxy server to receive request from client to network server and response from network server to client corresponding to the request
US10148727B2 (en) Methods and systems for an end-to-end solution to deliver content in a network
US20180121257A1 (en) Usb device redirection for remote systems
CN110198334B (en) Access method and device based on object storage service and storage medium
US8984164B2 (en) Methods for reducing latency in network connections and systems thereof
US20050278418A1 (en) System and method for use of multiple applications
CN111371885B (en) Method, device, equipment and medium for transmitting file to VMWare virtual machine
CN110427342B (en) Method, equipment and readable medium for creating mirror library
CN103124275A (en) Method and device of obtaining files
JP6967074B2 (en) Protecting your web server from malicious client applications
JP2017041232A (en) Character transmission method, computer program, and character transmission system
CN109446093B (en) Method and device for testing expansion platform interface
US20160191296A1 (en) Methods and systems for an end-to-end solution to deliver content in a network
WO2020063607A1 (en) Application client launch method, service server, and client device
JP2017511511A (en) Screen content transmission and display
CN104036194A (en) Vulnerability detection method and device for revealing private data in application program
CN111857747A (en) Method, system, device and medium for installing database based on OpenStack cloud host
CN111309264B (en) Method, system, device and medium for making directory quota compatible with snapshot
CN110659035A (en) Method and device for batch mounting of mirror images based on BMC
CN110677443A (en) Data transmitting and receiving method, transmitting end, receiving end, system and storage medium
Sarker et al. Learning Python Network Programming
CN116208676A (en) Data back-source method, device, computer equipment, storage medium and program product
CN112714199B (en) Courseware loading method and system and electronic equipment
CN111858314A (en) Method, system, device and medium for state management of vue

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