File copying method, host machine, edge computing system and storage medium

By copying the program files into the mirror file before the virtual machine starts and running after startup, the problem of monitoring the virtual machine and file status in traditional solutions is solved, simplifying operations and improving stability and user experience.

CN119396523APending Publication Date: 2025-02-07SHENZHEN QIANHAI HUANRONG LIANYI INFORMATION TECHNOLOGY SERVICES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411406139.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

In traditional solutions, it is necessary to monitor the virtual machine status and file status, resulting in additional monitoring programs or scripts being required.

Method used

Before the virtual machine starts, copy the program file to the corresponding image file of the virtual machine, and run the program file after the virtual machine starts.

Benefits of technology

It eliminates unnecessary virtual machine status monitoring and file detection operations, reduces the cumbersome operation, and improves stability and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119396523A_ABST
    Figure CN119396523A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of virtual machines, in particular to a file copying method, a host machine, an edge computing system and a storage medium, and is used for reducing additional configuration so as to reduce the tedious degree. The method comprises the steps of obtaining a program file needing to be executed after the virtual machine is started; before the virtual machine is started, copying the program file to a mirror image file corresponding to the virtual machine; and starting the virtual machine to enable the virtual machine to run the program file after the virtual machine is started.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of virtual machine technology, and in particular to a file copying method, a host machine, an edge computing system, and a storage medium. Background Art

[0002] ‌‌A virtual machine (virtual computer) is a computer system with complete hardware system functions that is simulated by software and runs in a completely isolated environment. Multiple virtual machines can be simulated on a physical computer. Each virtual machine has its own operating system and independent software environment. Users can switch between different virtual machines to achieve multitasking to realize corresponding applications. There are some application scenarios where, after the virtual machine is started, the virtual machine can run the program files in the virtual machine to realize the corresponding application or function of the program file.

[0003] The inventors realized that in the traditional solution, after the virtual machine is started and the virtual machine is detected to have started successfully, the program file to be run by the virtual machine is copied to the virtual machine, and the virtual machine executes the program file only after detecting that the program file exists. The above copying solution requires monitoring the virtual machine status and file status, which requires additional configuration of a monitoring program or script. Summary of the invention

[0004] The embodiments of the present application provide a file copying method, a host machine, an edge computing system, and a storage medium to solve the technical problem that in traditional solutions, it is necessary to monitor the status of virtual machines and files, resulting in the need to additionally configure monitoring programs or scripts.

[0005] In a first aspect, a file copying method is provided, the method comprising: Obtain the program file to be executed after the virtual machine is started; Before the virtual machine is started, copying the program file to the image file corresponding to the virtual machine; The virtual machine is started so that the program file runs after the virtual machine is started.

[0006] Furthermore, the virtual machine runs on a container, and before the virtual machine is started, the program file is copied to an image file corresponding to the virtual machine, including: Before the container is started and before the virtual machine is started, copying the program file to the image file corresponding to the virtual machine in the container; or; After the container is started and before the virtual machine is started, the program file is copied to the image file corresponding to the virtual machine in the container.

[0007] Furthermore, the program files include process automation program files.

[0008] Furthermore, after starting the virtual machine so that the virtual machine starts and runs the program file, the method further includes: Acquire real-time running status data when the virtual machine runs the process automation program file; Based on the real-time running status data, the configuration information of the process automation program file in the image file is automatically updated, so that the virtual machine runs the updated process automation program file in a subsequent automation service cycle.

[0009] Furthermore, after obtaining the real-time running status data of the virtual machine when running the process automation program file, the method further includes: Based on the real-time running status data, the configuration information of the process automation program file pre-stored in the target storage space is automatically updated.

[0010] In a second aspect, a host machine is provided, wherein the host machine is deployed with a container and a virtual machine, wherein: The container obtains the program files to be executed after the virtual machine is started; Before the virtual machine is started, the container copies the program file to the image file corresponding to the virtual machine; The container starts the virtual machine so that the program file runs after the virtual machine is started.

