[Libvir] Tricky provisioning problem with inactive domains

Daniel P. Berrange berrange at redhat.com
Mon Jan 15 21:22:37 UTC 2007


On Mon, Jan 15, 2007 at 08:57:33PM +0000, Mark McLoughlin wrote:
> On Mon, 2007-01-15 at 14:14 +0000, Daniel P. Berrange wrote:
> 
> >  3. We could just use virDomainCreate() to start installer, and try to
> >     use virDomainDefine() to write the long term config - the latter
> >     call will fail though because there will already be a running guest
> >     with that name.
> 
> 	I think I'd expect to be able to call virDomainDefine() to change an
> active domain's config without affecting it until it restarts.

In fact a little good news. I've just re-checked Xen 3.0.4 and this does
indeed work. You can start a guest, and then change its config at will
using virDomainDefine. Its just my hand-crafted  3.0.3 inactive domain
driver which doesn't let this work - which I can trivially fix. So this
thread looks like it may in fact be a non-issue.

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 




More information about the libvir-list mailing list