Dockerfile for running libguestfs, virt-tools and virt-v2v

FROM fedora
RUN dnf install -y libguestfs libguestfs-tools-c virt-v2v \
                   libvirt-daemon libvirt-daemon-config-network

RUN useradd -ms /bin/bash v2v
USER v2v
WORKDIR /home/v2v

# This is required for virt-v2v because neither systemd nor
# root libvirtd runs, and therefore there is no virbr0, and
# therefore virt-v2v cannot set up the network through libvirt.


Filed under Uncategorized

2 responses to “Dockerfile for running libguestfs, virt-tools and virt-v2v

  1. Hi Richard,

    thanks a lot for that example of your great tool. Could you maybe extend it by adding an example of how I use the container build from that Docker image?

    It’s probably outside of the scope of your post, but I wanted to make you aware of this bug report Maybe other users, who have a tendency for Ubuntu and the s390x platform, might find this useful.

    Regards, Markus

  2. rich

    virt-v2v isn’t a server, it’s a command line process, so to use the container you’d have to have some kind of script or service which starts it up and runs it with the right parameters.

    I’ve seen that bug, but I don’t know why it’s happening. Fedora and RHEL both have libguestfs on s/390 and it’s working fine.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.