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.
    • JaredBuschJ
      JaredBusch @Emad R
      last edited by JaredBusch

      @emad-r said in KVM Setup:

      @jaredbusch said in KVM Setup:

      There is not a simple single command line choice for CentOS 7 after initial installation, but it is not difficult to follow any of the numerous guides on there on the subject.

      there is :

      yum groupinstall Virtualization "Virtualization Platform" "Virtualization Tools"

      Right from minimal install.

      My understanding of CentOS 7, as I have not used it for KVM, is that it subsequently needs some SELinux settings changed and then some networking setup.

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

        @jaredbusch said in KVM Setup:

        @emad-r said in KVM Setup:

        @jaredbusch said in KVM Setup:

        There is not a simple single command line choice for CentOS 7 after initial installation, but it is not difficult to follow any of the numerous guides on there on the subject.

        there is :

        yum groupinstall Virtualization "Virtualization Platform" "Virtualization Tools"
        

        Right from minimal install.

        My understanding of CentOS 7, as I have not used it for KVM, is that it subsequently needs some SELinux settings changed and then some networking setup.

        Nope, nothing needed. you can use it with default selinux policy right from the start. And no changes to network either, however if you will use Ovirt, it does many changes to the network interfaces and it actually adds an interface maybe due to vsdm and not Ovirt persay,

        However back to your question, you can fully use Centos 7 KVM with selinux without any changes, you just need virt-manager setup on another machine (Fedora for example) and connect to your centos 7 KVM and install Windows 10, which I did for the past month or so for training purposes.

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

          @emad-r said in KVM Setup:

          @jaredbusch said in KVM Setup:

          @emad-r said in KVM Setup:

          @jaredbusch said in KVM Setup:

          There is not a simple single command line choice for CentOS 7 after initial installation, but it is not difficult to follow any of the numerous guides on there on the subject.

          there is :

          yum groupinstall Virtualization "Virtualization Platform" "Virtualization Tools"
          

          Right from minimal install.

          My understanding of CentOS 7, as I have not used it for KVM, is that it subsequently needs some SELinux settings changed and then some networking setup.

          Nope, nothing needed. you can use it with default selinux policy right from the start. And no changes to network either, however if you will use Ovirt, it does many changes to the network interfaces and it actually adds an interface maybe due to vsdm and not Ovirt persay,

          However back to your question, you can fully use Centos 7 KVM with selinux without any changes, you just need virt-manager setup on another machine (Fedora for example) and connect to your centos 7 KVM and install Windows 10, which I did for the past month or so for training purposes.

          Yes, that is how I use KVM now, just on Fedora 26. When I looked at setting up my first KVM test system, I looked at CentOS 7 and Fedora 25 and the official instructions for both. The CentOS wiki was much more complicated than the Fedora wiki.

          Also, as I stated in another thread, I pretty much gave up caring about the LTS nature of CentOS in today's world.

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

            So I installed Fedora 26 and selected headless virtualization.

            When I connect to it from my Korora 25 workstation I get this warning:

            0_1502237653417_Screenshot from 2017-08-08 20-08-57.png

            virtualization was off in the BIOS....

            1 Reply Last reply Reply Quote 0
            • 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
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post