×

Virtual machine base image upgrade based on virtual machine updates

  • US 10,318,486 B2
  • Filed: 07/08/2016
  • Issued: 06/11/2019
  • Est. Priority Date: 07/08/2016
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method for de-duplication of updates in virtual machines being executed on a host computer system using a hypervisor, wherein a client virtual machine is derived from a base image, the method comprising:

  • creating a temporary virtual machine based on the base image;

    updating the temporary virtual machine with the updates to produce an updated temporary virtual machine;

    identifying modified blocks in an image of the updated temporary virtual machine when compared to the base image, the modified blocks comprising changed block content and added block content;

    identifying files associated with the modified blocks in the image of the updated temporary virtual machine;

    determining block identifiers of matching files in an image of the client virtual machine that correspond to the identified files associated with the modified blocks in the image of the updated temporary virtual machine;

    moving block content of blocks identified by the determined block identifiers from its initial location to a free location within the client virtual machine if the block content and the matching files are not identical in the image of the client virtual machine and the image of the updated temporary virtual machine, the free location within the client virtual machine being identified as unused blocks in the image of the client virtual machine for which corresponding locations in the image of the temporary virtual machine and the image of the base image are also unused;

    de-duplicating content within the client virtual machine that is duplicative of content within the updated temporary virtual machine by replacing block content at an initial location of the matching files in the image of the client virtual machine with pointers to corresponding blocks in the image of the updated temporary virtual machine;

    generating a complete bootable image of the updated temporary virtual machine by incorporating, into the image of the updated temporary virtual machine, blocks of the base image which have not been updated; and

    replacing the base image by the complete bootable image of the updated temporary virtual machine, the replacing making the image of the updated temporary virtual machine a new base image.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×