-
Notifications
You must be signed in to change notification settings - Fork 68
Windows
Kathará depends on Docker and Python. If you already have them installed you can probably skip to step 4.
This guide applies only on Windows 8 Pro and Windows 10 Pro, if you have a Home version you can either install a virtual machine with Linux or buy a Pro license for your PC. Technically Kathará can be configured to work with Docker-Machine on Windows Home, but it has not been tested.
- Install Docker from here.
- During the installation procedure DO NOT flag "Use Windows Containers", Kathará works only with default (linux) containers.
- NB: On Windows 8 x64 and 10 x64 this will also download and enable Hyper-V. If you later want to use another hypervisor like VMware or Virtual Box, than you will have to disable Hyper-V and restart your PC. If you later need to use Docker or Kathará again, you'll have to re-enable Hyper-V and restart. This will require that Virtualization technology is enabled in your system BIOS. For more information and an example check out this document.
- Install Python (2.7 or 3.x).
- You can get it from here.
- Make sure that Python is added to your PATH variable.
- Keep in mind that Python 2.7 is deprecated and will reach its end on January 2020.
- If you're using Python 2.7, you may also need to install the
ipaddress
lib (already installed in Python 3). The installer will try to do it by usingpip
by default if the library is not already installed. If you don't want to usepip
(or if it doesn't work on your environment) feel free to do it using any other Python package manager. You can run the installer using the--nopip
option (for more on this check step 6). To manually install using pip, activate your environment (or stay in the default one) and runpip install ipaddress
. If the library is already found, the installer will automatically skip this part.
- Download all the files to a directory of your choice (from a release or
git clone https://github.com/KatharaFramework/Kathara.git
). - Add the environment variable
NETKIT_HOME
to your system pointing to the bin folder:- System > Advanced settings > Environment Variables > New > ...
- Variable name:
NETKIT_HOME
, Variable value:DRIVE:\path\to\kathara\bin
.
- Variable name:
- System > Advanced settings > Environment Variables > New > ...
- You'll also need to share the drive that will contain the labs and the drive with your user folder (it can be done from Docker settings, from the tray icon), as shown here (note that you may have/need different drives).
- Run the installer:
-
%NETKIT_HOME%\install
[optionally--p4
to pre-download the P4 image]. - [
%NETKIT_HOME%\install --nopip
will skip the installation of theipaddress
library so that you can do it manually ]
-
- You can optionally add NETKIT_HOME to your PATH, but the
NETKIT_HOME
variable is still required. - Remember to run Docker before using Kathará.
Please note that Docker runs on Windows inside a virtual machine running Linux and managed by Hyper-V. The virtual hard drive usually takes a variable amount of space depending on the number of Docker images that you compile and can go up to about 60 GBytes. However the space occupation can be drastically reduced by removing unused Docker images with the command docker system prune
and by following this procedure. This can be used every time your virtual disk space goes up because of some Docker Images you later decide to remove
Website: kathara.org
Contact us: contact@kathara.org