Data transmission method, device and equipment and readable storage medium

By generating a virtual device on the KVM client and using an automatic script to synchronize the host operating system's clipboard with the virtual device storage area, the problem of low KVM/VMM data transmission efficiency is solved, and fast and easy file transfer is achieved.

CN120675985APending Publication Date: 2025-09-19XINHUASAN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510724374.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-30
Publication Date
2025-09-19

AI Technical Summary

Technical Problem

In the existing technology, the KVM/VMM data transmission method is inefficient. Users need to manually create virtual media and mount them. The technical threshold is high and there are operating system compatibility issues.

Method used

The KVM client responds to specific instructions to generate a virtual device mounted on the host operating system, and uses automatic execution scripts to synchronize data between the host operating system clipboard and the virtual device storage area, simplifying the file transfer process.

Benefits of technology

It improves the efficiency of data transmission and reduces the difficulty of operation, making file copying quick and easy, and is suitable for scenarios such as daily operation and maintenance and configuration management of servers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120675985A_ABST
    Figure CN120675985A_ABST
Patent Text Reader

Abstract

The invention provides a data transmission method, device and equipment and a readable storage medium, and the method comprises the steps: responding to a specific user instruction, and generating specific virtual equipment mounted on a host operating system; writing an automatic execution script in the specific virtual device; and according to the specific user instruction, writing the to-be-transmitted data into the specific storage area of the specific virtual equipment in advance, or obtaining the to-be-transmitted data from the specific storage area of the specific virtual equipment. By means of the technical scheme, the file transmission process between the Host and the Client is simplified, a user can complete fast data transmission only through simple operation, the working efficiency is greatly improved, the operation difficulty is reduced, and file copy data transmission becomes fast, simple and convenient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of communication technology, and in particular to a data transmission method, apparatus, device, and readable storage medium. Background Art

[0002] In the field of server management and maintenance, the KVM (keyboard, video, mouse) and VMM (virtual multimedia) functions of the BMC (baseboard management controller) play a crucial role. These functions enable operations and maintenance personnel to effectively monitor the operating status of the server host operating system (OS) and perform necessary data transfer operations. In traditional KVM / VMM applications, copying files between the client PC and the server host operating system often requires users to go through a series of complex steps, which requires a high technical threshold.

[0003] Existing methods for data transfer via VMM rely on manually creating and mounting virtual media. While this method can accomplish the task, it is inefficient in practice. Because it involves multiple steps and relies on specific tools, users not only need to have certain technical knowledge but also spend additional time preparing and executing the entire process. Furthermore, given the potential for compatibility issues between different operating systems, this method can be inconvenient for users unfamiliar with the technical details. Summary of the Invention

[0004] In view of this, the present specification provides a data transmission method, apparatus, device and readable storage medium to improve the problem of cumbersome and inefficient data transmission operations between the host operating system and the KVM client.

[0005] The specific technical solutions are as follows:

[0006] This specification provides a data transmission method applied to a KVM client device, the method comprising: generating a specific virtual device mounted on a host operating system in response to a specific user instruction; the specific virtual device comprising a specific storage area for storing data to be transmitted; writing an automatic execution script in the specific virtual device, the automatic execution script being automatically executed by the host operating system to synchronize data between the clipboard of the host operating system and the specific storage area of ​​the specific virtual device; and writing the data to be transmitted to the specific storage area of ​​the specific virtual device in advance, or obtaining the data to be transmitted from the specific storage area of ​​the specific virtual device, according to the specific user instruction.

[0007] As a technical solution, generating a specific virtual device mounted on a host operating system in response to a specific user instruction includes: generating a virtual CD device mounted on the host operating system in response to a client copy instruction; writing the data to be transmitted into a specific storage area of ​​the specific virtual device in advance according to the specific user instruction, or obtaining the data to be transmitted from the specific storage area of ​​the specific virtual device, specifically: generating an image file of the data to be transmitted associated with the client copy instruction according to the client copy instruction, and mounting the image file on the virtual CD device; writing an automatic execution script in the specific virtual device, the automatic execution script being used to be automatically executed by the host operating system to synchronize the data of the host operating system's clipboard with the specific storage area of ​​the specific virtual device, including: pre-writing an automatic execution script in the image file mounted on the virtual CD device, the automatic execution script being used to be automatically executed by the host operating system after the image file is mounted on the virtual CD device, and loading the data to be transmitted in the image file into the clipboard of the host operating system; the data to be transmitted loaded in the clipboard being used to be stored in the host storage area by the host operating system in response to the host paste instruction.

[0008] As a technical solution, generating a specific virtual device mounted on a host operating system in response to a specific user instruction includes: generating a virtual read-only CD device mounted on the host operating system and generating a virtual HD device mounted on the host operating system in response to a client paste instruction; writing an automatic execution script in the specific virtual device, the automatic execution script being automatically executed by the host operating system, and synchronizing data between the host operating system's clipboard and a specific storage area of ​​the specific virtual device, including: generating and mounting an image file including the automatic execution script on the virtual read-only CD device, the automatic execution script being automatically executed by the host operating system after the image file is mounted on the virtual read-only CD device, and storing data to be transferred in the host operating system's clipboard to the virtual HD device, the data to be transferred being loaded to the clipboard by the host operating system in response to a host copy instruction; writing the data to be transferred in advance to the specific storage area of ​​the specific virtual device or obtaining the data to be transferred from the specific storage area of ​​the specific virtual device according to the specific user instruction, specifically: obtaining the data to be transferred from a storage area associated with the virtual HD device after the virtual HD device stores the data to be transferred according to the client paste instruction.

[0009] As a technical solution, generating a specific virtual device mounted on a host operating system in response to a specific user instruction includes: generating a virtual rewritable CD device mounted on the host operating system in response to a client paste instruction; writing an automatic execution script in the specific virtual device, the automatic execution script being automatically executed by the host operating system to synchronize data between the host operating system's clipboard and a specific storage area of ​​the specific virtual device, including: generating and mounting an image file including the automatic execution script on the virtual rewritable CD device, the automatic execution script being automatically executed by the host operating system after the image file is mounted on the virtual rewritable CD device, and writing the data to be transferred in the host operating system's clipboard to the image file mounted on the virtual rewritable CD device, the data to be transferred being loaded to the clipboard by the host operating system in response to a host copy instruction; and pre-writing the data to be transferred to the specific storage area of ​​the specific virtual device according to the specific user instruction, or obtaining the data to be transferred from the specific storage area of ​​the specific virtual device according to the specific user instruction, specifically: obtaining the data to be transferred from a storage area associated with the image file after the data to be transferred is written to the image file mounted on the virtual rewritable CD device according to the client paste instruction.

