Update virBhyveProcessStart() to call virDomainObjSetDefTransient() so we save the persistent configuration in vm->newDef, and use vm->def as a live definition. Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com> --- src/bhyve/bhyve_process.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bhyve/bhyve_process.c b/src/bhyve/bhyve_process.c index 65e3bdfd02..9578b8003c 100644 --- a/src/bhyve/bhyve_process.c +++ b/src/bhyve/bhyve_process.c @@ -591,6 +591,9 @@ virBhyveProcessStart(bhyveConn *driver, virDomainRunningReason reason, unsigned int flags) { + if (virDomainObjSetDefTransient(driver->xmlopt, vm, NULL) < 0) + return -1; + /* Run an early hook to setup missing devices. */ if (bhyveProcessStartHook(driver, vm, VIR_HOOK_BHYVE_OP_PREPARE) < 0) goto cleanup; @@ -609,6 +612,7 @@ virBhyveProcessStart(bhyveConn *driver, cleanup: bhyveProcessStopHook(driver, vm, VIR_HOOK_BHYVE_OP_STOPPED); bhyveProcessStopHook(driver, vm, VIR_HOOK_BHYVE_OP_RELEASE); + virDomainObjRemoveTransientDef(vm); return -1; } -- 2.52.0