# US 2017/0286230 A1 · Method and System for Virtualizing Guest-Generated File System Snapshots

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0286230 A1
- Document ID: US20170286230A1
- Status: Published application
- Kind: A1
- Application number: 15/090,365
- Filed: 2016-04-04
- Published: 2017-10-05
- Earliest claimed: 2016-04-04
- Assignees: VMware, Inc.
- Applicants: VMware, Inc.
- Inventors: Tal ZAMIR
- Web page: https://patentgrep.com/patent/US20170286230A1

## CPC

- G06F 11/1451: {by selection of backup contents}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 11/14: Error detection or correction of the data by redundancy in operations (error detection or correction of the data by redundancy in hardware G06F11/16)
- G06F 16/128: {Details of file system snapshots on the file-level, e.g. snapshot creation, administration, deletion (error detection or correction of the data by redundancy in operations or in hardware G06F11/14, G06F11/16)}
- G06F 16/188: Virtual file systems
- G06F 11/1453: {using de-duplication of the data}
- G06F 2009/45562: {Creating, deleting, cloning virtual machine instances}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2201/815: Virtual
- G06F 2201/84: Using snapshots, i.e. a logical point-in-time copy of the data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques disclosed herein provide an approach for creating snapshots and reverting to the same for virtual machine (VM) guest operating systems (OSes). In one embodiment, a snapshot module in a guest OS receives blocks for a snapshot of a guest OS volume. In turn, the snapshot module creates a snapshot file in a repository external to a virtual disk of the VM, and writes the received blocks to the external repository. By storing snapshot content outside the virtual disks of VMs, disk space limitations in local VM disks can be overcome, and it is also more difficult for malicious software to modify the snapshots and infect them. To reduce storage space requirements, snapshots stored in the external repository may be deduplicated with other snapshots stored therein, including snapshots from guest OSes running in other VMs and/or a host OS on which a hosted hypervisor runs.

## Claims

### Claim 1

A method of creating a snapshot of a guest operating system (OS) volume, the guest OS running in a virtual machine (VM) on top of a hypervisor, the method comprising:
receiving, for the snapshot, copies of changed blocks in the guest OS volume obtained via a copy-on-write technique;
creating a snapshot file in a block storage external to a virtual disk of the VM, wherein the external block storage is shared by a plurality of VMs running on top of the hypervisor; and
writing the received blocks to the snapshot file in the external block storage.

### Claim 2 (depends on 1)

The method of claim 1, further comprising, deduplicating a plurality of snapshots stored in the external block storage.

### Claim 3 (depends on 2)

The method of claim 2, wherein the plurality of snapshots include snapshots from the plurality of VMs running on top of the hypervisor.

### Claim 4 (depends on 3)

The method of claim 3, wherein the plurality of snapshots further includes one or more snapshots from a host OS on which the hypervisor runs.

### Claim 5 (depends on 1)

The method of claim 1, further comprising, in response to a request to revert to the snapshot, overlaying the snapshot as a delta disk on top of a virtual disk of the VM, the delta disk tracking differences from the virtual disk of the VM.

### Claim 6 (depends on 5)

The method of claim 5, wherein the delta disk is a synthesized block device created from a mapping to blocks stored in the external block storage without copying the blocks to a virtual disk file.

### Claim 7 (depends on 5)

The method of claim 5, wherein the reversion is performed by a module in the hypervisor or in a host OS on which the hypervisor runs.

### Claim 8 (depends on 1)

The method of claim 1, wherein the receiving, creating, and writing steps are performed by a guest OS module that is in communication with the hypervisor via a communication channel.

### Claim 9

A non-transitory computer-readable storage medium containing a program which, when executed by one or more processors, performs operations for creating a snapshot of a guest operating system (OS) volume, the guest OS running in a virtual machine (VM) on top of a hypervisor, the operations comprising:
receiving, for the snapshot, copies of changed blocks in the guest OS volume obtained via a copy-on-write technique;
creating a snapshot file in a block storage external to a virtual disk of the VM, wherein the external block storage is shared by a plurality of VMs running on top of the hypervisor; and
writing the received blocks to the snapshot file in the external block storage.

### Claim 10 (depends on 9)

The non-transitory computer-readable storage medium of claim 9, the operations further comprising, deduplicating a plurality of snapshots stored in the external block storage.

### Claim 11 (depends on 10)

The non-transitory computer-readable storage medium of claim 10, wherein the plurality of snapshots include snapshots from the plurality of VMs running on top of the hypervisor.

### Claim 12 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein the plurality of snapshots further includes one or more snapshots from a host OS on which the hypervisor runs.

### Claim 13 (depends on 9)

The non-transitory computer-readable storage medium of claim 9, the operations further comprising, in response to a request to revert to the snapshot, overlaying the snapshot as a delta disk on top of a virtual disk of the VM, the delta disk tracking differences from the virtual disk of the VM.

### Claim 14 (depends on 13)

The non-transitory computer-readable storage medium of claim of claim 13, wherein the delta disk is a synthesized block device created from a mapping to blocks stored in the external block storage without copying the blocks to a virtual disk file.

### Claim 15 (depends on 13)

The non-transitory computer-readable storage medium of claim of claim 13, wherein the reversion is performed by a module in the hypervisor or in a host OS on which the hypervisor runs.

### Claim 16 (depends on 9)

The non-transitory computer-readable storage medium of claim of claim 9, wherein the receiving, creating, and writing steps are performed by a guest OS module that is in communication with the hypervisor via a communication channel.

### Claim 17

A system, comprising:
a processor; and
a memory, wherein the memory includes a program executable in the processor to perform operations for creating a snapshot of a guest operating system (OS) volume, the guest OS running in a virtual machine (VM) on top of a hypervisor, the operations comprising:
receiving, for the snapshot, copies of changed blocks in the guest OS volume obtained via a copy-on-write technique,
creating a snapshot file in a block storage external to a virtual disk of the VM, wherein the external block storage is shared by a plurality of VMs running on top of the hypervisor, and
writing the received blocks to the snapshot file in the external block storage.

### Claim 18 (depends on 17)

The system of claim 17, the operations further comprising:
deduplicating a plurality of snapshots stored in the external block storage,
wherein the plurality of snapshots include snapshots from the plurality of VMs running on top of the hypervisor and/or one or more snapshots from a host OS on which the hypervisor runs.

### Claim 19 (depends on 17)

The system of claim 17, the operations further comprising, in response to a request to revert to the snapshot, overlaying the snapshot as a delta disk on top of a virtual disk of the VM, the delta disk tracking differences from the virtual disk of the VM.

### Claim 20 (depends on 19)

The system of claim 19, wherein the delta disk is a synthesized block device created from a mapping to blocks stored in the external block storage without copying the blocks to a virtual disk file.