[0011] Furthermore, the virtual machine runs on a container, and before the virtual machine is started, the container copies the program file to an image file corresponding to the virtual machine, including: Before the container is started and before the virtual machine is started, the container copies the program file to the image file corresponding to the virtual machine in the container; or; After the container is started and before the virtual machine is started, the container copies the program file to an image file corresponding to the virtual machine in the container.

[0012] Furthermore, the program files include process automation program files.

[0013] In a third aspect, an edge computing system is provided, the edge computing system comprising a plurality of edge nodes, each of the plurality of edge nodes being deployed with a virtual machine, wherein one of the edge nodes is deployed with a container, wherein: The container obtains a program file to be executed after the virtual machine is started; Before the virtual machine is started, the container copies the program file to the image file corresponding to the virtual machine; The container starts the virtual machine so that the program file runs after the virtual machine is started.

[0014] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the file copying method as described in any one of the above items is implemented.

[0015] In any of the above-mentioned solutions, a file copying solution is provided, that is, before the virtual machine is started, the program file is copied to the image file corresponding to the virtual machine, and then the virtual machine is started so that the program file can be run after the virtual machine is started. Since the step of copying the program file is placed before the virtual machine is started, the redundant virtual machine status monitoring and file detection operations can be omitted, so there is no need for redundant configuration programs or scripts, reducing the cumbersome operation process. That is, the embodiment of the present application copies before the virtual machine is started, and the virtual machine is already stored in the specified directory after it is started, so there is no need for detection, which simplifies the operation, is more stable, and provides a better user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0017] Figure 1 This is a schematic diagram of an application environment of a file copying method in an embodiment of the present application; Figure 2 is a flow chart of a file copying method in an embodiment of the present application; Figure 3 This is a flowchart of a file copying method in one embodiment of the present application; Figure 4 It is a structural schematic diagram of a host machine in one embodiment of the present application. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0019] The present application provides a file copying method, a host machine, an edge computing system, and a storage medium, which are used in the execution file copying process of a virtual machine to reduce additional configuration and reduce the complexity. The file copying method can be applied as follows: Figure 1 In the application environment shown, the application environment includes a virtual machine and a container. Specifically, the file copy method can be applied to Figure 1 In the container shown, as an example, the above container and the virtual machine can be deployed on the same host machine or on different host machines respectively, without specific limitation. Among them, the host machine can refer to any computer device that can deploy a container or a virtual machine, including but not limited to servers, cloud services, edge nodes in edge computing systems and other computer devices, without specific limitation.

[0020] As an example explanation, the container type of the container includes but is not limited to containers such as docker containers and Podman containers. In addition, as another explanation, the container can be a container built based on the Linux system or a container built based on the Windows system; there is no specific limitation. The virtual machine refers to a virtual operating system that can run on the above-mentioned computer device. As an example explanation, the virtual machine includes but is not limited to Windows virtual machines, Linux virtual machines, etc., and there is no specific limitation. It should be noted that the specific types involved in this article are only exemplary and do not represent actual applications.

[0021] It should be noted that the file copying method provided in the embodiment of the present application can be applied to Figure 1 The container shown, however, Figure 1 The application environment shown is only an exemplary description. In other implementation embodiments, a file copy method provided in the embodiment of the present application can also be implemented in other entities. For example, it can be a program module running on a host machine. For the convenience of understanding and description, the embodiment of the present application will take the container as an example in the following embodiments and related drawings, without specific limitation.

[0022] Taking the container as an example, in the embodiment of the present application, when the container copies the program file to be executed to the virtual machine, the container will obtain the program file to be executed after the virtual machine is started; before the virtual machine is started, the container first copies the program file to the image file corresponding to the virtual machine, and then the container starts the virtual machine so that the program file runs after the virtual machine is started. The embodiment of the present application is described in detail below through specific embodiments.

[0023] In one embodiment, if Figure 1 and Figure 2As shown, a file copy method is provided, which is applied in Figure 1 Taking the container in as an example, the method comprises the following steps: S10: Obtaining a program file to be executed after the virtual machine is started; S20: before the virtual machine is started, copying the program file to the image file corresponding to the virtual machine; S30: Start the virtual machine, so that the program file runs after the virtual machine is started.

[0024] In this embodiment, the virtual machine includes but is not limited to Windows virtual machines, Linux virtual machines and other virtual machines, and is not specifically limited. The program file obtained by the container is an executable file that needs to be executed after the virtual machine is started. When the virtual machine executes the program file after the virtual machine is successfully started, the virtual machine can achieve the corresponding program purpose, thereby having the required virtual machine function. For example, taking the virtual machine as a Windows virtual machine as an example, this program file can be an executable file that needs to be executed after the Windows virtual machine is started, so that the Windows virtual machine can achieve the corresponding program function based on the program file.

[0025] Different from the traditional solution, in this embodiment, before the virtual machine is started, the container first copies the program file to the image file corresponding to the virtual machine. It should be understood that the above process can also be understood as the container first copies the program file to the image of the virtual machine, so that the virtual machine can execute the program file after successful startup. The container can achieve the purpose of the container copying the program file to the image of the virtual machine by copying the program file to the folder specified by the virtual machine. After the container copies the file, the container can start the virtual machine, so that the virtual machine can run the program file after successful startup.

[0026] It can be seen that in this embodiment, a file copying method is provided, which is to copy the program file to the image file corresponding to the virtual machine before the virtual machine is started, and then start the virtual machine to run the program file after the virtual machine is started. Since the step of copying the program file is placed before the virtual machine is started, the redundant virtual machine status monitoring and file detection operations can be omitted, so there is no need to configure unnecessary programs or scripts, reducing the complexity of operations; if the copy is made after the virtual machine is started, it is generally necessary to periodically loop to detect whether the program file exists, and it can only be run if it exists. The embodiment of the present application copies before the virtual machine is started, and the virtual machine is already stored in the specified directory after the virtual machine is started, so there is no need for detection, which simplifies the operation, is more stable, and provides a better user experience.

[0027] In one embodiment, the virtual machine runs on a container, and before the virtual machine is started, copying the program file to an image file corresponding to the virtual machine in the container includes: Before the container is started and before the virtual machine is started, the program file is copied to the image file corresponding to the virtual machine in the container; or; after the container is started and before the virtual machine is started, the program file is copied to the image file corresponding to the virtual machine in the container.

[0028] That is to say, in this embodiment, when the program file is copied to the image file corresponding to the virtual machine in the container, there may be two processing mechanisms: One is that the virtual machine runs on a container, and before the container is started and before the virtual machine is started, the container copies the program file to the image file corresponding to the virtual machine in the container. In this application scenario, when copying the program file of the virtual machine, it is not only the condition before the virtual machine is started, but also includes copying before the container is started. In addition to ensuring the diversity of solution implementation, it can also reduce the monitoring operation of the container and the uncertain time waiting. The reason is that due to configuration problems or other restrictions, the startup time of the container is not fixed. Therefore, if the program file is copied to the virtual machine after the container is started, it will change accordingly with the startup time of the container, resulting in the user being unable to know exactly when the program file is synchronized to the container. The user needs to write a container detection script or program, which is a little troublesome to use. The method of the embodiment of the present application can copy before the container is started. In addition to ensuring the implementability of the solution, it can also reduce the monitoring operation of the container and the uncertain waiting, reduce cumbersome operations, and provide a better user experience.

[0029] Another method is that the virtual machine runs on a container, and after the container is started and before the virtual machine is started, the container copies the program file to the image file corresponding to the virtual machine in the container. In this application scenario, the virtual machine can run on the container of the same host machine, and when copying the program file of the virtual machine, it can also be copied after the container is started to ensure the diversity of the implementation of the solution; this method requires monitoring whether the container is started first.

[0030] It should be noted that in this application, the program file obtained by the container is an executable file that needs to be executed after the virtual machine is started. When the virtual machine executes the program file after starting, the corresponding program purpose can be achieved, thereby achieving the required virtual machine function. For example, taking the virtual machine as a Windows virtual machine as an example, this program file is an executable file that needs to be executed after the Windows virtual machine is started, so that the Windows virtual machine can achieve the corresponding program function based on the program file, and in this embodiment, the program file includes a process automation service (Robotic Process Automation, RPA) program file.