[0010] This specification also provides a data transmission device, which is applied to a KVM client device, and the device includes: a first module, which is used to generate a specific virtual device mounted on a host operating system in response to a specific user instruction; the specific virtual device includes a specific storage area for storing data to be transmitted; a second module is used to write an automatic execution script in the specific virtual device, and the automatic execution script is used to be automatically executed by the host operating system to synchronize the data in the clipboard of the host operating system and the specific storage area of ​​the specific virtual device; a third module is used to write the data to be transmitted to the specific storage area of ​​the specific virtual device in advance according to a specific user instruction, or to obtain the data to be transmitted from the specific storage area of ​​the specific virtual device.

[0011] As a technical solution, generating a specific virtual device mounted on a host operating system in response to a specific user instruction includes: generating a virtual CD device mounted on the host operating system in response to a client copy instruction; writing the data to be transmitted into a specific storage area of ​​the specific virtual device in advance according to the specific user instruction, or obtaining the data to be transmitted from the specific storage area of ​​the specific virtual device, specifically: generating an image file of the data to be transmitted associated with the client copy instruction according to the client copy instruction, and mounting the image file on the virtual CD device; writing an automatic execution script in the specific virtual device, the automatic execution script being used to be automatically executed by the host operating system to synchronize the data of the host operating system's clipboard with the specific storage area of ​​the specific virtual device, including: pre-writing an automatic execution script in the image file mounted on the virtual CD device, the automatic execution script being used to be automatically executed by the host operating system after the image file is mounted on the virtual CD device, and loading the data to be transmitted in the image file into the clipboard of the host operating system; the data to be transmitted loaded in the clipboard being used to be stored in the host storage area by the host operating system in response to the host paste instruction.

[0012] As a technical solution, generating a specific virtual device mounted on a host operating system in response to a specific user instruction includes: generating a virtual read-only CD device mounted on the host operating system and generating a virtual HD device mounted on the host operating system in response to a client paste instruction; writing an automatic execution script in the specific virtual device, the automatic execution script being automatically executed by the host operating system, and synchronizing data between the host operating system's clipboard and a specific storage area of ​​the specific virtual device, including: generating and mounting an image file including the automatic execution script on the virtual read-only CD device, the automatic execution script being automatically executed by the host operating system after the image file is mounted on the virtual read-only CD device, and storing data to be transferred in the host operating system's clipboard to the virtual HD device, the data to be transferred being loaded to the clipboard by the host operating system in response to a host copy instruction; writing the data to be transferred in advance to the specific storage area of ​​the specific virtual device or obtaining the data to be transferred from the specific storage area of ​​the specific virtual device according to the specific user instruction, specifically: obtaining the data to be transferred from a storage area associated with the virtual HD device after the virtual HD device stores the data to be transferred according to the client paste instruction.

[0013] As a technical solution, generating a specific virtual device mounted on a host operating system in response to a specific user instruction includes: generating a virtual rewritable CD device mounted on the host operating system in response to a client paste instruction; writing an automatic execution script in the specific virtual device, the automatic execution script being automatically executed by the host operating system to synchronize data between the host operating system's clipboard and a specific storage area of ​​the specific virtual device, including: generating and mounting an image file including the automatic execution script on the virtual rewritable CD device, the automatic execution script being automatically executed by the host operating system after the image file is mounted on the virtual rewritable CD device, and writing the data to be transferred in the host operating system's clipboard to the image file mounted on the virtual rewritable CD device, the data to be transferred being loaded to the clipboard by the host operating system in response to a host copy instruction; and pre-writing the data to be transferred to the specific storage area of ​​the specific virtual device according to the specific user instruction, or obtaining the data to be transferred from the specific storage area of ​​the specific virtual device according to the specific user instruction, specifically: obtaining the data to be transferred from a storage area associated with the image file after the data to be transferred is written to the image file mounted on the virtual rewritable CD device according to the client paste instruction.

[0014] This specification also provides an electronic device, including a processor and a readable storage medium, wherein the readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the aforementioned data transmission method.

[0015] This specification also provides a readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the aforementioned data transmission method.

[0016] The above technical solutions provided in this specification bring at least the following beneficial effects:

[0017] This technical solution automatically generates a virtual device mounted on the host operating system in response to specific commands on the KVM client. It then uses an automated script to synchronize data between the host operating system's clipboard and the virtual device's storage area. This method simplifies the file transfer process between the host and client, allowing users to quickly transfer data with simple operations. This significantly improves work efficiency and reduces operational complexity, making file copying and data transfer quick and easy. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the implementation methods of this specification or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the implementation methods of this specification or the description of the prior art. Obviously, the drawings described below are only some implementation methods recorded in this specification. For ordinary technicians in this field, other drawings can also be obtained based on these drawings of the implementation methods of this specification.

[0019] Figure 1 is a flow chart of a data transmission method in one embodiment of this specification;

[0020] Figure 2 is a schematic diagram of an interaction process in one embodiment of this specification;

[0021] Figure 3 is a schematic diagram of an interaction process in one embodiment of this specification;

[0022] Figure 4 is a structural diagram of a data transmission device in one embodiment of this specification;

[0023] Figure 5 This is a hardware structure diagram of an electronic device in one embodiment of this specification.

[0024] Reference numerals: first module 21 , second module 22 , third module 23 . DETAILED DESCRIPTION

[0025] The terms used in the embodiments of this specification are only for the purpose of describing specific embodiments and are not intended to limit this specification. The singular forms "a," "the," and "the" used in this specification and claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to any or all possible combinations of one or more of the associated listed items.

[0026] It should be understood that although the terms first, second, third, etc. may be used in the embodiments of this specification to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" may also be interpreted as "when...", "when...", or "in response to determining."

[0027] This specification provides a data transmission method, apparatus, device, and readable storage medium to at least improve one of the above technical problems.

[0028] The specific technical solution is described below.

[0029] In one embodiment, the present specification provides a data transmission method applied to a KVM client device, the method comprising: generating a specific virtual device mounted on a host operating system in response to a specific user instruction; the specific virtual device comprising a specific storage area for storing data to be transmitted; writing an automatic execution script in the specific virtual device, the automatic execution script being automatically executed by the host operating system to synchronize data between the clipboard of the host operating system and the specific storage area of ​​the specific virtual device; and writing the data to be transmitted to the specific storage area of ​​the specific virtual device in advance according to the specific user instruction, or obtaining the data to be transmitted from the specific storage area of ​​the specific virtual device.

