[pve-devel] applied: [PATCH qemu-server] fix #1908: add vmgenid config/device
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Sep 19 14:05:31 CEST 2018
On 9/19/18 11:35 AM, Dominik Csapak wrote:
> this adds a VM Generation ID device uses by Windows (Server) to determine
> some specific actions that may have happened with the vm
> such as rollback, restore, etc.
>
> see:
>
> https://docs.microsoft.com/en-us/windows/desktop/hyperv_v2/virtual-machine-generation-identifier
>
> for details on how it works and when it should change
>
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> changes from v2:
> * drop the property string, use uuid directly (or 1/0)
> * autogenerate in the api during create/set instead of during vm start
> (writing it manually to 1 in the config leads to an error, but this is
> expected, users should use the api or qm)
>
applied thanks, added a verbose_description (nice for the online docs) a
comment for the rollback case and used 'vmgenid' directly instead of the
$1 when restoring a backup, code is easier to read and safeguarded against
a accidental regex insertion between matching vmgenid and printing it out
to the new conf file.
More information about the pve-devel
mailing list