Install Bridge Network

As I use kvm as a development, I often use it as a bridge network to set up a bridge network first.

If you add kimchi as a setting after installation… The network will be disabled due to problems.

So I’ll set it up in advance.

First, install bridge-utils.

sudo apt install bridge-utils

Then, edit /etc/netplan/50-cloud-init.yaml.

sudo vi /etc/netplan/50-cloud-init.yaml

Enter as below.

network:
    ethernets:
        enp3s0:
            dhcp4: false
    bridges:
        br0:
            interfaces:
                -enp3s0
            dhcp4: false
            addresses:
            -192.168.1.200/24
            gateway4: 192.168.1.200
            nameservers:
                addresses:
                -1.1.1.1
                -8.8.8.8
            parameters:
                forward-delay: 0
                stp: false
            optional: true
    version: 2

Apply your input.

sudo netplan apply

Now check if it has been applied to the network.

$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
5: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 4e:6a:7f:1e:e0:0e brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.200/24 ​​brd 192.168.1.255 scope global br0
       valid_lft forever preferred_lft forever
    inet6 fe80::4c6a:7fff:fe1e:e00e/64 scope link
       valid_lft forever preferred_lft forever
6: wlp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 6c:71:d9:9a:4b:3b brd ff:ff:ff:ff:ff:ff
7: enp4s0f2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br0 state UP group default qlen 1000
    link/ether 00:90:f5:e7:6e:10 brd ff:ff:ff:ff:ff:ff

Installing Kimchi

First, we will update and upgrade.

sudo apt update && sudo apt upgrade -y

Then install KVM and install the packages that Kimchi and Wok need.

sudo apt install qemu qemu-kvm libvirt-bin \
python-paramiko python-pil novnc python-libvirt \
python-ethtool python-ipaddr python-guestfs \
libguestfs-tools spice-html5 spice-html5 \
python-magic keyutils libnfsidmap2 \
libtirpc1 nfs-common rpcbind python-configobj \
python-parted -y

If you can’t find the package, you need to activate the Universe repository.

sudo add-apt-repository universe

Check the KVM installation.

$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used

If the installation was successful, the above message will appear.

Install nginx.

sudo apt install nginx -y

Download the latest installation file of Kimchi.

$ wget https://github.com/kimchi-project/kimchi/releases/download/2.5.0/wok-2.5.0-0.noarch.deb
$ wget https://github.com/kimchi-project/kimchi/releases/download/2.5.0/kimchi-2.5.0-0.noarch.deb

First, install wok.

$ sudo dpkg -i wok-2.5.0-0.noarch.deb
$ sudo apt install -f -y

And, install Kimchi. However, if you just install it, the problem will occur in python-imaging. So, install python-imaging from depends.

$ sudo dpkg --ignore-depends=python-imaging -i kimchi-2.5.0-0.noarch.deb

If you use UFW, open port 8001.

$ sudo ufw allow 8001/tcp

If it is installed, reboot it.

$ sudo reboot

Resolving Kimchi package dependencies

First, you need to remove python-imaging from kimchi. Here, python-imaging replaces python-pil.

First, open the editor as shown below.

$ sudo vi /var/lib/dpkg/status

Search for package: kimchi in /var/lib/dpkg/status file…

Package: kimchi
Status: install ok installed
Priority: optional
Section: base
Maintainer: Aline Manera <[email protected]>
Architecture: all
Version: 2.5.0
Depends: wok (>= 2.1.0), python-imaging, python-configobj, novnc, python-jsonschema (>= 1.3.0), python-libvirt, gettext, libvirt-bin, nfs-common, qemu-kvm, python-parted, python-psutil (>= 0.6.0), python-ethtool, sosreport, python-ipaddr, python-lxml, open-iscsi, python-guestfs, libguestfs-tools, spice-html5, python-magic, python -paramiko
Description: Kimchi web application
Build-Depends: xsltproc,
               gettext,
               python-lxml

In Depends, it says python-imaging. Change this to python-pil.

In a web browser

https://[server IP]:8001

Try connecting with. You must connect with https to connect. If you do http, you will see only 400 errors.

For security reasons, if you access the web browser for the first time and ignore it, you will be moved to port 8010.

In this case, just ignore it gently and change the url port to 8001.

Then log in to Wok and you will get this.

Here, the user’s name is the password.

Up to this point, you can see a screen that works well, leaving one hump.

Install Ubuntu 18.04 Server

First, please download the image of ubuntu 18.04.

$ cd /var/lib/kimchi/isos
$ sudo wget http://releases.ubuntu.com/18.04.1/ubuntu-18.04.1-live-server-amd64.iso

When you have received the image, press the + Add Template button in Vitualization> Templates, and Ubuntu 18.04 will be displayed first.