{"id":307,"date":"2012-08-08T01:02:18","date_gmt":"2012-08-08T08:02:18","guid":{"rendered":"http:\/\/porkrind.org\/missives\/?p=307"},"modified":"2013-05-30T01:43:49","modified_gmt":"2013-05-30T08:43:49","slug":"libvirt-based-qemu-vm-pausing-by-itself","status":"publish","type":"post","link":"https:\/\/porkrind.org\/missives\/libvirt-based-qemu-vm-pausing-by-itself\/","title":{"rendered":"libvirt based QEMU VM pausing by itself"},"content":{"rendered":"<p>I just debugged this for hours. I have a bunch of QEMU VMs and different sets of them would start pausing themselves. If I resumed them they would immediately pause themselves again. Checking logs showed nothing. I found a disk with a bunch of S.M.A.R.T. errors but it turned out to be a red herring (though it&#8217;s still getting replaced ASAP). In the end I was reading the QEMU man page and found this:<\/p>\n<blockquote><p>werror=action,rerror=action<\/p>\n<p>Specify which action to take on write and read errors. Valid actions are: &#8220;ignore&#8221; (ignore the error and try to continue), &#8220;stop&#8221; (pause QEMU), &#8220;report&#8221; (report the error to the guest), &#8220;enospc&#8221; (pause QEMU only if the host disk is full; report the error to the guest otherwise).\u00a0 The default setting is werror=enospc and rerror=report.<\/p><\/blockquote>\n<p>After reading that and checking to see that those options were not specified on my QEMU command line, it finally dawned on me that maybe my disk was out of space. Sure enough, one of the VMs had filled its sparse image to the point where there was no room left on the real disk.<\/p>\n<p>Poor planning on my part, yes, but I still wish that ENOSPC would show up in <em>some<\/em> log file <em>somewhere<\/em>. It would have saved me hours of debugging.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just debugged this for hours. I have a bunch of QEMU VMs and different sets of them would start pausing themselves. If I resumed them they would immediately pause themselves again. Checking logs showed nothing. I found a disk with a bunch of S.M.A.R.T. errors but it turned out to be a red herring &hellip; <a href=\"https:\/\/porkrind.org\/missives\/libvirt-based-qemu-vm-pausing-by-itself\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">libvirt based QEMU VM pausing by itself<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[],"class_list":["post-307","post","type-post","status-publish","format-standard","hentry","category-sysadmin"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/posts\/307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/comments?post=307"}],"version-history":[{"count":11,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/posts\/307\/revisions"}],"predecessor-version":[{"id":383,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/posts\/307\/revisions\/383"}],"wp:attachment":[{"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/media?parent=307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/categories?post=307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/tags?post=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}