Virtual machine three-channel adaptive and concurrent file transmission method and system

By using a three-channel adaptive and concurrent file transfer method in a virtual machine, the transmission channel is dynamically selected and switched in case of failure, which solves the problems of low transmission efficiency and complex operation in the HarmonyOS virtual machine, and achieves efficient and reliable file transfer and simplified user operation.

CN121764594APending Publication Date: 2026-03-31WUHAN OPENKER COMPUTING
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-19
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

In existing HarmonyOS virtual machine applications, the single transmission channel cannot distinguish between file sizes, resulting in slow transmission of large files, and batch transmission of small files need to be queued sequentially. This leads to low bandwidth utilization and complex operation, requiring users to manually configure network paths.

Method used

The system employs a virtual machine three-channel adaptive and concurrent file transfer method, dynamically selecting the virtual serial port channel, network file sharing channel, and TCP/IP network channel for concurrent transmission based on file characteristics, and automatically switching to the backup channel in case of transmission failure.

Benefits of technology

It enables high-speed transmission of large files and efficient batch distribution of small files, improving transmission efficiency and reliability, simplifying user operations, and providing a zero-configuration operating experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121764594A_ABST
    Figure CN121764594A_ABST
Patent Text Reader

Abstract

The invention discloses a three-channel self-adaption and concurrent file transmission method and system of a virtual machine, and belongs to the field of operating system virtualization. Analyzing the characteristics of the file, and selecting one or more transmission channels from a pre-established virtual serial port channel, a network file sharing channel and a TCP / IP network channel based on the characteristics of the file; transmitting the file to the virtual machine based on the selected transmission channels, and when the number of the selected transmission channels is multiple, concurrently executing file transmission; and monitoring a transmission state in a transmission process, and switching to a standby channel when a transmission fault occurs. Through a three-channel adaptive concurrent transmission mechanism, the transmission channel is dynamically selected based on the file characteristics, efficient transmission of the file is realized, and the contradiction between efficiency and reliability in a mixed file transmission scene is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of operating system virtualization, specifically to a method and system for three-channel adaptive and concurrent file transfer of virtual machines. Background Technology

[0002] With the widespread adoption of HarmonyOS in multi-device collaboration scenarios, virtual machines, as a core component for cross-device application compatibility, have led to higher user demands for efficiency, reliability, and ease of operation in file transfer between the host machine and virtual machines. The overall technical focus is on achieving intelligent file transfer without user intervention. This means that users do not need to configure the network or select a channel; the system can automatically adapt to file characteristics (such as size and / or quantity) to complete high-speed, highly reliable transfer, matching HarmonyOS's zero-configuration design philosophy of "develop once, deploy across multiple devices."

[0003] In related technologies, existing HarmonyOS virtual machine applications generally adopt a single transmission channel solution, including SMB (Server Message Block) network sharing that relies on manual configuration by the user (which requires setting up a shared directory in advance) or drag-and-drop functionality based on an inefficient file copying protocol, without establishing a dynamic association mechanism between file characteristics and transmission channels.

[0004] However, existing technologies have the following key problems: Relying on a single channel (such as SMB sharing) to process all files cannot distinguish file sizes (such as large video files and small document files), resulting in slow large file transfers and batch small files needing to be queued sequentially. The total time increases linearly with the number of files. It does not achieve multi-channel parallel transmission, forces batch file processing serially, has low bandwidth utilization, and lacks automatic fault switching capability. The process requires manually enabling the SMB service and configuring the network path, which is complex and results in low utilization of virtual machine functions, leading to wasted functionality. Summary of the Invention

[0005] This application provides a method and system for three-channel adaptive and concurrent file transfer in virtual machines, which can solve the technical problems of low efficiency, insufficient reliability and complex user operation in virtual machine file transfer in the prior art.

[0006] In a first aspect, embodiments of this application provide a method for virtual machine three-channel adaptive and concurrent file transfer, the method comprising: File capture operations trigger events; Analyze the characteristics of the file and select one or more transmission channels from pre-established virtual serial port channels, network file sharing channels, and TCP / IP network channels based on the file characteristics; Files are transferred to the virtual machine based on the selected transfer channel. When multiple transfer channels are selected, file transfers are performed concurrently. The system monitors the transmission status during transmission and switches to a backup channel in case of transmission failure.