[0031] In the embodiments of the present application, RPA program files are referred to as such. RPA is also called Robotic Process Automation. By running the RPA program files, the virtual machine can simulate the manual operation of the end user, providing a way to ultimately achieve the purpose of simulating the automation of the user's manual operation process. For example, simulating user login and other operations. Especially in the Windows environment, there are many applications, and many applications need to run in the Windows environment, so there are more application software for Windows virtual machines. In this context, using Windows virtual machines to run RPA program files to simulate user operations and reduce repetitive work can greatly simplify the user-side programs, so that many applications use RPA tools. It should be noted that the RPA program file can be in the form of a script file, and exemplarily, it can be a python script file, which is not specifically limited.

[0032] It can be seen that since a large number of application software need to implement automated process services through RPA, through the embodiments of the present application, the RPA program files that need to be executed after the virtual machine is successfully started can be copied to the image file corresponding to the Windows virtual machine before the virtual machine is started, ensuring that the RPA tool can be quickly applied after the virtual machine is successfully started. There is no need to configure additional detection scripts or programs for each application software, which can reduce a lot of additional configuration work and has strong practicality.

[0033] It should be noted that, in other embodiments, the program file may also be a file that can be executed by other virtual machines, including non-process files, which is not limited to the specific embodiments of the present application.

[0034] In one embodiment, the program file includes a process automation program file, that is, an RPA program file. After step S30, that is, starting the virtual machine so that the virtual machine runs the program file after the startup is completed, the method further includes: S40: Acquire real-time running status data when the virtual machine runs the process automation program file; S50: Automatically update the configuration information of the process automation program file in the image file based on the real-time running status data, so that the virtual machine runs the updated process automation program file in a subsequent automation service cycle.

[0035] It should be understood that, as mentioned in the previous embodiment, since a large number of application software need to realize automated process services through RPA, through the embodiment of the present application, the RPA program files to be executed after the virtual machine is successfully started can be copied to the image file corresponding to the windows virtual machine before the virtual machine is started, ensuring that the RPA tool can be quickly applied after the virtual machine is successfully started. In order to optimize the execution of the RPA program, in this example, the container can automatically update the configuration information of the RPA program file based on the real-time running status data, so that the virtual machine runs the updated RPA program file in the subsequent automated service cycle. The configuration information of the RPA program file includes but is not limited to the execution nodes, processes, and specific contents of each process of RPA, etc., which are not specifically limited.

[0036] It can be seen that in this embodiment, a file copying method is provided, and the RPA program file is run under the copying scheme provided by the embodiment of the present application, and the configuration information of the RPA program file can be automatically updated based on the real-time running status data, so that the virtual machine can run the updated RPA program file in the subsequent automation service cycle, that is, the program file copied to the virtual machine is automatically updated to ensure the effectiveness and accuracy of the execution of the next cycle.

[0037] In one embodiment, after step S40, after obtaining the real-time running status data of the virtual machine when running the process automation program file, the method further includes: S60: Based on the real-time running status data, automatically update the configuration information of the process automation program file pre-stored in the target storage space.

[0038] It should be understood that, as mentioned in the previous embodiment, the configuration information of the RPA program file can be automatically updated based on the real-time running status data, so that the virtual machine can run the updated RPA program file in the subsequent automated service cycle. However, in some application scenarios, multiple virtual machines may be configured, and each virtual machine may have the same automated service process requirements. Therefore, in view of this situation, in the embodiment of the present application, after obtaining the RPA program file to be executed after the virtual machine is started, the container will first pre-store it in the target storage space, for example, it can be the storage space of the host machine running the virtual machine; then the container starts the virtual machine to run the PRA program file, and after obtaining the real-time running status data of the virtual machine PRA program file, based on the real-time running status data, automatically updates the configuration information of the RPA program file pre-stored in the target storage space; similarly, the configuration information of the RPA program file includes but is not limited to the execution nodes, processes, specific contents of each process, etc. of RPA, and is not specifically limited.

