diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 51c4e29ba73c6165c64c59159593b85cbf2fb4a5..78496937d49a696351479484af34169975d228fa 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -2167,7 +2167,13 @@ virDomainObjListAddLocked(virDomainObjListPtr doms, /* UUID & name match, but if VM is already active, refuse it */ if (virDomainObjIsActive(vm)) { virReportError(VIR_ERR_OPERATION_INVALID, - _("domain is already active as '%s'"), + _("domain '%s' is already active"), + vm->def->name); + goto error; + } + if (!vm->persistent) { + virReportError(VIR_ERR_OPERATION_INVALID, + _("domain '%s' is already being started"), vm->def->name); goto error; }