[0007] In conjunction with the first aspect, in one implementation, the file operation triggering event includes a drag-and-drop file operation or a selection to open a file with a virtual machine application.

[0008] In conjunction with the first aspect, in one implementation, the file characteristics include file size and number of files.

[0009] In conjunction with the first aspect, in one implementation, the file size is divided into small files, medium files, and large files; the number of files is divided into single files and batch files.

[0010] In conjunction with the first aspect, in one implementation, when the file is a small file and a single file, a virtual serial port channel is selected; when the file is a large file and a single file, a TCP / IP network channel is selected; and when the file is a medium-sized file and a single file, a network file sharing channel is selected.

[0011] In conjunction with the first aspect, in one implementation, when the files are batch files, the files are divided into multiple subsets; the subsets include a small file subset, a medium file subset, and a large file subset; the small file subset is transmitted via a virtual serial port channel; the medium file subset is transmitted via a network file sharing channel; and the large file subset is transmitted via a TCP / IP network channel.

[0012] In conjunction with the first aspect, in one implementation, a virtual serial port channel is created synchronously when the virtual machine starts; a network file sharing channel is automatically mapped after the virtual machine starts; and a TCP / IP network channel is established after the virtual machine network service starts.

[0013] In conjunction with the first aspect, in one implementation, the monitoring of transmission status includes real-time display of global transmission progress and automatic recording of fault information when transmission fails.

[0014] In conjunction with the first aspect, in one implementation, the switching to the backup channel includes: when a network failure is detected, switching the current transmission task to a virtual serial port channel; when a serial port failure is detected, switching the current transmission task to a network file sharing channel.

[0015] Secondly, embodiments of this application provide a virtual machine three-channel adaptive and concurrent file transfer system, the virtual machine three-channel adaptive and concurrent file transfer system comprising: The virtual machine management module is used to synchronously create virtual serial port channels when the virtual machine starts, and automatically map network file sharing channels after the virtual machine starts. The multi-channel management module is used to monitor the status of the virtual serial port channel, network file sharing channel, and TCP / IP network channel; The intelligent scheduling module is used to analyze file characteristics, select one or more transmission channels based on the file characteristics, and transfer the file to the virtual machine based on the selected transmission channels. When multiple transmission channels are selected, file transfer is performed concurrently. The file operation interception module is used to capture file operation trigger events; The transmission monitoring module is used to monitor the transmission status in real time and switch to the backup channel when a transmission failure occurs.

[0016] The beneficial effects of the technical solutions provided in this application include: By employing a three-channel concurrent transmission mechanism, the optimal transmission channel is dynamically selected based on file characteristics, avoiding the queuing and waiting problems caused by traditional single-channel sequential transmission. This enables high-speed transmission of large files and efficient batch distribution of small files, thereby improving the efficiency of virtual machine file transmission.

[0017] Based on a three-channel redundancy design, the system automatically switches to the backup channel when a transmission failure is detected, eliminating the risk of transmission failure caused by a single-channel failure and improving transmission reliability.

[0018] No manual configuration of network sharing or selection of transfer methods is required. Users can trigger the transfer simply by performing regular file operations (such as dragging and dropping files or choosing to open them with a virtual machine application), achieving a zero-configuration operation experience. Attached Figure Description

[0019] Figure 1 This is a flowchart illustrating an embodiment of the virtual machine three-channel adaptive and concurrent file transfer method of this application; Figure 2 This is a functional module diagram of an embodiment of the virtual machine three-channel adaptive and concurrent file transfer system of this application. Detailed Implementation

[0020] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.

[0021] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0022] In a first aspect, embodiments of this application provide a virtual machine three-channel adaptive and concurrent file transfer method.

[0023] In one embodiment, reference is made to Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the virtual machine three-channel adaptive and concurrent file transfer method of this application. Figure 1 As shown, the virtual machine three-channel adaptive and concurrent file transfer method includes: Step S1: Capture file operation trigger events.

