mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
This tests if QEMU works in PVH dom0. QEMU in dom0 requires enabling TUN in the kernel, so do that too. Add it to both x86 runners, similar to the PVH domU test. Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> Release-Acked-By: Oleksii Kurochko <oleksii.kurochko@gmail.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
42 lines
1.1 KiB
Docker
42 lines
1.1 KiB
Docker
FROM --platform=linux/amd64 debian:bookworm
|
|
LABEL maintainer.name="The Xen Project" \
|
|
maintainer.email="xen-devel@lists.xenproject.org"
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
ENV LINUX_VERSION=6.1.19
|
|
ENV USER root
|
|
|
|
RUN mkdir /build
|
|
WORKDIR /build
|
|
|
|
# build depends
|
|
RUN apt-get update && \
|
|
apt-get --quiet --yes install \
|
|
build-essential \
|
|
libssl-dev \
|
|
bc \
|
|
curl \
|
|
flex \
|
|
bison \
|
|
libelf-dev \
|
|
&& \
|
|
apt-get autoremove -y && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists* /tmp/* /var/tmp/*
|
|
|
|
# Build the kernel
|
|
RUN curl -fsSLO https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-"$LINUX_VERSION".tar.xz && \
|
|
tar xvJf linux-"$LINUX_VERSION".tar.xz && \
|
|
cd linux-"$LINUX_VERSION" && \
|
|
make defconfig && \
|
|
make xen.config && \
|
|
scripts/config --enable BRIDGE && \
|
|
scripts/config --enable IGC && \
|
|
scripts/config --enable TUN && \
|
|
cp .config .config.orig && \
|
|
cat .config.orig | grep XEN | grep =m |sed 's/=m/=y/g' >> .config && \
|
|
make -j$(nproc) bzImage && \
|
|
cp arch/x86/boot/bzImage / && \
|
|
cd /build && \
|
|
rm -rf linux-"$LINUX_VERSION"*
|