Bug 514228
Summary: | Guests are denied access to network | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Gianluca Sforna <giallu> |
Component: | virt-manager | Assignee: | Daniel Berrangé <berrange> |
Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 11 | CC: | berrange, crobinso, hbrock, markmc, virt-maint |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-08-18 11:16:51 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Gianluca Sforna
2009-07-28 13:35:30 UTC
Thanks for the report What version of virt-manager, libvirt etc. is this? Could you post the output of some of these commands? https://fedoraproject.org/wiki/Reporting_virtualization_bugs#Networking I'm on an updated F11: rpm -qa |grep virt python-virtinst-0.400.3-8.fc11.noarch libvirt-python-0.6.2-13.fc11.x86_64 virt-manager-0.7.0-5.fc11.x86_64 virt-viewer-0.0.3-6.fc11.x86_64 libvirt-0.6.2-13.fc11.x86_64 output from the other commands: [giallu@bingo ~]$ virsh net-list --all Name State Autostart ----------------------------------------- [giallu@bingo ~]$ brctl show bridge name bridge id STP enabled interfaces pan0 8000.000000000000 no [giallu@bingo ~]$ sysctl net.bridge.bridge-nf-call-iptables net.bridge.bridge-nf-call-iptables = 1 [giallu@bingo ~]$ sudo iptables -L -v -n Chain INPUT (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 391K 314M ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED 0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 15 1296 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22 20 6734 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited Chain OUTPUT (policy ACCEPT 308K packets, 41M bytes) pkts bytes target prot opt in out source destination [giallu@bingo ~]$ ps -ef | grep dnsmasq giallu 8143 7834 0 16:32 pts/2 00:00:00 grep dnsmasq [giallu@bingo ~]$ ifconfig -a eth0 Link encap:Ethernet HWaddr 00:15:B7:72:9C:F2 UP BROADCAST RUNNING 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:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Memory:ffcc0000-ffce0000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:102 errors:0 dropped:0 overruns:0 frame:0 TX packets:102 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:20062 (19.5 KiB) TX bytes:20062 (19.5 KiB) pan0 Link encap:Ethernet HWaddr 9A:2E:D8:7A:8C:4F 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) wlan0 Link encap:Ethernet HWaddr 00:1D:E0:95:7C:29 inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::21d:e0ff:fe95:7c29/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:399054 errors:0 dropped:0 overruns:0 frame:0 TX packets:308394 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:322732892 (307.7 MiB) TX bytes:51483631 (49.0 MiB) wmaster0 Link encap:UNSPEC HWaddr 00-1D-E0-95-7C-29-A0-C8-00-00-00-00-00-00-00-00 UP BROADCAST RUNNING 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:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) [giallu@bingo ~]$ cat /proc/sys/net/ipv4/ip_forward 0 (In reply to comment #0) > Additionally, using virsh to add: > > <interface type='bridge'> > <mac address='54:52:00:49:73:9a'/> > <source bridge='br0'/> > </interface> (In reply to comment #2) > [giallu@bingo ~]$ brctl show > bridge name bridge id STP enabled interfaces > pan0 8000.000000000000 no You're trying to attach the interface to the 'br0' bridge, but there is no such bridge If you follow the instructions here to set up the bridge, I think it should work: http://wiki.libvirt.org/page/Networking#Fedora.2FRHEL_Bridging Who is supposed to create the br0 or virbr0 interfaces? I mean, I'm not really sure how I managed to get into this problem, but surely creating a KVM virtual machine with virt-manager should add a virtual ethernet adapter for the VM out of the box. Right now, any new machine I create can't access the network which does not look right. (In reply to comment #4) > Who is supposed to create the br0 or virbr0 interfaces? The virbr0 interface is created by libvirtd and is available by default on all machines. Try: $> virsh net-start default $> virsh net-autostart default br0 OTOH must be created explicitly by the user using the instructions I posted above. Ok, then since I'm not really trying to use br0 but I would be happy enough with a OOTB experience, I'll try to get virbr0 working, which is apparently the problem I'm facing here: # virsh net-start default error: failed to get network 'default' error: Network not found: no network with matching name # service libvirtd status libvirtd (pid 2008) is running... Sounds like the default network was deleted somehow Pretty sure this isn't a real bug, it's working fine here If you can reproduce how this came about, please do re-open Thanks |