Kimchi + KVM (updated and better and easy guide for KVM beginners)



  • So i know every now and then an KVM guide pops up with good info, so I thought I would add and duplicate as well.

    So from time to time I like to test in my virtual lab how far KVM + Managing have gone, and I am glad to say it is very easy and for folks that come from an ESXi background that wants web client to manage everything well guess what you wont have that 100%, but below is something very close to it and very simple to setup + it cover some crucial pitfalls.

    Many thanks and praise to the developers of Kimchi Project:
    https://github.com/kimchi-project

    1. Start from Centos 7 Minimal updated and afterwards install the following:
    yum groupinstall Virtualization "Virtualization Platform" "Virtualization Tools" -y
    
    1. Ensure tuned profile is correct
     nano /etc/tuned/active_profile --> should be virtual-host
    if not change by "tuned-adm profile virtual-host"
    
    1. Kimchi no longer depends on Gingerbase, making it more light and simple to installer, however Gingerbase is useful if you wish to add shutdown commands to the KVM host.
    cd /tmp
    wget https://github.com/kimchi-project/kimchi/releases/download/2.5.0/wok-2.5.0-0.el7.centos.noarch.rpm
    wget https://github.com/kimchi-project/kimchi/releases/download/2.5.0/kimchi-2.5.0-0.el7.centos.noarch.rpm
    yum install -y wok-2.5.0-0.el7.centos.noarch.rpm 
    yum install -y kimchi-2.5.0-0.el7.centos.noarch.rpm
    systemctl start wokd 
    systemctl enable wokd 
    
    1. Access it at https://<machine-ip>:8001
      and login using your linux machine username/password, how easy is that.

    0_1513415329557_2017-12-16 11_06_47-Wok.png

    1. Now lets cover the pitfalls, sadly Kimchi is configured to emulate all the drivers of the VMs you create to make it easy for users (think Oracle Virtualbox performance ) they do that to make users start easy and deploy VMs, sadly this means you are emulating drivers instead of making them virtualized aware aka para-virtualized. this is meant to increase performace, typically you want to do this to 2 things:
    • Storage Drive
    • Network Driver
      If this is not making any sense to you think ESXi, emulated network driver e1000 vs VMXNET3

    Sadly you cant change this setting when you create machine via Kimchi, it will default to drivers that are emulated like e1000 and you dont have any option to change it, so we will need to rely on Virt Manager just to make this change that is only done once in VM life cycle, so it is small price to pay. So feel free to create VM/template using Kimchi but dont install any OS yet, just define the VM (RAM/CPU/VM Name/Storage size) but dont start it.

    1. So use any Linux machine or VM with Desktop like Fedora 27 LXQT and install Virt manager on it:
    dnf install -y virt-manager
    

    Launch virt-manager and connect to your KVM host remotely (in this example KVM Host + Kimchi resides on the same machine)
    0_1513415606773_2017-12-16 11_13_16-Fedora 64-bit - VMware Workstation.png

    Locate the machine it should not be Running like the image above it should be stopped.
    Double click the Machine and go to its settings and change the following:

    0_1513415687001_2017-12-16 11_14_22-Fedora 64-bit - VMware Workstation.png

    1) NIC-> Host Device MacVTap -> Bridge -> Virt IO
    2) IDE DISK -> Disk Bus -> Virt IO -> Hypervisor Default -> Hypervisor Default 
    3) Add Hardware -> Input -> EvTouch USB Graphics Tablet
    4) Upload "virtio-win-0.1.141_amd64.vfd" using Kimchi Web Option File Upload in Storage
    ![0_1513416443769_2017-12-16 11_26_48-Wok.png](https://i.imgur.com/Zynn6k5.png) 
    5) Add Hardware -> Storage -> Floppy -> virtio-win-0.1.141_amd64.vfd
    

    Voila, your done. Seems alot but it actually very simple when you do it, and when you
    start the VM and click console on Kimchi web interface to see the screen, and
    install the OS in this example it is 2008 R2 (why you may ask, cause I want to test something that is Windows on KVM and Windows 2008 R2 installs very quickly), The windows installer will not detect the HDD or the Network, but you simply click Load Driver and select the floppy disk --> and then folder called amd64 --> then folder called 2008R2, and 2 new drivers will pop up (network+scsi) and you you can continue with the install.

    0_1513415876267_2043.Image10.jpg

    Now you have the best of both worlds = Powerful KVM+ Ease of use of Kimchi



  • Kimchi Screenshot Tour:

    23_1513416848168_2017-12-16 11_32_41-Wok.png 22_1513416848168_2017-12-16 11_32_33-Wok.png 21_1513416848168_2017-12-16 11_32_26-Wok.png 20_1513416848168_2017-12-16 11_32_21-Wok.png 19_1513416848168_2017-12-16 11_32_12-Wok.png 18_1513416848167_2017-12-16 11_32_07-Wok.png 17_1513416848167_2017-12-16 11_31_59-Wok.png 16_1513416848167_2017-12-16 11_31_55-Wok.png 15_1513416848167_2017-12-16 11_31_38-Wok.png 14_1513416848167_2017-12-16 11_31_26-Wok.png 13_1513416848166_2017-12-16 11_31_21-Wok.png 12_1513416848166_2017-12-16 11_31_18-Wok.png 11_1513416848166_2017-12-16 11_31_12-Wok.png 10_1513416848165_2017-12-16 11_31_05-Wok.png 9_1513416848165_2017-12-16 11_30_49-Wok.png 8_1513416848162_2017-12-16 11_30_59-Wok.png 7_1513416848162_2017-12-16 11_33_31-Wok.png 6_1513416848162_2017-12-16 11_33_25-Wok.png 5_1513416848162_2017-12-16 11_33_15-Wok.png 4_1513416848161_2017-12-16 11_33_02-Wok.png 3_1513416848161_2017-12-16 11_32_51-Wok.png 2_1513416848161_2017-12-16 11_32_48-Wok.png 1_1513416848161_2017-12-16 11_32_44-Wok.png 0_1513416848159_2017-12-16 11_32_38-Wok.png

    0_1513417013975_2017-12-16 11_35_13-noVNC.png