[0030] Specifically, if Figure 1 , including the following steps:

[0031] Step S101 : generating a specific virtual device mounted on a host operating system in response to a specific user instruction.

[0032] Step S201: Write an automatic execution script into a specific virtual device. The automatic execution script is used to be automatically executed by the host operating system to synchronize the data of the clipboard of the host operating system with the data of the specific storage area of ​​the specific virtual device.

[0033] Step S202 : According to a specific user instruction, the data to be transmitted is pre-written into a specific storage area of ​​a specific virtual device, or the data to be transmitted is obtained from the specific storage area of ​​the specific virtual device.

[0034] According to different data transmission directions, such as from the KVM client to the host operating system, or from the host operating system to the KVM client, the order of executing steps S201 and S202 can be adjusted according to actual conditions.

[0035] In one embodiment, generating a specific virtual device mounted on the host operating system in response to a specific user instruction includes: generating a virtual CD device mounted on the host operating system in response to a client copy instruction; writing the data to be transmitted to a specific storage area of ​​the specific virtual device in advance, or obtaining the data to be transmitted from the specific storage area of ​​the specific virtual device in accordance with the specific user instruction, specifically: generating an image file of the data to be transmitted associated with the client copy instruction in accordance with the client copy instruction, and mounting the image file on the virtual CD device; writing an automatic execution script in the specific virtual device, the automatic execution script being used to be automatically executed by the host operating system to synchronize the data on the clipboard of the host operating system with the specific storage area of ​​the specific virtual device, includes: pre-writing an automatic execution script in the image file mounted on the virtual CD device, the automatic execution script being used to be automatically executed by the host operating system after the image file is mounted on the virtual CD device, and loading the data to be transmitted in the image file into the clipboard of the host operating system; the data to be transmitted loaded in the clipboard being used to be stored in the host storage area by the host operating system in response to the host paste instruction.

[0036] When transferring files from the KV client (Client PC) to the host operating system (Host OS), the operator selects the files or folders to be transferred on the Client PC. Then, the operator presses a specific shortcut key combination (e.g., Ctrl+Alt+C). The KVM client responds to this client copy instruction and begins generating a virtual CD device. This virtual CD device is not an actual physical disc, but rather a software-emulated storage device that can be recognized and mounted by the Host OS, just like a real CD drive.

[0037] Next, the KVM client generates an image file of the data to be transferred based on the client's copy instruction. This image file contains all the data in the files or folders selected by the operator on the client PC. For example, suppose the operator selects a configuration file named "config.txt" and a folder named "scripts" containing multiple script files. The KVM client packages these files and generates an ISO-formatted image file.

[0038] The KVM client mounts the image file onto the previously generated virtual CD device. Mounting is a critical step in data transmission, enabling the host operating system to access the contents of the virtual CD device as if it were a real CD. During this process, the KVM client ensures that the image file is correctly associated with the virtual CD device so that the host operating system can successfully read the data.

[0039] The KVM client also pre-writes an autorun script (autorun.sh) into the image file mounted on the virtual CD device. Once the image file is successfully mounted on the virtual CD device, the host OS automatically detects the device and attempts to execute the autorun script. The autorun script is written according to specific specifications to ensure it runs correctly in the host OS environment.

[0040] The main function of the auto-execution script is to load the data to be transferred from the image file into the host OS's clipboard. The script calls APIs or command-line tools provided by the host OS to read the file or folder data encapsulated in the image file and copy it to the clipboard. For example, in Linux, the script might use command-line tools such as "xclip" or "xsel" to operate the clipboard; in Windows, it might use the "clip" command or other similar tools. This successfully loads the data from the image file into the host OS's clipboard, ready for subsequent pasting operations.

[0041] When the operator presses a paste shortcut key such as "Ctrl+V" on the Host OS, the Host OS responds to the host's paste command and stores the data in the clipboard in the host's designated storage area. This storage area can be a folder, a document, or other application interface that supports data pasting. For example, the operator might open a new file in a text editor on the Host OS and press the paste key. At this point, the contents of the "config.txt" file in the clipboard will be pasted into the text editor for the operator to further view or edit. Alternatively, the operator can specify a target folder in the file explorer. After pasting, a new file will be generated in that folder with the same content as the file or folder selected on the Client PC.

[0042] This process greatly simplifies file transfers from the Client PC to the Host OS. Operations and maintenance personnel only need to select the file on the Client PC, press a shortcut key, and paste it on the Host OS to complete the operation. This eliminates tedious intermediate steps, improves work efficiency, and reduces the possibility of operational errors.

[0043] In practice, this data transmission method can be widely used in daily server operations, configuration management, and troubleshooting. For example, when updating server configurations, maintenance personnel can use this method to quickly transfer the new configuration file from the client PC to the host OS, replacing the old one. When collecting server logs for analysis, maintenance personnel can conveniently copy log files from the host OS to the client PC and conduct in-depth analysis using local analysis tools. These application scenarios fully demonstrate the practicality and efficiency of this data transmission method.

[0044] In one embodiment, generating a specific virtual device mounted on a host operating system in response to a specific user instruction includes: generating a virtual read-only CD device mounted on the host operating system and generating a virtual HD device mounted on the host operating system in response to a client paste instruction; writing an auto-execution script in the specific virtual device, the auto-execution script being automatically executed by the host operating system to synchronize data between the host operating system's clipboard and a specific storage area of ​​the specific virtual device, includes: generating and mounting an image file including the auto-execution script on the virtual read-only CD device, the auto-execution script being automatically executed by the host operating system after the image file is mounted on the virtual read-only CD device, storing data to be transferred in the host operating system's clipboard to the virtual HD device, the data to be transferred being loaded to the clipboard by the host operating system in response to a host copy instruction; and pre-writing the data to be transferred to the specific storage area of ​​the specific virtual device or obtaining the data to be transferred from the specific storage area of ​​the specific virtual device in accordance with the specific user instruction specifically includes: obtaining the data to be transferred from a storage area associated with the virtual HD device after the virtual HD device stores the data to be transferred in accordance with the client paste instruction.

[0045] To transfer files from the host OS to the client PC, the operator presses a copy shortcut key (such as Ctrl+C) on the host OS to copy the file or folder to the host OS clipboard. For example, the operator might select a log file named "log.txt" in the host OS's file explorer and copy it to the clipboard. The host OS then loads the file's contents into the clipboard for subsequent pasting.

