vmdk: allow specification of tools version
commitf3d43dfd9a8a870160f0aaf7bd692b9ce4827ead
authorThomas Weißschuh <thomas.weissschuh.ext@zeiss.com>
Mon, 13 Sep 2021 13:04:19 +0000 (13 15:04 +0200)
committerHanna Reitz <hreitz@redhat.com>
Tue, 2 Nov 2021 11:47:51 +0000 (2 12:47 +0100)
treebe5cac3263280cd89b28bd2a3ec8db9b55db1757
parent87e4d4a205505cb21970773bbf830df699207587
vmdk: allow specification of tools version

VMDK files support an attribute that represents the version of the guest
tools that are installed on the disk.
This attribute is used by vSphere before a machine has been started to
determine if the VM has the guest tools installed.
This is important when configuring "Operating system customizations" in
vSphere, as it checks for the presence of the guest tools before
allowing those customizations.
Thus when the VM has not yet booted normally it would be impossible to
customize it, therefore preventing a customized first-boot.

The attribute should not hurt on disks that do not have the guest tools
installed and indeed the VMware tools also unconditionally add this
attribute.
(Defaulting to the value "2147483647", as is done in this patch)

Signed-off-by: Thomas Weißschuh <thomas.weissschuh.ext@zeiss.com>
Message-Id: <20210913130419.13241-1-thomas.weissschuh.ext@zeiss.com>
[hreitz: Added missing '#' in block-core.json]
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
block/vmdk.c
qapi/block-core.json