]> git.proxmox.com Git - qemu-server.git/commitdiff
config: meta: also save the QEMU version installed during creation
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 21 Oct 2021 07:19:54 +0000 (09:19 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 4 Nov 2021 14:30:30 +0000 (15:30 +0100)
This is intended to be used to apply some workarounds for the
non-windows ostyped VMs which we'd still like to not pin on a
specific machine version, as normally Linux et al. can cope with such
changes on fresh boot just fine and until now this was a once every
few year issue (albeit systemd's "predictable" interface naming has
some potential to pick up on churn frequency).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer.pm

index 80c7060d3f44dd89f617e876c616272d8e39d6ba..669f4f8d390046b20eb170528e876c4b71e82234 100644 (file)
@@ -293,6 +293,12 @@ my $meta_info_fmt = {
        minimum => 0,
        optional => 1,
     },
+    'creation-qemu' => {
+       type => 'string',
+       description => "The QEMU (machine) version from the time this VM was created.",
+       pattern => '\d+(\.\d+)+',
+       optional => 1,
+    },
 };
 
 my $confdesc = {
@@ -2145,6 +2151,7 @@ sub new_meta_info_string {
 
     return PVE::JSONSchema::print_property_string(
        {
+           'creation-qemu' => kvm_user_version(),
            ctime => "". int(time()),
        },
        $meta_info_fmt