# US 9,354,927 B2 · Securing virtual machine data

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

- Number: US 9,354,927 B2
- Document ID: US9354927B2
- Status: Granted
- Kind: B2
- Application number: 11/960,524
- Filed: 2007-12-19
- Published: 2008-06-26
- Granted: 2016-05-31
- Earliest claimed: 2006-12-21
- Assignees: VMware, Inc.
- Applicants: Daniel K. Hiltgen; Rene W. Schmidt
- Inventors: Daniel K. Hiltgen; Rene W. Schmidt
- Web page: https://patentgrep.com/patent/US9354927B2

## CPC

- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/485: {Task life-cycle, e.g. stopping, restarting, resuming execution (G06F9/4881 takes precedence)}
- G06F 9/5088: {involving task migration}
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- H04L 63/10: {for controlling access to devices or network resources}
- G06F 2009/45579: {I/O management, e.g. providing access to device drivers or storage}
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

One embodiment of the present invention is a method including: (a) representing virtual primary disk data and state data of a virtual machine in a unit of storage; (b) exposing the virtual primary disk data of the virtual machine to a guest of the virtual machine to allow the guest to access the virtual primary disk data; and (c) preventing the guest from accessing the state data for the virtual machine.

## Claims

### Claim 1

A method comprising:
representing both virtual primary disk data and state data of a virtual machine in a unit of storage, wherein the virtual primary disk data comprises a virtual disk that is accessed by the virtual machine and the state data comprises execution state data of the virtual machine;
exposing the virtual primary disk data of the virtual machine to a guest of the virtual machine to allow the guest to access the virtual primary disk data;
intercepting a read access from the guest; and
preventing the read access when the read access is for accessing the state data of the virtual machine.

### Claim 2 (depends on 1)

The method of claim 1, wherein the preventing comprises:
partitioning the storage unit into at least a first partition for the virtual primary disk data and a second partition for at least the state data;
storing a partition table for the first partition into the second partition;
aligning the beginning of the virtual primary disk data with the beginning of the storage unit.

### Claim 3 (depends on 1)

The method of claim 1, wherein the preventing comprises:
partitioning the storage unit into at least a first partition for the virtual primary disk data and a second partition for at least the state data;
writing a first partition table for the first and second partitions;
writing a second partition table for the first partition; and
exposing the second partition table to the guest and preventing the guest access to the first partition table.

### Claim 4 (depends on 3)

The method of claim 3, wherein the preventing access to the first partition table comprises modifying access requests from the guest with an offset that corresponds to location of the first partition table.

### Claim 5 (depends on 4)

The method of claim 4 further comprising verifying that modified access requests fall within acceptable boundaries.

### Claim 6 (depends on 1)

The method of claim 1, wherein the preventing comprises truncating size of the storage unit reported to the guest to hide the state data from the guest and storing the state data in a portion of the storage unit beyond the reported size.

### Claim 7 (depends on 1)

The method of claim 1 further comprising:
representing other non-disk data in the storage unit; and
preventing the guest from accessing the other non-disk data.

### Claim 8 (depends on 1)

The method of claim 1, wherein the storage comprises at least one of removable storage, optical storage, disk drive, flash memory, network attached storage, and a storage in a storage area network.

### Claim 9

A non-transitory computer-readable storage medium storing a virtualization system program, which, when executed by a processor, prepares a unit of storage to encode virtual primary disk data of a virtual machine accessible by a guest of the virtual machine, and to encode state data of the virtual machine, wherein the virtual primary disk data comprises a virtual disk that is accessed by the virtual machine and the state data comprises execution state data of the virtual machine, and wherein the virtualization system program is configured to intercept a read access from the guest and prevent the read access when the read access is for accessing the state data of the virtual machine.

### Claim 10 (depends on 9)

The non-transitory computer-readable storage medium of claim 9, wherein the preparing comprises:
the virtualization system program partitioning the storage unit into at least a first partition for the virtual primary disk and a second partition for the state data, and writing a first partition table for the first and second partitions, and writing a second partition table for the first partition;
the virtualization system program communicating the partition tables and the partitions to a virtualization layer; and
the virtualization system program indicating an offset to a virtualization layer, wherein the offset corresponds to location of the second partition table,
wherein the virtualization layer interfaces between the virtual machine and a system hosting the virtual machine.