[0039] It can be seen that the embodiment of the present application provides a file copying method, through which the PRA program file pre-stored in the target storage space can be updated. Therefore, when other virtual machines have needs, they can copy the updated PRA program file in the pre-stored space in other virtual machines to implement the file copying solution provided by the embodiment of the present application, thereby updating the PRA program files of one or more other virtual machines to the latest state, fully ensuring the execution of the automated service processes of other virtual machines, and being more practical, simpler and faster.

[0040] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0041] The above embodiment introduces a file copy method provided by the present application. Correspondingly, the embodiment of the present application also provides a host machine, and its function or role is described below from the perspective of the host machine.

[0042] In one embodiment, a host machine is provided, Figure 1 As shown, the host machine is deployed with containers and virtual machines, wherein: The container obtains the program files to be executed after the virtual machine is started; Before the virtual machine is started, the container copies the program file to the image file corresponding to the virtual machine; The container starts the virtual machine so that the program file runs after the virtual machine is started.

[0043] It can be seen that in this embodiment, a host machine is provided, and the host machine is deployed with a container and a virtual machine. Before the container starts the virtual machine, the program file is copied to the image file corresponding to the virtual machine, and then the container starts the virtual machine so that the program file can be run after the virtual machine is started. Since the step of copying the program file is placed before the virtual machine is started, the redundant virtual machine status monitoring and file detection operations can be omitted, so there is no need to configure unnecessary programs or scripts, reducing the complexity of operations; if the virtual machine is copied after it is started, it is generally necessary to periodically loop to detect whether the program file exists, and it can only be run if it exists. The embodiment of the present application copies before the virtual machine is started, and the virtual machine is already stored in the specified directory after it is started, so there is no need for detection, which simplifies the operation, is more stable, and provides a better user experience.

[0044] In combination with the above-mentioned host machine embodiment, in one embodiment, before the virtual machine is started, the container copies the program file to the image file corresponding to the virtual machine, including: before the container is started and before the virtual machine is started, the container copies the program file to the image file corresponding to the virtual machine in the container; or; after the container is started and before the virtual machine is started, the container copies the program file to the image file corresponding to the virtual machine in the container.

[0045] In this embodiment, the container copies the program file to the image file corresponding to the virtual machine in the container. In this application scenario, the virtual machine can be run on the container of the same host machine, and when copying the program file of the virtual machine, in addition to the condition before the virtual machine is started, the copy can be made after the container is started to ensure the feasibility of the solution; this method requires monitoring whether the container is started first. Before the container is started and before the virtual machine is started, the container copies the program file to the image file corresponding to the virtual machine in the container. When copying the program file of the virtual machine, in addition to the condition before the virtual machine is started, the copy can be made before the container is started. In addition to ensuring the feasibility of the solution, it can also reduce the monitoring operation of the container and the uncertain waiting. The reason is that due to configuration problems or other restrictions, the startup time of the container is not fixed. Therefore, copying the program file after the container is started will change accordingly with the startup time of the container, resulting in the user being unable to know exactly when the program file is synchronized to the container. The user needs to write a container detection script or program, which is a bit troublesome to use. The method of the embodiment of the present application can copy before the container is started. In addition to ensuring the feasibility of the solution, it can also reduce the monitoring operation of the container and the uncertain waiting, and provide a better user experience.

[0046] In combination with the above host machine embodiment, in one embodiment, the program file includes a process automation program file.

[0047] In combination with the above host machine embodiment, in one embodiment, the program file includes a process automation program file, that is, an RPA program file. After the container starts the virtual machine so that the virtual machine starts and runs the program file, the container is further used to: Acquire real-time running status data of the virtual machine when running the process automation program file; The configuration information of the process automation program file in the image file is automatically updated based on the real-time running status data, so that the virtual machine runs the updated process automation program file in a subsequent automation service cycle.

[0048] In this embodiment, after the container starts the virtual machine so that the virtual machine starts and runs the RPA program file, the virtual machine can run the RPA program file, so that the virtual machine can implement the corresponding automated process service process, such as simulating user login, operation and other processes. The automated process service process depends on the implementation logic of the specific RPA program file. For example, in the financial industry, taking the account opening process as an example, in a bank or financial institution, the RPA program file can automatically extract relevant information from various documents submitted by the customer, enter it into the bank's account opening system, and connect to the credit assessment agency's system for risk assessment query, which greatly shortens the account opening time and improves the customer experience. For related applications in the financial industry or other industries, repetitive process labor can also be cancelled through RPA program files. Specific examples are not given here one by one.

[0049] It can be seen that in this embodiment, a host machine is provided, which runs the RPA program file under the copy scheme provided by the embodiment of the present application, and can automatically update the configuration information of the RPA program file based on the real-time running status data, so that the virtual machine can run the updated RPA program file in the subsequent automation service cycle, that is, automatically update the program file copied to the virtual machine, to ensure the effectiveness and accuracy of the execution of the next cycle.

[0050] In combination with the above host machine embodiment, in one embodiment, after the container obtains the real-time running status data of the virtual machine when running the process automation program file, the container is also used to: Based on the real-time running status data, the configuration information of the process automation program file pre-stored in the target storage space is automatically updated.

[0051] It should be understood that in the previous embodiment, the container can automatically update the configuration information of the RPA program file based on the real-time running status data, so that the virtual machine runs the updated RPA program file in the subsequent automated service cycle. However, in some application scenarios, multiple virtual machines may be configured in the same host machine or in different host machines, and each virtual machine may have the same automated service process requirements. Therefore, in response to this situation, the container of the embodiment of the present application will first pre-store the RPA program file to be executed in the target storage space after obtaining the RPA program file to be executed, which may be the storage space of the host machine running the virtual machine; when the virtual machine runs the PRA program file, after the container obtains the real-time running status data when the virtual machine runs the PRA program file, it automatically updates the configuration information of the RPA program file pre-stored in the target storage space based on the real-time running status data.

[0052] It can be seen that this embodiment provides a host machine, through which the container can update the PRA program file pre-stored in the target storage space. Therefore, when other virtual machines have needs, they can copy the updated PRA program file in the pre-stored space in other virtual machines, thereby updating the PRA program files of one or more other virtual machines to the latest state, fully ensuring the execution of the automated service processes of other virtual machines, which is more practical, simpler and faster.

[0053] It should be noted that in the embodiment of the present application, the configuration information of the RPA program file mentioned above includes but is not limited to the execution nodes, processes, specific contents of each process, etc. of RPA, and is not specifically limited.

[0054] It should be noted that, for the specific limitations of the host machine, please refer to the relevant limitations in the above-mentioned method for copying a file, which will not be repeated here.

[0055] In one embodiment, an edge computing system is provided, the edge computing system comprising a plurality of edge nodes, each of the plurality of edge nodes being deployed with a virtual machine, wherein one of the edge nodes is deployed with a container, wherein: The container obtains a program file to be executed after the virtual machine is started; Before the virtual machine is started, the container copies the program file to the image file corresponding to the virtual machine; The container starts the virtual machine so that the program file runs after the virtual machine is started.

[0056] In combination with the above-mentioned edge computing system embodiment, in one embodiment, the program file includes a process automation program file.

[0057] In combination with the above-mentioned edge computing system embodiment, in one embodiment, the container starts the virtual machine so that after the virtual machine is started and runs the program file, the container is also used to: Acquire real-time running status data of the virtual machine when running the process automation program file; The configuration information of the process automation program file in the image file is automatically updated based on the real-time running status data, so that the virtual machine runs the updated process automation program file in a subsequent automation service cycle.

[0058] In combination with the above-mentioned edge computing system embodiment, in one embodiment, after the container obtains the real-time running status data when the virtual machine runs the process automation program file, the container is also used to: Based on the real-time running status data, the configuration information of the process automation program file pre-stored in the target storage space is automatically updated.

[0059] It can be seen that in an embodiment of the present application, an edge computing system is provided, the edge computing system includes multiple edge nodes, and the multiple edge nodes are respectively deployed with virtual machines, wherein one of the edge nodes is deployed with a container, and the container is used to implement the steps or functions of a file copying method in an embodiment of the present application.

