cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wido den Hollander (JIRA)" <>
Subject [jira] [Commented] (CLOUDSTACK-600) When rebooting KVM local storage VM host, libvirt definitions deleted
Date Thu, 07 Feb 2013 15:53:12 GMT


Wido den Hollander commented on CLOUDSTACK-600:

Checking the upstart script of libvirt-bin under Ubuntu shows it will destroy all running
VMs when going down, no mention of suspending them.

We (the agent) should probably not use Connect.domainDefineXML for starting a instance, but
use Connect.domainCreateXML. The latter wil launch a instance based on the XML, but won't
make it persistent.

Otherwise we can also use Domain.setAutostart() to make sure it's not starting on boot, although
that would look redundant to me and won't fix the root cause.

There should be a way to make XML definitions in libvirt not persistent so it gets lost as
soon as you reboot the hypervisor.

For Java API, see:
> When rebooting KVM local storage VM host, libvirt definitions deleted
> ---------------------------------------------------------------------
>                 Key: CLOUDSTACK-600
>                 URL:
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: KVM
>    Affects Versions: pre-4.0.0
>            Reporter: Andrew Bayer
> This is definitely the case in 3.0.3, and I don't think the relevant code has been touched
> When you reboot a VM host running KVM local storage VMs, the VMs are deleted from libvirt.
I presume this is due to CloudStack thinking it's migrating them away from the host, but obviously,
given that we're on local storage, it's unable to do that. The result is that the VMs are
not able to be restarted when the host comes back online.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message