7 返信 最新の返信: 2014/11/24 10:07 by 2796480 RSS

    OL7 Virt-manager console problem

    2796480

      Hi,

       

      Here's the problem:

      Im using virt-manager on a OL7 server. I use Xming on a client pc to connect to the server and launch virt-manager. I can press "run" and the virtual-machine will start in background, but when I try to open the console, both the console and the virt-manager window crashes automaticly. (The virtual-machine stay running in background)

      The thing is, it was working perfectly fine with OL6, the problem started after an upgrade to OL7. I also have a brand new server with a fresh installed OL7 and it has the same issue. And I also get the same problem if I try from different client Pc.

       

      When the console crashes, I get this allert on the Server:

      virtual machine manager crashed

      python2.7 killed by sigabrt oracle

       

      /etc/ssh/sshd_config

      X11Forwarding yes

      X11DisplayOffset 10

      X11UseLocalhost no

       

      The following are installed in the latest version:

      xorg-x11-xauth

      xterm

       

      Im still new at this, tell me if more specific information is needed.

       

      Thanks,

       

      -Gab.

        • 1. Re: OL7 Virt-manager console problem
          Avi Miller-Oracle

          Have you tried installing a VNC server on the OL7 box and accessing virt-manager using VNC? This would at least allow you to determine if it's X in general (if it happens on both the X11-forwarded session and in VNC) or if it's specific to the forwarding to Xming.

           

          I'd also double-check that you have a window manager installed on the OL7 box. On OL6, I used to use xorg-x11-twm (Tiny Window Manager) on machines that I wanted X11 forwarding support. It's not installed by default on a headless/non-GUI machine and without a window manager, X is unable to display non-primary screens, like the console pop-out.

          • 2. Re: OL7 Virt-manager console problem
            Dude!

            I suggest to keep in mind that X-forwarding is not the same as remote desktop. When you use VNC or remote desktop, all execution and screen output happens on the remote machine. Unlike SSH and X forwarding, where SSH will "wire" the X Window communication back to your client computer. Your X applications on the remote host can still communicate with the local server, which however appears through the SSH tunnel on your client computer, hence communication with the X Window server (Xming) on your local system. So if any X window application works on the local machine, but not under Xming, the problem is most likely Xming or your local PC system. You could perhaps try other X Window servers available for Windows. However, the whole thing does not make sense. If you need access to the console of a virtual machine, simply create a SSH session to it. There is no need to run the virt-manager X Window application from a remote system on your local PC, using your local X Window server.

            • 3. Re: OL7 Virt-manager console problem
              2797762

              I had the same problem, in /etc/ssh/sshd_config changed to X11UseLocalhost yes

              Solved for me...

              • 4. Re: OL7 Virt-manager console problem
                Dude!

                I think that does not really make sense though. Apparently virt-manager is opening on the PC side, which means X forwarding is working, but opening the console causes it to break.

                • 5. Re: OL7 Virt-manager console problem
                  2797762

                  Realy, today i was testing and did not work...

                  • 6. Re: OL7 Virt-manager console problem
                    Dude!

                    What exactly where you testing and what other configurations exist or do not exist that may influence the problem, e.g. IPv6?

                    (https://bugzilla.novell.com/show_bug.cgi?id=618068)

                     

                    Here is what the sshd_config man page has to say about the configuration parameter:

                     

                    X11UseLocalhost
                    Specifies whether sshd(8) should bind the X11 forwarding server to the loopback address or to the wild-
                    card address.  By default, sshd binds the forwarding server to the loopback address and sets the hostname
                    part of the DISPLAY environment variable to ``localhost''.  This prevents remote hosts from connecting to
                    the proxy display.  However, some older X11 clients may not function with this configuration.
                    X11UseLocalhost may be set to ``no'' to specify that the forwarding server should be bound to the wild-
                    card address.  The argument must be ``yes'' or ``no''.  The default is ``yes''.

                     

                    So does virt-manager work with X11UseLocalhost=no but the console of a VM works only with X11UseLocalhost=yes. Maybe, but I would rather find this strange and the problem might be something else. Why the OP has X11UseLocalhost=no is another question though.

                    • 7. Re: OL7 Virt-manager console problem
                      2796480

                      Didn't worked for me. I devided to reinstall my server with OL6u5 since I had nothing in production yet on it.

                      Works fine with this version. But I need to be carefull not to do a "yum update" because the problem appears

                      with OL6u6 or later.

                       

                      I had basically nothing on the server, The only settings I configured was the NIC to use a bridge.

                      And changing 11UseLocalhost=no to X11UseLocalhost=yes didn't changed anything.