[0024] Step S2: Analyze the characteristics of the file and select one or more transmission channels from the pre-established virtual serial port channel, network file sharing channel, and TCP / IP network channel based on the file characteristics.

[0025] Step S3: Transfer the file to the virtual machine based on the selected transfer channel. If multiple transfer channels are selected, file transfers are performed concurrently. Monitor the transfer status during the transfer process and switch to the backup channel if a transfer failure occurs.

[0026] In this embodiment, the virtual machine three-channel adaptive and concurrent file transfer method solves the technical problems of low file transfer efficiency, insufficient reliability and complex user operation in related technologies.

[0027] Specifically, by using a three-channel concurrent transmission mechanism, the optimal transmission channel is dynamically selected based on file characteristics, avoiding the queuing problem caused by traditional single-channel sequential transmission, achieving high-speed transmission of large files and efficient batch distribution of small files, and improving the file transmission efficiency of the virtual machine.

[0028] Based on a three-channel redundancy design, the system automatically switches to the backup channel when a transmission failure is detected, eliminating the risk of transmission failure caused by a single-channel failure and improving transmission reliability.

[0029] No manual configuration of network sharing or selection of transfer methods is required. Users can trigger the transfer simply by performing regular file operations (such as dragging and dropping files or choosing to open them with a virtual machine application), achieving a zero-configuration operation experience.

[0030] Furthermore, in one embodiment, the file operation triggering event includes drag-and-drop file operations or selecting to open a file with a virtual machine application.

[0031] In this embodiment, the capture of file operation trigger events is achieved through an operating system-level event listening mechanism.

[0032] Drag-and-drop file operations refer to a user selecting one or more files in the host operating system's (such as HarmonyOS) file manager, then long-pressing the file icon and dragging it to the virtual machine application window. The system captures this drag-and-drop event, obtains the file path and metadata, parses the event type, identifies it as a drag-and-drop file operation, and triggers the virtual machine's three-channel adaptive and concurrent file transfer method. The system automatically analyzes the characteristics of the selected files (such as file size and number), selects the optimal transfer channel based on the file characteristics, and performs concurrent file transfer.

[0033] Choosing to open a file using a virtual machine application refers to a user selecting a file in the host operating system (such as HarmonyOS), clicking the share button, and the system displaying a share menu. The share menu shows the option to open the file using a virtual machine application. When the user selects to open the file using a virtual machine application, the system captures this operation event, obtains the file path and metadata, parses the event type, identifies it as an operation to open the file using a virtual machine application, and triggers the virtual machine's three-channel adaptive and concurrent file transfer method. The system automatically analyzes the characteristics of the selected files (including file size and number of files), selects the optimal transfer channel based on these characteristics, and performs concurrent file transfer.

[0034] During implementation, the system handles both operations uniformly, requiring no additional configuration or selection of transmission methods by the user. The file operation interception module 4 uses operating system APIs to capture events, ensuring the timeliness and accuracy of operation triggering. When a user performs any of the above operations, the system automatically initiates the file transfer process. The transfer process is transparent to the user, displaying only a global transfer progress bar, requiring no user intervention.

[0035] Furthermore, in one embodiment, the aforementioned file characteristics include file size and number of files.

[0036] The file sizes mentioned above are categorized as small, medium, and large. The file quantities mentioned above are categorized as single files and batch files.

[0037] When the above file is small and a single file, select the virtual serial port channel. When the above file is large and a single file, select the TCP / IP network channel. When the above file is medium-sized and a single file, select the network file sharing channel.

[0038] When the above files are in batches, they are divided into multiple subsets. These subsets include small file subsets, medium file subsets, and large file subsets. The small file subset is transmitted via a virtual serial port channel. The medium file subset is transmitted via a network file sharing channel. The large file subset is transmitted via a TCP / IP network channel.

[0039] In this embodiment, small files refer to file types that are small in size and suitable for transmission through high-reliability channels. Such files typically have the characteristics of low sensitivity to transmission delay and high requirements for transmission success rate.

