Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540688 - app-emulation/libvirt with sys-apps/systemd-219 - guest cannot access network(?)
Summary: app-emulation/libvirt with sys-apps/systemd-219 - guest cannot access network(?)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-19 16:33 UTC by Ondřej Súkup
Modified: 2015-03-04 09:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xml definition of guest (cloud-admin.xml,1.75 KB, application/xml)
2015-02-20 17:22 UTC, Ondřej Súkup
Details
cloud-admin.net definition (cloud-admin.net.xml,374 bytes, application/xml)
2015-02-20 17:23 UTC, Ondřej Súkup
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ondřej Súkup 2015-02-19 16:33:34 UTC
After update to systemd-219 VM lost network connection to outside network

my network-xml:
 <network>
    <name>cloud-admin</name>
    <bridge name='cloudbr' stp='off' delay='0' />
    <mac address='52:54:00:AB:B1:77'/>
    <ip address='192.168.124.1' netmask='255.255.248.0'>
      <dhcp>
        <host mac="52:54:00:77:77:70" name="crowbar.virtual.cloud.suse.de" ip="192.168.124.10"/>
      </dhcp>
    </ip>
    <forward mode='nat'>
    </forward>
  </network>



Reproducible: Always

Steps to Reproduce:
1. emerge -uDN systemd
2. ssh virtual
3. ping anything other than 192.168.124.1

Actual Results:  
100% packet loose

