Skip to content

Commit

Permalink
Add latest win-virtio
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Necas <mnecas@redhat.com>
  • Loading branch information
mnecas committed Jan 20, 2025
1 parent 739cb7e commit 72dabfc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions build/virt-v2v/Containerfile-upstream
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o image-converter ./cmd/i
RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o virt-v2v-wrapper ./cmd/virt-v2v/entrypoint.go

# Main container
FROM quay.io/centos/centos:stream9-minimal
FROM quay.io/centos/centos:stream9
RUN rm /etc/pki/tls/fips_local.cnf && \
echo -e '[fips_sect]\ntls1-prf-ems-check = 0\nactivate = 1' > /etc/pki/tls/fips_local.cnf && \
sed -i '/^\\[ crypto_policy \\]/a Options=RHNoEnforceEMSinFIPS' /etc/pki/tls/openssl.cnf
Expand All @@ -19,15 +19,17 @@ ENV LIBGUESTFS_BACKEND=direct LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1

RUN mkdir /disks && \
source /etc/os-release && \
microdnf install -y \
dnf install -y \
virt-v2v \
virtio-win && \
microdnf clean all
dnf clean all

RUN ( [ "$(rpm -q glibc)" == "glibc-2.34-66.el9.x86_64" ] && microdnf -y downgrade glibc-2.34-65.el9.x86_64 || true ) && \
microdnf -y install libguestfs libguestfs-appliance libguestfs-xfs libguestfs-winsupport qemu-img supermin && \
RUN ( [ "$(rpm -q glibc)" == "glibc-2.34-66.el9.x86_64" ] && dnf -y downgrade glibc-2.34-65.el9.x86_64 || true ) && \
dnf -y install libguestfs libguestfs-appliance libguestfs-xfs libguestfs-winsupport qemu-img supermin && \
depmod $(ls /lib/modules/ |tail -n1)

RUN dnf install -y https://kojihub.stream.centos.org/kojifiles/packages/virtio-win/1.9.40/1.el9/noarch/virtio-win-1.9.40-1.el9.noarch.rpm

# Create tarball for the appliance.
RUN mkdir -p /usr/lib64/guestfs/appliance && \
cd /usr/lib64/guestfs/appliance && \
Expand Down

0 comments on commit 72dabfc

Please sign in to comment.