[0040] Medium-sized files refer to file types that are of moderate size and require both a certain transfer speed and stable transfer. These files are usually regular application documents or images.

[0041] Large files refer to file types that are large in size and require high-speed transmission channels to shorten transmission time. These files are usually large data such as videos and images.

[0042] The system automatically obtains file size information before file transfer and classifies files into corresponding ranges by comparing them with preset thresholds, providing basic data for subsequent channel selection.

[0043] A single file refers to a situation where a user selects and transfers only one file at a time. In this type of transfer scenario, the focus is usually on the transfer efficiency and reliability of a single file.

[0044] Batch file transfer refers to situations where a user selects and transfers more than one file at a time. In such transfer scenarios, the overall transfer efficiency and concurrency of the file set need to be considered.

[0045] Before file transfer, the system automatically counts the number of files selected by the user and classifies the file set into the corresponding category based on the number threshold (e.g., one file is a single file, more than one file is a batch file).

[0046] During implementation, the system performs a comprehensive analysis of file size and number to form a complete description of file characteristics, providing a comprehensive basis for channel selection.

[0047] When the file is a single file, the system selects the channel based on the file size: if the file is small, a virtual serial port channel (high reliability channel) is selected; if the file is medium-sized, a network file sharing channel (balanced channel) is selected; if the file is large, a TCP / IP network channel (high-speed channel) is selected.

[0048] When files are processed in batches, the system divides the file set into multiple subsets: small files are divided into small file subsets and transmitted via a virtual serial port channel; medium-sized files are divided into medium file subsets and transmitted via a network file-sharing channel; and large files are divided into large file subsets and transmitted via a TCP / IP network channel. Each subset is transmitted independently, enabling concurrent execution across three channels.

[0049] In this embodiment, file characteristic analysis and channel selection are fully automated and require no user intervention. The system dynamically determines the optimal transmission scheme based on file characteristics to ensure the best balance between transmission efficiency and reliability.

[0050] Furthermore, in one embodiment, a virtual serial port channel is created synchronously when the virtual machine starts. A network file sharing channel is automatically mapped after the virtual machine starts. A TCP / IP network channel is established after the virtual machine's network service starts.

[0051] In this embodiment, the establishment of the three channels is a preliminary preparation during the virtual machine startup process, ensuring that the transmission channels are ready when the user triggers a file transfer operation, so that the channels do not need to be re-established during the file operation.

[0052] The creation of a virtual serial port channel is closely linked to the virtual machine's startup process, completing synchronously when the virtual machine starts. For example, when a user opens a virtual machine application or starts a virtual machine instance, the system automatically initializes the virtual machine environment. During the virtual machine startup process, the system immediately creates a virtual serial port channel, which is implemented based on the virtual machine's serial port driver. After the virtual serial port channel is created, the system automatically registers it as an available channel for file transfer. After the channel is established, the system performs basic tests to ensure normal channel communication, preparing for subsequent small file transfers. The establishment of the virtual serial port channel does not depend on a network connection, offering high reliability and making it suitable for small file transfer scenarios.

[0053] The creation of a network file sharing channel is completed automatically after the virtual machine starts. For example, after the virtual machine starts, the system automatically checks the network service status. When the virtual machine's network service is available, the system automatically maps the SMB shared directory. Establishing a network file sharing channel includes steps such as creating a shared directory, setting access permissions, and starting the SMB service. The system automatically maps the shared directory to a specific path within the virtual machine and ensures that this path is accessible within the virtual machine. After the channel is established, the system performs a connection test to ensure the network file sharing channel is stable and available. The establishment of the TCP / IP network channel fully utilizes the bandwidth of the virtual machine's network service and is suitable for scenarios involving high-speed transfer of large files.

[0054] The establishment of the three channels is not independent, but rather a coordinated step in the virtual machine startup process. For example, when the virtual machine starts, the system first creates a virtual serial port channel. After the virtual machine starts, the system automatically maps a network file sharing channel. After the virtual machine's network service starts, the system establishes a TCP / IP network channel. After the three channels are established, the system monitors the channel status to ensure that all channels are available.

