This application claims the benefit of Korean Patent Application No. 10-2010-0114075, filed on Nov. 16, 2010, which is hereby incorporated by reference in its entirety into this application.
1. Technical Field
The present invention relates generally to an apparatus and method for synchronizing a virtual machine and, more particularly, to an apparatus and method for synchronizing a virtual machine, which synchronize a virtual machine image, thereby rendering it possible to provide the same working environment regardless of changes in the environment.
2. Description of the Related Art
As most personal computing work is performed over a network, the concept of cloud computing is being promulgated. In particular, with the advent of a variety of computing devices, such as the smart phone, the desire to conduct personal computing work regardless of changes in the environment is getting stronger.
However, current cloud computing services are at the level of synchronizing data files for each individual user, and have limitations on the maintenance and provision of the same working environment.
Meanwhile, the use of virtual machines is increasing in the field of separating the networks of public organizations, and the need for a virtual machine is further increasing along with the increased desire to remotely conduct computing work.
However, when a virtual OS is used remotely via a virtual machine, a large amount of data should be continuously transferred over a network, and therefore the number of users who are using the network bandwidth increases, thus resulting in the problem of the processing speed of an Operating System (OS) becoming slow.
Accordingly, the present invention has been made keeping in mind the above problems occurring in the prior art, and an object of the present invention is to provide an apparatus and method that synchronize a virtual machine so that the same working environment can be provided regardless of changes in the environment.
In order to accomplish the above object, the present invention provides an apparatus for synchronizing a virtual machine, including a distributed image server configured to include one or more servers distributed across a network, to transfer a virtual machine image to a user using the servers, and to synchronize the virtual machine image; and a virtual machine operation management unit configured to provide a virtual machine management program so that the virtual machine image for the user can be executed on a terminal, used by the user, regardless of a location of the user.
The distributed image server may update the virtual machine image with a copy-on-write (COW) image, into which a basic image of the virtual machine image has been changed, so as to synchronize the virtual machine image.
The distributed image server may transfer the virtual machine image using a server that has been selected from among the servers, distributed across the network, using bandwidth and delay time as criteria for the selection.
The virtual machine management program may include a distributed synchronization module for dividing the virtual machine image into the basic image and the COW image and transferring the COW image to the distributed image server.
The virtual machine management program may include a hypervisor module for executing a virtual operating system (OS) on the terminal using the basic image and the COW image.
The virtual machine management program may include a virtual machine image management module for performing management so that the basic image can be maintained in the terminal and requesting that the COW image be transferred to the distributed image servers using the distributed synchronization module based on results of determination of whether there has been a change in the COW image.
The virtual machine operation management unit may provide the virtual machine management program to a second terminal when the user has moved from a first terminal to the second terminal.
The distributed image server may receive the COW image from the first terminal using the virtual machine management program, and then update the virtual machine image with the COW image.
The distributed image server may transfer the virtual machine image updated with the COW image to the second terminal, thereby maintaining synchronization.
The distributed image server may transfer the virtual machine image using the servers, distributed across the network, in a distributed fashion.
In order to accomplish the above object, the present invention provides a method of synchronizing a virtual machine, including providing a virtual machine management program to a terminal to which a user has moved over a network; one or more servers distributed across the network transferring a virtual machine image to the terminal using the virtual machine management program; receiving a COW image, into which a basic image of the virtual machine image has been changed, from the terminal; and updating the virtual machine image with the COW image.
The method may further include, if the user who had used the terminal has moved to another terminal, providing a virtual machine management program to the latter terminal; and transferring the virtual machine image, updated with the COW image, to the latter terminal using the virtual machine management program, thereby maintaining synchronization.
The transferring a virtual machine image to the terminal may include selecting a first server from among the servers, distributed across the network, using bandwidth and delay time as criteria for selection; and transferring the virtual machine image using the first server.
The virtual machine management program may include a distributed synchronization module for dividing the virtual machine image into the basic image and the COW image and transferring the COW image; a hypervisor module for executing a virtual OS on the terminal using the basic image and the COW image; and a virtual machine image management module for performing management so that the basic image can be maintained in the terminal and requesting that the COW image be transferred using the distributed synchronization module based on results of determination of whether there has been a change in the COW image.
The transferring a virtual machine image to the terminal may include transferring the virtual machine image to the terminal using the distributed synchronization module.
The receiving a COW image, into which a basic image of the virtual machine image has been changed, from the terminal may include the virtual machine image management module receiving the COW image, transferred by the distributed synchronization module, based on results of determination of whether there has been a change in the COW image.
The transferring a virtual machine image to the terminal may include transferring the virtual machine image using the servers, distributed across the network, in a distributed fashion.
The above and other objects, features and advantages of the present invention will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings, in which:
Reference now should be made to the different drawings, in which the same reference numerals are used throughout the different drawings to designate the same or similar components.
The present invention will be described in detail with reference to the accompanying drawings. Here, repetitive descriptions and descriptions of known functions and constructions which have been deemed to make the gist of the present invention unnecessarily vague will be omitted below. The embodiments of the present invention are provided in order to fully describe the present invention to a person having ordinary skill in the art. Accordingly, the shapes, sizes, etc. of elements in the drawings may be exaggerated to make the description clear.
As shown in
In detail, referring to
The distributed image server 110 includes one or more servers that are distributed across a network, and stores a recently updated virtual machine image for a user who is using a virtual machine synchronization service. When the user requests a virtual machine synchronization service, the distributed image server 110 transfers the virtual machine image using one of the servers, distributed over the network, which operates in the highest-performance bandwidth and has the lowest delay time. Although in this embodiment of the present invention, the virtual machine image is transferred using a server that has been selected from among the servers, distributed over the network, using the bandwidth and the delay time as criteria for selection, the present invention is not limited thereto, but the virtual machine image may be transferred using the servers distributed over the network in a distributed fashion.
Meanwhile, when a copy-on-write (COW) image has been changed by a user, the distributed image server 110 receives the changed COW image via the virtual machine management program 121 installed on the terminal which is currently being used by the user. The distributed image server 110 updates the virtual machine image for the user with the changed COW image. Furthermore, when the user changes between terminals, the distributed image server 110 provides the virtual machine image recently updated with the COW image, thereby synchronizing the virtual machine image for the user.
The virtual machine image according to an embodiment of the present invention is divided into a basic image and a COW image. Here, the basic image includes the kernel of an OS and basic programs, and is installed on each terminal over the network, which is used by the user. The COW image is created in such a way that the basic image is changed into the COW image while the user is using a virtual OS using the virtual machine. The COW image has a smaller size than the basic image, is incorporated into the virtual machine image, and is used to synchronize the virtual OS.
The virtual machine operation management unit 120 creates the virtual machine management program 121 so that the virtual machine image can be executed on a terminal being used by a user regardless of the movement of the user over the network. When the user makes a request, the virtual machine operation management unit 120 transfers the virtual machine management program 121 to the terminal currently being used by the user, thereby managing the execution of the virtual machine image.
Referring back to
Referring to
When the user requests the provision of the virtual machine synchronization service, the distributed synchronization module 1211 receives the virtual machine image for the user using the terminal 200 currently being used. The distributed synchronization module 1211 divides the virtual machine image into a basic image and a COW image. The distributed synchronization module 1211 transfers the basic image and the COW image to the hypervisor module 1212 so that they can be executed in the terminal 200.
The hypervisor module 1212 receives the virtual machine image, which has been divided into the basic image and the COW image, from the virtual machine image management module 1211, and enables the virtual OS to be executed in the terminal 200 using the separate basic image and COW image.
The virtual machine image management module 1213 performs management so that the basic image can be maintained in the terminal 200 of the user. The virtual machine image management module 1213 determines whether there has been a change in the COW image, and, if there has been a change in the COW image, requests that the COW image be transferred to the distributed image server 110 using the distributed synchronization module 1211.
Referring to
When the user installs the virtual machine management program 121 on the terminal 300 and performs user login, the distributed image server 110 transfers the virtual machine image for the user, recently updated and synchronized, using one of the servers, distributed across the network, which operates in the highest-performance bandwidth and has the lowest delay time at step S110.
When the user receives a COW image using the terminal 300, the distributed image server 110 updates the virtual machine image for the user with the COW image at steps S120 and S130.
When the user moves to another terminal 400 and requests the provision of a virtual machine synchronization service, the distributed image server 110 provides the virtual machine image, updated with the COW image, using the terminal 300 recently used, thereby keeping the virtual machine synchronized at step S140.
As shown in
The terminal 300 receives a virtual machine management program 121 from the virtual machine operation management unit 120 of the apparatus 100 for synchronizing a virtual machine. The terminal 300 installs the distributed synchronization module 1211, hypervisor module 1212 and virtual machine image management module 1213 of the virtual machine management program 121 at step S210.
The terminal 300 divides a virtual machine image into a basic image and a COW image using the distributed synchronization module 1211 at step S220. The terminal 300 enables a virtual OS to be executed on the terminal currently being used using the hypervisor module 1212 and the basic image and the COW image at step S230. Then, the terminal 300 performs management using the virtual machine image management module 1213 so that the basic image can be maintained at 5240. The terminal 300 determines whether there has been a change in the COW image using the virtual machine image management module 1213 at step S250.
If, as a result of the determination at step S250, it is determined that there has been a change in the COW image, the terminal 300 transfers the changed COW image to the distributed image server 110 using the distributed synchronization module 1211 at step S260, so that the virtual machine image for the user can be updated. The terminal 300 determines whether the virtual machine synchronization service has been terminated using the distributed image server 110 at step S270.
If, as a result of the determination at step S270, it is determined that the virtual machine synchronization service has not been terminated, the terminal 300 provides a virtual machine synchronization service while performing the process after step S230. If, as a result of the determination at step S270, the virtual machine synchronization service has been terminated, the terminal 300 determines that the user has terminated the provision of the virtual machine synchronization service, and then terminates the virtual machine synchronization service.
Meanwhile, if, as a result of the determination at step S250, there has been no change in the COW image, the terminal 300 terminates the virtual machine synchronization service or continues to provide the virtual machine synchronization service based on the results of the determination of whether the virtual machine synchronization service has been terminated at step S270.
As described above, the apparatus 100 for synchronizing a virtual machine according to an embodiment of the present invention divides a virtual machine image into a basic image and a COW image and updates the virtual machine image with the COW image changed by the user, and therefore the virtual machine image recently updated with the COW image can be provided to the user regardless of the movement of the user, thereby rendering it possible to maintain the synchronization of a virtual machine.
Furthermore, when a virtual machine image is updated, the update is performed by directly processing a COW image, changed by the user, using an instruction on a terminal currently being used, rather than by receiving image data and then performing the update, thereby providing improved reaction and operating speed and increasing the convenience of the user using the absolute shortest synchronization time.
Furthermore, the virtual machine image is transferred using one of the servers, distributed across the network, which operates in the highest-performance bandwidth and has the lowest delay time, and therefore the user can use the virtual machine without being affected by the bandwidth or delay time of the network.
The present invention is configured to divide a virtual machine image into a basic image and a COW image and to update a virtual machine image for a user with a COW image changed by the user, thereby providing the advantage of offering a recently updated virtual machine image to the user regardless of the movement of the user and, therefore, maintaining synchronization of a virtual machine.
Furthermore, the present invention is configured to update a virtual machine image by directly processing a COW image, changed by the user, on a terminal currently being used using instructions, rather than receiving image data and then performing the update, thereby providing the advantage of offering improved reaction speed and operating speed as well as increasing the convenience of the user using the absolute shortest synchronization time.
Furthermore, the present invention is configured to transfer a virtual machine using one of the servers, distributed across the network, which operates in the highest-performance bandwidth and has the lowest delay time, thereby providing the advantage of enabling user to use a virtual machine without being affected by the bandwidth or delay time of the network.
Moreover, the present invention is configured to transfer a virtual machine image using the servers, distributed across the network, in a distributed fashion, thereby providing the advantage of improving the transmission speed of the virtual machine image.
Although the preferred embodiments of the present invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, without departing from the scope and spirit of the invention as disclosed in the accompanying claims.
Number | Date | Country | Kind |
---|---|---|---|
10-2010-0114075 | Nov 2010 | KR | national |