From 5095be72fa8958284da40395f7efbc5a4dc28230 Mon Sep 17 00:00:00 2001 From: Remy-xl Date: Fri, 19 Apr 2019 22:49:46 +0800 Subject: [PATCH] Docs: update Build-a-custom-QEMU in Developer-Guide Add how to get kata-containers/qemu and checkout to a proper version in developer-guide Fixes: #437 Signed-off-by: Lei Xu --- Developer-Guide.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Developer-Guide.md b/Developer-Guide.md index 3db3bf92af..1d79b0968e 100644 --- a/Developer-Guide.md +++ b/Developer-Guide.md @@ -371,6 +371,16 @@ When setting up Kata using a [packaged installation method](https://github.com/k ## Build a custom QEMU +Your qemu directory need to be prepared with source code. Alternatively, you can use the [Kata containers QEMU](https://github.com/kata-containers/qemu/tree/master) and checkout the recommended branch: + +``` +$ go get -d github.com/kata-containers/qemu +$ qemu_branch=$(grep qemu-lite- ${GOPATH}/src/github.com/kata-containers/runtime/versions.yaml | cut -d '"' -f2) +$ cd ${GOPATH}/src/github.com/kata-containers/qemu +$ git checkout -b $qemu_branch remotes/origin/$qemu_branch +$ your_qemu_directory=${GOPATH}/src/github.com/kata-containers/qemu +``` + To build a version of QEMU using the same options as the default `qemu-lite` version , you could use the `configure-hypervisor.sh` script: ```