Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
Create separated files to list Kimchi dependencies according to different
Linux distributions.
That way the user can easily find the information he/she wants.

Also update the images to reflect the new UI.

Signed-off-by: Aline Manera <[email protected]>
  • Loading branch information
alinefm committed Jan 20, 2016
1 parent 2745b54 commit 341b29d
Show file tree
Hide file tree
Showing 12 changed files with 196 additions and 200 deletions.
6 changes: 1 addition & 5 deletions contrib/kimchi.spec.fedora.in
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%attr(-,root,root)
%{python_sitelib}/wok/plugins/kimchi/
%{_datadir}/kimchi/doc/API.md
%{_datadir}/kimchi/doc/README.md
%{_datadir}/kimchi/doc/README-federation.md
%{_datadir}/kimchi/doc/kimchi-guest.png
%{_datadir}/kimchi/doc/kimchi-templates.png
%{_datadir}/kimchi/doc/
%{_prefix}/share/locale/*/LC_MESSAGES/kimchi.mo
%{_datadir}/wok/plugins/kimchi/
%{_sysconfdir}/wok/plugins.d/kimchi.conf
Expand Down
6 changes: 1 addition & 5 deletions contrib/kimchi.spec.suse.in
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%attr(-,root,root)
%{python_sitelib}/wok/plugins/kimchi/
%{_datadir}/kimchi/doc/API.md
%{_datadir}/kimchi/doc/README.md
%{_datadir}/kimchi/doc/README-federation.md
%{_datadir}/kimchi/doc/kimchi-guest.png
%{_datadir}/kimchi/doc/kimchi-templates.png
%{_datadir}/kimchi/doc/
%{_prefix}/share/locale/*/LC_MESSAGES/kimchi.mo
%{_datadir}/wok/plugins/kimchi/
%{_sysconfdir}/wok/plugins.d/kimchi.conf
Expand Down
10 changes: 2 additions & 8 deletions docs/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Kimchi
#
# Copyright IBM Corp, 2013
# Copyright IBM Corp, 2013-2016
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand All @@ -19,10 +19,4 @@

docdir = $(datadir)/kimchi/doc

