Virtual machine template optimization
AssigneeInternational Business Machines Corporation
InventorsWunchon Beak, James E. Bostick, John M. Ganci, Jr., Craig M. Trim
Life of this patent
Estimating the term…
Abstract
In an approach for optimizing a virtual machine (VM) operating system (OS) template, one or more processors obtain a list of packages in an existing VM template. The processors obtain a list of packages required to be included in the existing VM template. The processors determine differences between the list of packages in the existing VM template and the list of packages required to be included in the existing VM template. The processors update the existing VM template based on the determined differences between the list of packages in the existing VM template and the list of packages required to be included in the existing VM template.
Claims17
A method for optimizing a virtual machine (VM) operating system (OS) template, the method comprising:
- one or more processors obtaining a list of packages in an existing VM template, wherein a VM template is used as a starting point for a VM image build;
- the one or more processors obtaining a list of packages required to be included in the existing VM template;
- the one or more processors determining whether the list of packages in the existing VM template includes one or more prerequisite packages required to be included in the existing VM template, wherein a prerequisite package is a package on which one or more packages on the list of packages has a dependency and wherein the prerequisite package is used for updating the existing VM template;
- responsive to determining the list of packages in the existing VM template does not include one or more prerequisite packages, the one or more processors updating the existing VM template to include the one or more prerequisite packages;
- and
- the one or more processors removing one or more packages of the existing VM template that are not included in the list of packages required to be included in the existing VM template from the existing VM template.
A computer program product for optimizing a virtual machine (VM) operating system (OS) template, the computer program product comprising:
- one or more computer readable storage devices and program instructions stored on the one or more computer readable storage devices, wherein the one or more computer readable storage devices are hardware, the program instructions comprising:
- program instructions to obtain a list of packages in an existing VM template, wherein a VM template is used as a starting point for a VM image build;
- program instructions to obtain a list of packages required to be included in the existing VM template;
- program instructions to determine whether the list of packages in the existing VM template includes one or more prerequisite packages required to be included in the existing VM template, wherein a prerequisite package is a package on which one or more packages on the list of packages has a dependency and wherein the prerequisite package is used for updating the existing VM template;
- responsive to determining the list of packages in the existing VM template does not include one or more prerequisite packages, program instructions to update the existing VM template to include the one or more prerequisite packages;
- and
- program instructions to remove one or more packages of the existing VM template that are not included in the list of packages required to be included in the existing VM template from the existing VM template.
A computer system for optimizing a virtual machine (VM) operating system (OS) template, the computer system comprising:
- one or more computer processors;
- one or more computer readable storage devices;
- program instructions stored on the computer readable storage devices for execution by at least one of the one or more processors, the program instructions comprising:
- program instructions to obtain a list of packages in an existing VM template;
- program instructions to obtain a list of packages required to be included in the existing VM template, wherein a VM template is used as a starting point for a VM image build;
- program instructions to obtain a list of packages required to be included in the existing VM template;
- program instructions to determine whether the list of packages in the existing VM template includes one or more prerequisite packages required to be included in the existing VM template, wherein a prerequisite package is a package on which one or more packages on the list of packages has a dependency and wherein the prerequisite package is used for updating the existing VM template;
- responsive to determining the list of packages in the existing VM template does not include one or more prerequisite packages, program instructions to update the existing VM template to include the one or more prerequisite packages;
- and
- program instructions to remove one or more packages of the existing VM template that are not included in the list of packages required to be included in the existing VM template from the existing VM template.
Dependencies are inferred from the claim text.