[0060] It can be seen that in this embodiment, an edge computing system is provided. Through this system, in addition to eliminating the need for redundant virtual machine status monitoring and file detection operations, thereby eliminating the need for redundant configuration programs or scripts and reducing the complexity of operations; based on this edge computing system, it is also convenient to manage the entire edge node, so that the file copying form of the entire edge computing system is relatively simple and more practical.

[0061] It should be noted that for the specific limitations of the edge computing system in this embodiment and the technical effects it brings, please refer to the above limitation on a file copying method, which will not be repeated here.

[0062] In one embodiment, a host machine is provided. The host machine is a computer device on which a container can be deployed, such as a server, etc., and its internal structure diagram can be as follows: Figure 4 As shown. The host machine includes a processor, a memory, a network interface and a database connected through a system bus. The processor of the host machine is used to provide computing and control capabilities. The memory of the host machine includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. When the computer program is executed by the processor, a method for copying a file is implemented.

[0063] In one embodiment, a host machine is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, a file copy method in the above embodiment is implemented.

[0064] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, a file copying method in the above embodiment is implemented. To avoid repetition, it is not described here.

[0065] It should be noted that, regarding the specific limitations of the host machine or computer-readable storage medium in this embodiment and the technical effects brought about, please refer to the relevant limitations in the above-mentioned method for passing through a bus hardware device based on a host machine. To avoid repetition, they will not be repeated here.

[0066] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0067] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0068] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A file copying method, characterized in that: The method comprises: Get the program file to be executed after the virtual machine is started; Before the virtual machine is started, copying the program file to the image file corresponding to the virtual machine; The virtual machine is started so that the program file runs after the virtual machine is started.

2. The file copying method according to claim 1, characterized in that: The virtual machine runs on the container, and before the virtual machine is started, the program file is copied to the image file corresponding to the virtual machine, including: Before the container is started and before the virtual machine is started, copying the program file to the image file corresponding to the virtual machine in the container; or; After the container is started and before the virtual machine is started, the program file is copied to the image file corresponding to the virtual machine in the container.

3. The file copying method according to claim 1, characterized in that: The program files include process automation program files.

4. The file copying method according to claim 3, characterized in that: After starting the virtual machine so that the program file runs after the virtual machine is started, the method further includes: Acquire real-time running status data when the virtual machine runs the process automation program file; Based on the real-time running status data, the configuration information of the process automation program file in the image file is automatically updated, so that the virtual machine runs the updated process automation program file in a subsequent automation service cycle.

5. The file copying method according to claim 4, characterized in that: After obtaining the real-time running status data of the virtual machine when running the process automation program file, the method further includes: Based on the real-time running status data, the configuration information of the process automation program file pre-stored in the target storage space is automatically updated.

6. A host machine, characterized in that: The host machine is deployed with containers and virtual machines, wherein: The container obtains the program files to be executed after the virtual machine is started; Before the virtual machine is started, the container copies the program file to the image file corresponding to the virtual machine; The container starts the virtual machine so that the program file runs after the virtual machine is started.

7. The host machine according to claim 6, characterized in that: The virtual machine runs on the container, and before the virtual machine is started, the container copies the program file to the image file corresponding to the virtual machine, including: Before the container is started and before the virtual machine is started, the container copies the program file to the image file corresponding to the virtual machine in the container; or; After the container is started and before the virtual machine is started, the container copies the program file to an image file corresponding to the virtual machine in the container.

8. The host machine according to claim 6, characterized in that: The program files include process automation program files.

9. An edge computing system, characterized in that: The edge computing system includes a plurality of edge nodes, each of which is deployed with a virtual machine, wherein one of the edge nodes is deployed with a container, wherein: The container obtains a program file to be executed after the virtual machine is started; Before the virtual machine is started, the container copies the program file to the image file corresponding to the virtual machine; The container starts the virtual machine so that the program file runs after the virtual machine is started.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the file copying method according to any one of claims 1 to 5 is implemented.