]> xenbits.xensource.com Git - people/sstabellini/mojo.git/.git/log
people/sstabellini/mojo.git/.git
7 years agoEnable SVM emulation on x86 wip3
Stefano Stabellini [Tue, 23 Jan 2018 21:22:43 +0000 (13:22 -0800)]
Enable SVM emulation on x86

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoWork-around Xen crash at boot time in QEMU without VMX emulation
Stefano Stabellini [Tue, 23 Jan 2018 00:14:45 +0000 (16:14 -0800)]
Work-around Xen crash at boot time in QEMU without VMX emulation

and disable VMX emulation and KVM by default in the runtime scripts.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoIntroduce runtime support for aarch64
Stefano Stabellini [Sat, 20 Jan 2018 00:23:53 +0000 (16:23 -0800)]
Introduce runtime support for aarch64

Introduce two new containers:
- qemu-system-aarch64-builder: it builds a qemu system binary capable
  of running Xen on ARM
- qemu-system-aarch64: the runnable container with the
  qemu-system-aarch64 binary and the run script

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoAdd support for runtime QEMU containers
Stefano Stabellini [Fri, 19 Jan 2018 23:41:01 +0000 (15:41 -0800)]
Add support for runtime QEMU containers

Introduce an option to build an Alpine based container with QEMU to run
the output image (nested virtualization).

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoIntroduce a second domain build wip2
Stefano Stabellini [Wed, 13 Dec 2017 01:45:06 +0000 (17:45 -0800)]
Introduce a second domain build

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoAdd flex and bison as QEMU build dependencies
Stefano Stabellini [Wed, 13 Dec 2017 22:56:53 +0000 (14:56 -0800)]
Add flex and bison as QEMU build dependencies

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoThe Linux build doesn't depend on the Xen and QEMU build. Make it independent.
Stefano Stabellini [Wed, 13 Dec 2017 00:20:31 +0000 (16:20 -0800)]
The Linux build doesn't depend on the Xen and QEMU build. Make it independent.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoClearly specify Alpine Linux version to use
Stefano Stabellini [Wed, 13 Dec 2017 00:15:26 +0000 (16:15 -0800)]
Clearly specify Alpine Linux version to use

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoUse LinuxKit for the build, when available
Stefano Stabellini [Tue, 28 Nov 2017 00:34:04 +0000 (16:34 -0800)]
Use LinuxKit for the build, when available

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoMake the build system LinuxKit ready
Stefano Stabellini [Tue, 28 Nov 2017 00:28:41 +0000 (16:28 -0800)]
Make the build system LinuxKit ready

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoAdd support for overlayfs
Stefano Stabellini [Wed, 22 Nov 2017 22:47:25 +0000 (14:47 -0800)]
Add support for overlayfs

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoBuild each container in in its own subdir
Stefano Stabellini [Wed, 22 Nov 2017 21:14:47 +0000 (13:14 -0800)]
Build each container in in its own subdir

Not only it is cleaner, but it makes linuxkit integration easier.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoRename build.docker to Dockerfile
Stefano Stabellini [Wed, 22 Nov 2017 21:08:17 +0000 (13:08 -0800)]
Rename build.docker to Dockerfile

It will make it easier to use linuxkit for versioning in the future

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoAdd clean_all scripts to remove all build containers.
Stefano Stabellini [Mon, 20 Nov 2017 22:52:56 +0000 (14:52 -0800)]
Add clean_all scripts to remove all build containers.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoParametrize mkimage build
Stefano Stabellini [Mon, 20 Nov 2017 21:33:17 +0000 (13:33 -0800)]
Parametrize mkimage build

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoParametrize the alpine-dom0 build
Stefano Stabellini [Mon, 20 Nov 2017 21:30:24 +0000 (13:30 -0800)]
Parametrize the alpine-dom0 build

Use a series file to get the build order, rather than hardcoding it in
build.sh.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoMatch containers labels with directory names
Stefano Stabellini [Fri, 17 Nov 2017 00:49:24 +0000 (16:49 -0800)]
Match containers labels with directory names

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoRun xencommons at boot time
Stefano Stabellini [Fri, 17 Nov 2017 00:27:48 +0000 (16:27 -0800)]
Run xencommons at boot time

OpenRC doesn't support xencommons. For now, add a local.d script to
start xencommons manually at boot.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoFix QEMU installation
Stefano Stabellini [Fri, 17 Nov 2017 00:27:24 +0000 (16:27 -0800)]
Fix QEMU installation