[0055] Furthermore, in one embodiment, the aforementioned monitoring of transmission status includes real-time display of the global transmission progress. Fault information is automatically recorded when transmission fails.

[0056] The aforementioned switch to the backup channel includes: switching the current transmission task to the virtual serial port channel when a network failure is detected; and switching the current transmission task to the network file sharing channel when a serial port failure is detected.

[0057] In this embodiment, the system provides users with clear feedback on transmission progress by monitoring the transmission status in real time, and automatically records fault information when transmission is abnormal, providing a basis for subsequent troubleshooting.

[0058] Secondly, embodiments of this application also provide a virtual machine three-channel adaptive and concurrent file transfer system.

[0059] In one embodiment, reference is made to Figure 2 , Figure 2 This is a functional module diagram of an embodiment of the virtual machine three-channel adaptive and concurrent file transfer system of this application. Figure 2 As shown, the virtual machine three-channel adaptive and concurrent file transfer system includes a virtual machine management module 1, a multi-channel management module 2, an intelligent scheduling module 3, a file operation interception module 4, and a transmission monitoring module 5.

[0060] The virtual machine management module 1 synchronously creates a virtual serial port channel when the virtual machine starts and automatically maps it to a network file sharing channel after the virtual machine starts. The multi-channel management module 2 monitors the status of the aforementioned virtual serial port channel, network file sharing channel, and TCP / IP network channel. The file operation interception module 4 captures file operation trigger events. The intelligent scheduling module 3 analyzes file characteristics and selects one or more transmission channels based on these characteristics. Files are then transferred to the virtual machine via the selected transmission channels; when multiple transmission channels are selected, file transfers are performed concurrently. The transmission monitoring module 5 monitors the transmission status in real time and switches to a backup channel in case of transmission failure.

[0061] In this embodiment, the virtual machine three-channel adaptive and concurrent file transfer method solves the technical problems of low file transfer efficiency, insufficient reliability and complex user operation in related technologies.

[0062] Specifically, by using a three-channel concurrent transmission mechanism, the optimal transmission channel is dynamically selected based on file characteristics, avoiding the queuing problem caused by traditional single-channel sequential transmission, achieving high-speed transmission of large files and efficient batch distribution of small files, and improving the file transmission efficiency of the virtual machine.

[0063] Based on a three-channel redundancy design, the system automatically switches to the backup channel when a transmission failure is detected, eliminating the risk of transmission failure caused by a single-channel failure and improving transmission reliability.

[0064] No manual configuration of network sharing or selection of transfer methods is required. Users can trigger the transfer simply by performing regular file operations (such as dragging and dropping files or choosing to open them with a virtual machine application), achieving a zero-configuration operation experience.

[0065] Furthermore, in one embodiment, the file operation triggering event includes drag-and-drop file operations or selecting to open a file with a virtual machine application.

[0066] In this embodiment, the capture of file operation trigger events is achieved through an operating system-level event listening mechanism.

[0067] Drag-and-drop file operations refer to a user selecting one or more files in the host operating system's (such as HarmonyOS) file manager, then long-pressing the file icon and dragging it to the virtual machine application window. The system captures this drag-and-drop event, obtains the file path and metadata, parses the event type, identifies it as a drag-and-drop file operation, and triggers the virtual machine's three-channel adaptive and concurrent file transfer method. The system automatically analyzes the characteristics of the selected files (such as file size and number), selects the optimal transfer channel based on the file characteristics, and performs concurrent file transfer.

[0068] Choosing to open a file using a virtual machine application refers to a user selecting a file in the host operating system (such as HarmonyOS), clicking the share button, and the system displaying a share menu. The share menu shows the option to open the file using a virtual machine application. When the user selects to open the file using a virtual machine application, the system captures this operation event, obtains the file path and metadata, parses the event type, identifies it as an operation to open the file using a virtual machine application, and triggers the virtual machine's three-channel adaptive and concurrent file transfer method. The system automatically analyzes the characteristics of the selected files (including file size and number of files), selects the optimal transfer channel based on these characteristics, and performs concurrent file transfer.

