Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Conversation

@jodh-intel
Copy link

Move the developer guide from the wiki "in-tree".

Fixes #29.

Signed-off-by: James O. D. Hunt james.o.hunt@intel.com

@jodh-intel
Copy link
Author

@annabellebertooch - fyi 😄

@egernst
Copy link
Member

egernst commented Mar 20, 2018

I think it looks good, though we'll want review from @klynnrif

@jodh-intel
Copy link
Author

Hi @klynnrif - could you take a look please? It's a biggie I'm afraid :)

- `make`.
- `gcc` (required for building the shim and runtime).

- You have installed the Clear Containers `linux-container` and `qemu-lite`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part is a bit more error prone since we're referring to another install guide, but only a segment of it. This is definitely a short term problem (ie, until we have packages available for these for Kata project), but I think it may be worth explicitly adding these in the meantime. WDYT, @jodh-intel ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep - we really need kata-containers/packaging#1 to be resolved.

I understand the general view but I'm not clear what you want me to add?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd consider adding the steps for installing qemu-lite and linux-containers.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually left it purposely slightly vague since otherwise we need to be fully prescriptive (apt-get, dnf, yum, etc).

Once we have kata packages we can then start putting together install guides for the different distros as we did for Clear Containers.

FWIW, the same applies to installing docker, golang, etc.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @egernst - How about we keep this as-is for now since:

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me.

@annebdh
Copy link

annebdh commented Mar 20, 2018

LGTM. Thanks for moving this over!

Copy link

@klynnrif klynnrif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scrubbed for grammar, sentence structure, and flow : a few suggestions. Thanks!

* [Install guest kernel images](#install-guest-kernel-images)
* [Update Docker configuration](#update-docker-configuration)
* [Create a Kata Container](#create-a-kata-container)
* [Problem determination](#problem-determination)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest titling this section "Troubleshoot" to keep the list parallel.


- You have installed the Clear Containers `linux-container` and `qemu-lite`
packages containing the guest kernel images and hypervisor. These packages
are automatically installed when you install Clear Containers, but can be

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested rewrite to make this sentence active: "These packages automatically install when you install Clear Containers, but can be installed separately:"

$ make && sudo -E PATH=$PATH make install
```

The build will create:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build will create the following:


# Check hardware requirements

You can now check if your system is capable of creating a Kata Container by running:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can check if your system is capable of creating a Kata Container by running the following:

$ sudo kata-runtime kata-check
```

If your system is *not* able to run Kata Containers, this command will error and explain why.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If your system is not able to run Kata Containers, the previous command will error and explain why.


> **Note:**
>
> - You must ensure that the *default Docker runtime* is `runc` to make use of the `USE_DOCKER` variable. If that is not the case, simply remove the variable from the command above. See [Checking Docker default runtime](#checking-docker-default-runtime).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...If that is not the case, remove the variable from the previous command...


> **Note:**
>
> - You only do this step if you wish to test with the latest version of the agent.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • You only do this step if you test with the latest version of the agent.


> **Notes:**
>
> - You must ensure that the *default Docker runtime* is `runc` to make use of the `USE_DOCKER` variable. If that is not the case, simply remove the variable from the command above. See [Checking Docker default runtime](#checking-docker-default-runtime).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...If that is not the case, remove the variable from the previous command...

> **Notes:**
>
> - You must ensure that the *default Docker runtime* is `runc` to make use of the `USE_DOCKER` variable. If that is not the case, simply remove the variable from the command above. See [Checking Docker default runtime](#checking-docker-default-runtime).
> - If you do *not* wish to build under Docker, remove the `USE_DOCKER` variable above and ensure the `qemu-img` command is available on your system.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • If you do not wish to build under Docker, remove the USE_DOCKER variable in the previous command and ensure the qemu-img command is available on your system.


# Problem determination

If you are unable to create a Kata Container, please run the

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are unable to create a Kata Container, run the...

@jodh-intel
Copy link
Author

Thanks for reviewing @klynnrif! Branch updated.

@jodh-intel
Copy link
Author

Technically, this PR is also blocked on kata-containers/runtime#80. If I can't get that into a PR today, I'll remove the mention of the kata-collect-data.sh script in the "Troubleshoot" section (or mark this PR as do-not-merge until kata-containers/runtime#80 is resolved).

Copy link

@klynnrif klynnrif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Move the developer guide from the wiki "in-tree".

Fixes kata-containers#29.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
@jodh-intel
Copy link
Author

Hi @egernst - I've remove mention of the data collection script as kata-containers/runtime#80 is unlikely to land today. I'll raise a follow-on PR for this doc once that PR has landed.

@egernst egernst merged commit 893d9d1 into kata-containers:master Mar 21, 2018
@egernst egernst removed the review label Mar 21, 2018
@jodh-intel
Copy link
Author

@jodh-intel
Copy link
Author

Issue to remove mention of Clear Containers packages once we have Kata packages: #33.

devimc pushed a commit to devimc/kata-documentation that referenced this pull request Sep 2, 2019
scripts: Add an "auto-size" feature
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants