mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 20:24:31 +00:00
docs: Add instructions for getting QEMU source
Update the developer guide to add instructions of how to get the correct version of the QEMU source and sets your_qemu_directory variable, so that follow on steps are easier for a new joiner to the community to understand Fixes #1907 Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
parent
c078628544
commit
5b5047bd4a
@ -394,6 +394,20 @@ You may choose to manually build your VMM/hypervisor.
|
|||||||
Kata Containers makes use of upstream QEMU branch. The exact version
|
Kata Containers makes use of upstream QEMU branch. The exact version
|
||||||
and repository utilized can be found by looking at the [versions file](../versions.yaml).
|
and repository utilized can be found by looking at the [versions file](../versions.yaml).
|
||||||
|
|
||||||
|
Find the correct version of QEMU from the versions file:
|
||||||
|
```
|
||||||
|
$ source ${GOPATH}/src/github.com/kata-containers/kata-containers/tools/packaging/scripts/lib.sh
|
||||||
|
$ qemu_version=$(get_from_kata_deps "assets.hypervisor.qemu.version")
|
||||||
|
$ echo ${qemu_version}
|
||||||
|
```
|
||||||
|
Get source from the matching branch of QEMU:
|
||||||
|
```
|
||||||
|
$ go get -d github.com/qemu/qemu
|
||||||
|
$ cd ${GOPATH}/src/github.com/qemu/qemu
|
||||||
|
$ git checkout ${qemu_version}
|
||||||
|
$ your_qemu_directory=${GOPATH}/src/github.com/qemu/qemu
|
||||||
|
```
|
||||||
|
|
||||||
There are scripts to manage the build and packaging of QEMU. For the examples below, set your
|
There are scripts to manage the build and packaging of QEMU. For the examples below, set your
|
||||||
environment as:
|
environment as:
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user