Expected Results:  
0% packet loose
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-20 07:37:49 UTC
1) Please post your `emerge --info app-emulation/libvirt' output in a comment.
2) Please provide information about the guest network connection while using systemd-219.
Comment 2 Ondřej Súkup 2015-02-20 17:22:11 UTC
Created attachment 397072 [details]
xml definition of guest
Comment 3 Ondřej Súkup 2015-02-20 17:23:15 UTC
Created attachment 397074 [details]
cloud-admin.net definition
Comment 4 Ondřej Súkup 2015-02-20 17:23:53 UTC
Portage 2.2.17 (python 3.4.2-final-0, default/linux/amd64/13.0/no-emul-linux-x86/desktop, gcc-4.9.2, glibc-2.20-r2, 3.19.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.19.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    24710840 total,    308044 free
KiB Swap:   16000736 total,  15973516 free
Timestamp of repository gentoo: Fri, 20 Feb 2015 14:30:01 +0000
sh bash 4.3_p33-r1
ld GNU ld (Gentoo 2.25 p1.0) 2.25
app-shells/bash:          4.3_p33-r1::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.4.2::gentoo
dev-util/cmake:           3.1.0::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.10::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

mimi_vx
    location: /home/mimi/overlay/mimi_vx_overlay
    masters: gentoo
    priority: 0

suse-internal
    location: /home/mimi/overlay/gentoo-overlay
    masters: gentoo
    priority: 1

gamerlay
    location: /var/lib/layman/gamerlay
    sync-type: laymansync
    sync-uri: git://git.overlays.gentoo.org/proj/gamerlay.git
    masters: gentoo
    priority: 50

haskell
    location: /var/lib/layman/haskell
    sync-type: laymansync
    sync-uri: git://github.com/gentoo-haskell/gentoo-haskell.git
    masters: gentoo
    priority: 50

qt
    location: /var/lib/layman/qt
    sync-type: laymansync
    sync-uri: git://git.overlays.gentoo.org/proj/qt.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

x11
    location: /var/lib/layman/x11
    sync-type: laymansync
    sync-uri: git://git.overlays.gentoo.org/proj/x11
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildsyspkg candy cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.supp.name/ http://ftp.fi.muni.cz/pub/linux/gentoo/ rsync://ftp6.linux.cz/pub/linux/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/ rsync://gentoo.mirror.dkm.cz/gentoo/ http://gentoo.mirror.web4u.cz/ ftp://gentoo.mirror.web4u.cz/"
LANG="cs_CZ.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j11"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 avahi avx bash-completion berkdb branding bzip2 cairo cdda cdr cli cracklib crypt cups curl cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran fuse gdbm gif glamor gpg iconv infinality ipv6 jpeg kvm lcms libcanberra libkms libnotify lzma mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl nsplugin ogg openal opencl openexr opengl openmp opus pam pango pcre pdf phonon png policykit ppds pulseaudio python qt3support qt45 qt5 readline s3tc sdl session spell spice sqlite sse sse2 sse3 sse4_1 ssh ssl ssse3 startup-notification svg systemd tcpd theora threads tiff tools truetype udev udisks unicode upower usb vdpau vim vim-syntax virt-network vnc vorbis vpx webp x264 x265 xattr xcb xft xinerama xml xv xvid xvmc xz zeroconf zlib zsh-completion" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 multiboot pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="cs en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon r600 radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.4"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-emulation/libvirt-1.2.12::gentoo was built with the following:
USE="avahi caps fuse iscsi libvirtd lvm macvtap nls numa policykit qemu systemd udev vepa virt-network -audit -firewalld -glusterfs -lxc -nfs -openvz -parted -pcap -phyp -rbd -sasl (-selinux) -uml -virtualbox -wireshark-plugins -xen" ABI_X86="64"
Comment 5 Duncan 2015-02-23 07:33:23 UTC
I have a very similar issue with systemd-219, but with a MUCH more plain-jane desktop network config.

I have systemd network-device-renaming turned off here, so have only the standard eth0 and lo networks.

The critical bit, however, appears to be that I'm IPv4 *ONLY*, no IPv6 configured in the kernel.  Looking at your reported network settings, I see only IPv4 there also, and STRONGLY suspect it's the same problem.

Here's my /etc/systemd/eth0.network:

[Match]
Name=eth0

[Network]
Address=192.168.1.2/24
Gateway=192.168.1.1


That was originally it, and it worked with systemd-218 (including the -rNs).  Note that the addresses are IPv4, and there's nothing there about IPv6.

But here's what systemd-networkd (319) returned for networkd status (reformatted a bit for posting):

eth0: Cannot configure IPv6 forwarding for interface: no such file or directory
eth0: could not bring up interface: Address family not supported by protocol
eth0: could not setup route: Network is unreachable
eth0: link configured

But it wasn't...  IPv4 was apparently not even tried.

When 219 failed to bring up the network, based on the errors in the log I tried adding this to the [Network] section also, to no avail (tho back on 218-r3 it doesn't hurt, either):

DHCP=no
IPForward=no

In the systemd.network manpage, those settings have IPv6 options, and with particularly IPv6 forwarding obviously being attempted in the log, I thought maybe specifically disabling them might convince networkd to quit trying IPv6 and try IPv4.  Unfortunately...

So after looking around a bit more to see if I could figure out some other way to tell systemd to disable IPv6 and try IPv4 only, without success, I downgraded (binpkg) to systemd-218-r3, restarted systemd (systemctl daemon-reexec) and the various services lib_users said were using stale libs, and sure enough, with 218-r3, networking came right back up.

So check your systemctl status systemd-networkd, and see if the logged messages it spits out look like they're trying IPv6 only on an IPv4 only configured network, as mine did.  If so, it's the same breakage, and it's definitely NOT VM related or limited as it's my physical machine acting up here, no VMs at all.

If it's different breakage then I'll have to file a new bug, but given that your network config was IPv4 only also, I strongly suspect it's the same problem.  While 219 may do IPv4 along with IPv6, it appears to have problems if IPv6 isn't configured at all, and won't start IPv4 either in that case, at least for static IP assignments (IPv4 DHCP may still work).  In which case, bad upstream bug!

Also, assuming it appears to be the same bug for you, you may consider setting critical importance, since it kills IPv4-only networking, and most boxes are pretty broken without networking!

Duncan
Comment 6 Ondřej Súkup 2015-03-04 09:43:24 UTC
systemd 219 needs explicity define in [Network] section 'IPForward=yes'