qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] qemu-img: Could not open '....qcow2': Could not read snapshots: File too large
@ 2015-12-07  9:07 Kis Gellert
  2015-12-07 13:24 ` Kevin Wolf
  0 siblings, 1 reply; 2+ messages in thread
From: Kis Gellert @ 2015-12-07  9:07 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 2021 bytes --]

Today one of my virtual machines failed starting.
Previously , I might made a snapshot while VM running.

I got this error in virt-manager:

    Error starting domain: internal error: process exited while connecting to monitor: 2015-12-07T08:48:16.006513Z qemu-system-x86_64: -drive file=/home/g1ra/kvmware/centosnfs.qcow2,if=none,id=drive-ide0-0-0,format=qcow2: Could not read snapshots: File too large

    Traceback (most recent call last):

      File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper

        callback(asyncjob, *args, **kwargs)

      File "/usr/share/virt-manager/virtManager/asyncjob.py", line 125, in tmpcb

        callback(*args, **kwargs)

      File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 83, in newfn

        ret = fn(self, *args, **kwargs)

      File "/usr/share/virt-manager/virtManager/domain.py", line 1423, in startup

        self._backend.create()

      File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1029, in create

        if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)

    libvirtError: internal error: process exited while connecting to monitor: 2015-12-07T08:48:16.006513Z qemu-system-x86_64: -drive file=/home/g1ra/kvmware/centosnfs.qcow2,if=none,id=drive-ide0-0-0,format=qcow2: Could not read snapshots: File too large



>From the terminal , I got same error for all qemu-img

    g1ra@d7520:~/kvmware$ qemu-img info centosnfs.qcow2                                                                                                                                                             

    qemu-img: Could not open 'centosnfs.qcow2': Could not read snapshots: File too large

    g1ra@d7520:~/kvmware$ qemu-img snapshot -l  centosnfs.qcow2                                                                                                                                                     

    qemu-img: Could not open 'centosnfs.qcow2': Could not read snapshots: File too large




[-- Attachment #2: Type: text/html, Size: 2887 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] qemu-img: Could not open '....qcow2': Could not read snapshots: File too large
  2015-12-07  9:07 [Qemu-devel] qemu-img: Could not open '....qcow2': Could not read snapshots: File too large Kis Gellert
@ 2015-12-07 13:24 ` Kevin Wolf
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Wolf @ 2015-12-07 13:24 UTC (permalink / raw)
  To: Kis Gellert; +Cc: qemu-devel

Am 07.12.2015 um 10:07 hat Kis Gellert geschrieben:
> Today one of my virtual machines failed starting.
> Previously , I might made a snapshot while VM running.

Never access disk images from more than one process at the same time
(except if all of them are read-only), it causes corruption. The proper
way of taking a snapshot of a running VM is the qemu monitor (i.e. in
your case through libvirt).

Your best bet for recovering at least some data is using either a
hex editor or tests/qemu-iotests/qcow2.py from the qemu source tree to
update the number of snapshots to 0 and then use qemu-img convert to
copy the data out.

Kevin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-07 13:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-07  9:07 [Qemu-devel] qemu-img: Could not open '....qcow2': Could not read snapshots: File too large Kis Gellert
2015-12-07 13:24 ` Kevin Wolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).