vmspawn: enable vmgenid for all VMs
authorLennart Poettering <lennart@poettering.net>
Fri, 19 Apr 2024 12:54:12 +0000 (14:54 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 20 Apr 2024 10:10:42 +0000 (12:10 +0200)
commit9573c0ba569e8b4cc237776a7008979c23719fac
treef79b0a6dd2ec4b00a2c8ab75efd448b69e269cb1
parent615906cdcfa8b950f583970a41bc3b3156f90f08
vmspawn: enable vmgenid for all VMs

This passes an ID derived from the vmgenid down to all VMs. This is
useful to have an identifier for this VM generation id. We derive it
from the invocation ID, if we have one, otherwise we randomize it.

Eventually we should make use of the vmgenid changing to re-acquire MAC
addresses, DHCP leases as such. Let's for now enable the VMM side of the
concept as first step towards that.
src/vmspawn/vmspawn.c