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

    KVM - Virt-Manager on a Separate VM

    Scheduled Pinned Locked Moved IT Discussion
    kvmbeginnerlearninglab
    68 Posts 12 Posters 6.1k Views
    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.
    • dafyreD
      dafyre
      last edited by

      Key based Auth will fix the problem of asking you for your password 500 times.

      For the ISOs, I usually make a separate folder and add it as a Storage Repo... Then just SCP the ISO's into the folder and you're good to go.

      DustinB3403D 1 Reply Last reply Reply Quote 3
      • DustinB3403D
        DustinB3403 @dafyre
        last edited by

        @dafyre said in KVM - Virt-Manager on a Separate VM:

        Key based Auth will fix the problem of asking you for your password 500 times.

        For the ISOs, I usually make a separate folder and add it as a Storage Repo... Then just SCP the ISO's into the folder and you're good to go.

        Any recommendations on how to setup the keys?

        As for the "creating a separate folder", do you mean in here? I guess the question is, why can't I either just share the CD Rom with the server?

        0_1512740833950_VirtualBox_2017-12-08_08-47-05.png

        dafyreD travisdh1T 2 Replies Last reply Reply Quote 0
        • dafyreD
          dafyre @DustinB3403
          last edited by

          @dustinb3403 said in KVM - Virt-Manager on a Separate VM:

          @dafyre said in KVM - Virt-Manager on a Separate VM:

          Key based Auth will fix the problem of asking you for your password 500 times.

          For the ISOs, I usually make a separate folder and add it as a Storage Repo... Then just SCP the ISO's into the folder and you're good to go.

          Any recommendations on how to setup the keys?

          As for the "creating a separate folder", do you mean in here? I guess the question is, why can't I either just share the CD Rom with the server?

          0_1512740833950_VirtualBox_2017-12-08_08-47-05.png

          Yes, there. Just hit the add button, and tell it you want to use a directory.

          I've only tried to share the CDROM in VMware (and only once... it was horrid!), so that turned me off to it.

          DustinB3403D 1 Reply Last reply Reply Quote 1
          • DustinB3403D
            DustinB3403 @dafyre
            last edited by

            @dafyre said in KVM - Virt-Manager on a Separate VM:

            @dustinb3403 said in KVM - Virt-Manager on a Separate VM:

            @dafyre said in KVM - Virt-Manager on a Separate VM:

            Key based Auth will fix the problem of asking you for your password 500 times.

            For the ISOs, I usually make a separate folder and add it as a Storage Repo... Then just SCP the ISO's into the folder and you're good to go.

            Any recommendations on how to setup the keys?

            As for the "creating a separate folder", do you mean in here? I guess the question is, why can't I either just share the CD Rom with the server?

            0_1512740833950_VirtualBox_2017-12-08_08-47-05.png

            Yes, there. Just hit the add button, and tell it you want to use a directory.

            I've only tried to share the CDROM in VMware (and only once... it was horrid!), so that turned me off to it.

            Something isn't adding up for me. When I go to create a new VM, there is just "No media detected", regardless of what I use when I create the media from the storage menu.

            0_1512741943423_VirtualBox_2017-12-08_09-05-35.png

            1 Reply Last reply Reply Quote 0
            • DustinB3403D
              DustinB3403
              last edited by

              Is what I'm trying to do weird? I simply want to share out a CD rom from my management system to the server, so the server doesn't need to save any ISO's locally.

              This is doable on XenServer, Hyper-V and ESXi. . . am I being weird?

              1 Reply Last reply Reply Quote 0
              • DustinB3403D
                DustinB3403
                last edited by

                Of course I can just create a directory on the server and then download ISO's directly into it. . .

                But I'd rather not. Hrm. . it works, but seems weird.

                JaredBuschJ 1 Reply Last reply Reply Quote 0
                • JaredBuschJ
                  JaredBusch
                  last edited by

                  You also need to have your user added to the libvirt group on the KVM host.

                  1 Reply Last reply Reply Quote 1
                  • JaredBuschJ
                    JaredBusch @DustinB3403
                    last edited by

                    @dustinb3403 said in KVM - Virt-Manager on a Separate VM:

                    Of course I can just create a directory on the server and then download ISO's directly into it. . .

                    But I'd rather not. Hrm. . it works, but seems weird.

                    Well I do not download from the KVM server, I do always have a "iso_store" folder on my KVM server that I have ISO files in.

                    Sometimes it is a remote share mounted, most of the time it is local to the /root partition.

                    DustinB3403D 1 Reply Last reply Reply Quote 0
                    • DustinB3403D
                      DustinB3403 @JaredBusch
                      last edited by

                      @jaredbusch said in KVM - Virt-Manager on a Separate VM:

                      @dustinb3403 said in KVM - Virt-Manager on a Separate VM:

                      Of course I can just create a directory on the server and then download ISO's directly into it. . .

                      But I'd rather not. Hrm. . it works, but seems weird.

                      Well I do not download from the KVM server, I do always have a "iso_store" folder on my KVM server that I have ISO files in.

                      Sometimes it is a remote share mounted, most of the time it is local to the /root partition.

                      Yea so what I did is I SSH'd to the server, and ran sudo mkdir /media/iso and then ran wget <url.iso> and it works. But it seems like the wrong way to have to do this. . .

                      JaredBuschJ dafyreD stacksofplatesS 3 Replies Last reply Reply Quote 0
                      • JaredBuschJ
                        JaredBusch @DustinB3403
                        last edited by JaredBusch

                        @dustinb3403 said in KVM - Virt-Manager on a Separate VM:

                        @jaredbusch said in KVM - Virt-Manager on a Separate VM:

                        @dustinb3403 said in KVM - Virt-Manager on a Separate VM:

                        Of course I can just create a directory on the server and then download ISO's directly into it. . .

                        But I'd rather not. Hrm. . it works, but seems weird.

                        Well I do not download from the KVM server, I do always have a "iso_store" folder on my KVM server that I have ISO files in.

                        Sometimes it is a remote share mounted, most of the time it is local to the /root partition.

                        Yea so what I did is I SSH'd to the server, and ran sudo mkdir /media/iso and then ran wget <url.iso> and it works. But it seems like the wrong way to have to do this. . .

                        I will generally mkdir /iso_store and then from my desktop scp the .iso files over.

                        1 Reply Last reply Reply Quote 1
                        • dafyreD
                          dafyre @DustinB3403
                          last edited by

                          @dustinb3403 said in KVM - Virt-Manager on a Separate VM:

                          @jaredbusch said in KVM - Virt-Manager on a Separate VM:

                          @dustinb3403 said in KVM - Virt-Manager on a Separate VM:

                          Of course I can just create a directory on the server and then download ISO's directly into it. . .

                          But I'd rather not. Hrm. . it works, but seems weird.

                          Well I do not download from the KVM server, I do always have a "iso_store" folder on my KVM server that I have ISO files in.

                          Sometimes it is a remote share mounted, most of the time it is local to the /root partition.

                          Yea so what I did is I SSH'd to the server, and ran sudo mkdir /media/iso and then ran wget <url.iso> and it works. But it seems like the wrong way to have to do this. . .

                          It's the way I've seen folks do it with VMware, or XenServer, or Hyper-V... Why should KVM be any different?

                          DustinB3403D 1 Reply Last reply Reply Quote 0
                          • DustinB3403D
                            DustinB3403 @dafyre
                            last edited by

                            @dafyre said in KVM - Virt-Manager on a Separate VM:

                            @dustinb3403 said in KVM - Virt-Manager on a Separate VM:

                            @jaredbusch said in KVM - Virt-Manager on a Separate VM:

                            @dustinb3403 said in KVM - Virt-Manager on a Separate VM:

                            Of course I can just create a directory on the server and then download ISO's directly into it. . .

                            But I'd rather not. Hrm. . it works, but seems weird.

                            Well I do not download from the KVM server, I do always have a "iso_store" folder on my KVM server that I have ISO files in.

                            Sometimes it is a remote share mounted, most of the time it is local to the /root partition.

                            Yea so what I did is I SSH'd to the server, and ran sudo mkdir /media/iso and then ran wget <url.iso> and it works. But it seems like the wrong way to have to do this. . .

                            It's the way I've seen folks do it with VMware, or XenServer, or Hyper-V... Why should KVM be any different?

                            @dafyre I can't share out a local dvd drive to server (that seems weird). Maybe I'm just trying to set it up incorrectly. But my goal would be to not have to store ISO's on the hypervisor at all.

                            Instead share out a local directory and have the server browse that to mount any ISO's as required.

                            JaredBuschJ 1 Reply Last reply Reply Quote 0
                            • JaredBuschJ
                              JaredBusch @DustinB3403
                              last edited by

                              @dustinb3403 said in KVM - Virt-Manager on a Separate VM:

                              @dafyre said in KVM - Virt-Manager on a Separate VM:

                              @dustinb3403 said in KVM - Virt-Manager on a Separate VM:

                              @jaredbusch said in KVM - Virt-Manager on a Separate VM:

                              @dustinb3403 said in KVM - Virt-Manager on a Separate VM:

                              Of course I can just create a directory on the server and then download ISO's directly into it. . .

                              But I'd rather not. Hrm. . it works, but seems weird.

                              Well I do not download from the KVM server, I do always have a "iso_store" folder on my KVM server that I have ISO files in.

                              Sometimes it is a remote share mounted, most of the time it is local to the /root partition.

                              Yea so what I did is I SSH'd to the server, and ran sudo mkdir /media/iso and then ran wget <url.iso> and it works. But it seems like the wrong way to have to do this. . .

                              It's the way I've seen folks do it with VMware, or XenServer, or Hyper-V... Why should KVM be any different?

                              @dafyre I can't share out a local dvd drive to server (that seems weird). Maybe I'm just trying to set it up incorrectly. But my goal would be to not have to store ISO's on the hypervisor at all.

                              Instead share out a local directory and have the server browse that to mount any ISO's as required.

                              then make the mount on the KVM server to the share, what is the issue here?

                              1 Reply Last reply Reply Quote 1
                              • travisdh1T
                                travisdh1 @DustinB3403
                                last edited by travisdh1

                                @dustinb3403 said in KVM - Virt-Manager on a Separate VM:

                                @dafyre said in KVM - Virt-Manager on a Separate VM:

                                Key based Auth will fix the problem of asking you for your password 500 times.

                                For the ISOs, I usually make a separate folder and add it as a Storage Repo... Then just SCP the ISO's into the folder and you're good to go.

                                Any recommendations on how to setup the keys?

                                As for the "creating a separate folder", do you mean in here? I guess the question is, why can't I either just share the CD Rom with the server?

                                0_1512740833950_VirtualBox_2017-12-08_08-47-05.png

                                That's what ssh-copy-id was made for. Makes copying your key to a remote host quick and easy.

                                1 Reply Last reply Reply Quote 1
                                • DustinB3403D
                                  DustinB3403
                                  last edited by

                                  OK so I have my rsa keys shared and distributed, now I'm trying to add the connection in Virt-Manager and it doesn't seem to want to take the combination.

                                  I can still connect using root or the user account on the server with the password though.

                                  1 Reply Last reply Reply Quote 0
                                  • DustinB3403D
                                    DustinB3403
                                    last edited by

                                    @dustinb3403 said in KVM - Virt-Manager on a Separate VM:

                                    And everything still requires the user password to login or open the share.

                                    ObsolesceO 1 Reply Last reply Reply Quote 0
                                    • stacksofplatesS
                                      stacksofplates
                                      last edited by

                                      did you put in a password for the key encryption?

                                      As Travis said, use ssh-copy-id user@remotehost

                                      DustinB3403D 1 Reply Last reply Reply Quote 1
                                      • DustinB3403D
                                        DustinB3403 @stacksofplates
                                        last edited by

                                        @stacksofplates said in KVM - Virt-Manager on a Separate VM:

                                        did you put in a password for the key encryption?

                                        As Travis said, use ssh-copy-id user@remotehost

                                        Nope, no password when generating the key. Just blank.

                                        The key is copied to the KVM server, and I can ssh into it with just ```ssh '[email protected]'

                                        stacksofplatesS matteo nunziatiM 2 Replies Last reply Reply Quote 0
                                        • ObsolesceO
                                          Obsolesce @DustinB3403
                                          last edited by Obsolesce

                                          @dustinb3403 said in KVM - Virt-Manager on a Separate VM:

                                          @dustinb3403 said in KVM - Virt-Manager on a Separate VM:

                                          And everything still requires the user password to login or open the share.

                                          Did you run ssh-keygen -t rsa -b 4096 -C "KVM01_Root_SSHKey" on your KVM host as root?

                                          Did you add the public key of your desktop to the /root/.ssh/authorized_keys file on your KVM host? (or whichever user qemu runs as)

                                          If you're connecting virt-manager to your KVM host via SSH, you just need to have made sure to do the above steps... then when you add that KVM host to virt-manager, connect via SSH, type in root as the username (unless you set it up with another), then connect. NO password or anything (unless you used one on your private key).

                                          1 Reply Last reply Reply Quote 0
                                          • Emad RE
                                            Emad R
                                            last edited by

                                            This KVM issue keeps popping up from users every now and then I am talking about the root password prompts.
                                            If I recall this is like 4th time I see topic opened for it

                                            travisdh1T 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 1 / 4
                                            • First post
                                              Last post