[0046] The operator then presses a specific shortcut key combination (for example, Ctrl+Alt+V) on the client PC. The KVM client captures the client's paste command and begins responding. The KVM client then generates and mounts two virtual devices on the host OS: a virtual read-only CD device and a virtual HD device. The virtual read-only CD device is used to host the auto-execution script, while the virtual HD device serves as a writable storage device for data copied from the host OS clipboard.

[0047] When creating a virtual read-only CD device, the KVM client creates an image file and mounts it on the virtual CD device. This image file contains an autorun script (autorun.sh). When the Host OS detects the virtual CD device and mounts it, it automatically executes the autorun script. The autorun script's primary function is to copy data from the Host OS clipboard to the virtual HD device.

[0048] The automated script retrieves the clipboard data by calling APIs or command-line tools provided by the host OS and writes it to a designated storage area on the virtual HD device. For example, on Linux, the script might use the "xclip -o" command to retrieve the clipboard contents and then save them to a file on the virtual HD device using output redirection or a file write command. This successfully stores the data originally on the host OS clipboard on the virtual HD device.

[0049] Once the data in the virtual HD device is stored, the KVM client, following the client's paste instructions, retrieves the data to be transferred from the storage area associated with the virtual HD device. Specifically, the KVM client synchronizes the data in the virtual HD device to the client PC's local storage. Operations personnel can then find the files copied from the Host OS in the designated folder on the client PC and perform subsequent viewing, editing, and other operations.

[0050] This process greatly simplifies file transfers from the host OS to the client PC. Traditionally, maintenance personnel created an HD file on the client PC, mounted it to the host OS via the BMC, and then manually copied the file to the HD file. With this data transfer method, maintenance personnel simply copy the file on the host OS and paste it on the client PC, eliminating these tedious steps, improving work efficiency, and reducing the possibility of errors.

[0051] Specifically, suppose an operator needs to transfer a configuration file, "config.ini," from the host OS to a client PC for backup and analysis. First, the operator selects the "config.ini" file in the host OS's file explorer and presses Ctrl+C to copy it to the clipboard. Then, on the client PC, the operator opens the KVM client and presses Ctrl+Alt+V. Upon receiving this instruction, the KVM client immediately generates and mounts a virtual read-only CD drive and a virtual HD drive to the host OS. An auto-execution script in the image file mounted on the virtual CD drive runs, extracting the contents of the "config.ini" file from the host OS's clipboard and writing them to the virtual HD drive. After the data transfer is complete, the operator discovers a new file, "config.ini," in the designated folder on the client PC. Its contents are identical to the original file in the host OS. The operator can now conveniently view, edit, and perform other operations on the file on the client PC without the complex manual transfer process.

[0052] This implementation has excellent compatibility and scalability and can be implemented on various operating system platforms, as long as the KVM client and host OS support the corresponding virtual device mounting and script execution functions. For example, on Windows systems, batch files (.bat) or PowerShell scripts can be used to automatically execute scripts to achieve similar functions; on Unix-like systems, shell scripts can be used. Furthermore, as technology develops, this method can be further optimized and improved, such as by encrypting the transmission channel to protect data security or adding data transmission progress display and error handling mechanisms to enhance the user experience.

[0053] In practice, this data transfer method can be widely used in daily server operations, configuration management, and troubleshooting. For example, when updating server configurations, operators can use this method to quickly back up the current configuration files in the Host OS to the Client PC, allowing for comparison and rollback during the update process. When collecting server logs for analysis, operators can conveniently copy log files from the Host OS to the Client PC and conduct in-depth analysis using local analysis tools without worrying about data loss or corruption during the data transfer process.

[0054] This implementation also effectively avoids some of the potential problems associated with traditional transmission methods. For example, using physical storage media for data transmission can present risks such as media damage and virus transmission; while network sharing can be limited by factors such as network bandwidth and security. In contrast, this method leverages the virtual device mounting functionality of the KVM client to directly establish a data transmission channel between the host OS and the client PC, avoiding the use of physical media and the potential risks of network transmission, while improving data transmission reliability and security.

[0055] To further improve the efficiency and stability of data transmission, the KVM client can optimize the entire transmission process. For example, when generating virtual devices and image files, it can use efficient file system formats and compression algorithms to reduce the storage space and time required for data transmission. In the automatic execution script, error checking and retry mechanisms can be added to ensure that data can be completely and accurately transferred from the clipboard to the virtual HD device. At the same time, the KVM client also provides a user-friendly interface and operation prompts to help operation and maintenance personnel better understand and use this data transmission function.

[0056] In actual server operation and maintenance scenarios, this implementation can also be combined with other technologies to achieve even richer functionality. For example, it can be integrated with a version control system to automatically submit transferred files to a repository, enabling historical version management of configuration files. It can also be combined with automated operation and maintenance tools to enable automatic deployment and configuration updates after data transfer. It can also be combined with data encryption technology to encrypt transferred data, further improving data security. Through the integration and innovation of these technologies, this data transmission method can better meet the complex and ever-changing needs of modern data centers, providing strong support for efficient server management and stable operation.

[0057] This implementation can also be expanded and optimized accordingly. For example, centralized management of KVM client configurations and policies enables unified data transfer management across multiple servers. Batch processing technology allows simultaneous file transfers to multiple servers, improving the efficiency of batch operations. Furthermore, cloud storage technology can be integrated to automatically back up transferred data to the cloud, enabling multiple data protection and remote disaster recovery. These expanded capabilities make this data transmission method applicable not only to the operations and maintenance of a single server, but also to the centralized management and data exchange needs of large numbers of servers in enterprise-level data centers, demonstrating its high practicality and scalability.

[0058] In one embodiment, generating a specific virtual device mounted on a host operating system in response to a specific user instruction includes: generating a virtual rewritable CD device mounted on the host operating system in response to a client paste instruction; writing an automatic execution script in the specific virtual device, the automatic execution script being automatically executed by the host operating system to synchronize data between the host operating system's clipboard and a specific storage area of ​​the specific virtual device, includes: generating and mounting an image file including the automatic execution script on the virtual rewritable CD device, the automatic execution script being automatically executed by the host operating system after the image file is mounted on the virtual rewritable CD device, and writing data to be transferred in the host operating system's clipboard to the image file mounted on the virtual rewritable CD device, the data to be transferred being loaded to the clipboard by the host operating system in response to a host copy instruction; and pre-writing the data to be transferred to the specific storage area of ​​the specific virtual device or obtaining the data to be transferred from the specific storage area of ​​the specific virtual device in accordance with the specific user instruction, specifically: obtaining the data to be transferred from a storage area associated with the image file after the data to be transferred is written to the image file mounted on the virtual rewritable CD device in accordance with the client paste instruction.