[0069] During implementation, the system handles both operations uniformly, requiring no additional configuration or selection of transmission methods by the user. The file operation interception module 4 uses operating system APIs to capture events, ensuring the timeliness and accuracy of operation triggering. When a user performs any of the above operations, the system automatically initiates the file transfer process. The transfer process is transparent to the user, displaying only a global transfer progress bar, requiring no user intervention.

[0070] Furthermore, in one embodiment, the aforementioned file characteristics include file size and number of files.

[0071] The file sizes mentioned above are categorized as small, medium, and large. The file quantities mentioned above are categorized as single files and batch files.

[0072] When the above file is small and a single file, select the virtual serial port channel. When the above file is large and a single file, select the TCP / IP network channel. When the above file is medium-sized and a single file, select the network file sharing channel.

[0073] When the above files are in batches, they are divided into multiple subsets. These subsets include small file subsets, medium file subsets, and large file subsets. The small file subset is transmitted via a virtual serial port channel. The medium file subset is transmitted via a network file sharing channel. The large file subset is transmitted via a TCP / IP network channel.

[0074] In this embodiment, small files refer to file types that are small in size and suitable for transmission through high-reliability channels. Such files typically have the characteristics of low sensitivity to transmission delay and high requirements for transmission success rate.

[0075] Medium-sized files refer to file types that are of moderate size and require both a certain transfer speed and stable transfer. These files are usually regular application documents or images.

[0076] Large files refer to file types that are large in size and require high-speed transmission channels to shorten transmission time. These files are usually large data such as videos and images.

[0077] The system automatically obtains file size information before file transfer and classifies files into corresponding ranges by comparing them with preset thresholds, providing basic data for subsequent channel selection.

[0078] A single file refers to a situation where a user selects and transfers only one file at a time. In this type of transfer scenario, the focus is usually on the transfer efficiency and reliability of a single file.

[0079] Batch file transfer refers to situations where a user selects and transfers more than one file at a time. In such transfer scenarios, the overall transfer efficiency and concurrency of the file set need to be considered.

[0080] Before file transfer, the system automatically counts the number of files selected by the user and classifies the file set into the corresponding category based on the number threshold (e.g., one file is a single file, more than one file is a batch file).

[0081] During implementation, the system performs a comprehensive analysis of file size and number to form a complete description of file characteristics, providing a comprehensive basis for channel selection.

[0082] When the file is a single file, the system selects the channel based on the file size: if the file is small, a virtual serial port channel (high reliability channel) is selected; if the file is medium-sized, a network file sharing channel (balanced channel) is selected; if the file is large, a TCP / IP network channel (high-speed channel) is selected.

[0083] When files are processed in batches, the system divides the file set into multiple subsets: small files are divided into small file subsets and transmitted via a virtual serial port channel; medium-sized files are divided into medium file subsets and transmitted via a network file-sharing channel; and large files are divided into large file subsets and transmitted via a TCP / IP network channel. Each subset is transmitted independently, enabling concurrent execution across three channels.

[0084] In this embodiment, file characteristic analysis and channel selection are fully automated and require no user intervention. The system dynamically determines the optimal transmission scheme based on file characteristics to ensure the best balance between transmission efficiency and reliability.

[0085] Furthermore, in one embodiment, a virtual serial port channel is created synchronously when the virtual machine starts. A network file sharing channel is automatically mapped after the virtual machine starts. A TCP / IP network channel is established after the virtual machine's network service starts.

[0086] In this embodiment, the establishment of the three channels is a preliminary preparation during the virtual machine startup process, ensuring that the transmission channels are ready when the user triggers a file transfer operation, so that the channels do not need to be re-established during the file operation.

[0087] The creation of a virtual serial port channel is closely linked to the virtual machine's startup process, completing synchronously when the virtual machine starts. For example, when a user opens a virtual machine application or starts a virtual machine instance, the system automatically initializes the virtual machine environment. During the virtual machine startup process, the system immediately creates a virtual serial port channel, which is implemented based on the virtual machine's serial port driver. After the virtual serial port channel is created, the system automatically registers it as an available channel for file transfer. After the channel is established, the system performs basic tests to ensure normal channel communication, preparing for subsequent small file transfers. The establishment of the virtual serial port channel does not depend on a network connection, offering high reliability and making it suitable for small file transfer scenarios.

