Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F1C15C433EF for ; Tue, 29 Mar 2022 15:24:12 +0000 (UTC) Received: from localhost ([::1]:50020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZDhc-0006y5-1f for qemu-devel@archiver.kernel.org; Tue, 29 Mar 2022 11:24:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZCpJ-0006yM-Hb for qemu-devel@nongnu.org; Tue, 29 Mar 2022 10:28:06 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:26830) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZCpH-0005yS-Nb for qemu-devel@nongnu.org; Tue, 29 Mar 2022 10:28:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1648564081; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=UrwqE5UTqynaLnMoWs+GsUnTU0L4cMQIJkDnnTzA39Y=; b=RcPnsBuxUpM36ZmM747pZMKyuHOZYfsFfPKuJOBBcgMt5HSjcwP58idIcJQBODlq4oGUF0 hW9vE5bimpegicJo7aG+SwnUrdcGyucJGLIMzkLjZ5rBLMDF2l7t9GicHEDBFNaYiu4osQ Rmh0IjBou5DQaItR1yuADw5zyxqC9l0= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-52-H9K72u9SPkKe5oaNY3CE9Q-1; Tue, 29 Mar 2022 10:26:42 -0400 X-MC-Unique: H9K72u9SPkKe5oaNY3CE9Q-1 Received: by mail-wr1-f71.google.com with SMTP id l19-20020adf9f13000000b00203f7f64c7bso5053598wrf.18 for ; Tue, 29 Mar 2022 07:26:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=UrwqE5UTqynaLnMoWs+GsUnTU0L4cMQIJkDnnTzA39Y=; b=I1N/ub5e45yYqN5/Sk270GL6lT8aT3NTljKXCwkKjHHwLrXiY9sitQ2IgfrFslqf5G IvXpjmzOyiAOpx0WnVNU9X19tOJ3CekN6iz+CyYbgk0AigcpDMKFjuXMOkIhJdwPEE0j cP8oHYoVVaZJhA384n0KGZ4SWLiBgusNbG4FKBVDzJInBQrz0MsfTxE/4cvxkEM4GTZg FsVmv1V5hFKMsuO996g9ju/V0mjqAXKKuofNF+K+mT358o0M9KlHPkL3VFITRvoyolew pjfBtjVmLgWkAs2peU3vPFX5aBcZHY5bHgVV/NaxjN9E4E6RZtZPZLPPJ7LhRNIRgKEM HSNA== X-Gm-Message-State: AOAM53112j/YM8pB4hq4HJT67fwCiRH39XcOKhk6I4zNT4yLGLO+ARmu s9p/pr2L20gOSLSUyW5LxHPQLUuLBKWQUbW/dfp9+rgcsKMNDbeIK7+NHCZTcI4ZkUmBB/k+61A 7It0u1it4hUpWpORRZMV4+aTJDgWhkiI= X-Received: by 2002:a5d:64e5:0:b0:205:9d96:6cf9 with SMTP id g5-20020a5d64e5000000b002059d966cf9mr26127090wri.117.1648564001239; Tue, 29 Mar 2022 07:26:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQdcwMt85LWG+jnphoazfldrPaCUDsRoiZAlPjZfWxAvtl8pKUd62YF2sGXdj700d7uIroa9miZsSEwf+xoa0= X-Received: by 2002:a5d:64e5:0:b0:205:9d96:6cf9 with SMTP id g5-20020a5d64e5000000b002059d966cf9mr26127055wri.117.1648564000837; Tue, 29 Mar 2022 07:26:40 -0700 (PDT) MIME-Version: 1.0 From: Shelly Kagan Date: Tue, 29 Mar 2022 17:26:30 +0300 Message-ID: Subject: FSFreeze on Windows VM To: qemu-devel@nongnu.org Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=skagan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/alternative; boundary="000000000000a8e98105db5c37b1" Received-SPF: pass client-ip=170.10.129.124; envelope-from=skagan@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_IMAGE_ONLY_32=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 29 Mar 2022 11:23:03 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --000000000000a8e98105db5c37b1 Content-Type: text/plain; charset="UTF-8" Hi all, I'm having some weird behavior with fsfreeze in windows VM. I run the fsfreeze and it returns: `error: Guest agent is not responding: Guest agent not available for now` but checking the status returned frozen, rerunning it again returns that the command is not enabled (expected since the freeze occurs) I checked the fsstatus and it keeps returning `frozen` even after 10 seconds (from my understanding the freeze in windows vm is limited to 10 seconds by default by the VSS. No way to change this default from my understanding, is it true?) Shouldn't the status return thawed if the VSS no longer keeps the freeze state? After a minute I did the thaw and it returned error: `error: internal error: unable to execute QEMU agent command 'guest-fsfreeze-thaw': couldn't hold writes: fsfreeze is limited up to 10 seconds:` but the fsstatus changed to thawed after that call. My questions are: 1. Why would the fsfreeze return error about the guest agent but still freeze the fs? 2. Why would the guest agent not respond, is there a way to make sure it is available before the freeze command? (running the fsstatus command before it returned without issues..) 3. Is it expected that the fsstatus will return frozen even if possibly VSS has already thawed? and that the thaw fails but the status do change after to thawed? Thanks for taking the time to respond and help, -- Shelly Kagan Senior Software Engineer Red Hat --000000000000a8e98105db5c37b1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,
I'm having some weird behavior = with fsfreeze in windows VM.
I run the fsfreeze and it returns:
`error: Guest agent is not responding: Guest agent not available f= or now`

but checking the status returned frozen, rerunning it= again returns that the command is not enabled (expected since the freeze o= ccurs)

I checked the fsstatus and it keeps returning `frozen`= even after 10 seconds (from my understanding=C2=A0the freeze in windows vm= is limited to 10 seconds by default by the VSS. No way to change this defa= ult=C2=A0from my understanding, is it true?) Shouldn't the status retur= n thawed if the VSS no longer keeps the freeze state?

After a= minute I did the thaw and it returned error:
`error: internal er= ror: unable to execute QEMU agent command 'guest-fsfreeze-thaw': co= uldn't hold writes: fsfreeze is limited up to 10 seconds:`
but the fsstatus changed to thawed after that call.
<= div>
My questions are:
1. Why would the fsfreeze re= turn error about the guest agent but still freeze the fs?
2. Why = would the guest agent not respond, is there a way to make sure it is availa= ble before the freeze command? (running the fsstatus=C2=A0command before it= returned without issues..)
3. Is it expected that the fsstatus w= ill return frozen even if possibly VSS has already thawed? and that the tha= w fails but the status do change after to thawed?

= Thanks for taking the time to respond and help,
--

Shelly Kagan

=20

Senior Software Engineer

Red Hat

=20 =20
=20 =20 =20 =20
=20
--000000000000a8e98105db5c37b1--