From: Daniel P. Berrange Date: Fri, 1 Aug 2008 14:19:06 +0000 (+0000) Subject: Fix initial VM state X-Git-Tag: LIBVIRT_0_4_6~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dee7feb74868699a3e4182bc6044c8c2a5c0e02;p=thirdparty%2Flibvirt.git Fix initial VM state --- diff --git a/ChangeLog b/ChangeLog index e3a375f949..51d2fa646b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Aug 1 15:15:00 BST 2008 Daniel P. Berrange + + * src/domain_conf.c: Ensure new VM state is initialized to + be SHUTOFF, rather than NOSTATE. + Fri Aug 1 15:51:04 CEST 2008 Jim Meyering * virsh.c: more const-correctness fixes diff --git a/src/domain_conf.c b/src/domain_conf.c index a844c82444..4998a7d3bb 100644 --- a/src/domain_conf.c +++ b/src/domain_conf.c @@ -429,6 +429,7 @@ virDomainObjPtr virDomainAssignDef(virConnectPtr conn, return NULL; } + domain->state = VIR_DOMAIN_SHUTOFF; domain->def = def; domain->next = *doms;