[0088] The creation of a network file sharing channel is completed automatically after the virtual machine starts. For example, after the virtual machine starts, the system automatically checks the network service status. When the virtual machine's network service is available, the system automatically maps the SMB shared directory. Establishing a network file sharing channel includes steps such as creating a shared directory, setting access permissions, and starting the SMB service. The system automatically maps the shared directory to a specific path within the virtual machine and ensures that this path is accessible within the virtual machine. After the channel is established, the system performs a connection test to ensure the network file sharing channel is stable and available. The establishment of the TCP / IP network channel fully utilizes the bandwidth of the virtual machine's network service and is suitable for scenarios involving high-speed transfer of large files.

[0089] The establishment of the three channels is not independent, but rather a coordinated step in the virtual machine startup process. For example, when the virtual machine starts, the system first creates a virtual serial port channel. After the virtual machine starts, the system automatically maps a network file sharing channel. After the virtual machine's network service starts, the system establishes a TCP / IP network channel. After the three channels are established, the system monitors the channel status to ensure that all channels are available.

[0090] Furthermore, in one embodiment, the aforementioned monitoring of transmission status includes real-time display of the global transmission progress. Fault information is automatically recorded when transmission fails.

[0091] The aforementioned switch to the backup channel includes: switching the current transmission task to the virtual serial port channel when a network failure is detected; and switching the current transmission task to the network file sharing channel when a serial port failure is detected.

[0092] In this embodiment, the system provides users with clear feedback on transmission progress by monitoring the transmission status in real time, and automatically records fault information when transmission is abnormal, providing a basis for subsequent troubleshooting.

[0093] The functions of each module in the above-mentioned virtual machine three-channel adaptive and concurrent file transfer system correspond to the steps in the above-mentioned virtual machine three-channel adaptive and concurrent file transfer method embodiment, and their functions and implementation processes will not be described in detail here.

[0094] Thirdly, embodiments of this application provide a virtual machine three-channel adaptive and concurrent file transfer device, which can be a personal computer (PC), laptop computer, server, or other device with data processing capabilities.

[0095] In this embodiment, the virtual machine three-channel adaptive and concurrent file transfer device may include a processor, a memory, a communication interface, and a communication bus.

[0096] The communication bus can be of any type and is used to interconnect the processor, memory, and communication interface.

[0097] The communication interface includes input / output (I / O) interfaces, physical interfaces, and logical interfaces used for interconnecting devices within the virtual machine's three-channel adaptive and concurrent file transfer device, as well as interfaces used for interconnecting the virtual machine's three-channel adaptive and concurrent file transfer device with other devices (such as other computing devices or user devices). Physical interfaces can be Ethernet interfaces, fiber optic interfaces, ATM interfaces, etc. User devices can be displays, keyboards, etc.

[0098] Memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.

[0099] The processor can be a general-purpose processor, which can call the virtual machine three-channel adaptive and concurrent file transfer program stored in memory and execute the virtual machine three-channel adaptive and concurrent file transfer method provided in the embodiments of this application. For example, the general-purpose processor can be a central processing unit (CPU). The method executed when the virtual machine three-channel adaptive and concurrent file transfer program is called can be referred to the various embodiments of the virtual machine three-channel adaptive and concurrent file transfer method of this application, and will not be repeated here.

[0100] Fourthly, embodiments of this application also provide a computer-readable storage medium.

[0101] The present application stores a virtual machine three-channel adaptive and concurrent file transfer program on a computer-readable storage medium, wherein when the virtual machine three-channel adaptive and concurrent file transfer program is executed by a processor, it implements the steps of the virtual machine three-channel adaptive and concurrent file transfer method as described above.

[0102] The method implemented when the virtual machine three-channel adaptive and concurrent file transfer program is executed can be referred to in various embodiments of the virtual machine three-channel adaptive and concurrent file transfer method of this application, and will not be repeated here.

