| Summary: | No support for IPv6 on virbr0 with NAT based network | ||
|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | Frank Crawford <frank> |
| Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
| Status: | CLOSED NOTABUG | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | berrange, clalancette, crobinso, dallan, dougsland, frank, itamar, jforbes, laine, libvirt-maint, veillard, virt-maint, xen-maint |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-16 13:30:16 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Frank Crawford
2012-03-04 03:56:53 UTC
Simply restarting libvirtd will *not* rebuild the network. You need to first net-destroy, then virsh net-start the network. Although I am normally running a locally-made upstream build of libvirt, I reinstalled the stock Fedora build to test this, and used your exact example (to assure there was no idiosyncracy about the address used, etc). Here is the output of "ifconfig virbr0":
virbr0 Link encap:Ethernet HWaddr 52:54:00:02:4D:8E
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
inet6 addr: fdd2:7aad:d478:8::1/64 Scope:Global
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Additionally, the bug you reference (Bug 501934) is ancient, and was filed prior to IPv6 support being added to libvirt (which happened in libvirt-0.8.7, Jan4, 2011 (Fedora 15 included libvirt-0.8.8, so it had IPv6 support) - one of the prerequisites of adding IPv6 support was specifically re-setting the sysctl parameter that bug discusses.
Please run "virsh net-destroy default; virsh net-start default" and see if you still get the same results. If you do, something is wrong with your system config at a different level (in which case libvirt should have logged an error). If not, this needs to be closed as NOTABUG.
Yes that fixed it. You can close this as NOTABUG. In my defence, it isn't clear in the documentation what to do to enable IPv6 in libvirt, just a lot of hints. Thanks for the quick assistance. That's a fair defence. I've reopened this BZ to reflect that the upstream doc should be better. If you have notes about what was required, even just a rough list, would you mind adding them to the wiki.libvirt.org so that it gets recorded for posterity? Unfortunately, no I don't have any information to add. I think the combination of the documentation of the networking options, virsh net-* and additional ipv6 support included since this BZ was filed is sufficient, so I'm closing as discussed above. |