ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Run virt-manager on Windows 10

    IT Discussion
    windows windows 10 kvm xen lxc virt-manager xming
    19
    108
    38.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      You get that error on all systems, it's a standard virt-manager error. You get in on Fedora, Ubuntu Linux, Ubuntu Windows, etc.

      1 Reply Last reply Reply Quote 0
      • hobbit666H
        hobbit666 @scottalanmiller
        last edited by

        @scottalanmiller said in Run virt-manager on Windows 10:

        Oh, that's because by default it is trying to connect to a local instance. If you don't have one, it's just confirming that. It's not an "error", just letting you know that it needs details for a remote instance before you can use it.

        Ah ok will have to wait until Tuesday and try again. Not in Monday and I shut the machine off for the weekend 🙈🙈🙈

        scottalanmillerS 1 Reply Last reply Reply Quote 2
        • scottalanmillerS
          scottalanmiller @hobbit666
          last edited by

          @hobbit666 said in Run virt-manager on Windows 10:

          @scottalanmiller said in Run virt-manager on Windows 10:

          Oh, that's because by default it is trying to connect to a local instance. If you don't have one, it's just confirming that. It's not an "error", just letting you know that it needs details for a remote instance before you can use it.

          Ah ok will have to wait until Tuesday and try again. Not in Monday and I shut the machine off for the weekend 🙈🙈🙈

          Do you have a remote system with libvirt running that has SSH accessibility? Something to test against?

          hobbit666H 1 Reply Last reply Reply Quote 0
          • hobbit666H
            hobbit666 @scottalanmiller
            last edited by

            @scottalanmiller no my lab machine is the only KVM machine all the rest are Esxi

            scottalanmillerS 1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @hobbit666
              last edited by

              @hobbit666 said in Run virt-manager on Windows 10:

              @scottalanmiller no my lab machine is the only KVM machine all the rest are Esxi

              You can still use that from any Windows instance, even a VM on top of it, to see what a remote system would be like.

              1 Reply Last reply Reply Quote 0
              • hobbit666H
                hobbit666
                last edited by

                before i'm back in tomorrow is there anything I need to do on the KVM (Fedora29) host I need to install/run/firewall to allow it to be managed externally by the windows machine?

                travisdh1T scottalanmillerS 2 Replies Last reply Reply Quote 0
                • travisdh1T
                  travisdh1 @hobbit666
                  last edited by

                  @hobbit666 said in Run virt-manager on Windows 10:

                  before i'm back in tomorrow is there anything I need to do on the KVM (Fedora29) host I need to install/run/firewall to allow it to be managed externally by the windows machine?

                  You shouldn't. virt-manager operates on remote hosts via ssh.

                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @hobbit666
                    last edited by

                    @hobbit666 said in Run virt-manager on Windows 10:

                    before i'm back in tomorrow is there anything I need to do on the KVM (Fedora29) host I need to install/run/firewall to allow it to be managed externally by the windows machin

                    Port 22 and 5900. 22 for management, 5900 if you also want remote SPICE terminals.

                    1 Reply Last reply Reply Quote 2
                    • brandon220B
                      brandon220
                      last edited by

                      Trying to run virt-manager and Getting the following error:

                      root@DESKTOP-A911GSS:~# Unable to init server: Could not connect: Connection refused
                      Unable to init server: Could not connect: Connection refused
                      (virt-manager:28): Gtk-WARNING **: 18:58:22.746: cannot open display:

                      I've followed the steps and no luck.

                      scottalanmillerS 1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller @brandon220
                        last edited by

                        @brandon220 said in Run virt-manager on Windows 10:

                        Trying to run virt-manager and Getting the following error:

                        root@DESKTOP-A911GSS:~# Unable to init server: Could not connect: Connection refused
                        Unable to init server: Could not connect: Connection refused
                        (virt-manager:28): Gtk-WARNING **: 18:58:22.746: cannot open display:

                        I've followed the steps and no luck.

                        You have Xming running?

                        brandon220B 1 Reply Last reply Reply Quote 0
                        • hobbit666H
                          hobbit666
                          last edited by

                          OK so got a connection but got a few other problem.
                          First one was i got this.

                          Unable to connect to libvirt.

                          You need to install openssh-askpass or similar to connect to this host.

                          Solved by running this sudo virt-manager --no-fork

                          Or a permanent solution was to run sudo apt-get install ssh-askpass ssh-askpass-gnome

                          hobbit666H scottalanmillerS 2 Replies Last reply Reply Quote 0
                          • hobbit666H
                            hobbit666
                            last edited by

                            My next issue/question

                            Once in Virt-Manager i can add my KVM host and connect. It asks for my users password twice? Should it?

                            Then once on (i've already got some VM's on there) when i click on a VM and open the console it asks for the password 5-6 times before displaying the console/desktop.

                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                            • black3dynamiteB
                              black3dynamite
                              last edited by

                              @hobbit666 use SSH key authentication to avoid having to enter a username and password.

                              hobbit666H 1 Reply Last reply Reply Quote 3
                              • hobbit666H
                                hobbit666 @black3dynamite
                                last edited by

                                @black3dynamite Yeah did think that, but thought mention it here in-case someone else gets the issue

                                1 Reply Last reply Reply Quote 0
                                • brandon220B
                                  brandon220 @scottalanmiller
                                  last edited by

                                  @scottalanmiller

                                  You have Xming running?

                                  Yes, it should be. Shows the icon in the taskbar after I "opened it".

                                  1 Reply Last reply Reply Quote 0
                                  • hobbit666H
                                    hobbit666 @hobbit666
                                    last edited by

                                    @hobbit666 said in Run virt-manager on Windows 10:

                                    OK so got a connection but got a few other problem.
                                    First one was i got this.

                                    Unable to connect to libvirt.

                                    You need to install openssh-askpass or similar to connect to this host.

                                    Solved by running this sudo virt-manager --no-fork

                                    Or a permanent solution was to run sudo apt-get install ssh-askpass ssh-askpass-gnome

                                    OK so after playing and re-insyalling from scratch on both the KVM host and Ubuntu on my machine. This is because i'm running everything as root ... oops.

                                    So added a "user" to the KVM while i was installing and now when i use Virt-Manager we are all good.
                                    Also as @black3dynamite suggested i've generated a SSH key and now i can just connect and go.

                                    However i did get a error when creating the connection on Virt-Manager using the "users" account
                                    authentication unavailable: no polkit agent available to authenticate action 'org.libvirt.unix.manage'

                                    This was solved by adding the user on the KVM host to the libvirt group.

                                    1 Reply Last reply Reply Quote 3
                                    • hobbit666H
                                      hobbit666
                                      last edited by

                                      Also i was finding that when i closed Virt-Manager on the Windows machine, then came back later the connection was lost and i had to re-add the connection and delete the default one that keeps coming back.

                                      This was solved by running sudo apt-get install dbus-x11 on ubuntu

                                      Now when i reboot my Windows machine and re-open virt-manager the default is gone and my KVM connects automatically 🙂

                                      1 Reply Last reply Reply Quote 3
                                      • scottalanmillerS
                                        scottalanmiller @hobbit666
                                        last edited by

                                        @hobbit666 said in Run virt-manager on Windows 10:

                                        OK so got a connection but got a few other problem.
                                        First one was i got this.

                                        Unable to connect to libvirt.

                                        You need to install openssh-askpass or similar to connect to this host.

                                        Solved by running this sudo virt-manager --no-fork

                                        Or a permanent solution was to run sudo apt-get install ssh-askpass ssh-askpass-gnome

                                        Oh, that's because you didn't set up your SSH keys. That's not part of virt-manager, just part of your OS. Do that and you never get that message and connections are automatic and instant.

                                        1 Reply Last reply Reply Quote 2
                                        • scottalanmillerS
                                          scottalanmiller @hobbit666
                                          last edited by

                                          @hobbit666 said in Run virt-manager on Windows 10:

                                          My next issue/question

                                          Once in Virt-Manager i can add my KVM host and connect. It asks for my users password twice? Should it?

                                          Then once on (i've already got some VM's on there) when i click on a VM and open the console it asks for the password 5-6 times before displaying the console/desktop.

                                          No, use keys and it never asks at all.

                                          1 Reply Last reply Reply Quote 3
                                          • hobbit666H
                                            hobbit666
                                            last edited by hobbit666

                                            This post is deleted!
                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 1 / 6
                                            • First post
                                              Last post