Ubuntu 16.04 KVM + QXL Guest - Can't change resolution





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















Using Spice + QXL for a 16.04 guest running on a 16.04 KVM hypervisor. This was working normally until recently.



After the last reboot of the guest, resolution was set to 1024x768. When I try setting it back to 1680x1050 (or any resolution), the session freezes until the timeout reverts back to the previous resolution.



spice-vdagent and the xorg QXL driver are installed on the guest.



(edit: added additional info)



This allowed me to change the resolution, but is not persistent across reboots:



xrandr -s 1680x1050









share|improve this question































    1















    Using Spice + QXL for a 16.04 guest running on a 16.04 KVM hypervisor. This was working normally until recently.



    After the last reboot of the guest, resolution was set to 1024x768. When I try setting it back to 1680x1050 (or any resolution), the session freezes until the timeout reverts back to the previous resolution.



    spice-vdagent and the xorg QXL driver are installed on the guest.



    (edit: added additional info)



    This allowed me to change the resolution, but is not persistent across reboots:



    xrandr -s 1680x1050









    share|improve this question



























      1












      1








      1


      3






      Using Spice + QXL for a 16.04 guest running on a 16.04 KVM hypervisor. This was working normally until recently.



      After the last reboot of the guest, resolution was set to 1024x768. When I try setting it back to 1680x1050 (or any resolution), the session freezes until the timeout reverts back to the previous resolution.



      spice-vdagent and the xorg QXL driver are installed on the guest.



      (edit: added additional info)



      This allowed me to change the resolution, but is not persistent across reboots:



      xrandr -s 1680x1050









      share|improve this question
















      Using Spice + QXL for a 16.04 guest running on a 16.04 KVM hypervisor. This was working normally until recently.



      After the last reboot of the guest, resolution was set to 1024x768. When I try setting it back to 1680x1050 (or any resolution), the session freezes until the timeout reverts back to the previous resolution.



      spice-vdagent and the xorg QXL driver are installed on the guest.



      (edit: added additional info)



      This allowed me to change the resolution, but is not persistent across reboots:



      xrandr -s 1680x1050






      16.04 kvm spice






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 18 '18 at 15:30







      lrussell123

















      asked Jan 10 '18 at 19:03









      lrussell123lrussell123

      43211




      43211






















          2 Answers
          2






          active

          oldest

          votes


















          0














          I had this same issue, but I tried so many things that I am not sure what made the difference. Going in reverse of what I did to get a working solution.



          1) In the KVM host, I changed the Video from "QXL" --> "VGA" (worked after this)



          2) Updated ~/.config/monitors.xml with:



          <monitors version="1">
          <configuration>
          <clone>no</clone>
          <output name="Virtual-0">
          <vendor>unknown</vendor>
          <product>unknown</product>
          <serial>unknown</serial>
          <width>1440</width>
          <height>900</height>
          <rate>59.990913391113281</rate>
          <x>0</x>
          <y>0</y>
          <rotation>normal</rotation>
          <reflect_x>no</reflect_x>
          <reflect_y>no</reflect_y>
          <primary>yes</primary>
          <presentation>no</presentation>
          <underscanning>no</underscanning>
          </output>
          </configuration>
          <configuration>
          <clone>no</clone>
          <output name="Virtual-0">
          <vendor>???</vendor>
          <product>0x0000</product>
          <serial>0x00000000</serial>
          <width>1440</width>
          <height>900</height>
          <rate>60</rate>
          <x>0</x>
          <y>0</y>
          <rotation>normal</rotation>
          <reflect_x>no</reflect_x>
          <reflect_y>no</reflect_y>
          <primary>yes</primary>
          <presentation>no</presentation>
          <underscanning>no</underscanning>
          </output>
          </configuration>
          </monitors>


          3) Updated /etc/default/grub adding: "GRUB_GFXMODE=1440x900" and then running "sudo update-grub"



          4) Using advice from this post ( Reinstall package and its installed dependencies) to reinstall Gnome:



          sudo apt-cache depends gnome | grep '[ |]Depends: [^<]' | cut -d: -f2 | tr -d ' ' | xargs sudo apt-get --reinstall install -y


          Hope this helps!






          share|improve this answer
























          • Thanks for the info, but moving to VGA you lose many of the advantages of QXL. The goal here is to figure out how to get QXL + Spice working correctly again.

            – lrussell123
            Jan 18 '18 at 14:51



















          -1














          The problem is in a new HWE kernel in ubuntu 16.04 (4.13).



          As a workaround you can use the kernel from LTS branch (4.4), it doesn't have this problem with resolution switch on QXL and spice, and seems to work good with another QEMU virtual hardware.



          sudo apt-get install linux-generic-lts-xenial
          sudo apt-get purge linux-image-4.13*





          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f994449%2fubuntu-16-04-kvm-qxl-guest-cant-change-resolution%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I had this same issue, but I tried so many things that I am not sure what made the difference. Going in reverse of what I did to get a working solution.



            1) In the KVM host, I changed the Video from "QXL" --> "VGA" (worked after this)



            2) Updated ~/.config/monitors.xml with:



            <monitors version="1">
            <configuration>
            <clone>no</clone>
            <output name="Virtual-0">
            <vendor>unknown</vendor>
            <product>unknown</product>
            <serial>unknown</serial>
            <width>1440</width>
            <height>900</height>
            <rate>59.990913391113281</rate>
            <x>0</x>
            <y>0</y>
            <rotation>normal</rotation>
            <reflect_x>no</reflect_x>
            <reflect_y>no</reflect_y>
            <primary>yes</primary>
            <presentation>no</presentation>
            <underscanning>no</underscanning>
            </output>
            </configuration>
            <configuration>
            <clone>no</clone>
            <output name="Virtual-0">
            <vendor>???</vendor>
            <product>0x0000</product>
            <serial>0x00000000</serial>
            <width>1440</width>
            <height>900</height>
            <rate>60</rate>
            <x>0</x>
            <y>0</y>
            <rotation>normal</rotation>
            <reflect_x>no</reflect_x>
            <reflect_y>no</reflect_y>
            <primary>yes</primary>
            <presentation>no</presentation>
            <underscanning>no</underscanning>
            </output>
            </configuration>
            </monitors>


            3) Updated /etc/default/grub adding: "GRUB_GFXMODE=1440x900" and then running "sudo update-grub"



            4) Using advice from this post ( Reinstall package and its installed dependencies) to reinstall Gnome:



            sudo apt-cache depends gnome | grep '[ |]Depends: [^<]' | cut -d: -f2 | tr -d ' ' | xargs sudo apt-get --reinstall install -y


            Hope this helps!






            share|improve this answer
























            • Thanks for the info, but moving to VGA you lose many of the advantages of QXL. The goal here is to figure out how to get QXL + Spice working correctly again.

              – lrussell123
              Jan 18 '18 at 14:51
















            0














            I had this same issue, but I tried so many things that I am not sure what made the difference. Going in reverse of what I did to get a working solution.



            1) In the KVM host, I changed the Video from "QXL" --> "VGA" (worked after this)



            2) Updated ~/.config/monitors.xml with:



            <monitors version="1">
            <configuration>
            <clone>no</clone>
            <output name="Virtual-0">
            <vendor>unknown</vendor>
            <product>unknown</product>
            <serial>unknown</serial>
            <width>1440</width>
            <height>900</height>
            <rate>59.990913391113281</rate>
            <x>0</x>
            <y>0</y>
            <rotation>normal</rotation>
            <reflect_x>no</reflect_x>
            <reflect_y>no</reflect_y>
            <primary>yes</primary>
            <presentation>no</presentation>
            <underscanning>no</underscanning>
            </output>
            </configuration>
            <configuration>
            <clone>no</clone>
            <output name="Virtual-0">
            <vendor>???</vendor>
            <product>0x0000</product>
            <serial>0x00000000</serial>
            <width>1440</width>
            <height>900</height>
            <rate>60</rate>
            <x>0</x>
            <y>0</y>
            <rotation>normal</rotation>
            <reflect_x>no</reflect_x>
            <reflect_y>no</reflect_y>
            <primary>yes</primary>
            <presentation>no</presentation>
            <underscanning>no</underscanning>
            </output>
            </configuration>
            </monitors>


            3) Updated /etc/default/grub adding: "GRUB_GFXMODE=1440x900" and then running "sudo update-grub"



            4) Using advice from this post ( Reinstall package and its installed dependencies) to reinstall Gnome:



            sudo apt-cache depends gnome | grep '[ |]Depends: [^<]' | cut -d: -f2 | tr -d ' ' | xargs sudo apt-get --reinstall install -y


            Hope this helps!






            share|improve this answer
























            • Thanks for the info, but moving to VGA you lose many of the advantages of QXL. The goal here is to figure out how to get QXL + Spice working correctly again.

              – lrussell123
              Jan 18 '18 at 14:51














            0












            0








            0







            I had this same issue, but I tried so many things that I am not sure what made the difference. Going in reverse of what I did to get a working solution.



            1) In the KVM host, I changed the Video from "QXL" --> "VGA" (worked after this)



            2) Updated ~/.config/monitors.xml with:



            <monitors version="1">
            <configuration>
            <clone>no</clone>
            <output name="Virtual-0">
            <vendor>unknown</vendor>
            <product>unknown</product>
            <serial>unknown</serial>
            <width>1440</width>
            <height>900</height>
            <rate>59.990913391113281</rate>
            <x>0</x>
            <y>0</y>
            <rotation>normal</rotation>
            <reflect_x>no</reflect_x>
            <reflect_y>no</reflect_y>
            <primary>yes</primary>
            <presentation>no</presentation>
            <underscanning>no</underscanning>
            </output>
            </configuration>
            <configuration>
            <clone>no</clone>
            <output name="Virtual-0">
            <vendor>???</vendor>
            <product>0x0000</product>
            <serial>0x00000000</serial>
            <width>1440</width>
            <height>900</height>
            <rate>60</rate>
            <x>0</x>
            <y>0</y>
            <rotation>normal</rotation>
            <reflect_x>no</reflect_x>
            <reflect_y>no</reflect_y>
            <primary>yes</primary>
            <presentation>no</presentation>
            <underscanning>no</underscanning>
            </output>
            </configuration>
            </monitors>


            3) Updated /etc/default/grub adding: "GRUB_GFXMODE=1440x900" and then running "sudo update-grub"



            4) Using advice from this post ( Reinstall package and its installed dependencies) to reinstall Gnome:



            sudo apt-cache depends gnome | grep '[ |]Depends: [^<]' | cut -d: -f2 | tr -d ' ' | xargs sudo apt-get --reinstall install -y


            Hope this helps!






            share|improve this answer













            I had this same issue, but I tried so many things that I am not sure what made the difference. Going in reverse of what I did to get a working solution.



            1) In the KVM host, I changed the Video from "QXL" --> "VGA" (worked after this)



            2) Updated ~/.config/monitors.xml with:



            <monitors version="1">
            <configuration>
            <clone>no</clone>
            <output name="Virtual-0">
            <vendor>unknown</vendor>
            <product>unknown</product>
            <serial>unknown</serial>
            <width>1440</width>
            <height>900</height>
            <rate>59.990913391113281</rate>
            <x>0</x>
            <y>0</y>
            <rotation>normal</rotation>
            <reflect_x>no</reflect_x>
            <reflect_y>no</reflect_y>
            <primary>yes</primary>
            <presentation>no</presentation>
            <underscanning>no</underscanning>
            </output>
            </configuration>
            <configuration>
            <clone>no</clone>
            <output name="Virtual-0">
            <vendor>???</vendor>
            <product>0x0000</product>
            <serial>0x00000000</serial>
            <width>1440</width>
            <height>900</height>
            <rate>60</rate>
            <x>0</x>
            <y>0</y>
            <rotation>normal</rotation>
            <reflect_x>no</reflect_x>
            <reflect_y>no</reflect_y>
            <primary>yes</primary>
            <presentation>no</presentation>
            <underscanning>no</underscanning>
            </output>
            </configuration>
            </monitors>


            3) Updated /etc/default/grub adding: "GRUB_GFXMODE=1440x900" and then running "sudo update-grub"



            4) Using advice from this post ( Reinstall package and its installed dependencies) to reinstall Gnome:



            sudo apt-cache depends gnome | grep '[ |]Depends: [^<]' | cut -d: -f2 | tr -d ' ' | xargs sudo apt-get --reinstall install -y


            Hope this helps!







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 17 '18 at 17:19









            deesodeeso

            1




            1













            • Thanks for the info, but moving to VGA you lose many of the advantages of QXL. The goal here is to figure out how to get QXL + Spice working correctly again.

              – lrussell123
              Jan 18 '18 at 14:51



















            • Thanks for the info, but moving to VGA you lose many of the advantages of QXL. The goal here is to figure out how to get QXL + Spice working correctly again.

              – lrussell123
              Jan 18 '18 at 14:51

















            Thanks for the info, but moving to VGA you lose many of the advantages of QXL. The goal here is to figure out how to get QXL + Spice working correctly again.

            – lrussell123
            Jan 18 '18 at 14:51





            Thanks for the info, but moving to VGA you lose many of the advantages of QXL. The goal here is to figure out how to get QXL + Spice working correctly again.

            – lrussell123
            Jan 18 '18 at 14:51













            -1














            The problem is in a new HWE kernel in ubuntu 16.04 (4.13).



            As a workaround you can use the kernel from LTS branch (4.4), it doesn't have this problem with resolution switch on QXL and spice, and seems to work good with another QEMU virtual hardware.



            sudo apt-get install linux-generic-lts-xenial
            sudo apt-get purge linux-image-4.13*





            share|improve this answer




























              -1














              The problem is in a new HWE kernel in ubuntu 16.04 (4.13).



              As a workaround you can use the kernel from LTS branch (4.4), it doesn't have this problem with resolution switch on QXL and spice, and seems to work good with another QEMU virtual hardware.



              sudo apt-get install linux-generic-lts-xenial
              sudo apt-get purge linux-image-4.13*





              share|improve this answer


























                -1












                -1








                -1







                The problem is in a new HWE kernel in ubuntu 16.04 (4.13).



                As a workaround you can use the kernel from LTS branch (4.4), it doesn't have this problem with resolution switch on QXL and spice, and seems to work good with another QEMU virtual hardware.



                sudo apt-get install linux-generic-lts-xenial
                sudo apt-get purge linux-image-4.13*





                share|improve this answer













                The problem is in a new HWE kernel in ubuntu 16.04 (4.13).



                As a workaround you can use the kernel from LTS branch (4.4), it doesn't have this problem with resolution switch on QXL and spice, and seems to work good with another QEMU virtual hardware.



                sudo apt-get install linux-generic-lts-xenial
                sudo apt-get purge linux-image-4.13*






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 3 '18 at 3:49









                An AnAn An

                1




                1






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f994449%2fubuntu-16-04-kvm-qxl-guest-cant-change-resolution%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How did Captain America manage to do this?

                    迪纳利

                    南乌拉尔铁路局