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

    The Ultimate KVM setup

    IT Discussion
    elite kvm setup take on me
    12
    57
    6.1k
    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.
    • E
      Emad R
      last edited by Emad R

      http://devblog.info/wp-content/uploads/2017/01/centos_icon.png

      After looking at the latest posts:

      https://mangolassi.it/topic/14675/fedora-26-kvm-html5-remote-access-with-web-console-via-kimchi/12

      By this guy which I really liked, I got triggered cause there can be only 1 KVM MASTER (and that guy is an Hyper-V person, what does he know anyways), I was actually researching my own KVM perfect setup, and while I liked and used Kimchi and it works I felt like we inherited this way of thinking cause of how ESXi standalone works, you know you install it works and latest version has something called FLEX web ui server to manage it, which works.

      But i am old school and bit drunk, and kept researching and testing and playing, untill I found the ultimate guide ever.

      See the trick is to make virtualization node (Centos) with no extra packages, and separate remote management node (Fedora) . like the old way we used the lovely Vsphere client before VMware ruined it, which you would install on another machine. Same with Hyper-V standalone and Hyper-V Manager on Windows 10 machine.

      So without further ado.

      We start with KVM Centos Node:

      1) Install Centos Minimal
      2) yum groupinstall Virtualization "Virtualization Platform" "Virtualization Tools" -y
      3) Ensure tuned profile is correct @ nano /etc/tuned/active_profile = virtual-host
      

      Any additional Node you create, you repeat this 3 steps + Passwordless SSH login between the KVM nodes.

      ssh-keygen
      ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168.1.x
      

      Okay so lets say you created 2 KVM nodes.

      WHAT ABOUT MANAGEMENT YOU SAY,

      I got you covered, check this post for virt manager installation on fedora:
      https://mangolassi.it/topic/14699/kvm-setup

      Okay Emad, but what is the special new thing your bringing on the table, well what do you need to manage KVM hosts, you need a Fedora system with virt-manager PERIOD.
      Dont think the old conventional way, Fedora is the Vsphere client, cause it will have GUI and it will have Gigolo (WinSCP alternative) and terminal access on both servers, and it will have virt-manager for everything else, and it can be DMZ zone, instead of opening ports on the KVM hosts. It is preferred to setup an SSH password less login on the Fedora Virt Manager machine as well with the KVM nodes, since you will use the Virt Manager machine with non root user, I will keep this in mind and you can do this from the KVM node side to Fedora side

      ssh-copy-id -i ~/.ssh/id_rsa.pub FEDORA_NON_ROOT_USER@192.168.1.x
      

      Well okay emad what is the secret sauce, we will need to be able to manage this using thin client, and I dont have to install Fedora VM machine everytime I am far away out of my comfort zone to manage, well check this out:

      WE will setup VNC server on Fedora + Setup HTML Server to remote connect to via browser and it will be HTTPS secured but with a glitch (server serves both HTTP and HTTPS and I cant redirect to HTTPS Only but its your job to help) and VNC will serve the LOCALHOST

      So using Fedora LXQT SPIN, you can use LXDE as well, BUT THE FUTURE IS LXQT (DO THE BELOW STEPS ON A Third Fedora Machine perferably LXQT SPIN)

      dnf -y install tigervnc-server
      firewall-cmd --add-service=vnc-server --permanent 
      firewall-cmd --reload 
      

      Then su to your standard user account for example

      su emad
      vncpasswd
      nano /home/emad/.vnc/xstartup
      

      IF you are using LXQT, we will need to make changes:

      #!/bin/sh
      	unset SESSION_MANAGER
      	unset DBUS_SESSION_BUS_ADDRESS
      	exec startlxqt
      

      IF NOT LXQT FAN keep it the same dont do the above change

      then

      	vncserver :1 -geometry 1152x864 -depth 16
      
      

      Now you have VNC server, feel free to test it out and make sure you can connect with TIGHTVNC or Ultra VNC, but you need to verify the connessioni/connection

      Okay you verified it works, move along:

      NoVNC Setup (HTML5 Web Interface for VNC server):

      dnf -y install novnc python3-websockify python3-numpy
      cd /etc/pki/tls/certs 	
      openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/pki/tls/certs/novnc.pem -out /etc/pki/tls/certs/novnc.pem -days 365 
      

      nano /home/emad/.vnc/config

      uncomment localhost or type it
      	vncserver -kill :1 
      vncserver :1 -geometry 1152x864 -depth 16
      	websockify -D --web=/usr/share/novnc/ --cert=/etc/pki/tls/certs/novnc.pem 7000 localhost:5901
      
      

      Now feel the TRUE COMBAT ELITE, when you connect to :

      https://192.168.1.x:7000/

      Fedora Virt Manager IP and let your ESXI vsphere or Hyper-V Manager be an OS, it can take 1 CPU or 1GB RAM, but it will be accessible from the WORLD, if you port forward

      ANd thats it

      0_1502218730579_2017-08-08 21_58_10-virtmanager.fedora_1 (medo) - noVNC.png

      http://devblog.info/wp-content/uploads/2017/01/centos_icon.png

      W E 2 Replies Last reply Reply Quote 2
      • R
        RamblingBiped
        last edited by

        "Ultimate KVM Setup" = "KVM Hypervisor Installation and Configuration for Windows / VMWare Users"?

        Not gonna lie, thoughts of virt-manager GUI makes me feel a little dirty.

        😛

        Why do we need a Fedora box for virt-manager? You should be able to install it on any flavor of linux, including a VM being run on your Hypervisor. As long as you have X-forwarding you can just connect over SSH and initialize it remotely.

        E 1 Reply Last reply Reply Quote 1
        • E
          Emad R @RamblingBiped
          last edited by

          @ramblingbiped

          cause it makes sense,

          And Fedora LXQT OR LXDE are very light. and run well with 1 GB of RAM

          E 1 Reply Last reply Reply Quote 2
          • E
            Emad R @Emad R
            last edited by

            @emad-r

            Also to piss off MOAR ppl

            Centos is the best due stability and boy I love the LTS

            And Fedora is just desktop os that evolved into the server area and if there is really smart guys that want to use it as an server os be my guest. Please pave the way with your beta testing and downstream to centos . I have choosen my side.

            O J C 3 Replies Last reply Reply Quote 0
            • O
              Obsolesce @Emad R
              last edited by

              @emad-r said in The Ultimate KVM setup:

              @emad-r

              Also to piss off MOAR ppl

              Centos is the best due stability and boy I love the LTS

              And Fedora is just desktop os that evolved into the server area and if there is really smart guys that want to use it as an server os be my guest. Please pave the way with your beta testing and downstream to centos . I have choosen my side.

              What packages are you using on CentOS LTS that break on Fedora Server?

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

                @emad-r said in The Ultimate KVM setup:

                @emad-r

                Also to piss off MOAR ppl

                Centos is the best due stability and boy I love the LTS

                And Fedora is just desktop os that evolved into the server area and if there is really smart guys that want to use it as an server os be my guest. Please pave the way with your beta testing and downstream to centos . I have choosen my side.

                If you seriously think that, you are on crack.

                There is nothing wrong with choosing CentOS over Fedora, that is simply preference, but Fedora is not now, and never has been "just desktop os"

                E 1 Reply Last reply Reply Quote 2
                • O
                  Obsolesce
                  last edited by

                  Your reasons for choosing CentOS don't align with your GUI choice.

                  0_1502220011084_Untitled.jpg

                  E 1 Reply Last reply Reply Quote 0
                  • C
                    coliver @Emad R
                    last edited by

                    @emad-r said in The Ultimate KVM setup:

                    And Fedora is just desktop os that evolved into the server area and if there is really smart guys that want to use it as an server os be my guest. Please pave the way with your beta testing and downstream to centos . I have choosen my side.

                    You have a serious misunderstanding of the Fedora/RHEL/CentOS relationship if you believe this is true.

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

                      @jaredbusch

                      So they added a couple of things and container support and now people like them as a server os.

                      If centos dies I will go to Debian. I want OS that is older than me , slow comfortable updates. Thank God I live in third world country where evolution takes centuries , we want centos.

                      J 1 Reply Last reply Reply Quote 0
                      • E
                        Emad R @Obsolesce
                        last edited by

                        @tim_g said in The Ultimate KVM setup:

                        Your reasons for choosing CentOS don't align with your GUI choice.

                        0_1502220011084_Untitled.jpg

                        In the above example I use 2 centos with not desktop environment + 1 Fedora with lxqt and I choose lxqt cause it is light

                        1 Reply Last reply Reply Quote 0
                        • E
                          Emad R @Obsolesce
                          last edited by

                          @tim_g said in The Ultimate KVM setup:

                          @emad-r said in The Ultimate KVM setup:

                          @emad-r

                          Also to piss off MOAR ppl

                          Centos is the best due stability and boy I love the LTS

                          And Fedora is just desktop os that evolved into the server area and if there is really smart guys that want to use it as an server os be my guest. Please pave the way with your beta testing and downstream to centos . I have choosen my side.

                          What packages are you using on CentOS LTS that break on Fedora Server?

                          It is the constant updates and fiddling around, didn't Scott had Fedora issue with storage recently ... I rest my case

                          DustinB3403D W J 3 Replies Last reply Reply Quote 0
                          • DustinB3403D
                            DustinB3403 @Emad R
                            last edited by

                            @emad-r said in The Ultimate KVM setup:

                            @tim_g said in The Ultimate KVM setup:

                            @emad-r said in The Ultimate KVM setup:

                            @emad-r

                            Also to piss off MOAR ppl

                            Centos is the best due stability and boy I love the LTS

                            And Fedora is just desktop os that evolved into the server area and if there is really smart guys that want to use it as an server os be my guest. Please pave the way with your beta testing and downstream to centos . I have choosen my side.

                            What packages are you using on CentOS LTS that break on Fedora Server?

                            It is the constant updates and fiddling around, didn't Scott had Fedora issue with storage recently ... I rest my case

                            Yeah Scott had an issue with inodes.

                            1 Reply Last reply Reply Quote 0
                            • W
                              wirestyle22 @Emad R
                              last edited by wirestyle22

                              @emad-r said in The Ultimate KVM setup:

                              @tim_g said in The Ultimate KVM setup:

                              @emad-r said in The Ultimate KVM setup:

                              @emad-r

                              Also to piss off MOAR ppl

                              Centos is the best due stability and boy I love the LTS

                              And Fedora is just desktop os that evolved into the server area and if there is really smart guys that want to use it as an server os be my guest. Please pave the way with your beta testing and downstream to centos . I have choosen my side.

                              What packages are you using on CentOS LTS that break on Fedora Server?

                              It is the constant updates and fiddling around, didn't Scott had Fedora issue with storage recently ... I rest my case

                              He could've had the same issue with any distro. inodes aren't specific to Fedora, or even Linux (File ID's in Windows)

                              1 Reply Last reply Reply Quote 2
                              • J
                                JaredBusch @Emad R
                                last edited by

                                @emad-r said in The Ultimate KVM setup:

                                @jaredbusch

                                So they added a couple of things and container support and now people like them as a server os.

                                If centos dies I will go to Debian. I want OS that is older than me , slow comfortable updates. Thank God I live in third world country where evolution takes centuries , we want centos.

                                I guess you are too young to have lived though this, but RedHat Linux became both RedHat Enterprise Linux and Fedora Project.

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

                                  @emad-r said in The Ultimate KVM setup:

                                  @tim_g said in The Ultimate KVM setup:

                                  @emad-r said in The Ultimate KVM setup:

                                  @emad-r

                                  Also to piss off MOAR ppl

                                  Centos is the best due stability and boy I love the LTS

                                  And Fedora is just desktop os that evolved into the server area and if there is really smart guys that want to use it as an server os be my guest. Please pave the way with your beta testing and downstream to centos . I have choosen my side.

                                  What packages are you using on CentOS LTS that break on Fedora Server?

                                  It is the constant updates and fiddling around, didn't Scott had Fedora issue with storage recently ... I rest my case

                                  That had nothing to do with Fedora. Did you not bother to read the thread?

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

                                    @coliver said in The Ultimate KVM setup:

                                    @emad-r said in The Ultimate KVM setup:

                                    And Fedora is just desktop os that evolved into the server area and if there is really smart guys that want to use it as an server os be my guest. Please pave the way with your beta testing and downstream to centos . I have choosen my side.

                                    You have a serious misunderstanding of the Fedora/RHEL/CentOS relationship if you believe this is true.

                                    I won't deny that, it can get confusing.

                                    J C 2 Replies Last reply Reply Quote 0
                                    • J
                                      JaredBusch @Emad R
                                      last edited by

                                      @emad-r said in The Ultimate KVM setup:

                                      @coliver said in The Ultimate KVM setup:

                                      @emad-r said in The Ultimate KVM setup:

                                      And Fedora is just desktop os that evolved into the server area and if there is really smart guys that want to use it as an server os be my guest. Please pave the way with your beta testing and downstream to centos . I have choosen my side.

                                      You have a serious misunderstanding of the Fedora/RHEL/CentOS relationship if you believe this is true.

                                      I won't deny that, it can get confusing.

                                      Not really. Google can tell you.
                                      https://www.redhat.com/archives/fedora-list/2003-September/msg00064.html
                                      http://fedoraproject.org/wiki/History_of_Red_Hat_Linux

                                      1 Reply Last reply Reply Quote 0
                                      • W
                                        wirestyle22 @Emad R
                                        last edited by

                                        @emad-r said in The Ultimate KVM setup:

                                        I got triggered cause there can be only 1 KVM MASTER

                                        It's weird that you're attempting to take the KVM Master role with a GUI install

                                        DustinB3403D E 2 Replies Last reply Reply Quote 0
                                        • DustinB3403D
                                          DustinB3403 @wirestyle22
                                          last edited by

                                          @wirestyle22 said in The Ultimate KVM setup:

                                          @emad-r said in The Ultimate KVM setup:

                                          I got triggered cause there can be only 1 KVM MASTER

                                          It's weird that you're attempting to take the KVM Master role with a GUI install

                                          Why is that any more weird? The CLI is still there to be used, but as far as a tool goes, a GUI is just another one. . .

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

                                            @jaredbusch said in The Ultimate KVM setup:

                                            @emad-r said in The Ultimate KVM setup:

                                            @tim_g said in The Ultimate KVM setup:

                                            @emad-r said in The Ultimate KVM setup:

                                            @emad-r

                                            Also to piss off MOAR ppl

                                            Centos is the best due stability and boy I love the LTS

                                            And Fedora is just desktop os that evolved into the server area and if there is really smart guys that want to use it as an server os be my guest. Please pave the way with your beta testing and downstream to centos . I have choosen my side.

                                            What packages are you using on CentOS LTS that break on Fedora Server?

                                            It is the constant updates and fiddling around, didn't Scott had Fedora issue with storage recently ... I rest my case

                                            That had nothing to do with Fedora. Did you not bother to read the thread?

                                            But i have gut feeling with centos it wouldn't happen. But let us stop with this personal choice even though it is clear what is the good choice and just look and appreciate the ultimate KVM set-up

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