Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-46601

libvirt documentation of "user" network interface states exact IP address is used with libslirp

    • rhel-sst-virtualization-networking
    • ssg_virtualization
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • All
    • None

      This specific issue was reported as point 1. in the description of https://issues.redhat.com/browse/RHEL-7306, and it becomes rather relevant now because of https://issues.redhat.com/browse/RHEL-45241: libvirt documentation states that the "address" attribute from an "ip" element inside a "user" (network) interface is used by QEMU (via libslirp) as address in the guest.

      However, that's not the case: if the user use a network identifier (say, 169.254.0.0, with the subnet mask being 255.255.0.0) in the "address" attribute, libslirp uses this "address" (not a usable IP address) as prefix, rather, and replaces it with 169.254.2.15.

      passt, however, doesn't: the address will be configured as 169.254.0.0. So, if a user takes the (wrong) libslirp example and changes the back-end to passt, the address will actually change, and unexpectedly so.

      This should be fixed by changing the example in the documentation, or clarifying this aspect.

              lstump@redhat.com Laine Stump
              sbrivio@redhat.com Stefano Brivio
              virt-maint virt-maint
              Yalan Zhang Yalan Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated: