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

    Best tool to manage Centos KVM ? + Guide

    IT Discussion
    centos kvm virtualization linux
    7
    17
    3.3k
    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.
    • F
      Francesco Provino @Emad R
      last edited by

      @msff-amman-Itofficer just use the libvirt shell, virsh! You can both connect to the host via ssh and use virsh installed on the host, or install virsh in the machine you are connecting from and use virsh in a remote fashion.

      Virsh can do almost anything you can do with KVM: you can even edit the XML configuration of vm and networks by hand, so really no flexibility limit.
      It's also easy scriptable and include a serial remote console, so you can install your OS by hand etc.

      If you really really need a graphical console with virsh, you can install any VNC client on your machine and connect to a vm using virsh this way.

      Emad RE 1 Reply Last reply Reply Quote 2
      • Emad RE
        Emad R @Francesco Provino
        last edited by

        @Francesco-Provino

        While I understand what your saying, and it is the ''pure way'' its not that I dont want to learn new things, its just I want to be quick at deploying VMs, and having a tool for me is much preferred.

        But will try to keep that as an option, I do deal with virsh shell, but in very humble mannor, like Virsh Destroy and list --all and start/shutdown. But down the road I will learn more.

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

          I found this as well:

          https://github.com/tobimensch/aqemu
          https://sourceforge.net/projects/aqemu/?source=navbar

          BUt no windows port 😞 I wonder how long and much will it take to me port it

          F 1 Reply Last reply Reply Quote 0
          • F
            Francesco Provino @Emad R
            last edited by

            @msff-amman-Itofficer said in Best tool to manage Centos KVM ? + Guide:

            @Francesco-Provino

            While I understand what your saying, and it is the ''pure way'' its not that I dont want to learn new things, its just I want to be quick at deploying VMs, and having a tool for me is much preferred.

            But will try to keep that as an option, I do deal with virsh shell, but in very humble mannor, like Virsh Destroy and list --all and start/shutdown. But down the road I will learn more.

            Mmmh, if you want to quickly provision VMs you just have to script it! I have made scripts that creates simple VMs (small, large, etc) with different OSs using <10 lines of bash or python.
            It's also very easy to export the xml of a gold master VM and create N new VMs using the master configuration as a template… surely quickly than going through all those gui-based steps!

            Libvirt include several tools that automatically install, customize and deploy VMs in a cloud-like way.
            For example, in one line of virt-builder you can create ready-to-go VM customizing password, installed packages and many other stuff without look at an install prompt: everything is completely automated.

            1 Reply Last reply Reply Quote 0
            • F
              Francesco Provino @Emad R
              last edited by

              @msff-amman-Itofficer just look at this for quickly provisioning.

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

                Virt-Manager obfuscates the entries in the window on purpose. If you generate a key instead of using a password to log into the machine, it won't ask you for the password any more. This is especially helpful when using SPICE as it will ask you for your password on every channel it sets up for the console.

                Virt-Manager and virsh are the only tools I use to manage KVM.

                Emad RE 1 Reply Last reply Reply Quote 2
                • Reid CooperR
                  Reid Cooper
                  last edited by

                  Needs tags

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

                    @stacksofplates

                    Hey man.

                    I managed to generate keys (inside Linux environment using ssh-keygen -t rsa and use ''authorized_keys'' file on both machines) and things are alot smoother now, but going back to what you mentioned:

                    ''Virt-Manager obfuscates the entries in the window on purpose."

                    Seeing you have many posts that deal with KVM, can you help me sort this out. How can I fix this? does it need something like ssh pass-wordless login to resolve, but in Windows environment (virt-viewer) they dont have ssh... so how can I resolve it?

                    stacksofplatesS scottalanmillerS 2 Replies Last reply Reply Quote 0
                    • stacksofplatesS
                      stacksofplates @Emad R
                      last edited by

                      @msff-amman-Itofficer said in Best tool to manage Centos KVM ? + Guide:

                      @stacksofplates

                      Hey man.

                      I managed to generate keys (inside Linux environment using ssh-keygen -t rsa and use ''authorized_keys'' file on both machines) and things are alot smoother now, but going back to what you mentioned:

                      ''Virt-Manager obfuscates the entries in the window on purpose."

                      Seeing you have many posts that deal with KVM, can you help me sort this out. How can I fix this? does it need something like ssh pass-wordless login to resolve, but in Windows environment (virt-viewer) they dont have ssh... so how can I resolve it?

                      That I don't know how to answer. I don't have any Windows machines so I never encounter those issues.

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

                        Install SSH on your Windows box: https://chocolatey.org/packages/openssh. This is a port of OpenSSH made by Microsoft's Powershell team.

                        1 Reply Last reply Reply Quote 1
                        • scottalanmillerS
                          scottalanmiller @Emad R
                          last edited by

                          @msff-amman-Itofficer said in Best tool to manage Centos KVM ? + Guide:

                          but in Windows environment (virt-viewer) they dont have ssh... so how can I resolve it?

                          Windows has had SSH for a while now. Both OpenSSH as a server and OpenSSH as a client, plus tools like Putty, too.

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

                            The Windows 10 Developer set installs SSH by default now, too.

                            KellyK 1 Reply Last reply Reply Quote 2
                            • KellyK
                              Kelly @scottalanmiller
                              last edited by

                              @scottalanmiller said in Best tool to manage Centos KVM ? + Guide:

                              The Windows 10 Developer set installs SSH by default now, too.

                              Very cool.

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

                                @scottalanmiller said in Best tool to manage Centos KVM ? + Guide:

                                @msff-amman-Itofficer said in Best tool to manage Centos KVM ? + Guide:

                                but in Windows environment (virt-viewer) they dont have ssh... so how can I resolve it?

                                Windows has had SSH for a while now. Both OpenSSH as a server and OpenSSH as a client, plus tools like Putty, too.

                                That doesn't help with virt-viewer though unless you're making a tunnel. I've never used virt-viewer on windows so I don't know if it has an option for keys.

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