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

    KVM Setup

    IT Discussion
    kvm virt-manager centos fedora linux hypervisor
    13
    31
    6.6k
    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.
    • FATeknollogeeF
      FATeknollogee @stacksofplates
      last edited by

      @stacksofplates said in KVM Setup:

      On Fedora under software choose headless virtualization:

      0_1502146216302_fedora.png

      I installed F26 & KVM via Headless Virt.
      Same thing like I've done many times...

      From my F27 desktop, I can not connect (see image for error msg)
      Any ideas before I decide to reinstall F26?

      0_1512008371378_Screenshot from 2017-11-29 18-18-12.png

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

        @fateknollogee said in KVM Setup:

        @stacksofplates said in KVM Setup:

        On Fedora under software choose headless virtualization:

        0_1502146216302_fedora.png

        I installed F26 & KVM via Headless Virt.
        Same thing like I've done many times...

        From my F27 desktop, I can not connect (see image for error msg)
        Any ideas before I decide to reinstall F26?

        0_1512008371378_Screenshot from 2017-11-29 18-18-12.png

        sudo dnf install openssh-askpass

        Or use ssh keys instead

        FATeknollogeeF 2 Replies Last reply Reply Quote 1
        • FATeknollogeeF
          FATeknollogee @black3dynamite
          last edited by

          @black3dynamite said in KVM Setup:

          sudo dnf install openssh-askpass

          Or use ssh keys instead

          Tried both of those, no difference, still get the error

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

            @fateknollogee said in KVM Setup:

            @black3dynamite said in KVM Setup:

            sudo dnf install openssh-askpass

            Or use ssh keys instead

            Tried both of those, no difference, still get the error

            Are you connecting using root or your own login?
            Add yourself to libvirt group.

            FATeknollogeeF 1 Reply Last reply Reply Quote 1
            • FATeknollogeeF
              FATeknollogee @black3dynamite
              last edited by

              @black3dynamite said in KVM Setup:

              Are you connecting usinf root or your own login?
              Add yourself to libvirt group.

              Tried connecting as root & myself, no diff, still get the error
              Yes, I have added myself to the libvirt group.

              1 Reply Last reply Reply Quote 0
              • KellyK
                Kelly
                last edited by

                All scorn and derision aside, if I wanted to manage a KVM host from Windows what are my options?

                ObsolesceO black3dynamiteB RomoR 3 Replies Last reply Reply Quote 1
                • ObsolesceO
                  Obsolesce @Kelly
                  last edited by

                  @kelly said in KVM Setup:

                  All scorn and derision aside, if I wanted to manage a KVM host from Windows what are my options?

                  SSH (I like Putty)

                  coliverC KellyK 2 Replies Last reply Reply Quote 1
                  • black3dynamiteB
                    black3dynamite @Kelly
                    last edited by

                    @kelly said in KVM Setup:

                    All scorn and derision aside, if I wanted to manage a KVM host from Windows what are my options?

                    You can use putty to ssh into the server and then use virsh commands to manage VMs.

                    You can setup a Fedora VM and use a light desktop environment or just a windows manager only to help with using less resources and then install virt-manager. That's the same way I would do it when I need to manage a Hyper-V host from Fedora or any other distros.

                    1 Reply Last reply Reply Quote 1
                    • FATeknollogeeF
                      FATeknollogee @black3dynamite
                      last edited by

                      @black3dynamite said in KVM Setup:

                      sudo dnf install openssh-askpass

                      Or use ssh keys instead

                      Ooops brain fart of the week...

                      I wasn't paying attention, I installed openssh-askpass on the host instead of my workstation....(that was pretty stupid)
                      All is good!!

                      1 Reply Last reply Reply Quote 1
                      • coliverC
                        coliver @Obsolesce
                        last edited by

                        @tim_g said in KVM Setup:

                        @kelly said in KVM Setup:

                        All scorn and derision aside, if I wanted to manage a KVM host from Windows what are my options?

                        SSH (I like Putty)

                        Pretty much or running a Fedora VM. The command line tools are incredibly robust and very easy to learn.

                        stacksofplatesS 1 Reply Last reply Reply Quote 2
                        • stacksofplatesS
                          stacksofplates @coliver
                          last edited by stacksofplates

                          @coliver said in KVM Setup:

                          @tim_g said in KVM Setup:

                          @kelly said in KVM Setup:

                          All scorn and derision aside, if I wanted to manage a KVM host from Windows what are my options?

                          SSH (I like Putty)

                          Pretty much or running a Fedora VM. The command line tools are incredibly robust and very easy to learn.

                          Ansible has a libvirt module as well (http://docs.ansible.com/ansible/latest/virt_module.html). However it doesn't have clone because libvirt doesn't have a clone function. Virt-clone does a bunch of other work like snapshotting, copying, etc. And you can just run the commands with it like this simple setup here https://mangolassi.it/topic/15257/ansible-create-kvm-guests that builds a disk with virt-builder. By default the OS disks from virt-builder are really small (like 6GB), so you will need to add the logic in to create the second disk.

                          coliverC 1 Reply Last reply Reply Quote 1
                          • coliverC
                            coliver @stacksofplates
                            last edited by

                            @stacksofplates said in KVM Setup:

                            @coliver said in KVM Setup:

                            @tim_g said in KVM Setup:

                            @kelly said in KVM Setup:

                            All scorn and derision aside, if I wanted to manage a KVM host from Windows what are my options?

                            SSH (I like Putty)

                            Pretty much or running a Fedora VM. The command line tools are incredibly robust and very easy to learn.

                            Ansible has a libvirt module as well (http://docs.ansible.com/ansible/latest/virt_module.html). However it doesn't have clone because libvirt doesn't have a clone function. Virt-clone does a bunch of other work like snapshotting, copying, etc. And you can just run the commands with it like this simple setup here https://mangolassi.it/topic/15257/ansible-create-kvm-guests that builds a disk with virt-builder. By default the OS disks from virt-builder are really small (like 6GB), so you will need to add the logic in to create the second disk.

                            I really need to dig into Ansible. AWX as well could be really useful.

                            stacksofplatesS 1 Reply Last reply Reply Quote 1
                            • stacksofplatesS
                              stacksofplates @coliver
                              last edited by

                              @coliver said in KVM Setup:

                              @stacksofplates said in KVM Setup:

                              @coliver said in KVM Setup:

                              @tim_g said in KVM Setup:

                              @kelly said in KVM Setup:

                              All scorn and derision aside, if I wanted to manage a KVM host from Windows what are my options?

                              SSH (I like Putty)

                              Pretty much or running a Fedora VM. The command line tools are incredibly robust and very easy to learn.

                              Ansible has a libvirt module as well (http://docs.ansible.com/ansible/latest/virt_module.html). However it doesn't have clone because libvirt doesn't have a clone function. Virt-clone does a bunch of other work like snapshotting, copying, etc. And you can just run the commands with it like this simple setup here https://mangolassi.it/topic/15257/ansible-create-kvm-guests that builds a disk with virt-builder. By default the OS disks from virt-builder are really small (like 6GB), so you will need to add the logic in to create the second disk.

                              I really need to dig into Ansible. AWX as well could be really useful.

                              I run AWX at home and Tower at work. It's really amazing how easy it makes everything.

                              1 Reply Last reply Reply Quote 0
                              • KellyK
                                Kelly @Obsolesce
                                last edited by

                                @tim_g said in KVM Setup:

                                @kelly said in KVM Setup:

                                All scorn and derision aside, if I wanted to manage a KVM host from Windows what are my options?

                                SSH (I like Putty)

                                @black3dynamite said in KVM Setup:

                                @kelly said in KVM Setup:

                                All scorn and derision aside, if I wanted to manage a KVM host from Windows what are my options?

                                You can use putty to ssh into the server and then use virsh commands to manage VMs.

                                You can setup a Fedora VM and use a light desktop environment or just a windows manager only to help with using less resources and then install virt-manager. That's the same way I would do it when I need to manage a Hyper-V host from Fedora or any other distros.

                                Any GUI options?

                                coliverC BRRABillB 2 Replies Last reply Reply Quote 0
                                • coliverC
                                  coliver @Kelly
                                  last edited by

                                  @kelly said in KVM Setup:

                                  @tim_g said in KVM Setup:

                                  @kelly said in KVM Setup:

                                  All scorn and derision aside, if I wanted to manage a KVM host from Windows what are my options?

                                  SSH (I like Putty)

                                  @black3dynamite said in KVM Setup:

                                  @kelly said in KVM Setup:

                                  All scorn and derision aside, if I wanted to manage a KVM host from Windows what are my options?

                                  You can use putty to ssh into the server and then use virsh commands to manage VMs.

                                  You can setup a Fedora VM and use a light desktop environment or just a windows manager only to help with using less resources and then install virt-manager. That's the same way I would do it when I need to manage a Hyper-V host from Fedora or any other distros.

                                  Any GUI options?

                                  Not on Windows no. There is Kimchi which does an ok job of managing VMs but it's clunky and not as powerful as Hyper-V Manager or vCenter.

                                  1 Reply Last reply Reply Quote 0
                                  • BRRABillB
                                    BRRABill @Kelly
                                    last edited by BRRABill

                                    @kelly said in KVM Setup:

                                    Any GUI options?

                                    As a heavy (in more ways than one) Windows user, I found installing Fedora in a VM was the eaiest way when I was playing with this.

                                    1 Reply Last reply Reply Quote 1
                                    • ObsolesceO
                                      Obsolesce
                                      last edited by

                                      It's the same in reverse too. How do you manage (via GUI) Hyper-V from Linux? You do it through a Win10 VM.

                                      How do you manage (via GUI) KVM from Windows? You do it through a Linux VM.

                                      That's really the easiest way to do it, without adding software to your hypervisors to be able to do it all via HTML5.

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

                                        @tim_g said in KVM Setup:

                                        It's the same in reverse too. How do you manage (via GUI) Hyper-V from Linux? You do it through a Win10 VM.

                                        How do you manage (via GUI) KVM from Windows? You do it through a Linux VM.

                                        That's really the easiest way to do it, without adding software to your hypervisors to be able to do it all via HTML5.

                                        XenServer doesn't have to add software to the hypervisor.

                                        But I think I'm going to setup a basic lab at the office for this. I want to test it out, really I do.

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

                                          @dustinb3403 said in KVM Setup:

                                          XenServer doesn't have to add software to the hypervisor.

                                          Neither does KVM. IMO KVM has always been so much easier to use than XenServer. No weird proprietary formats. No strange matching UUIDs of disks to UUIDs of VMs. It's just super easy overall.

                                          B 1 Reply Last reply Reply Quote 5
                                          • B
                                            bnrstnr @stacksofplates
                                            last edited by

                                            @stacksofplates What is your distro of choice for running your Ansible "control machine?"

                                            stacksofplatesS 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post