qemu-xen is run from /usr/lib/xen/bin.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoFix indentation and rc-update initializations
Stefano Stabellini [Thu, 16 Nov 2017 23:52:00 +0000 (15:52 -0800)]
Fix indentation and rc-update initializations

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agosync after writing image to avoid corruptions
Stefano Stabellini [Thu, 16 Nov 2017 22:57:04 +0000 (14:57 -0800)]
sync after writing image to avoid corruptions

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoMake dom0 rootfs rw and rename to MojoOS
Stefano Stabellini [Thu, 16 Nov 2017 22:41:19 +0000 (14:41 -0800)]
Make dom0 rootfs rw and rename to MojoOS

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoUse "getconf _NPROCESSORS_ONLN" instead of hardcoding -j4
Stefano Stabellini [Thu, 16 Nov 2017 22:24:26 +0000 (14:24 -0800)]
Use "getconf _NPROCESSORS_ONLN" instead of hardcoding -j4

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoSplit dom0 build and mkimage build in smaller pieces
Stefano Stabellini [Thu, 16 Nov 2017 21:59:57 +0000 (13:59 -0800)]
Split dom0 build and mkimage build in smaller pieces

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoSplit out dom0 and mkimage builds from the main build script
Stefano Stabellini [Thu, 16 Nov 2017 21:36:25 +0000 (13:36 -0800)]
Split out dom0 and mkimage builds from the main build script

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoVarious renames to clarify the purpose of each component
Stefano Stabellini [Thu, 16 Nov 2017 19:33:24 +0000 (11:33 -0800)]
Various renames to clarify the purpose of each component

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoFix getty listening terminals
Stefano Stabellini [Thu, 16 Nov 2017 01:59:54 +0000 (17:59 -0800)]
Fix getty listening terminals

Add hvc0 to both securetty and inittab.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoDon't export dom0 rootfs to the host
Stefano Stabellini [Tue, 14 Nov 2017 01:06:28 +0000 (17:06 -0800)]
Don't export dom0 rootfs to the host

Don't export the dom0 rootfs to the host, use COPY --from to import it
directly from the previous build container.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoBuild Xen, tools and kernel from Docker build
Stefano Stabellini [Tue, 14 Nov 2017 00:55:40 +0000 (16:55 -0800)]
Build Xen, tools and kernel from Docker build

No need to run "xen-builder" anymore. The build is done at "docker
build" time. The output is not copied back to the host, it is imported
directly into the dom0 container using COPY --from.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoMore consistent containers label names
Stefano Stabellini [Mon, 13 Nov 2017 23:08:23 +0000 (15:08 -0800)]
More consistent containers label names

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoUse out/ consistently
Stefano Stabellini [Mon, 13 Nov 2017 23:07:12 +0000 (15:07 -0800)]
Use out/ consistently

All build products go to the out/ directory

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoRename grub-build to image-build
Stefano Stabellini [Mon, 13 Nov 2017 22:30:22 +0000 (14:30 -0800)]
Rename grub-build to image-build

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoRemove unused scripts and lib.sh
Stefano Stabellini [Mon, 13 Nov 2017 22:29:08 +0000 (14:29 -0800)]
Remove unused scripts and lib.sh

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoFix image build: include dom0 rootfs
Stefano Stabellini [Mon, 13 Nov 2017 22:25:37 +0000 (14:25 -0800)]
Fix image build: include dom0 rootfs

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoBuild Linux kernel as part of the Dom0 build
Stefano Stabellini [Mon, 13 Nov 2017 21:06:18 +0000 (13:06 -0800)]
Build Linux kernel as part of the Dom0 build

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoContainerized image build
Stefano Stabellini [Thu, 9 Nov 2017 17:00:12 +0000 (09:00 -0800)]
Containerized image build

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Gianluca Guida <gianluca@zededa.com>
7 years agoRename dockerfiles to dom0
Stefano Stabellini [Thu, 9 Nov 2017 19:38:29 +0000 (11:38 -0800)]
Rename dockerfiles to dom0

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoDon't allocate the image disk twice
Stefano Stabellini [Wed, 8 Nov 2017 22:46:27 +0000 (14:46 -0800)]
Don't allocate the image disk twice

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoFix alpine-build-script
Stefano Stabellini [Wed, 8 Nov 2017 20:04:10 +0000 (12:04 -0800)]
Fix alpine-build-script

Download release tarball instead of git clone.
Apply patches as necessary.
Build QEMU against the Xen install dir (as oppused to the Xen build
dir).

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoAdd curl to alpine-build
Stefano Stabellini [Wed, 8 Nov 2017 20:03:31 +0000 (12:03 -0800)]
Add curl to alpine-build

So that we can download release tarballs at build time.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoFix alpine-build syntax
Stefano Stabellini [Wed, 8 Nov 2017 19:39:24 +0000 (11:39 -0800)]
Fix alpine-build syntax

Add missing continuation marks.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoAdd sleep script as a workaround to save a Docker image
Stefano Stabellini [Wed, 8 Nov 2017 01:50:45 +0000 (17:50 -0800)]
Add sleep script as a workaround to save a Docker image

It will be used to start the container "sleeping", so that we can use
docker export and extract a rootfs from it.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoImprove image build
Stefano Stabellini [Wed, 8 Nov 2017 01:40:11 +0000 (17:40 -0800)]
Improve image build

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoAdd networking setup
Stefano Stabellini [Wed, 8 Nov 2017 01:39:57 +0000 (17:39 -0800)]
Add networking setup

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoImport library functions and utils for image management
Stefano Stabellini [Wed, 8 Nov 2017 00:43:49 +0000 (16:43 -0800)]
Import library functions and utils for image management

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoAdd LICENSE file
Stefano Stabellini [Wed, 8 Nov 2017 00:37:00 +0000 (16:37 -0800)]
Add LICENSE file

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
7 years agoInitial commit: Alpine Linux based Xen builder
Stefano Stabellini [Tue, 7 Nov 2017 00:13:33 +0000 (16:13 -0800)]
Initial commit: Alpine Linux based Xen builder

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>