lejeczek
2017-Oct-24 14:52 UTC
[libvirt-users] net interface direct - no IP communication between guest & host
hi everyone I wonder why, when I attach an interface like this: virsh # attach-interface --domain win10Ent --type direct --source nm-team --config --persistent --model virtio host cannot ip ping the guest and vice versa, yet guest can ping other nodes(outside of its host, connected via phys net via a switch) Would you know? I thought maybe routing on the host, so I did: $ route add -host 192.168.2.222 dev nm-team but to no avail. I wonder if it's lower layer, arp kernel bits? thanks, L.
Daniel P. Berrange
2017-Oct-25 07:05 UTC
Re: [libvirt-users] net interface direct - no IP communication between guest & host
On Tue, Oct 24, 2017 at 03:52:52PM +0100, lejeczek wrote:> hi everyone > > I wonder why, when I attach an interface like this: > > virsh # attach-interface --domain win10Ent --type direct --source nm-team > --config --persistent --model virtio > > host cannot ip ping the guest and vice versa, yet guest can ping other > nodes(outside of its host, connected via phys net via a switch) > > Would you know? > > I thought maybe routing on the host, so I did: > $ route add -host 192.168.2.222 dev nm-team > > but to no avail. > > I wonder if it's lower layer, arp kernel bits?I expect you'll be hitting this unfortunate gotcha: https://wiki.libvirt.org/page/TroubleshootMacvtapHostFail Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
lejeczek
2017-Nov-01 10:23 UTC
Re: [libvirt-users] net interface direct - no IP communication between guest & host
On 25/10/17 08:05, Daniel P. Berrange wrote:> On Tue, Oct 24, 2017 at 03:52:52PM +0100, lejeczek wrote: >> hi everyone >> >> I wonder why, when I attach an interface like this: >> >> virsh # attach-interface --domain win10Ent --type direct --source nm-team >> --config --persistent --model virtio >> >> host cannot ip ping the guest and vice versa, yet guest can ping other >> nodes(outside of its host, connected via phys net via a switch) >> >> Would you know? >> >> I thought maybe routing on the host, so I did: >> $ route add -host 192.168.2.222 dev nm-team >> >> but to no avail. >> >> I wonder if it's lower layer, arp kernel bits? > I expect you'll be hitting this unfortunate gotcha: > > https://wiki.libvirt.org/page/TroubleshootMacvtapHostFailreally nice pointer, thanks. So I changed some bits, NIC for quest now is: vnet2 bridge 192-168-2-0 virtio and network is: <network> <name>192-168-2-0</name> <uuid>4e03af62</uuid> <forward mode='bridge'/> <bridge name='nm-bridge1'/> </network> and the host's bridge(nm-bridge1) comprise of one net-team device which builds on two phys NICs. And... the problem remains the same - other hosts/node(via a switch to which nm-team is connected) can get to the quest but the host itself cannot(and vice versa) So no "macvtap" but still does not work.> > Regards, > Daniel
Maybe Matching Threads
- Re: net interface direct - no IP communication between guest & host
- [Bridge] device eth0 is already a member of a bridge; can't enslave it to bridge Net6
- Solarflare SFC9000 direct connection
- Failing to start or create VM, cannot connect to hypervisor host
- Re: blockcommit of domain not successfull