[0059] In one embodiment, for a remote server management scenario, a KVM client device serves as the user interface and must enable efficient data interaction with the host operating system (Host OS). When a user performs a standard copy operation (e.g., Ctrl+C) through the KVM client interface and triggers a specific shortcut key combination (e.g., Ctrl+Alt+C), the client device first captures the current clipboard contents.

[0060] like Figure 2 If the transfer direction is Client→Host, the system automatically extracts the file metadata (including path, size, and permission attributes) in the clipboard and starts the dynamic image building engine. The engine creates a virtual CD structure that complies with the ISO 9660 standard in memory, and its physical layer is represented by a temporarily generated .iso image file. The image content contains two key parts: one is the file entity to be transferred selected by the user (such as / home / user / report.pdf), and the other is the automation control script autorun.sh pre-placed in the root directory. This script is written in Bash language, and its core function is to call the clipboard management tool of the Host OS (such as xclip or wl-copy) to inject file contents into the system clipboard.

[0061] The virtual CD device mounting process is completed through the BMC's VMM module. The KVM client sends a device mounting instruction to the BMC via the IPMI protocol. The instruction contains the network storage path of the image file (for example, nfs: / / 192.168.1.100 / temp / transfer.iso). After receiving the instruction, the BMC virtualizes a CD-ROM device node (such as / dev / sr1) in the Host OS kernel layer and maps the image file to the device. At this point, the Host OS's device management subsystem (such as udev) detects the connection of a new optical drive and automatically triggers the mounting process, mounting the device to the default directory ( / mnt / cdrom). According to the Linux system's removable storage device processing specifications, the system scans the autorun.sh script in the root directory of the CD and automatically executes the script with root privileges after the mounting is complete. The script completes the data transfer through a carefully designed chain of commands: first, it uses the cd command to switch to the mount point (cd / mnt / cdrom), then calls a file reader (such as cat) to load the target file, and finally redirects its output to the clipboard management tool via a pipe (cat report.pdf | xclip-selectionclipboard -t application / pdf). This process completely bypasses the graphical interface and completes silently in the system background.

[0062] The subsequent paste operation (Ctrl+V) performed by the host user triggers the standard clipboard processing flow. When the user pastes in a file manager window, the host OS desktop environment (such as GNOME) reads the binary data stream from the clipboard buffer, launches the associated application (such as a document viewer) based on the MIME type identifier (application / pdf), parses the content, and ultimately writes the file to the user-specified directory (such as ~ / Downloads / report.pdf). It is worth noting that in the entire transmission chain, the virtual CD device only exists as a data carrier for approximately three seconds: after the script completes execution, the KVM client automatically sends a device unmount command, the BMC then unmaps the device, and the host OS mount point is automatically cleared. This transient device existence mechanism ensures transmission reliability while preventing residual virtual devices from occupying system resources.

[0063] To handle multiple file transfer scenarios, the solution can use TAR container encapsulation technology. When the object copied by the user is a folder (such as / project / src), the KVM client first creates a temporary TAR archive package (src.tar) in memory and compresses all files in the directory (including subdirectory structure) into a single data stream. This TAR package is written to the ISO image as a physical file, and the unpacking instructions are preset in autorun.sh. When the script is executed, the file is released to the temporary directory through the tar xvf src.tar-C / tmp command, and then the entire directory structure is injected into the clipboard through the special working mode of xclip (supports multiple file formats). When the user pastes on the Host OS desktop, the system automatically rebuilds the original directory hierarchy to achieve a complete clone of the folder.

[0064] like Figure 3 In the reverse transfer (host to client) scenario, a dual-device collaboration mechanism is employed. After the user copies a file in the host OS (for example, pressing Ctrl+C to copy / var / log / syslog), the reverse transfer shortcut (Ctrl+Alt+V) is triggered on the KVM client. The client then creates two virtual devices: a read-only CD device (autorun-cd.iso) containing the control script, and a writable HDD device (transfer-hd.img) with adaptive capacity. The autorun.sh script on the CD device contains the key command: xclip -o -selection clipboard> / mnt / hd / syslog. This command captures the host clipboard contents in real time and writes them to the mount point of the HDD device. The HDD device uses the EXT4 file system format and is mounted by the BMC as a read-write block device ( / dev / sdb1) with the mount path set to / mnt / hd. After the script transfers the clipboard data to the HDD device, the KVM client immediately exports the virtual hard disk image through the BMC and automatically mounts it as a local disk drive (such as the F: drive in Windows) on the client PC. Users can directly access the drive to obtain the transferred files. The system will automatically unmount and delete the temporary image after detecting that the file has been read.

[0065] To ensure the reliability of large file transfers, the solution implements a block verification mechanism. For files larger than 1GB, the KVM client adds a verification file (such as md5sum.txt) when generating the image. The autorun.sh script automatically calls the md5sum-c command to verify the integrity of the file after executing the transfer. If the verification fails, the script sends an error code (ERROR_CHECKSUM_MISMATCH) through the BMC event log interface, triggering the client's automatic retransmission mechanism. The network transport layer uses incremental compression technology: the client calls the lz4 real-time compression tool when building the image, and pre-sets the decompression instruction (lz4-dreport.pdf.lz4|xclip) in the host-side script, reducing the actual amount of transmitted data by more than 60%.

[0066] In terms of security control, the solution implements a triple protection mechanism. First, all automatically generated images are encrypted with AES-256, and the key is dynamically transmitted from the KVM client to the BMC through the TLS1.3 channel. Secondly, the autorun.sh script must pass digital signature verification before execution, and the BMC's built-in signature verification module uses a preset RSA public key to verify the integrity of the script. Finally, the script execution environment is strictly limited to the cgroup container, and its file system access rights are isolated through namespaces technology, allowing only reading and writing of specified mount points under the / mnt directory. When an abnormal operation is detected (such as attempting to execute rm-rf / ), the BMC immediately terminates the script process and generates a security alert.

[0067] In terms of performance optimization, the solution adopts a memory pass-through architecture. The construction of the virtual image is completely carried out in the KVM client memory, and zero disk writes are achieved through mmap technology. The BMC side uses the DMA engine to map the image content directly to the host physical memory, avoiding the data copy overhead of the traditional storage stack. Actual measured data shows that the end-to-end delay of transmitting a 500MB file is reduced from 18.2 seconds in the traditional solution to 1.4 seconds, of which the script execution time accounts for only 120 milliseconds. To adapt to data transmission of different scales, the HD device uses sparse file technology (sparse file), initially allocating only 4KB of metadata space, and dynamically expanding the storage block according to the write volume, so that the actual disk occupancy of the virtual image of a 100MB file is only 128KB.

