[Bug 1190501] New: virt-builder fails to install packages when building an image
http://bugzilla.opensuse.org/show_bug.cgi?id=1190501
Bug ID: 1190501
Summary: virt-builder fails to install packages when building
an image
Classification: openSUSE
Product: openSUSE Tumbleweed
Version: Current
Hardware: Other
OS: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Virtualization:Tools
Assignee: virt-bugs@suse.de
Reporter: jfehlig@suse.com
QA Contact: qa-bugs@suse.de
Found By: ---
Blocker: ---
Attempting to build a test image with virt-builder fails when installing
packages in the image. As an example, by default libvirt-tck will build a
fedora34 based image to use for its various tests with something like
virt-builder --install dsniff --selinux-relabel --root-password password:123456
--ssh-inject root:file:/var/cache/libvirt-tck/ssh/id_rsa.pub --output
/var/cache/libvirt-tck/os-x86_64-hvm/disk-fedora-34.img --memsize 1024
fedora-34
Them image build process fails when trying to install the dsniff package
error: Curl error (6): Couldn't resolve host name for
https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-
openh264-34&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org]
...
virt-builder: error: dnf --verbose -y install 'dsniff': command exited with
an error
Apparently there is a network problem within the libguestfs appliance used to
install packages in the image. The verbose output of the virt-builder command
contains this suspect line from the appliance
[ 1.691749] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 2.099182] NET: Registered protocol family 17
/sbin/netconfig: line 52: /dev/fd/63: No such file or directory
Although eth0 in the appliance did received a configuration
2: eth0:
http://bugzilla.opensuse.org/show_bug.cgi?id=1190501
http://bugzilla.opensuse.org/show_bug.cgi?id=1190501#c1
--- Comment #1 from James Fehlig
http://bugzilla.opensuse.org/show_bug.cgi?id=1190501
http://bugzilla.opensuse.org/show_bug.cgi?id=1190501#c7
--- Comment #7 from James Fehlig
http://bugzilla.opensuse.org/show_bug.cgi?id=1190501
Al Cho
http://bugzilla.opensuse.org/show_bug.cgi?id=1190501
http://bugzilla.opensuse.org/show_bug.cgi?id=1190501#c18
--- Comment #18 from OBSbugzilla Bot
participants (1)
-
bugzilla_noreply@suse.com