METHOD AND DEVICE FOR BACKING UP, RESTORING A VIRTUAL MACHINE
First Claim
1. A method for backing up a virtual machine, comprising:
- creating a virtual machine comprising a first directory and a second directory managed by a union file system, wherein, the first directory is configured to be read only and used for storing a virtual machine base operating system file, and the second directory is configured to be readable and writable and used for storing changes generated during running of the virtual machine;
running the virtual machine, the virtual machine preferentially reads and writes the second directory during running; and
backing up the virtual machine according to data of the second directory in response to receiving a request for backing up the virtual machine.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for backing up or restoring a virtual machine is provided. The backup method includes creating a virtual machine having a first and a second union file system directory. The first directory read only stores a virtual machine base operating system file. The second directory is readable and writable and stores modifications to the base operating system file, and new files generated during running of the virtual machine. The virtual machine preferentially reads and writes the second directory. When a request to back up the virtual machine is received, the data in the second directory is backed up. The restore method includes preparing a virtual machine for restoring data. When a request to restore the virtual machine is received, the backup data of the second directory is obtained and restored to the second directory of the prepared virtual machine.
100 Citations
18 Claims
-
1. A method for backing up a virtual machine, comprising:
-
creating a virtual machine comprising a first directory and a second directory managed by a union file system, wherein, the first directory is configured to be read only and used for storing a virtual machine base operating system file, and the second directory is configured to be readable and writable and used for storing changes generated during running of the virtual machine; running the virtual machine, the virtual machine preferentially reads and writes the second directory during running; and backing up the virtual machine according to data of the second directory in response to receiving a request for backing up the virtual machine. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A method for restoring a virtual machine, comprising:
-
preparing a virtual machine for restoring data, wherein the prepared virtual machine comprises a first directory and a second directory managed by a union file system, wherein, the first directory is configured to be read only and used for storing a virtual machine base operating system file, and the second directory is configured to be readable and writable and used for storing change generated during running of the virtual machine; obtaining corresponding backup data of the second directory in response to receiving a restore request; and restoring the obtained backup data to the second directory of the prepared virtual machine. - View Dependent Claims (7, 8, 9)
-
-
10. A device for backing up a virtual machine, comprising:
-
a creation module configured to create a virtual machine comprising a first directory and a second directory managed by a union file system, wherein the first directory is configured to be read only and used for storing a virtual machine base operating system file, and the second directory is configured to be readable and writable and used for storing change generated during running of the virtual machine; a running module configured to run the virtual machine, the virtual machine preferentially reads and writes the second directory during running; and a backup module configured to back up the virtual machine according to data of the second directory in response to receiving a request for backing up the virtual machine. - View Dependent Claims (11, 12, 13, 14)
-
-
15. A device for restoring a virtual machine, the device comprising:
-
a preparing module configured to prepare a virtual machine for restoring data, wherein the prepared virtual machine comprises a first directory and a second directory managed by a union file system, wherein, the first directory is configured to be read only and used for storing a virtual machine base operating system file, and the second directory is configured to be readable and writable and used for storing changes generated during running of the virtual machine; an obtaining module configured to obtain corresponding backup data of the second directory in response to receiving a restore request; and a restoring module configured to restore the obtained backup data to the second directory of the newly created virtual machine. - View Dependent Claims (16, 17, 18)
-
Specification