diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c index 98381fbad8..e5bbdd0d54 100644 --- a/src/openvz/openvz_driver.c +++ b/src/openvz/openvz_driver.c @@ -992,6 +992,7 @@ openvzDomainCreateWithFlags(virDomainPtr dom, unsigned int flags) vm->pid = strtoI(vm->def->name); vm->def->id = vm->pid; + dom->id = vm->pid; vm->state = VIR_DOMAIN_RUNNING; ret = 0;