https://github.com/3mdeb/xen-docker
Compilation environment for Xen project
https://github.com/3mdeb/xen-docker
Last synced: 5 months ago
JSON representation
Compilation environment for Xen project
- Host: GitHub
- URL: https://github.com/3mdeb/xen-docker
- Owner: 3mdeb
- Created: 2018-08-09T23:24:52.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-09-15T22:25:09.000Z (over 3 years ago)
- Last Synced: 2023-09-21T15:12:23.156Z (over 2 years ago)
- Language: Dockerfile
- Size: 20.5 KB
- Stars: 2
- Watchers: 9
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Docker environment for Xen development
======================================
This repository contains Dockerfile with all dependencies and tools required
for building Xen.
## Building container
```
git clone git@github.com:3mdeb/xen-docker.git
cd xen-docker
docker build -t 3mdeb/xen-docker .
```
## Preparing build environment
First clone Xen source:
```
git clone git://xenbits.xen.org/xen.git
```
Add xen git directory as a volume to docker container and run it:
```
cd xen
docker run --rm -it -v $PWD:/home/xen -w /home/xen 3mdeb/xen-docker /bin/bash
```
> Note that xen source directory must be inside /home/xen in docker container
> as we also use .ccache as a volume in /home/xen.
## Building Xen
```
(xen-docker)$ git checkout
(xen-docker)$ ./configure --enable-githttp --enable-systemd
# You can customize the config now if needed
(xen-docker)$ make debball
```
Result will be placed in `$(XEN_SRC)/dist`. You will find there:
* `install.sh` shell script which install Xen hypervisor on host machine
* `install` directory containing Xen components and kernel
* `xen-upstream-.deb`
## Xen installation
To install Xen on host mashine simply run `install.sh` outside docker.
> Note: You need to have a Dom0 kernel for Xen on Your host
To install on a remote mashine use the `xen-upstream-.deb` package.
Xen kernel will be placed in `/boot` directory in gzip format.