dist_doc_DATA = \
API.md \
README.md \
README-federation.md \
kimchi-guest.png \
kimchi-templates.png \
$(NULL)
dist_doc_DATA = $(wildcard *.md) $(wildcard *.png) $(NULL)
239 changes: 57 additions & 182 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,210 +1,77 @@
Kimchi Project
==============
* [What is Kimchi?](#what-is-kimchi)
* [Browser Support](https://github.com/kimchi-project/wok/#browser-support)
* [Desktop Browser Support](https://github.com/kimchi-project/wok/#desktop-browser-support)
* [Mobile Browser Support](https://github.com/kimchi-project/wok/#mobile-browser-support)
* [Linux Support](https://github.com/kimchi-project/wok/#linux-support)
* [Getting started](#getting-started)
* [Install Dependencies](#install-dependencies)
* [Build and Install](#build-and-install)
* [Starting up Wok](https://github.com/kimchi-project/wok/#starting-up-wok)
* [Troubleshooting](#troubleshooting)
* [Testing](#testing)
* [Usage](#usage)
* [Contributing to Kimchi Project](#contributing-to-kimchi-project)

What is Kimchi?
===============

Kimchi is an HTML5 based management tool for KVM. It is designed to make it as
easy as possible to get started with KVM and create your first guest.

Kimchi runs as a Wok plugin. Wok runs as a daemon on the hypervisor host.
Kimchi runs as a [Wok](https://github.com/kimchi-project/wok/wiki) plugin.

Kimchi manages KVM guests through libvirt. The management interface is accessed
over the web using a browser that supports HTML5.

Browser Support
===============

Wok and its plugin can run in any web browser that supports HTML5. The
Kimchi community (responsible for Wok project) makes an effort to
test it with the latest versions of Chrome and Firefox browsers, but the
following list can be used as reference to browser support.

Desktop Browser Support:
-----------------------
* **Internet Explorer:** Current version
* **Chrome:** Current version
* **Firefox:** Current version
* **Safari:** Current version
* **Opera:** Current version

Mobile Browser Support:
-----------------------
* **Safari iOS:** Current version
* **Android Browser** Current version


Hypervisor Distro Support
=========================

Kimchi might run on any GNU/Linux distribution that meets the conditions
described on the 'Getting Started' section below.

The Kimchi community makes an effort to test it with the latest versions of
Fedora, RHEL, OpenSuSe, and Ubuntu.

Getting Started
===============

Install Dependencies
--------------------
First of all, make sure to [Wok](https://github.com/kimchi-project/wok/#getting-started)
and [Ginger Base](https://github.com/kimchi-project/gingerbase/#getting-started) installed in your system.
To add Kimchi plugin, please make sure to have all the dependencies installed
before starting up the wokd service.

**For fedora and RHEL:**

$ sudo yum install wok libvirt-python libvirt gettext-devel \
libvirt-daemon-config-network python-imaging \
qemu-kvm python-ethtool sos python-ipaddr \
nfs-utils iscsi-initiator-utils pyparted \
python-libguestfs libguestfs-tools \
python-websockify novnc spice-html5 \
python-configobj python-magic python-paramiko

# If using RHEL, install the following additional packages:
$ sudo yum install python-unittest2 python-ordereddict

# Restart libvirt to allow configuration changes to take effect
$ sudo service libvirtd restart

# These dependencies are only required if you want to run the tests:
$ sudo yum install pyflakes python-pep8 python-requests python-mock

# For UI development
$ sudo yum install gcc-c++ python-devel python pip
$ sudo pip install cython libsass


*Note for RHEL users*: Some of the above packages are located in the Red Hat
EPEL repositories. See
[this FAQ](http://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F)
for more information on how to configure your system to access this repository.

And for RHEL7 systems, you also need to subscribe to the "RHEL Server Optional"
channel at RHN Classic or Red Hat Satellite.

**For Ubuntu (Debian-based):**

$ sudo apt-get install wok python-imaging python-configobj websockify \
novnc python-libvirt libvirt-bin nfs-common \
qemu-kvm python-parted python-ethtool sosreport \
xsltproc python-ipaddr python-lxml open-iscsi \
python-guestfs libguestfs-tools spice-html5 \
python-magic python-paramiko gettext \

# These dependencies are only required if you want to run the tests:
$ sudo apt-get install pep8 pyflakes python-requests python-mock

# For UI development
$ sudo apt-get install g++ python-dev python pip
$ sudo pip install cython libsass

**For openSUSE:**

$ sudo zypper install wok libvirt-python libvirt gettext-tools \
libvirt-daemon-config-network python-imaging \
kvm python-ethtool python-ipaddr nfs-client \
open-iscsi python-parted python-libguestfs \
python-configobj guestfs-tools python-websockify \
novnc python-magic python-paramiko

# These dependencies are only required if you want to run the tests:
$ sudo zypper install python-pyflakes python-pep8 python-requests python-mock

# For UI development
$ sudo zypper install python-devel python pip
$ sudo pip install cython libsass

*Note for openSUSE users*: Some of the above packages are located in different
openSUSE repositories. See
[this FAQ](http://download.opensuse.org/repositories/home:GRNET:synnefo/) for
python-parted, [this FAQ](http://download.opensuse.org/repositories/systemsmanagement:/spacewalk/)
for python-ethtool, and [this FAQ](http://download.opensuse.org/repositories/home:/Simmphonie:/python/) for python-magic to get the correct repository based on your openSUSE version. And
[this FAQ](http://en.opensuse.org/SDB:Add_package_repositories) for more
information on how configure your system to access this repository.
* [RHEL/Fedora systems](/docs/fedora-deps.md)
* [Debian/Ubuntu systems](/docs/ubuntu-deps.md)
* [openSUSE systems](/docs/opensuse-deps.md)

Build and Install
-----------------

Wok:
$ ./autogen.sh --system

$ make
$ sudo make install # Optional if running from the source tree


Kimchi:
$ cd plugins/kimchi

For openSUSE 13.2:
For openSUSE:
$ ./autogen.sh --with-spice-html5

Otherwise:
$ ./autogen.sh --system

$ make
$ sudo make install # Optional if running from the source tree

Run
---

$ sudo wokd --host=0.0.0.0

If you cannot access Wok, take a look at these 2 points:

1. Firewall
Wok uses by default the ports 8000, 8001 and 64667. To allow incoming connections:

For system using firewalld, do:
sudo firewall-cmd --add-port=8000/tcp --permanent
sudo firewall-cmd --add-port=8001/tcp --permanent
sudo firewall-cmd --add-port=64667/tcp --permanent
sudo firewall-cmd --reload

For openSUSE systems, do:
sudo /sbin/SuSEfirewall2 open EXT TCP 8000
sudo /sbin/SuSEfirewall2 open EXT TCP 8001
sudo /sbin/SuSEfirewall2 open EXT TCP 64667

For system using iptables, do:
sudo iptables -A INPUT -p tcp --dport 8000 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 8001 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 64667 -j ACCEPT
# Optional if running from the source tree
$ sudo make install

Don't forget to correctly save the rules.
Testing
-------


2. SELinux
Allow httpd_t context for Wok web server:

semanage permissive -a httpd_t


Test
----

$ cd plugins/kimchi
$ make check-local # check for i18n and formatting errors
$ make check-local
$ sudo make check

After all tests are executed, a summary will be displayed containing any
errors/failures which might have occurred.


UI Development
----
Make sure to update the CSS files when modifying the SCSS files by running:

$ sudo make -C ui/css css


Usage
-----

Connect your browser to https://localhost:8001. You should see a screen like:

![Wok Login Screen](/docs/kimchi-login.png)
![Wok Login Screen](/docs/wok-login.png)

Wok uses PAM to authenticate users so you can log in with the same username
By default, wok uses PAM to authenticate users so you can log in with the same username
and password that you would use to log in to the machine itself. Once logged in
you will see a screen like:

![Kimchi Guest View](/docs/kimchi-guest.png)
![Kimchi Guest View](/docs/kimchi-guests.png)

This shows you the list of running guests including a live screenshot of
the guest session. You can use the action buttons to shutdown the guests
Expand All @@ -223,27 +90,35 @@ The template screen looks like:
From this view, you can change the parameters of a template or create a
new template using the "+" button in the upper right corner.

To create a template, you need an ISO on your host or using remote one.
To create a template, you need an ISO or image file on your host or use a remote one.
If you are willing to use your own ISO, please copy it to out of box storage
pool (default path is: /var/lib/kimchi/isos).

Known Issues
------------
Troubleshooting
---------------

#### Server access
Please, check [Wok configuration](https://github.com/kimchi-project/wok/#troubleshooting)
if you are getting problems to access Wok server.

#### NFS storage pool
Please, check the NFS export path permission is configured like below:

1. Export path need to be squashed as kvm gid and libvirt uid:
/my_export_path *(all_squash,anongid=<kvm-gid>, anonuid=<libvirt-uid>,rw,sync)

So that root user can create volume with right user/group.

1. When you are using NFS as storage pool, check the nfs export path permission
is configured as:
(1) export path need to be squashed as kvm gid and libvirt uid:
/my_export_path *(all_squash,anongid=<kvm-gid>, anonuid=<libvirt-uid>,rw,sync)
So that root user can create volume with right user/group.
(2) Chown of export path as libvirt user, group as kvm group,
In order to make sure all mapped user can get into the mount point.
2. Set libvirt user and kvm group for export path, in order to make sure all
mapped user can get into the mount point.

Participating
-------------
Contributing to Kimchi Project
==============================

All patches are sent through our mailing list hosted by oVirt. More
information can be found at:
There are a lof of ways to contribute to the Kimchi Project:

https://github.com/kimchi-project/kimchi/wiki/Communications
* Issues can be reported at [Github](https://github.com/kimchi-project/kimchi/issues)
* Patches are always welcome! Please, follow [these instructions](https://github.com/kimchi-project/kimchi/wiki/How-to-Contribute)
on how to send patches to the mailing list ([email protected]).

Patches should be sent using git-send-email to kimchi-[email protected].
Find more information about Wok Project at https://github.com/kimchi-project/kimchi/wiki
53 changes: 53 additions & 0 deletions docs/fedora-deps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
RHEL/Fedora dependencies for Kimchi
===================================

* [Additional RHEL Repositories](#additional-rhel-repositories)
* [Build Dependencies](#build-dependencies)
* [Runtime Dependencies](#runtime-dependencies)
* [Packages required for UI development](#packages-required-for-ui-development)
* [Packages required for tests](#packages-required-for-tests)

Additional RHEL Repositories
----------------------------
Some of the above packages are located in the Red Hat EPEL repositories, for RHEL
system. See [this FAQ](http://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F)
for more information on how to configure your system to access this repository.

For RHEL7 systems, you also need to subscribe to the "RHEL Server Optional"
channel at RHN Classic or Red Hat Satellite.

Build Dependencies
--------------------

$ sudo yum install gcc make autoconf automake gettext-devel git rpm-build \
libxslt

Runtime Dependencies
--------------------

$ sudo yum install libvirt-python libvirt libvirt-daemon-config-network \
qemu-kvm python-ethtool sos python-ipaddr \
nfs-utils iscsi-initiator-utils pyparted \
python-libguestfs libguestfs-tools \
python-websockify novnc spice-html5 \
python-configobj python-magic python-paramiko

# For RHEL systems, install the additional packages:
$ sudo yum install python-ordereddict

# Restart libvirt to allow configuration changes to take effect
$ sudo service libvirtd restart

Packages required for UI development
------------------------------------

$ sudo yum install gcc-c++ python-devel python-pip
$ sudo pip install cython libsass

Packages required for tests
---------------------------

$ sudo yum install pyflakes python-pep8 python-requests python-mock

# For RHEL systems, install the additional packages:
$ sudo yum install python-unittest2
Binary file removed docs/kimchi-guest.png
Binary file not shown.
Binary file added docs/kimchi-guests.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/kimchi-login.png
Binary file not shown.
Binary file modified docs/kimchi-templates.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 341b29d

Please sign in to comment.