[0103] It should be noted that the sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0104] The terms "comprising" and "having," and any variations thereof, in the specification, claims, and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus. The terms "first," "second," and "third," etc., are used to distinguish different objects, etc., and do not indicate a sequence, nor do they limit "first," "second," and "third" to different types.

[0105] In the description of the embodiments of this application, terms such as "exemplary," "for example," or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplary," "for example," or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary," "for example," or "for instance" is intended to present the relevant concepts in a concrete manner.

[0106] In the description of the embodiments of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The "and / or" in the text is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more.

[0107] In some processes described in the embodiments of this application, multiple operations or steps are included in a specific order. However, it should be understood that these operations or steps may not be executed in the order they appear in the embodiments of this application, or they may be executed in parallel. The sequence number of the operation is only used to distinguish different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed sequentially or in parallel, and these operations or steps may be combined.

[0108] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device to execute the methods described in the various embodiments of this application.

[0109] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A method for three-channel adaptive and concurrent file transfer in a virtual machine, characterized in that, The virtual machine three-channel adaptive and concurrent file transfer method includes: File capture operations trigger events; Analyze the characteristics of the file and select one or more transmission channels from pre-established virtual serial port channels, network file sharing channels, and TCP / IP network channels based on the file characteristics; Files are transferred to the virtual machine based on the selected transfer channel. When multiple transfer channels are selected, file transfers are performed concurrently. The system monitors the transmission status during transmission and switches to a backup channel in case of transmission failure.

2. The virtual machine three-channel adaptive and concurrent file transfer method as described in claim 1, characterized in that, The file operation triggering events include drag-and-drop file operations or selecting to open a file with a virtual machine application.

3. The virtual machine three-channel adaptive and concurrent file transfer method as described in claim 1, characterized in that, The file characteristics include file size and number of files.

4. The virtual machine three-channel adaptive and concurrent file transfer method as described in claim 3, characterized in that, The file size is divided into small files, medium files, and large files; the number of files is divided into single files and batch files.

5. The virtual machine three-channel adaptive and concurrent file transfer method as described in claim 4, characterized in that, When the file is small and a single file, select the virtual serial port channel; when the file is large and a single file, select the TCP / IP network channel; when the file is medium-sized and a single file, select the network file sharing channel.

6. The virtual machine three-channel adaptive and concurrent file transfer method as described in claim 4, characterized in that, When the files are in batches, the files are divided into multiple subsets; the subsets include a small file subset, a medium file subset, and a large file subset; the small file subset is transmitted through a virtual serial port channel; the medium file subset is transmitted through a network file sharing channel; and the large file subset is transmitted through a TCP / IP network channel.

7. The virtual machine three-channel adaptive and concurrent file transfer method as described in claim 1, characterized in that, A virtual serial port channel is created synchronously when the virtual machine starts; a network file sharing channel is automatically mapped after the virtual machine starts; and a TCP / IP network channel is established after the virtual machine network service starts.

8. The virtual machine three-channel adaptive and concurrent file transfer method as described in claim 1, characterized in that, The monitored transmission status includes real-time display of the global transmission progress and automatic recording of fault information when transmission fails.

9. The virtual machine three-channel adaptive and concurrent file transfer method as described in claim 1, characterized in that, The switching to the backup channel includes: when a network failure is detected, switching the current transmission task to the virtual serial port channel; when a serial port failure is detected, switching the current transmission task to the network file sharing channel.

10. A virtual machine three-channel adaptive and concurrent file transfer system, characterized in that, The virtual machine three-channel adaptive and concurrent file transfer system includes: The virtual machine management module is used to synchronously create virtual serial port channels when the virtual machine starts, and automatically map network file sharing channels after the virtual machine starts. The multi-channel management module is used to monitor the status of the virtual serial port channel, network file sharing channel, and TCP / IP network channel; The intelligent scheduling module is used to analyze file characteristics, select one or more transmission channels based on the file characteristics, and transfer the file to the virtual machine based on the selected transmission channels. When multiple transmission channels are selected, file transfer is performed concurrently. The file operation interception module is used to capture file operation trigger events; The transmission monitoring module is used to monitor the transmission status in real time and switch to the backup channel when a transmission failure occurs.