[Spice-devel] How to get spice client and server log ?
Christophe Fergeau
cfergeau at redhat.com
Wed Sep 9 01:23:18 PDT 2015
Hey,
On Wed, Sep 09, 2015 at 02:00:46PM +0800, 骆宏震 wrote:
> Dear
> Sorry to trouble you . I'd like to learn spice source code very much . I have installed spice client in my operation system(Win7 32bit) ,and built environment of server completely in linux System. The virt-viewer.exe(2.0) was installed in my client so that i can connect virtual machine.
> Basic operation is well ,but I encountered a problem that USB redirection problem, when I inserted USB in my PC ,the Virtual Machine will pop up message box "USB redirection error: Could not open usb device :operation not supported or unimplemented on this platform[-12]".
> The usbclerk service has been worked in my system .Also i got the usbclerk.log i found the "install_winusb_driver::Device 0951:1642 driver install failed -- Cancelled by user (-14) ".I am not sure the root reason . So i want to check the spice log information . But I didn't find it between my PC and linux OS.
> I read the User manual and found below information .
> 7 Logging and debugging
> Spice server logs to stdout
> Spice client log is /tmp/spicec.log in Linux. In Windows, it is %temp%\spicec.log.
>
> Unfortunately I didn't find the log trace in that path.
> So could you tell me how to get the spice log ? if this e-mail can be received lucky by you, please tell me the detail procedures or help me to make a direction about this . Thank you very much .
Most likely reason for your issue is that virt-viewer/spice-gtk for
Windows are not built with USB redirection support. I'd recommend trying
with a linux client first to make sure everything is working correctly
host-side.
As for getting the logs, you can start the client manually with
G_MESSAGES_DEBUG set to 'all' in your environment, and with the
--spice-debug argument, this should give you debug output.
For server logs, it depends how you start QEMU. If you start it manually
from a shell prompt, the logs will go to stdout. If you use libvirt,
they will be in /var/log/libvirt/qemu/log/
Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20150909/deb373a7/attachment.sig>
More information about the Spice-devel
mailing list