All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] qemu-ga : Guest Agent : Windows 2008 : Unknown command guest-fsfreeze-freeze
@ 2012-08-17 17:11 desi babu
  2012-08-20 13:54 ` Luiz Capitulino
  0 siblings, 1 reply; 4+ messages in thread
From: desi babu @ 2012-08-17 17:11 UTC (permalink / raw)
  To: qemu-devel

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

Guest-Agent : Windows 2008 Error : Relase 1.1.90

error : internal error unable to execute QEMU command 'guest-fsfreeze-freeze': this feature or command is not currently supported.

Guest-info shows the command is available.  Is there any information available on the list of commands supported inside Windows ? Appreciate if you have any pointers.

/Suresh Mandava

-- data  ----
Environment : Windows Server 2008 R2
Guest Agent Version : 1.1.90 compiled from latest qemu source 1.2.0rc0

Libvirt : XML for VM. 

<channel type='unix'>
       <source mode='bind' path='/var/lib/libvirt/qemu/va-2008-ga-libvirt.0.sock'/>
       <target type='virtio' name='org.qemu.guest_agent.0'/>
       <address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>
<channel type='unix'>
       <source mode='bind' path='/var/lib/libvirt/qemu/va-2008-ga-cloud.0.sock'/>
       <target type='virtio' name='org.qemu.guest_agent.1'/>
       <address type='virtio-serial' controller='0' bus='0' port='2'/>
 </channel>

Test Case Success  1: 
echo "{'execute':'guest-info'}" |socat stdio,ignoreeof unix-connect:/var/lib/libvirt/qemu/va-2008-ga-cloud.0.sock

Result : 
{"return": {"version": "1.1.90", "supported_commands": [{"enabled": true, "name": "guest-network-get-interfaces"}, {"enabled": true, "name": "guest-suspend-hybrid"}, {"enabled": true, "name": "guest-suspend-ram"}, {"enabled": true, "name": "guest-suspend-disk"}, {"enabled": true, "name": "guest-fstrim"}, {"enabled": true, "name": "guest-fsfreeze-thaw"}, {"enabled": true, "name": "guest-fsfreeze-freeze"}, {"enabled": true, "name": "guest-fsfreeze-status"}, {"enabled": true, "name": "guest-file-flush"}, {"enabled": true, "name": "guest-file-seek"}, {"enabled": true, "name": "guest-file-write"}, {"enabled": true, "name": "guest-file-read"}, {"enabled": true, "name": "guest-file-close"}, {"enabled": true, "name": "guest-file-open"}, {"enabled": true, "name": "guest-shutdown"}, {"enabled": true, "name": "guest-info"}, {"enabled": true, "name": "guest-ping"}, {"enabled": true, "name": "guest-sync"}, {"enabled": true, "name": "guest-sync-delimited"}]}}

Test case Failure  2 : 
virsh snapshot-create $myvm --no-metadata --disk-only --quiesce --atomic
internal error unable to execute QEMU command 'guest-fsfreeze-freeze': this feature or command is not currently supported

Please let me know if you need any data.
------

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

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

* Re: [Qemu-devel] qemu-ga : Guest Agent : Windows 2008 : Unknown command guest-fsfreeze-freeze
  2012-08-17 17:11 [Qemu-devel] qemu-ga : Guest Agent : Windows 2008 : Unknown command guest-fsfreeze-freeze desi babu
@ 2012-08-20 13:54 ` Luiz Capitulino
  2012-08-20 19:34   ` Michael Roth
  0 siblings, 1 reply; 4+ messages in thread
From: Luiz Capitulino @ 2012-08-20 13:54 UTC (permalink / raw)
  To: desi babu; +Cc: qemu-devel, mdroth

On Fri, 17 Aug 2012 10:11:29 -0700 (PDT)
desi babu <vdesibabu@yahoo.com> wrote:

> Guest-Agent : Windows 2008 Error : Relase 1.1.90
> 
> error : internal error unable to execute QEMU command 'guest-fsfreeze-freeze': this feature or command is not currently supported.

That's correct, fsfreze is not supported on Windows.

> Guest-info shows the command is available.  Is there any information available on the list of commands supported inside Windows ? Appreciate if you have any pointers.

That's a qemu-ga bug. CC'ing Michael to check if he has a fix in mind for this.

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

* Re: [Qemu-devel] qemu-ga : Guest Agent : Windows 2008 : Unknown command guest-fsfreeze-freeze
  2012-08-20 13:54 ` Luiz Capitulino
