After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 674826 - qemu-kvm is still running after Boxes has exited
qemu-kvm is still running after Boxes has exited
Status: RESOLVED DUPLICATE of bug 683473
Product: gnome-boxes
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-04-25 19:25 UTC by William Jon McCann
Modified: 2016-03-31 13:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description William Jon McCann 2012-04-25 19:25:00 UTC
qemu-kvm is still running after Boxes has exited.
Comment 1 Zeeshan Ali 2012-04-25 19:39:17 UTC
(In reply to comment #0)
> qemu-kvm is still running after Boxes has exited.

Shouldn't happen and if it does, its very likely a bug in libvirt.
Comment 2 Christophe Fergeau 2012-04-25 19:45:43 UTC
virt-manager sees the VM as "suspended" after Boxes exits, and will happily resume it or shut it down, so maybe Boxes is not doing something it should to fully shutdown qemu.
Comment 3 Zeeshan Ali 2012-04-25 20:31:29 UTC
(In reply to comment #2)
> virt-manager sees the VM as "suspended" after Boxes exits, and will happily
> resume it or shut it down, so maybe Boxes is not doing something it should to
> fully shutdown qemu.

That would be the case if you have explicitly configured Boxes to 'suspend' domains OR if you still have the old source config (~/.config/gnome-boxes/sources/QEMU\ Session) before we started to save domains on exit.
Comment 4 Zeeshan Ali 2012-04-25 20:33:50 UTC
FWIW, on my machine here is what libvirt reports about my (automatically) saved domains:

$ virsh list --all
 Id    Name                           State
----------------------------------------------------
 -     Fedora 16                      shut off
 -     Fedora 17                      shut off
 -     Microsoft Windows XP           shut off
$ ps -ef|grep qemu
zeenix    5222  2018  0 23:33 pts/0    00:00:00 grep --color=auto qemu
$
Comment 5 William Jon McCann 2012-04-25 20:53:57 UTC
 Id    Name                           State
----------------------------------------------------
 3     precise-desktop-i386.iso       running
Comment 6 Christophe Fergeau 2012-04-26 08:31:12 UTC
(In reply to comment #3)
 if you still have the old source config
> (~/.config/gnome-boxes/sources/QEMU\ Session) before we started to save domains
> on exit.

I did some cleanup and qemu processes are indeed gone afer exiting boxes. However, after restarting boxes, the VM does not restart where it was before boxes exit. Does the VM gets a "force shutdown/physical power off" before exiting? This could cause data loss/virtual disk corruption...
Comment 7 Zeeshan Ali 2012-04-26 12:24:07 UTC
(In reply to comment #6)
> (In reply to comment #3)
>  if you still have the old source config
> > (~/.config/gnome-boxes/sources/QEMU\ Session) before we started to save domains
> > on exit.
> 
> I did some cleanup and qemu processes are indeed gone afer exiting boxes.
> However, after restarting boxes, the VM does not restart where it was before
> boxes exit. Does the VM gets a "force shutdown/physical power off" before
> exiting? This could cause data loss/virtual disk corruption...

No, we only call one function in libvirt to save the domain and shutdown is implied in that. I have seen that sometimes the restore doesn't exactly work and that would be a bug in libvirt/qemu.
Comment 8 Christophe Fergeau 2012-04-26 12:55:57 UTC
Just to be 100% sure I'm expecting the right thing: default behaviour of boxes is to save running VMs to disk on exit, qemu is no longer running, and when restarting boxes and the VM, it restarts where it was before? If I don't get this behaviour, this means there's a bug somewhere?
Comment 9 Zeeshan Ali 2012-04-26 13:43:40 UTC
(In reply to comment #8)
> Just to be 100% sure I'm expecting the right thing: default behaviour of boxes
> is to save running VMs to disk on exit, qemu is no longer running, and when
> restarting boxes and the VM, it restarts where it was before? If I don't get
> this behaviour, this means there's a bug somewhere?

Correct!
Comment 10 Marc-Andre Lureau 2012-09-04 17:24:20 UTC
We'd need a description how to reproduce the issue today.

Thanks for taking the time to report this bug.
This bug report isn't very useful because it doesn't describe the bug well. If you have time and can still reproduce the bug, please read http://bugzilla.gnome.org/bug-HOWTO.html and add a more useful description to this bug.
Comment 11 Alexander Larsson 2012-09-21 09:42:20 UTC
Might this be a dup of 683473?
Comment 12 Christophe Fergeau 2012-09-21 13:25:00 UTC
Yup, let's bet on that

*** This bug has been marked as a duplicate of bug 683473 ***