[0068] The error handling process includes an automated recovery strategy. When the mount operation fails (such as the Host OS has no available device node), the BMC returns an error code (ERR_NO_DEVICE), and the client automatically switches to the backup plan: converting the ISO image to a network shared file (output via NFS or SMB protocol), and popping up a prompt box on the Host OS desktop to guide the user to manually access the shared directory. If it is detected that the Host system lacks the xclip component, the script automatically falls back to the traditional mode - simulating mouse operations in the graphical interface: first call xdotool to locate the file manager window, then send keyboard events (Ctrl+L to focus the address bar), then enter the mount path and perform Enter key simulation, and finally send the Ctrl+C shortcut key to trigger graphical copying. This hierarchical degradation mechanism ensures that basic functional availability is maintained in various abnormal environments.

[0069] The user interface design follows the principle of seamless integration. During the transfer process, the KVM client only displays a status indicator: flashing blue indicates that the image is being built, solid green indicates that the mount is complete, and red indicates a transfer failure. Advanced users can view detailed logs in debug mode. The logs contain key fields such as timestamp, transfer direction, file size, and script execution output (e.g., [2023-08-15 14:23:18]CLIENT→HOST:report.pdf(2.1MB)|EXEC_TIME:120ms). The solution is compatible with mainstream operating systems. The host side supports Linux distributions such as RHEL / CentOS 7.4+ and Ubuntu 18.04+, and the client PC side is compatible with Windows 10 / 11 and macOS10.15+. Shortcut key mappings for different platforms can be customized through configuration files (e.g., Mac users use Cmd+Alt+C instead of Ctrl+Alt+C).

[0070] If you use a virtual rewritable CD device to replace the combination of a virtual read-only CD device and a virtual HD device, you can continue to use the virtual rewritable CD device as a replacement in scenarios where writing to the virtual HD device is required.

[0071] This implementation method, through the innovative integration of the underlying operating system mechanism and virtualization technology, compresses the traditional solution that requires more than seven manual steps (create image → mount device → locate file → copy → uninstall device → switch system → paste) into a single shortcut key trigger, significantly improving operation and maintenance efficiency in data center batch configuration scenarios.

[0072] In one embodiment, Figure 4This specification also provides a data transmission device, which is applied to a KVM client device, and the device includes: a first module, which is used to generate a specific virtual device mounted on a host operating system in response to a specific user instruction; the specific virtual device includes a specific storage area for storing data to be transmitted; a second module is used to write an automatic execution script in the specific virtual device, and the automatic execution script is used to be automatically executed by the host operating system to synchronize the data between the clipboard of the host operating system and the specific storage area of ​​the specific virtual device; a third module is used to write the data to be transmitted to the specific storage area of ​​the specific virtual device in advance according to a specific user instruction, or to obtain the data to be transmitted from the specific storage area of ​​the specific virtual device.

[0073] In one embodiment, generating a specific virtual device mounted on the host operating system in response to a specific user instruction includes: generating a virtual CD device mounted on the host operating system in response to a client copy instruction; writing the data to be transmitted to a specific storage area of ​​the specific virtual device in advance, or obtaining the data to be transmitted from the specific storage area of ​​the specific virtual device in accordance with the specific user instruction, specifically: generating an image file of the data to be transmitted associated with the client copy instruction in accordance with the client copy instruction, and mounting the image file on the virtual CD device; writing an automatic execution script in the specific virtual device, the automatic execution script being used to be automatically executed by the host operating system to synchronize the data on the clipboard of the host operating system with the specific storage area of ​​the specific virtual device, includes: pre-writing an automatic execution script in the image file mounted on the virtual CD device, the automatic execution script being used to be automatically executed by the host operating system after the image file is mounted on the virtual CD device, and loading the data to be transmitted in the image file into the clipboard of the host operating system; the data to be transmitted loaded in the clipboard being used to be stored in the host storage area by the host operating system in response to the host paste instruction.

[0074] When a user wants to transfer files from the KVM client to the Host OS, they can initiate the entire process by executing a specific client copy command. Specifically, the user can select the files or folders to be transferred on the client PC and press a preset shortcut key, such as Ctrl+C. At this point, the KVM client will capture this command and automatically generate a virtual CD device mounted on the Host OS. This virtual CD device is actually an image file (iso file) containing the files to be transferred. To ensure that the image file can automatically run on the Host OS and implement the file transfer function, the KVM client will write an autorun.sh script into it when creating the iso file. This script is designed to be automatically executed after the iso file is successfully mounted. Its main task is to load the data to be transferred in the iso file into the clipboard of the Host OS.

[0075] For example, suppose a user wants to transfer a work report from a client PC to a Host OS for further processing. The user simply selects the report on the client PC and presses the preset shortcut key to trigger the copy command. The KVM client then generates an iso file containing the work report and mounts it to the virtual CD device on the Host OS. Since the autorun.sh script has been pre-embedded in the iso file, once the iso file is mounted, the script will automatically run and load the work report data into the clipboard of the Host OS. In this way, the user only needs to perform a paste operation in the Host OS environment (for example, press Ctrl+V) to easily import the work report into the location specified by the Host OS, greatly simplifying the file transfer process.

[0076] In one embodiment, generating a specific virtual device mounted on a host operating system in response to a specific user instruction includes: generating a virtual read-only CD device mounted on the host operating system and generating a virtual HD device mounted on the host operating system in response to a client paste instruction; writing an auto-execution script in the specific virtual device, the auto-execution script being automatically executed by the host operating system to synchronize data between the host operating system's clipboard and a specific storage area of ​​the specific virtual device, includes: generating and mounting an image file including the auto-execution script on the virtual read-only CD device, the auto-execution script being automatically executed by the host operating system after the image file is mounted on the virtual read-only CD device, storing data to be transferred in the host operating system's clipboard to the virtual HD device, the data to be transferred being loaded to the clipboard by the host operating system in response to a host copy instruction; and pre-writing the data to be transferred to the specific storage area of ​​the specific virtual device or obtaining the data to be transferred from the specific storage area of ​​the specific virtual device in accordance with the specific user instruction specifically includes: obtaining the data to be transferred from a storage area associated with the virtual HD device after the virtual HD device stores the data to be transferred in accordance with the client paste instruction.