### Claim 11 (depends on 9)

The non-transitory computer-readable storage medium of claim 9, wherein the preparing comprises:
the virtualization system program partitioning the storage unit into at least a first partition for the virtual primary disk and a second partition for the state data, and writing a first partition table for the first and second partitions, and writing a second partition table for the first partition; and
the virtualization system program communicating the partition tables and the partitions to a virtualization layer,
wherein access to the first partition table requires a sufficient privilege level, wherein the virtualization system program and the virtualization layer are at least assigned the sufficient privilege level, wherein the virtualization layer interfaces between the virtual machine and a system hosting the virtual machine.

### Claim 12 (depends on 9)

The non-transitory computer-readable storage medium of claim 9, wherein the preparing comprises:
the virtualization system program partitioning the storage unit into at least a first partition for the virtual primary disk and a second partition for the state data, and writing a first partition table for the first and second partitions, and writing a second partition table for the first partition;
the virtualization system program storing a partition table for the first partition into the second partition and aligning the beginning of the virtual primary disk with the beginning of the storage unit.

### Claim 13 (depends on 9)

The non-transitory computer-readable storage medium of claim 9, wherein the preparing comprises:
the virtualization system program partitioning the storage unit into at least a first partition for the virtual primary disk and a second partition for the state data, and writing a first partition table for the first and second partitions, and writing a second partition table for the first partition; and
the virtualization system program encrypting the first partition table; and
the virtualization system program communicating information to a virtualization layer to allow the virtualization layer to decrypt the first partition table, wherein the virtualization layer interfaces between the virtual machine and a system hosting the virtual machine.

### Claim 14 (depends on 9)

The non-transitory computer-readable storage medium of claim 9, wherein the storage unit is prepared to prevent access by a guest to other non-disk data in addition to the state data.

### Claim 15 (depends on 9)

The non-transitory computer-readable storage medium of claim 9, wherein the virtual machine is represented by the state data, the virtual primary disk, and virtual hardware configuration data that indicates at least a virtual processing unit.

### Claim 16 (depends on 9)

The non-transitory computer-readable storage medium of claim 9, wherein the storage comprises one of a disk drive, removable storage, flash memory, optical storage, network attached storage, and storage in a storage area network.

### Claim 17

A non-transitory computer-readable storage medium storing a program that implements a virtualization layer that interfaces between a computational system and a virtual machine hosted on the computational system and that examines all access requests from a guest of the virtual machine and, in response to said all access requests, to allow the guest to access virtual primary disk data of the virtual machine and to intercept read accesses from the guest and prevent the read accesses when the read accesses are for accessing the state data of the virtual machine, wherein the virtual primary disk data comprises a virtual disk that is accessed by the virtual machine and the state data comprises execution state data of the virtual machine.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the virtualization layer modifies size information of the storage unit to hide the state data from the guest, wherein the state data is stored in the storage unit at a location known to the virtualization layer.

### Claim 19 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the virtualization layer modifies location indications of write requests from the guest to ensure the guest does not modify state data of the virtual machine.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium of claim 19 further comprising the virtualization layer modifying location indications of responses to the write requests to maintain consistent presentation of the storage to the guests.

### Claim 21 (depends on 19)

The non-transitory computer-readable storage medium of claim 19, further comprising the virtualization layer verifying that modified location indications of write requests from the guest are within permissible boundaries.

### Claim 22 (depends on 19)

The non-transitory computer-readable storage medium of claim 19, wherein the location indications are modified with an offset that corresponds to location of a partition table for a partition of the storage unit that encodes the virtual primary disk data.

### Claim 23 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the virtualization layer interfaces between the raw physical hardware of the computational system and the virtual machine or between an operating system of the computational system and the virtual machine.

### Claim 24

A non-transitory computer-readable storage medium storing a computer program comprising:
virtual machine provisioning code executable to,
prepare a unit of storage to allow a guest of a virtual machine to access virtual disk data encoded in a first portion of the storage unit for the virtual machine, wherein the virtual disk data comprises a virtual disk that is accessed by the virtual machine, and
prepare the storage unit to intercept a read access from the guest and prevent the read access when the read access is for accessing state data of the virtual machine, wherein the state data is encoded in a second portion of the storage unit and comprises execution state data of the virtual machine.

### Claim 25 (depends on 24)

The non-transitory computer-readable storage medium of claim 24, wherein the virtual machine provisioning code is executable to encrypt the second portion to prevent the guest from accessing the state data.

### Claim 26 (depends on 24)

The non-transitory computer-readable storage medium of claim 24, wherein the virtual machine provisioning code being executable to prepare the storage unit comprises:
the virtual machine provisioning code being executable to,
partition the storage unit into at least a first partition for the virtual primary disk data and a second partition for the state data,
write a first partition table for the first and second partitions,
write a second partition table for the first partition and embed the second partition table in the second partition, and
align the virtual primary disk data with the beginning of the storage unit.

### Claim 27 (depends on 26)

The non-transitory computer-readable storage medium of claim 26, wherein the virtual machine provisioning code is further executable to partition the storage unit to include a third partition for virtual hardware configuration data that at least indicates a virtual processing unit for the virtual machine and executable to prevent the guest from accessing the third partition.

### Claim 28 (depends on 26)

The non-transitory computer-readable storage medium of claim 26, wherein the virtual machine provisioning code being executable to prepare the storage unit comprises:
the virtual machine provisioning code being executable to,
partition the storage unit into at least a first partition for the virtual primary disk data and a second partition for at least the state data,
write a first partition table for the first and the second partitions,
write a second partition table for the first partition,
allow the guest access to the second partition table, and
indicate an offset to a virtualization layer to prevent exposure of the first partition table to the guest, the offset corresponding to location of the second partition table in storage unit.

### Claim 29 (depends on 28)

The non-transitory computer-readable storage medium of claim 28, wherein the virtual machine provisioning code is further executable to indicate, to a virtualization layer, boundary limits for access requests from a guest to prevent exposure of at least the state data to the guest.

### Claim 30

A non-transitory computer-readable storage medium storing a computer program product comprising:
a first sequence of instructions executable to intercept access requests from a guest of a virtual machine destined for a unit of storage that encodes both primary virtual disk data and state data for the virtual machine, wherein the primary virtual disk data comprises a virtual disk that is accessed by the virtual machine and the state data comprises execution state data of the virtual machine; and
a second sequence of instructions executable to, in accordance with access restrictions, intercept a read access from the guest and prevent the read access when the read access is for accessing the state data of the virtual machine.

### Claim 31 (depends on 30)

The non-transitory computer-readable storage medium of claim 30, wherein the first sequence of instructions are further executable to intercept responses to the read access, wherein the second sequence of instructions are further executable to modify the intercepted response to maintain consistent presentation of the storage unit to the guest.

### Claim 32 (depends on 30)

The non-transitory computer-readable storage medium of claim 30 further comprising a third sequence of instructions executable to make a call to a shared storage input/output application programming interface with the modified read access.

### Claim 33 (depends on 30)

The non-transitory computer-readable storage medium of claim 30, wherein the second sequence of instructions are further executable to determine whether a modified read access indicates a valid location in the storage unit.

### Claim 34

A system comprising:
a storage operable to encode both virtual primary disk data and state data of a virtual machine in a unit of the storage, wherein the virtual primary disk data comprises a virtual disk that is accessed by the virtual machine and the state data comprises execution state data of the virtual machine; and
a virtual machine management system coupled with the storage, the virtual machine management system operable to prepare the storage unit to expose primary virtual disk data of the virtual machine to a guest and to intercept a read access from the guest and prevent the read access when the read access is for accessing the state data of the virtual machine.

### Claim 35 (depends on 34)

The system of claim 34 further comprising a virtual machine host coupled with the storage, the virtual machine host operable to support the virtual machine, and operable to examine read accesses from a guest of the virtual machine to prevent the guest from accessing the virtual machine state data in the storage.

### Claim 36 (depends on 35)

The system of claim 35 further comprising the virtual machine host modifying the read accesses to direct the read accesses to one or more locations in the storage unit that correspond to the virtual primary disk data.

### Claim 37 (depends on 35)

The system of claim 35, wherein the examining comprises the virtual machine host determining whether a location indication of a read access falls within a permissible range of locations in the storage unit.

### Claim 38 (depends on 34)

The system of claim 34, wherein the storage comprises at least one of a storage in a storage area network, network attached storage, a removable storage device, disk drive, and a flash memory.