@ 2012-08-20 19:34   ` Michael Roth
  2012-08-21 12:58     ` Luiz Capitulino
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Roth @ 2012-08-20 19:34 UTC (permalink / raw)
  To: Luiz Capitulino; +Cc: desi babu, qemu-devel

On Mon, Aug 20, 2012 at 10:54:29AM -0300, Luiz Capitulino wrote:
> On Fri, 17 Aug 2012 10:11:29 -0700 (PDT)
> desi babu <vdesibabu@yahoo.com> wrote:
> 
> > Guest-Agent : Windows 2008 Error : Relase 1.1.90
> > 
> > error : internal error unable to execute QEMU command 'guest-fsfreeze-freeze': this feature or command is not currently supported.
> 
> That's correct, fsfreze is not supported on Windows.
> 
> > Guest-info shows the command is available.  Is there any information available on the list of commands supported inside Windows ? Appreciate if you have any pointers.
> 
> That's a qemu-ga bug. CC'ing Michael to check if he has a fix in mind for this.
> 

I've been thinking about this one for a while. It's considered expected
behavior, but I realize it sucks for discoverability. I doubt we want to
do platform-specific QAPI schema definitions, so the only option I can
think of is some kind of [de-]registration mechanism where we can mark
commands as being not available for a particular build/platform in the
cases where we stub out command implementations.

I think we can expose this to existing clients by no longer listing commands
marked as unsupported in the list provided by the guest-info command. It
should "just work". Can probably do it for 1.3. For now, clients will
have to catch it in the error-handling path.

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

* Re: [Qemu-devel] qemu-ga : Guest Agent : Windows 2008 : Unknown command guest-fsfreeze-freeze
  2012-08-20 19:34   ` Michael Roth
@ 2012-08-21 12:58     ` Luiz Capitulino
  0 siblings, 0 replies; 4+ messages in thread
From: Luiz Capitulino @ 2012-08-21 12:58 UTC (permalink / raw)
  To: Michael Roth; +Cc: desi babu, qemu-devel

On Mon, 20 Aug 2012 14:34:34 -0500
Michael Roth <mdroth@linux.vnet.ibm.com> wrote:

> On Mon, Aug 20, 2012 at 10:54:29AM -0300, Luiz Capitulino wrote:
> > On Fri, 17 Aug 2012 10:11:29 -0700 (PDT)
> > desi babu <vdesibabu@yahoo.com> wrote:
> > 
> > > Guest-Agent : Windows 2008 Error : Relase 1.1.90
> > > 
> > > error : internal error unable to execute QEMU command 'guest-fsfreeze-freeze': this feature or command is not currently supported.
> > 
> > That's correct, fsfreze is not supported on Windows.
> > 
> > > Guest-info shows the command is available.  Is there any information available on the list of commands supported inside Windows ? Appreciate if you have any pointers.
> > 
> > That's a qemu-ga bug. CC'ing Michael to check if he has a fix in mind for this.
> > 
> 
> I've been thinking about this one for a while. It's considered expected
> behavior, but I realize it sucks for discoverability. I doubt we want to
> do platform-specific QAPI schema definitions, so the only option I can
> think of is some kind of [de-]registration mechanism where we can mark
> commands as being not available for a particular build/platform in the
> cases where we stub out command implementations.

Yes, I guess the first idea I had is similar. I thought about adding
PlatformOps and let win32 and posix register the commands they
implement. Then, qmp_guest_info() could check if the in-use PlatformOps
supports the command before adding it to the supported list.

> I think we can expose this to existing clients by no longer listing commands
> marked as unsupported in the list provided by the guest-info command. It
> should "just work". Can probably do it for 1.3. For now, clients will
> have to catch it in the error-handling path.

Agreed it's 1.3 material.

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

end of thread, other threads:[~2012-08-21 12:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-17 17:11 [Qemu-devel] qemu-ga : Guest Agent : Windows 2008 : Unknown command guest-fsfreeze-freeze desi babu
2012-08-20 13:54 ` Luiz Capitulino
2012-08-20 19:34   ` Michael Roth
2012-08-21 12:58     ` Luiz Capitulino

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.