A processing device receives a virtual machine boot request for booting a virtual machine, wherein the virtual machine boot request identifies a virtual disk image stored on a physical disk, and wherein the virtual machine boot request comprises a first value of a virtual machine parameter. The processing device accesses the virtual disk image, wherein the virtual disk image comprises disk parameter metadata. The processing device retrieves from the disk parameter metadata a second value of the virtual machine parameter. Responsive to determining that the second value of the virtual machine parameter does not match the first value of the virtual machine parameter, the processing device fails the virtual machine boot request.
Legal claims defining the scope of protection, as filed with the USPTO.
1. A method, comprising: receiving, by a host computer system, a virtual machine boot request for booting a virtual machine, wherein the virtual machine boot request identifies a virtual disk image stored on a physical disk, and wherein the virtual machine boot request comprises a first value of a virtual machine parameter; accessing the virtual disk image, wherein the virtual disk image comprises disk parameter metadata; retrieving, from the disk parameter metadata, a second value of the virtual machine parameter; and responsive to determining that the second value of the virtual machine parameter does not match the first value of the virtual machine parameter, failing the virtual machine boot request.
2. The method of claim 1 , wherein failing the boot request further comprises: notifying a requestor that has initiated the virtual machine boot request of incompatibility of the virtual disk image with a requested virtual machine configuration.
3. The method of claim 1 , wherein failing the boot request further comprises: removing a reference to the virtual disk image from a list of bootable disk images utilized by the host computer system for booting virtual machines.
4. The method of claim 1 , wherein failing the boot request further comprises: removing a reference to the virtual disk image from a list of virtual disk images accessible by the virtual machine.
5. The method of claim 1 , wherein the disk parameter metadata comprises a value of a disk parameter.
6. The method of claim 1 , further comprising: responsive to determining that the second value of the virtual machine parameter matches the first value of the virtual machine parameter, booting the virtual machine.
7. The method of claim 1 , wherein the virtual machine parameter comprises at least one of: a central processing unit (CPU) identifier, an amount of memory available to the virtual machine, or an identifier of a network in communication with the virtual machine.
8. The method of claim 1 further comprising: responsive to determining that the second value of the virtual machine parameter matches the first value of the virtual machine parameter, booting the virtual machine using the first value of the virtual machine parameter.
9. A non-transitory computer readable storage medium having instructions that, when executed by a processing device, cause the processing device to: receive a virtual machine boot request for booting a virtual machine, wherein the virtual machine boot request identifies a virtual disk image stored on a physical disk, and wherein the virtual machine boot request comprises a first value of a virtual machine parameter; access the virtual disk image, wherein the virtual disk image comprises disk parameter metadata; retrieve, from the disk parameter metadata, a second value of the virtual machine parameter; and responsive to determining that the second value of the virtual machine parameter does not match the first value of the virtual machine parameter, fail the virtual machine boot request.
10. The non-transitory computer readable storage medium of claim 9 , wherein to fail the boot request, the processing device is further to: notify a requestor that has initiated the virtual machine boot request of incompatibility of the virtual disk image with a requested virtual machine configuration.
11. The non-transitory computer readable storage medium of claim 9 , wherein to fail the boot request, the processing device is further to: remove a reference to the virtual disk image from a list of bootable disk images utilized by the host computer system for booting virtual machines.
12. The non-transitory computer readable storage medium of claim 9 , wherein to fail the boot request, the processing device is further to: remove a reference to the virtual disk image from a list of virtual disk images accessible by the virtual machine.
13. The non-transitory computer readable storage medium of claim 9 , wherein the disk parameter metadata comprises a value of a disk parameter.
14. The non-transitory computer readable storage medium of claim 9 , wherein the virtual machine parameter comprises at least one of: a central processing unit (CPU) identifier, an amount of memory available to the virtual machine, or an identifier of a network in communication with the virtual machine.
15. A computing device comprising: a memory; and a processing device coupled to the memory, wherein the processing device is to: receive a virtual machine boot request for booting a virtual machine, wherein the virtual machine boot request identifies a virtual disk image stored on a physical disk, and wherein the virtual machine boot request comprises a first value of a virtual machine parameter; access the virtual disk image, wherein the virtual disk image comprises disk parameter metadata; retrieve, from the disk parameter metadata, a second value of the virtual machine parameter; and responsive to determining that the second value of the virtual machine parameter does not match the first value of the virtual machine parameter, fail the virtual machine boot request.
16. The computing device of claim 15 , wherein the processing device is further to: responsive to determining that the second value of the virtual machine parameter matches the first value of the virtual machine parameter, boot the virtual machine using the first value of the virtual machine parameter.
17. The computing device of claim 16 , wherein to boot the virtual machine using the first value of the virtual machine parameter, the processing device is further to: initialize an environment variable using the first value of the virtual machine parameter or store the first value of the virtual machine parameter into a device configuration file.
18. The computing device of claim 15 , wherein the disk parameter metadata comprises a value of a disk parameter.
19. The computing device of claim 15 , wherein the virtual machine parameter comprises at least one of: a central processing unit (CPU) identifier, an amount of memory available to the virtual machine, or an identifier of a network in communication with the virtual machine.
20. The computing device of claim 15 , wherein to fail the boot request, the processing device is further to: remove a reference to the virtual disk image from a list of virtual disk images accessible by the virtual machine.
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
November 26, 2018
December 29, 2020
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.