Handling temporary files of a virtual machine
First Claim
1. A computer-implemented method comprising:
- identifying, by a virtual machine, a write operation requested by a guest operating system of the virtual machine or an application of the virtual machine;
determining, by the virtual machine, whether the write operation requested by the guest operating system or the application of the virtual machine pertains to a temporary file or persistent data;
if the write operation requested by the guest operating system or the application of the virtual machine pertains to the temporary file, causing the write operation requested by the guest operating system or the application of the virtual machine to be performed on a first disk assigned to the virtual machine, wherein the first disk assigned to the virtual machine is designated for temporary files of the virtual machine; and
if the write operation requested by the guest operating system or the application of the virtual machine pertains to the persistent data, causing the write operation requested by the guest operating system or the application of the virtual machine to be performed on a second disk assigned to the virtual machine, wherein the second disk assigned to the virtual machine is designated for the persistent data of the virtual machine.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and system for handling temporary data of a virtual machine are described. In one embodiment, virtual machines are hosted by a server and accessed by remote clients over a network. The server assigns first storage and second storage to each virtual machine, where the first storage is designated for temporary data of a respective virtual machine and the second storage is designated for persistent data of a respective virtual machine. The server monitors events pertaining to the virtual machine. Upon detecting a predefined event pertaining to one of the virtual machines, the server causes at least a subset of the temporary data to be removed from the first storage of this virtual machine.
42 Citations
20 Claims
-
1. A computer-implemented method comprising:
-
identifying, by a virtual machine, a write operation requested by a guest operating system of the virtual machine or an application of the virtual machine; determining, by the virtual machine, whether the write operation requested by the guest operating system or the application of the virtual machine pertains to a temporary file or persistent data; if the write operation requested by the guest operating system or the application of the virtual machine pertains to the temporary file, causing the write operation requested by the guest operating system or the application of the virtual machine to be performed on a first disk assigned to the virtual machine, wherein the first disk assigned to the virtual machine is designated for temporary files of the virtual machine; and if the write operation requested by the guest operating system or the application of the virtual machine pertains to the persistent data, causing the write operation requested by the guest operating system or the application of the virtual machine to be performed on a second disk assigned to the virtual machine, wherein the second disk assigned to the virtual machine is designated for the persistent data of the virtual machine. - View Dependent Claims (2, 3)
-
-
4. A computer-implemented method for a server hosting a plurality of virtual machines, the method comprising:
-
assigning, by the server, a first storage and a second storage to each of the plurality of virtual machines, the first storage being designated for temporary files of a respective virtual machine and the second storage being designated for persistent data of the respective virtual machine; monitoring, by the server, events pertaining to the plurality of virtual machines; upon detecting, by the server, a predefined event pertaining to one of the plurality of virtual machines, causing at least a subset of temporary files to be removed from the first storage of the one of the plurality of virtual machines; and during a backup or archive operation, causing persistent data from the second storage of the one of the plurality of virtual machines to be copied without copying data from the first storage of the one of the plurality of virtual machines. - View Dependent Claims (5, 6, 7, 8, 9)
-
-
10. A system comprising:
-
data storage to store a plurality of first disks designated for temporary files and a plurality of second disks designated for persistent data; and a host computing device coupled to the data storage to run a plurality of virtual machines, wherein the host computing device further comprises a temporary files manager operable to assign a first disk of the plurality of first disks designated for temporary files and a second disk of the plurality of second disks designated for persistent data to each virtual machine, monitor events pertaining to the plurality of virtual machines, detect a predefined event pertaining to one of the plurality of virtual machines, in response to the detected event, cause at least a subset of temporary files to be removed from the first disk of the one of the plurality of virtual machines, and during a backup or archive operation, cause persistent data from the second storage of the one of the plurality of virtual machines to be copied without copying data from the first storage of the one of the plurality of virtual machines. - View Dependent Claims (11, 12, 13, 14)
-
-
15. A non-transitory computer readable storage medium including instructions that, when executed by a processing system, cause the processing system to perform a method comprising:
-
assigning, by the server, a first storage and a second storage to each virtual machine, the first storage being designated for temporary files of a respective virtual machine and the second storage being designated for persistent data of the respective virtual machine; monitoring, by the server, events pertaining to the plurality of virtual machines; detecting, by the server, a predefined event pertaining to one of the plurality of virtual machines; causing at least a subset of the temporary files to be removed from the first storage of the one of the plurality of virtual machines; and during a backup or archive operation, causing the persistent data from the second storage of the one of the plurality of virtual machines to be copied without copying the temporary files from the first storage of the one of the plurality of virtual machines. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification