IP Library › Granted Patent US 10,203,975
Granted Patent B2
US 10,203,975 · App. 14/288,570 · Granted Feb 12, 2019

Virtual machine template management

Inventors: Maor Lipchuk (Tel Aviv, IL); Daniel Erez (Tel Aviv, IL)
Assignee: Red Hat Israel, Ltd.
G06F9/45558G06F8/63G06F2009/45562
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,203,975
App. No.
14/288,570
Granted
Feb 12, 2019
Kind
B2
Abstract

Systems and methods for managing virtual machine templates. An example method may comprise: identifying, by a computer system, a virtual machine snapshot represented by a volume chain comprising one or more copy-on-write (COW) volumes; and creating, based on the virtual machine snapshot, a virtual machine template represented by a new COW volume, wherein the new COW volume comprises data from the COW volumes of the volume chain.

Claims (29)

1. A method, comprising:

identifying a virtual machine disk image represented by a volume chain comprising one or more copy-on-write (COW) volumes;

creating, by a processor, a virtual machine snapshot by making a most recently added COW volume of the volume chain read-only and appending a first read-write COW volume to the volume chain, wherein the most recently added COW volume comprises a plurality of modifications to the virtual machine disk image, and wherein the plurality of modifications occur since appending a last COW volume to the volume chain,

wherein the virtual machine snapshot is created in a first data storage domain in a first data center while a virtual machine is running:

responsive to receiving a message comprising an identifier, identifying, in view of the identifier, a first COW volume of the one or more COW volumes in the volume chain; copying an initial COW volume of the virtual machine snapshot to a template volume; generating a flattened image in the template volume by applying disk modification operations starting from the initial COW volume up to the first COW volume of the one or more COW volumes in the volume chain;

removing deployment-specific information from the flattened image to generate a modified flattened image;

creating, using the modified flattened image in the template volume, a virtual machine template in an export storage domain; and exporting the virtual machine template from the export storage domain to a second data storage domain in a second data center while the virtual machine is running, wherein the first data storage domain and the second data storage domain are not shared across the first data center and the second data center.

2. The method of claim 1 , further comprising:

generalizing the virtual machine snapshot.

3. A system comprising:

a memory; and

a processor, operatively coupled to the memory, the processor configured to:

identify a virtual machine disk image represented by a volume chain comprising one or more copy-on-write (COW) volumes;

create a virtual machine snapshot by making a most recently added COW volume of the volume chain read-only and appending a first read-write COW volume to the volume chain, wherein the most recently added COW volume comprises a plurality of modifications, and wherein the plurality of modifications occur to the virtual machine disk image since appending a last COW volume to the volume chain,

wherein the virtual machine snapshot is created in a first data storage domain in a first data center while a virtual machine is running; responsive to receiving a message comprising an identifier, identify, in view of the identifier, a first COW volume of the one or more COW volumes in the volume chain; copy an initial COW volume of the virtual machine snapshot to a template volume; generate a flattened image in the template volume by applying disk modification operations starting from the initial COW volume up to the first COW volume of the one or more COW volumes in the volume chain;

remove deployment-specific information from the flattened image to generate a modified flattened image;

create, using the modified flattened image in the template volume, a virtual machine template in an export storage domain; and export the virtual machine template from the export storage domain to a second data storage domain in a second data center while the virtual machine is running, wherein the first data storage domain and the second data storage domain are not shared across the first data center and the second data center.

4. A computer-readable non-transitory storage medium comprising executable instructions that, when executed by a processor, cause the processor to:

identify, by the processor, a virtual machine disk image represented by a volume chain comprising one or more copy-on-write (COW) volumes;

create a virtual machine snapshot by making a most recently added COW volume of the volume chain read-only and appending a first read-write COW volume to the volume chain, wherein the most recently added COW volume comprises a plurality of modifications, and wherein the plurality of modifications occur to the virtual machine disk image since appending a last COW volume to the volume chain,

wherein the virtual machine snapshot is created in a first data storage domain in a first data center while a virtual machine is running; responsive to receiving a message comprising an identifier, identify, in view of the identifier, a first COW volume of the one or more COW volumes in the volume chain, wherein the first COW volume comprises an intermediate COW volume other than the most recently added COW volume in the volume chain; copy an initial COW volume of the virtual machine snapshot to a template volume; generate a flattened image in the template volume by applying disk modification operations starting from the initial COW volume up to the first COW volume of the one or more COW volumes in the volume chain;

remove deployment-specific information from the flattened image to generate a modified flattened image;

create, using the modified flattened image in the template volume, a virtual machine template in an export storage domain; and export the virtual machine template from the export storage domain to a second data storage domain in a second data center while the virtual machine is running, wherein the first data storage domain and the second data storage domain are not shared across the first data center and the second data center.

5. The computer-readable non-transitory storage medium of claim 4 , further comprising executable instructions causing the processor to:

generalize the virtual machine snapshot.

6. The method of claim 1 , wherein the deployment-specific information comprises one of a user name, a password, or a time zone.

7. The system of claim 3 , wherein the virtual machine snapshot is generalized.

8. The system of claim 3 , wherein the deployment-specific information comprises one of a user name, a password, or a time zone.

9. The computer-readable non-transitory storage medium of claim 4 , wherein the deployment-specific information comprises one of a user name, a password, or a time zone.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 28, 2014
From: LIPCHUK, MAOR; EREZ, DANIEL
To: RED HAT ISRAEL, LTD.
Reel/Frame 032976/0162 →
Continuity (1)
Related Publication 20150347165A1 · Dec 3, 2015