Bug 1208445
Summary: | session networking limited to user interfaces only | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Vladimir Benes <vbenes> | ||||
Component: | libvirt | Assignee: | Michal Privoznik <mprivozn> | ||||
Status: | CLOSED NOTABUG | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 7.2 | CC: | mprivozn, rbalakri, vbenes, zeenix | ||||
Target Milestone: | rc | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1214294 (view as bug list) | Environment: | |||||
Last Closed: | 2015-05-05 17:22:48 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1214294 | ||||||
Attachments: |
|
Description
Vladimir Benes
2015-04-02 09:42:48 UTC
Zeeshan, how does gnome-boxes decide on configuring guest network? In my private IRC conversation I saw domains are using 'user' type interface: <interface type='user'> <mac address='52:54:00:98:92:aa'/> <model type='rtl8139'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> This is very minimalistic interface provided by qemu which merely knows TCP and UDP, no ICMP. Vladimir, can you please attach domain XML for transcription sake? (In reply to Michal Privoznik from comment #1) > Zeeshan, how does gnome-boxes decide on configuring guest network? In my > private IRC conversation I saw domains are using 'user' type interface: private conversation with Vladimir, should that be. Created attachment 1010093 [details]
xml dump of affected vm
(In reply to Michal Privoznik from comment #2) > (In reply to Michal Privoznik from comment #1) > > Zeeshan, how does gnome-boxes decide on configuring guest network? In my > > private IRC conversation I saw domains are using 'user' type interface: > > private conversation with Vladimir, should that be. Boxes checks if: * virbr0 iface is available and up. * greps for "^allow.*virbr0" line in /etc/qemu/bridge.conf. If these checks out, Boxes adds a bridge network to new VMs, user-mode network otherwise. (In reply to Zeeshan Ali from comment #4) > (In reply to Michal Privoznik from comment #2) > > (In reply to Michal Privoznik from comment #1) > > > Zeeshan, how does gnome-boxes decide on configuring guest network? In my > > > private IRC conversation I saw domains are using 'user' type interface: > > > > private conversation with Vladimir, should that be. > > Boxes checks if: > > * virbr0 iface is available and up. > * greps for "^allow.*virbr0" line in /etc/qemu/bridge.conf. Aha! This may be the problem. Reporter has file under different location: /etc/qemu-kvm/bridge.conf But with the same content. Could this be a bug? (In reply to Michal Privoznik from comment #5) > (In reply to Zeeshan Ali from comment #4) > > (In reply to Michal Privoznik from comment #2) > > > (In reply to Michal Privoznik from comment #1) > > > > Zeeshan, how does gnome-boxes decide on configuring guest network? In my > > > > private IRC conversation I saw domains are using 'user' type interface: > > > > > > private conversation with Vladimir, should that be. > > > > Boxes checks if: > > > > * virbr0 iface is available and up. > > * greps for "^allow.*virbr0" line in /etc/qemu/bridge.conf. > > Aha! This may be the problem. Reporter has file under different location: > /etc/qemu-kvm/bridge.conf > > But with the same content. Could this be a bug? Yes, this seems to be one part of the problem. Boxes should look into qemu-kvm directory as well but there is one more thing that prevents non-user networking and that is virbr0 in down state. If I create any system broker machine and start it I can see virbr0 in up state with vnet0 or similar network attached and whole virbr0 up and running. Now I am able to create a machine with non-user networking (via tap0 device). In Fedora 21 there is a tap0 device created after VM is created in Boxes and virbr0 goes up as well. Tap0 creation doesn't happen in RHEL7 unless other system broker machine is up and running (virbr0 up). I am not sure if this second part of upping virbr0 (and attaching a tap0 into it) is a matter of libvirt or Boxes as well. (In reply to Vladimir Benes from comment #6) > (In reply to Michal Privoznik from comment #5) > > (In reply to Zeeshan Ali from comment #4) > > > (In reply to Michal Privoznik from comment #2) > > > > (In reply to Michal Privoznik from comment #1) > > > > > Zeeshan, how does gnome-boxes decide on configuring guest network? In my > > > > > private IRC conversation I saw domains are using 'user' type interface: > > > > > > > > private conversation with Vladimir, should that be. > > > > > > Boxes checks if: > > > > > > * virbr0 iface is available and up. > > > * greps for "^allow.*virbr0" line in /etc/qemu/bridge.conf. > > > > Aha! This may be the problem. Reporter has file under different location: > > /etc/qemu-kvm/bridge.conf > > > > But with the same content. Could this be a bug? > > Yes, this seems to be one part of the problem. Boxes should look into > qemu-kvm directory If you haven't already, please file a bug a separate bug about this. > as well but there is one more thing that prevents > non-user networking and that is virbr0 in down state. I think that is likely some libvirt issue. Maybe we can have this bug for that and re-assign to libvirt? (In reply to Zeeshan Ali from comment #7) > (In reply to Vladimir Benes from comment #6) > > (In reply to Michal Privoznik from comment #5) > > > (In reply to Zeeshan Ali from comment #4) > > > > (In reply to Michal Privoznik from comment #2) > > > > > (In reply to Michal Privoznik from comment #1) > > > > > > Zeeshan, how does gnome-boxes decide on configuring guest network? In my > > > > > > private IRC conversation I saw domains are using 'user' type interface: > > > > > > > > > > private conversation with Vladimir, should that be. > > > > > > > > Boxes checks if: > > > > > > > > * virbr0 iface is available and up. > > > > * greps for "^allow.*virbr0" line in /etc/qemu/bridge.conf. > > > > > > Aha! This may be the problem. Reporter has file under different location: > > > /etc/qemu-kvm/bridge.conf > > > > > > But with the same content. Could this be a bug? > > > > Yes, this seems to be one part of the problem. Boxes should look into > > qemu-kvm directory > > If you haven't already, please file a bug a separate bug about this. > > > as well but there is one more thing that prevents > > non-user networking and that is virbr0 in down state. > > I think that is likely some libvirt issue. Maybe we can have this bug for > that and re-assign to libvirt? Agreed. Vladimir, can you please attach libvirt logs so that I can trace down the issue? http://wiki.libvirt.org/page/DebugLogs hmm, somehow cannot reproduce now, after symlinking /etc/qemu/bridge.conf with /etc/qemu-kvm/bridge.conf I can successfully start machine and tap0 device is created and virbr0 goes up. Closing now, will reopen if it occurs again. (In reply to Vladimir Benes from comment #9) > hmm, somehow cannot reproduce now, after symlinking /etc/qemu/bridge.conf > with /etc/qemu-kvm/bridge.conf I can successfully start machine and tap0 > device is created and virbr0 goes up. > Closing now, will reopen if it occurs again. Well having to symlink is also a bug. Oh seems you filed another bug for symlink issue. Sorry. https://bugzilla.redhat.com/show_bug.cgi?id=1214294 |