The Ultimate KVM setup



  • 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 [email protected]
    

    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

    centos_icon.png



  • "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.

    :-P

    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.



  • @ramblingbiped

    cause it makes sense,

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



  • @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.



  • @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?


  • Service Provider

    @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"



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

    0_1502220011084_Untitled.jpg



  • @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.



  • @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.



  • @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



  • @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



  • @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.



  • @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)


  • Service Provider

    @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.


  • Service Provider

    @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?



  • @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.


  • Service Provider

    @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



  • @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



  • @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. . .



  • @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



  • @dustinb3403 said in The Ultimate KVM setup:

    @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. . .

    It's wasted resources. I'd think the KVM Master would be as efficient as possible.



  • @emad-r said in The Ultimate KVM setup:

    @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

    CentOS uses inodes too. Every Distro uses inodes.



  • @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. Fedora is the base of both RHEL and CentOS. It's the regular release vs the RHEL LTS. If you're calling Fedora not fit to be on a server that means that both RHEL and CentOS are both equally unfit.



  • @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

    No no no

    It is 2 centos minimal install with kvm
    No gui

    And 1 Fedora with lxqt spin with Virt Manager



  • @wirestyle22 said in The Ultimate KVM setup:

    @dustinb3403 said in The Ultimate KVM setup:

    @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. . .

    It's wasted resources. I'd think the KVM Master would be as efficient as possible.

    If a tool is needed, why would it be wasted resources? I get what you are trying to get at here, but a tool is a tool is a tool.

    If you need a GUI to do something (whatever it is) and it's the best approach "you" know then why bash the tool?



  • @dustinb3403 said in The Ultimate KVM setup:

    @wirestyle22 said in The Ultimate KVM setup:

    @dustinb3403 said in The Ultimate KVM setup:

    @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. . .

    It's wasted resources. I'd think the KVM Master would be as efficient as possible.

    If a tool is needed, why would it be wasted resources? I get what you are trying to get at here, but a tool is a tool is a tool.

    If you need a GUI to do something (whatever it is) and it's the best approach "you" know then why bash the tool?

    So my old users who say they can't operate a computer shouldn't learn the right way to file things digitally. We should be okay with her using paper because she understands that? I understand what you're saying, but how far down that rabbit hole do we go?



  • @wirestyle22 said in The Ultimate KVM setup:

    @dustinb3403 said in The Ultimate KVM setup:

    @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. . .

    It's wasted resources. I'd think the KVM Master would be as efficient as possible.

    The Virt-Manager is being hosted either on a VM or on a desktop. It's not being hosted as part of the hypervisor. Think SCVMM, Hyper-V Manager, XenCenter, or vCenter.



  • @coliver said in The Ultimate KVM setup:

    @wirestyle22 said in The Ultimate KVM setup:

    @dustinb3403 said in The Ultimate KVM setup:

    @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. . .

    It's wasted resources. I'd think the KVM Master would be as efficient as possible.

    The Virt-Manager is being hosted either on a VM or on a desktop. It's not being hosted as part of the hypervisor. Think SCVMM, Hyper-V Manager, XenCenter, or vCenter.

    Ah. Thanks



  • @wirestyle22 said in The Ultimate KVM setup:

    @dustinb3403 said in The Ultimate KVM setup:

    @wirestyle22 said in The Ultimate KVM setup:

    @dustinb3403 said in The Ultimate KVM setup:

    @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. . .

    It's wasted resources. I'd think the KVM Master would be as efficient as possible.

    If a tool is needed, why would it be wasted resources? I get what you are trying to get at here, but a tool is a tool is a tool.

    If you need a GUI to do something (whatever it is) and it's the best approach "you" know then why bash the tool?

    So my old users who say they can't operate a computer shouldn't learn the right way to file things digitally. We should be okay with her using paper because she understands that? I understand what you're saying, but how far down that rabbit hole do we go?

    Why would your user be the administrator of the computer? Why are CLI's the golden child tool, and GUI's are the bastard tools?

    My point is it's a tool to be used, why not use it if it's available?



  • @dustinb3403 said in The Ultimate KVM setup:

    @wirestyle22 said in The Ultimate KVM setup:

    @dustinb3403 said in The Ultimate KVM setup:

    @wirestyle22 said in The Ultimate KVM setup:

    @dustinb3403 said in The Ultimate KVM setup:

    @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. . .

    It's wasted resources. I'd think the KVM Master would be as efficient as possible.

    If a tool is needed, why would it be wasted resources? I get what you are trying to get at here, but a tool is a tool is a tool.

    If you need a GUI to do something (whatever it is) and it's the best approach "you" know then why bash the tool?

    So my old users who say they can't operate a computer shouldn't learn the right way to file things digitally. We should be okay with her using paper because she understands that? I understand what you're saying, but how far down that rabbit hole do we go?

    Why would your user be the administrator of the computer? Why are CLI's the golden child tool, and GUI's are the bastard tools?

    My point is it's a tool to be used, why not use it if it's available?

    It's just an argument for learning the most efficient/best way to do things. I have a lot of failures and some successes with my learning, but I am learning how to do things in the most efficient way I can.

    Example: We could start installing hyper-v as a role because i don't know powershell, but the reality is i should learn powershell to manage hyper-v anyway.



Looks like your connection to MangoLassi was lost, please wait while we try to reconnect.