[0077] When a user wants to transfer files from the host OS to the client PC, they can initiate the entire process by executing a specific client-side paste command. Specifically, the user first selects the files or folders to be transferred in the host OS and presses Ctrl+C to copy them. At this point, the files are loaded into the host OS clipboard. Next, on the client PC, the user presses the preset shortcut key to trigger the paste command. This action prompts the KVM client to generate two virtual devices: a virtual read-only CD device and a virtual HD device, and simultaneously mounts them on the host OS. The virtual read-only CD device is primarily used to carry the autorun script (autorun.sh), while the virtual HD device serves as a writable storage area for receiving data exported from the host OS clipboard.

[0078] To ensure that the entire process is automated and reduce user manual intervention, the KVM client generates an image file (iso file) containing the autorun.sh script while creating the virtual read-only CD device. This script is designed to be automatically executed after the iso file is successfully mounted, and has the function of storing the data to be transferred in the Host OS clipboard to the virtual HD device. Therefore, once the user presses the preset paste command on the client PC, the iso file on the virtual read-only CD device is mounted and the autorun.sh script starts running. The script recognizes the contents of the Host OS clipboard and copies them to the previously mounted virtual HD device. Since the virtual HD device is writable, it can accept data from the clipboard and store it safely.

[0079] Suppose a system administrator needs to transfer certain configuration files from the host OS to a local computer for backup purposes. First, they select the desired configuration files in the host OS and execute the copy command. Then, on the client PC, they press a specific shortcut key to trigger the paste command. The KVM client automatically generates and mounts a virtual read-only CD device and a virtual HD device on the host OS. With the ISO file on the virtual read-only CD device mounted, the autorun.sh script within it automatically runs, copying the configuration files from the clipboard to the virtual HD device. The administrator can then access the virtual HD device on the client PC, locate, and save the required data, thus easily completing the data transfer process from the host OS to the client PC.

[0080] To ensure data security and integrity, the system performs necessary checksums and protections while storing data on the virtual HD device. For example, if an error or interruption occurs during a transfer, the system can prompt the user to retry the operation or provide recovery options. Furthermore, given that different file types may require different storage space, the virtual HD device's design allows for customizable capacity to better suit various application scenarios.

[0081] The simplicity of this technical solution is also evident in the process of retrieving data to be transferred from the virtual HD device. Once the data is successfully stored on the virtual HD device, users can view and manage it directly on the client PC. This means that users no longer need to go through complex file searches or manual copying steps. Instead, they can simply open the storage area associated with the virtual HD device to quickly locate and retrieve the required files. This not only saves time but also reduces the risk of data loss due to operational errors.

[0082] In one embodiment, generating a specific virtual device mounted on a host operating system in response to a specific user instruction includes: generating a virtual rewritable CD device mounted on the host operating system in response to a client paste instruction; writing an automatic execution script in the specific virtual device, the automatic execution script being automatically executed by the host operating system to synchronize data between the host operating system's clipboard and a specific storage area of ​​the specific virtual device, includes: generating and mounting an image file including the automatic execution script on the virtual rewritable CD device, the automatic execution script being automatically executed by the host operating system after the image file is mounted on the virtual rewritable CD device, and writing data to be transferred in the host operating system's clipboard to the image file mounted on the virtual rewritable CD device, the data to be transferred being loaded to the clipboard by the host operating system in response to a host copy instruction; and pre-writing the data to be transferred to the specific storage area of ​​the specific virtual device or obtaining the data to be transferred from the specific storage area of ​​the specific virtual device in accordance with the specific user instruction, specifically: obtaining the data to be transferred from a storage area associated with the image file after the data to be transferred is written to the image file mounted on the virtual rewritable CD device in accordance with the client paste instruction.

[0083] In one embodiment, this specification provides an electronic device, including a processor and a readable storage medium, wherein the readable storage medium stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the aforementioned data transmission method. From a hardware perspective, the hardware architecture diagram can be found in Figure 5 shown.

[0084] In one embodiment, this specification provides a readable storage medium, wherein the readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the aforementioned data transmission method.

[0085] Here, the readable storage medium can be any electronic, magnetic, optical or other physical storage device that can contain or store information, such as executable instructions, data, etc. For example, the readable storage medium can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as optical disk, DVD, etc.), or similar storage media, or a combination thereof.

[0086] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email transceiver, game console, tablet computer, wearable device, or any combination of these devices.

[0087] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0088] Those skilled in the art will appreciate that embodiments of this specification may be provided as methods, systems, or computer program products. Thus, this specification may take the form of a fully hardware implementation, a fully software implementation, or an implementation combining software and hardware. Furthermore, embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0089] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0090] Furthermore, these computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0091] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0092] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Thus, this specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0093] The foregoing is merely an embodiment of the present invention and is not intended to limit the present invention. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be included within the scope of the claims of the present invention.

Claims

1. A data transmission method, characterized in that: Applied to a KVM client device, the method includes: In response to a specific user instruction, generating a specific virtual device mounted on the host operating system; The specific virtual device includes a specific storage area for storing data to be transmitted; Writing an automatic execution script in the specific virtual device, wherein the automatic execution script is used to be automatically executed by the host operating system to synchronize data between the clipboard of the host operating system and the specific storage area of ​​the specific virtual device; According to a specific user instruction, the data to be transmitted is written in advance into a specific storage area of ​​a specific virtual device, or the data to be transmitted is obtained from the specific storage area of ​​a specific virtual device.

2. The method according to claim 1, characterized in that The generating of a specific virtual device mounted on the host operating system in response to a specific user instruction includes: In response to the client copy instruction, a virtual CD device mounted on the host operating system is generated; The method of writing the data to be transmitted into a specific storage area of ​​a specific virtual device in advance or obtaining the data to be transmitted from the specific storage area of ​​a specific virtual device according to a specific user instruction is specifically as follows: generating, according to the client copy instruction, an image file of the data to be transmitted associated with the client copy instruction, and mounting the image file on the virtual CD device; The step of writing an automatic execution script in the specific virtual device, wherein the automatic execution script is used to be automatically executed by the host operating system and synchronize data between the clipboard of the host operating system and the specific storage area of ​​the specific virtual device, includes: An automatic execution script is pre-written in the image file mounted on the virtual CD device, wherein the automatic execution script is used to be automatically executed by the host operating system after the image file is mounted on the virtual CD device, and load the data to be transferred in the image file into the clipboard of the host operating system; The data to be transmitted loaded in the clipboard is used to be stored in the host storage area by the host operating system in response to the host paste instruction.

