[Bug 835949] New: Networking (dhcp) fails under guestfs
https://bugzilla.novell.com/show_bug.cgi?id=835949 https://bugzilla.novell.com/show_bug.cgi?id=835949#c0 Summary: Networking (dhcp) fails under guestfs Classification: openSUSE Product: openSUSE Factory Version: 13.1 Milestone 4 Platform: x86-64 OS/Version: openSUSE 12.3 Status: NEW Severity: Normal Priority: P5 - None Component: KVM AssignedTo: ohering@suse.com ReportedBy: mlatimer@suse.com QAContact: jdouglas@suse.com Found By: Development Blocker: --- Guestfish should provide networking support with the "set-network true" option. This does provide the virtual interface hardware, but the af_packet module is missing in the initrd, so dhcpcd fails: # guestfish
add_drive "/var/lib/libvirt/images/TestPool/disk0-sles.qcow2" "format:qcow2" set-network true launch mount /dev/sda2 / sh "ip addr show 1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000 link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff sh "dhcpcd eth0" libguestfs: error: sh: err, eth0: socket: Address family not supported by protocol err, eth0: sendto: Bad file descriptor err, eth0: timed out err, eth0: socket: Address family not supported by protocol err, eth0: sendto: Bad file descriptor err, eth0: socket: Address family not supported by protocol err, eth0: sendto: Bad file descriptor
Adding af_packet to the initrd (through '#%modules: dm-mod af_packet' in libguestfs.mkinitrd.boot.sh), allows dhcpcd to work, and a NAT'ed address is obtained properly: # guestfish
add_drive "/var/lib/libvirt/images/TestPool/disk0-sles.qcow2" "format:qcow2" set-network true launch mount /dev/sda2 / sh "ip addr show 1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000 link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff sh "dhcpcd eth0" sh "ip addr show" 1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff inet 169.254.2.15/16 brd 169.254.255.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::5054:ff:fe12:3456/64 scope link valid_lft forever preferred_lft forever
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=835949 https://bugzilla.novell.com/show_bug.cgi?id=835949#c1 Olaf Hering <ohering@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Olaf Hering <ohering@suse.com> 2013-08-22 14:51:04 CEST --- I have added af_packet, ipv6 and nfs modules. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=835949 https://bugzilla.novell.com/show_bug.cgi?id=835949#c2 --- Comment #2 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-08-23 03:00:34 CEST --- This is an autogenerated message for OBS integration: This bug (835949) was mentioned in https://build.opensuse.org/request/show/196001 Factory / libguestfs -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=835949 https://bugzilla.novell.com/show_bug.cgi?id=835949#c3 --- Comment #3 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-09-23 16:00:10 CEST --- This is an autogenerated message for OBS integration: This bug (835949) was mentioned in https://build.opensuse.org/request/show/200193 Factory / libguestfs -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com