<div dir="ltr">Not locally, the guest run in server A. <div>I remote control the guest from my laptop.</div><div><br></div><div> <span style="font-size:14px">Regards,</span></div><div style="font-size:14px">John</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-02-28 0:22 GMT+08:00 Uri Lublin <span dir="ltr"><<a href="mailto:uril@redhat.com" target="_blank">uril@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 02/27/2017 04:01 AM, John Y. wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
I'm sorry that I misled you.<br>
The guest OS is windows 7 so that I cannot use virgl.<br></span>
I got the configuration from <a href="http://libvirt.org" rel="noreferrer" target="_blank">libvirt.org</a> <<a href="http://libvirt.org" rel="noreferrer" target="_blank">http://libvirt.org</a>> and I<span class=""><br>
don't know which configuration will work for me, so I pasted all in the<br>
mail.<br>
<br>
Do you mean the default configuration the best suited for my case?<br>
</span></blockquote>
<br>
<br>
If you run your VM "locally" (the server and the client<br>
are running on the same machine) you probably do not gain<br>
from image-compression/video-stream<wbr>ing.<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
2017-02-27 0:58 GMT+08:00 Uri Lublin <<a href="mailto:uril@redhat.com" target="_blank">uril@redhat.com</a><br></span>
<mailto:<a href="mailto:uril@redhat.com" target="_blank">uril@redhat.com</a>>>:<span class=""><br>
<br>
    On 02/23/2017 09:43 AM, John Y. wrote:<br>
<br>
        I learned that video and image compression can be chosen server<br>
        initiation from<br>
        <a href="https://www.spice-space.org/spice-user-manual.html" rel="noreferrer" target="_blank">https://www.spice-space.org/sp<wbr>ice-user-manual.html</a><br></span>
        <<a href="https://www.spice-space.org/spice-user-manual.html" rel="noreferrer" target="_blank">https://www.spice-space.org/s<wbr>pice-user-manual.html</a>>.<div><div class="h5"><br>
        How can I change the configuration for the compression ?<br>
<br>
        I want to play 720p video smoothly in the guest(some loss or<br>
        distortion<br>
        does not matter).<br>
        What is the best configuration for me?<br>
<br>
        I got that I can change option of graphics in libvirt like:<br>
        <graphics type='spice' port='-1' tlsPort='-1' autoport='yes'><br>
          <channel name='main' mode='secure'/><br>
          <channel name='record' mode='insecure'/><br>
          <image compression='auto_glz'/><br>
          <streaming mode='filter'/><br>
          <clipboard copypaste='no'/><br>
          <mouse mode='client'/><br>
          <filetransfer enable='no'/><br>
          <gl enable='yes'<br>
        rendernode='/dev/dri/by-path/p<wbr>ci-0000:00:02.0-render'/><br>
        </graphics><br>
<br>
        Which option should I change ?<br>
<br>
        Can I also customize more parameter about the vga(such as fps,<br>
        bitrate<br>
        ...) ?<br>
<br>
        Regards,<br>
        John<br>
<br>
<br>
<br>
    Hi John,<br>
<br>
    What is the guest OS?<br>
<br>
    According to your configuration above, I assume you are<br>
    running the VM locally on your workstation.<br>
    Also I see you are trying to use virgl (gl enable=yes)<br>
    If this is the case, for Linux guests, you need not to worry about<br>
    image/video compression.<br>
    Just make sure you are using virtio-vga and that the<br>
    given 'rendernode' is correct and accessible,<br>
    and that you have new enough qemu-kvm/spice-server and<br>
    remote-viewer or virt-manager.<br>
<br>
    Regards,<br>
        Uri.<br>
<br>
<br>
</div></div></blockquote>
<br>
</blockquote></div><br></div>