3. The method according to claim 1, characterized in that The generating of a specific virtual device mounted on the host operating system in response to a specific user instruction includes: In response to a client paste instruction, generating a virtual read-only CD device mounted on the host operating system and generating a virtual HD device mounted on the host operating system; The step of writing an automatic execution script in the specific virtual device, wherein the automatic execution script is used to be automatically executed by the host operating system and synchronize data between the clipboard of the host operating system and the specific storage area of ​​the specific virtual device, includes: An image file including an automatic execution script is generated and mounted on a virtual read-only CD device, wherein the automatic execution script is configured to be automatically executed by a host operating system after the image file is mounted on the virtual read-only CD device, and store data to be transferred in a clipboard of the host operating system to the virtual HD device, wherein the data to be transferred is loaded into the clipboard by the host operating system in response to a host copy instruction; The method of writing the data to be transmitted into a specific storage area of ​​a specific virtual device in advance or obtaining the data to be transmitted from the specific storage area of ​​a specific virtual device according to a specific user instruction is specifically as follows: According to the client's paste instruction, after the virtual HD device stores the data to be transmitted, the data to be transmitted is obtained from a storage area associated with the virtual HD device.

4. The method according to claim 1, wherein The generating of a specific virtual device mounted on the host operating system in response to a specific user instruction includes: In response to a client paste instruction, generating a virtual rewritable CD device mounted on the host operating system; The step of writing an automatic execution script in the specific virtual device, wherein the automatic execution script is used to be automatically executed by the host operating system and synchronize data between the clipboard of the host operating system and the specific storage area of ​​the specific virtual device, includes: An image file including an automatic execution script is generated and mounted on a virtual rewritable CD device, wherein the automatic execution script is automatically executed by a host operating system after the image file is mounted on the virtual rewritable CD device, and writes data to be transferred in a clipboard of the host operating system into the image file mounted on the virtual rewritable CD device, wherein the data to be transferred is loaded into the clipboard by the host operating system in response to a host copy instruction; The method of writing the data to be transmitted into a specific storage area of ​​a specific virtual device in advance or obtaining the data to be transmitted from the specific storage area of ​​a specific virtual device according to a specific user instruction is specifically as follows: According to the client's paste instruction, after the image file mounted on the virtual rewritable CD device is written with the data to be transmitted, the data to be transmitted is obtained from the storage area associated with the image file.

5. A data transmission device, characterized in that: Applied to a KVM client device, the device comprises: The first module is configured to generate a specific virtual device mounted on the host operating system in response to a specific user instruction; The specific virtual device includes a specific storage area for storing data to be transmitted; A second module is configured to write an automatic execution script in the specific virtual device, wherein the automatic execution script is configured to be automatically executed by the host operating system and synchronize data between the clipboard of the host operating system and the specific storage area of ​​the specific virtual device; The third module is used to write the data to be transmitted into the specific storage area of ​​the specific virtual device in advance according to a specific user instruction, or to obtain the data to be transmitted from the specific storage area of ​​the specific virtual device.

6. The device according to claim 5, characterized in that The generating of a specific virtual device mounted on the host operating system in response to a specific user instruction includes: In response to the client copy instruction, a virtual CD device mounted on the host operating system is generated; The method of writing the data to be transmitted into a specific storage area of ​​a specific virtual device in advance or obtaining the data to be transmitted from the specific storage area of ​​a specific virtual device according to a specific user instruction is specifically as follows: generating, according to the client copy instruction, an image file of the data to be transmitted associated with the client copy instruction, and mounting the image file on the virtual CD device; The step of writing an automatic execution script in the specific virtual device, wherein the automatic execution script is used to be automatically executed by the host operating system and synchronize data between the clipboard of the host operating system and the specific storage area of ​​the specific virtual device, includes: An automatic execution script is pre-written in the image file mounted on the virtual CD device, wherein the automatic execution script is used to be automatically executed by the host operating system after the image file is mounted on the virtual CD device, and load the data to be transferred in the image file into the clipboard of the host operating system; The data to be transmitted loaded in the clipboard is used to be stored in the host storage area by the host operating system in response to the host paste instruction.

7. The device according to claim 5, characterized in that The generating of a specific virtual device mounted on the host operating system in response to a specific user instruction includes: In response to a client paste instruction, generating a virtual read-only CD device mounted on the host operating system and generating a virtual HD device mounted on the host operating system; The step of writing an automatic execution script in the specific virtual device, wherein the automatic execution script is used to be automatically executed by the host operating system and synchronize data between the clipboard of the host operating system and the specific storage area of ​​the specific virtual device, includes: An image file including an automatic execution script is generated and mounted on a virtual read-only CD device, wherein the automatic execution script is configured to be automatically executed by a host operating system after the image file is mounted on the virtual read-only CD device, and store data to be transferred in a clipboard of the host operating system to the virtual HD device, wherein the data to be transferred is loaded into the clipboard by the host operating system in response to a host copy instruction; The method of writing the data to be transmitted into a specific storage area of ​​a specific virtual device in advance or obtaining the data to be transmitted from the specific storage area of ​​a specific virtual device according to a specific user instruction is specifically as follows: According to the client's paste instruction, after the virtual HD device stores the data to be transmitted, the data to be transmitted is obtained from a storage area associated with the virtual HD device.

8. The device according to claim 5, characterized in that The generating of a specific virtual device mounted on the host operating system in response to a specific user instruction includes: In response to a client paste instruction, generating a virtual rewritable CD device mounted on the host operating system; The step of writing an automatic execution script in the specific virtual device, wherein the automatic execution script is used to be automatically executed by the host operating system and synchronize data between the clipboard of the host operating system and the specific storage area of ​​the specific virtual device, includes: An image file including an automatic execution script is generated and mounted on a virtual rewritable CD device, wherein the automatic execution script is automatically executed by a host operating system after the image file is mounted on the virtual rewritable CD device, and writes data to be transferred in a clipboard of the host operating system into the image file mounted on the virtual rewritable CD device, wherein the data to be transferred is loaded into the clipboard by the host operating system in response to a host copy instruction; The method of writing the data to be transmitted into a specific storage area of ​​a specific virtual device in advance or obtaining the data to be transmitted from the specific storage area of ​​a specific virtual device according to a specific user instruction is specifically as follows: According to the client's paste instruction, after the image file mounted on the virtual rewritable CD device is written with the data to be transmitted, the data to be transmitted is obtained from the storage area associated with the image file.

9. An electronic device, characterized in that: include: A processor and a readable storage medium, wherein the readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the method according to any one of claims 1 to 4.

10. A readable storage medium, characterized in that: The readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the method according to any one of claims 1 to 4.