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

    KVM on Fedora 26 Server edition

    IT Discussion
    11
    38
    4.4k
    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.
    • A
      AdamF
      last edited by

      1. I installed a Fedora 26 installation, choosing only "Headless virtualization" as the install option.
      2. I installed a Fedora Workstation VM on my PC so I can create VMs, and see the VM Console via a simple GUI (virt-manager).
      3. Virt-Manager looks straight forward, just like any other Hyper-visor management GUI.

      However, I'm running into issues with getting connected. I'm getting the feeling that i missed a step, but can't find a good guide to check against. When making a new connection in Virt-Manager, I specify QEMU/KVM as the Hypervisor, SSH as the method, username root, and then the hostname (IP). When I connect, I immediately get the error:

      
      Virtual machine manager connection failure"  Unable to connect to libvirt  You need to install openssh-askpass or similar to connect to this host."
      

      This message seems pretty specific, like I missed something during the setup process. Can anyone outline the procedure to fix this?

      A 1 Reply Last reply Reply Quote 0
      • K
        kuyaz
        last edited by

        @fuznutz04 said in KVM on Fedora 26 Server edition:

        openssh-askpass

        try : sudo yum install openssh-askpass

        1 Reply Last reply Reply Quote 1
        • A
          Alex Sage @AdamF
          last edited by Alex Sage

          @fuznutz04 said in KVM on Fedora 26 Server edition:

          openssh-askpass

          Try this

          dnf install -y openssh-askpass
          
          1 Reply Last reply Reply Quote 1
          • A
            AdamF
            last edited by

            OK, we're getting there. I can now connect, however, virt-manager is asking me for my password about 10 times. After entering it over and over, I am now in and am able to do some tasks. Let's see how it goes.

            1 Reply Last reply Reply Quote 0
            • A
              AdamF
              last edited by

              Oh yeah, that is super annoying. Anytime i want to do anything, I am prompted for a password about 8 times.

              D J 2 Replies Last reply Reply Quote 0
              • D
                dafyre @AdamF
                last edited by dafyre

                @fuznutz04 said in KVM on Fedora 26 Server edition:

                Oh yeah, that is super annoying. Anytime i want to do anything, I am prompted for a password about 8 times.

                You can set up key based authentication and that problem goes away...

                ssh-copy-id user@kvmserver

                will stop it from asking for your password every time. You just have to put your user into the livbirt group on the KVM server.

                E 1 Reply Last reply Reply Quote 6
                • J
                  JaredBusch @AdamF
                  last edited by

                  @fuznutz04 said in KVM on Fedora 26 Server edition:

                  Oh yeah, that is super annoying. Anytime i want to do anything, I am prompted for a password about 8 times.

                  You also need to make sure your user is in the libvirt group on the KVM server side.

                  1 Reply Last reply Reply Quote 3
                  • A
                    AdamF
                    last edited by

                    Awesome. I'm out at the moment but will do this and report back.

                    Thanks!

                    1 Reply Last reply Reply Quote 0
                    • E
                      EddieJennings @dafyre
                      last edited by

                      @dafyre said in KVM on Fedora 26 Server edition:

                      @fuznutz04 said in KVM on Fedora 26 Server edition:

                      Oh yeah, that is super annoying. Anytime i want to do anything, I am prompted for a password about 8 times.

                      You can set up key based authentication and that problem goes away...

                      ssh-copy-id user@kvmserver

                      will stop it from asking for your password every time. You just have to put your user into the livbirt group on the KVM server.

                      I cannot upvote this enough.

                      1 Reply Last reply Reply Quote 0
                      • B
                        BRRABill
                        last edited by

                        I'll be doing this shortly (as a test against Hyper-V) so I'll be following this thread.

                        1 Reply Last reply Reply Quote 0
                        • A
                          AdamF
                          last edited by

                          OMG, that is so much better. Thank you. Now your comment from earlier this week @EddieJennings makes perfect sense. 🙂

                          S E 2 Replies Last reply Reply Quote 2
                          • S
                            scottalanmiller @AdamF
                            last edited by

                            @fuznutz04 said in KVM on Fedora 26 Server edition:

                            OMG, that is so much better. Thank you. Now your comment from earlier this week @EddieJennings makes perfect sense. 🙂

                            In case you don't have a key generated yet...

                            https://mangolassi.it/topic/9862/generating-an-ssh-key-in-linux

                            1 Reply Last reply Reply Quote 1
                            • E
                              EddieJennings @AdamF
                              last edited by

                              @fuznutz04 said in KVM on Fedora 26 Server edition:

                              OMG, that is so much better. Thank you. Now your comment from earlier this week @EddieJennings makes perfect sense. 🙂

                              😄

                              1 Reply Last reply Reply Quote 0
                              • A
                                AdamF
                                last edited by

                                This is bizarre. I just set up a Plex VM on KVM. If I pump a lot of traffic to the VM (like copying movies to it), the VM will go into a paused state.

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  scottalanmiller @AdamF
                                  last edited by

                                  @fuznutz04 said in KVM on Fedora 26 Server edition:

                                  This is bizarre. I just set up a Plex VM on KVM. If I pump a lot of traffic to the VM (like copying movies to it), the VM will go into a paused state.

                                  Check the SAR report to see what the wait states are like.

                                  A 1 Reply Last reply Reply Quote 1
                                  • A
                                    AdamF @scottalanmiller
                                    last edited by

                                    @scottalanmiller said in KVM on Fedora 26 Server edition:

                                    @fuznutz04 said in KVM on Fedora 26 Server edition:

                                    This is bizarre. I just set up a Plex VM on KVM. If I pump a lot of traffic to the VM (like copying movies to it), the VM will go into a paused state.

                                    Check the SAR report to see what the wait states are like.

                                    Sigh... no need. I know why. I am out of space on the host drive. Stupid mistake.

                                    How would you suggest the partition layout for the HyperVisor? I have 4.5 TB of space once the array is setup. Obviously, I'll be using LVM here.

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      scottalanmiller
                                      last edited by

                                      One small volume for the hypervisor, maybe 12GB. Everything else in one big volume.

                                      A 1 Reply Last reply Reply Quote 1
                                      • A
                                        AdamF @scottalanmiller
                                        last edited by

                                        @scottalanmiller said in KVM on Fedora 26 Server edition:

                                        One small volume for the hypervisor, maybe 12GB. Everything else in one big volume.

                                        Yeah, so not the "Automatic partition" defaults on the standard installation....

                                        S 1 Reply Last reply Reply Quote 0
                                        • S
                                          scottalanmiller @AdamF
                                          last edited by

                                          @fuznutz04 said in KVM on Fedora 26 Server edition:

                                          @scottalanmiller said in KVM on Fedora 26 Server edition:

                                          One small volume for the hypervisor, maybe 12GB. Everything else in one big volume.

                                          Yeah, so not the "Automatic partition" defaults on the standard installation....

                                          Not normally, no.

                                          1 Reply Last reply Reply Quote 0
                                          • A
                                            AdamF
                                            last edited by

                                            @scottalanmiller Like so?

                                            0_1510350627601_Fedora install.png

                                            ObsolesceO 1 Reply Last reply Reply Quote 1
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post