FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

LinkBack Thread Tools
Old 10-07-2008, 04:12 PM
Guido GŁnther
Default kvm/qemu vs libvirtd restarts

On Fri, Sep 26, 2008 at 04:47:05PM +0100, Daniel P. Berrange wrote:
> On Fri, Sep 26, 2008 at 05:41:02PM +0200, Guido G?nther wrote:
> > On Fri, Sep 26, 2008 at 09:51:26AM -0400, Cole Robinson wrote:
> > > It's easy to forget, but anytime you update libvirt you will
> > > need to restart libvirtd. Sounds like that could be the problem.
> > The Ubuntu packages are based on the Debian ones and I dropped the
> > daemon restart from the postinst so we don't tear down all running
> > machines - so this is likely the problem.
> > Did anybody work on saving enough state to restart libvirtd while
> > keeping the VMs running? If not I might give it a whirl once I find some
> > time.
> We've got this problem sorted in the 'lxc' driver and need to apply
> the same approach to the QEMU driver. The problem was always finding
> the Pseduo-TTY/PID for the monitor after restart, and associating the
> live config with it. We've "solved" that in LXC driver by savingt the
> live XML & PID to /var/run/libvirt/lxc/. It basically needs the same
> approach to be applied to the QEMU daemons. In addition the DNSmasq
> deamon needs adapting for simiarl reasons.
Attached is a very early patch. It keeps the qemu instances running and
writes out their states upon shutdown. Reconnecting (and therefore sending
monitor commands, etc.) works but since stdout/stderr don't get picked
up again yet we don't handle virEventAddhandle. I'll grab them from
/proc/<pid>/fd/{1,2} later. Network state is missing too, but since this
is moving into a separate file it's becoming a different matter anyway.
-- Guido
et-mgmt-tools mailing list

Thread Tools

All times are GMT. The time now is 10:08 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org