Skip to contentSkip to conversation

VIF Interfaces not transparent to all ethernet protocols?

DISCUSSION Armin Kemper 3 participants 4 messages Nov 8, 2004 – Nov 9, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I'm new to XEN and trying to migrate from UserMode Linux, because its much faster!!!

After having some trouble messing around with devfs (I'm using gentoo...) the VMs are booting fine.

My current UML Setup looks like this:

Main Machine:
linux-2.4.22-gentoo (using SKAS patch)
2 ethernet interfaces
eth0 connected to LAN
eth1 connected to DSL-Modem

The UML-VM has 2 virtual Interfaces
eth0 and eth1
apperaing as tap0 and tap1 on the main machine

the vm is connected to the lan via proxy-arp/routing (uml-stadard), the tap1 Interface ist bridged to eth1 on the main machine.

The UML-VM is running the rp-pppoe driver on eth1 (tap1)

My XEN 2.0 setup:
what I tried to do is creating 2 bridges (one for each physical interface) on the host, bridging the first VIF to the LAN and the second to the DSL-Modem.

when I start the rp-pppoe inside the vm, I can see the PPPoE packets appearing on the eth1 Interface (using tcpdump -nei eth1 inside the vm), but they never arrive at the corresponding vif on the main machine (using tcpdump -nei vif1.1).

The other way, sending PPPoE packets, to the vif1.1 from the main machine works. I can see them inside the VM, but the other direction seems to be blocked.

If I set an IP-address on the eth1 interface inside the vm, I can see IP/ARP packets to, but no PPPoE.

After searching the XEN Mailing lists and XEN Changlogs, I found that there has been a change in one of 1.x releases making changes to the handling of ethernet packets, but I can't find any similar code in the current release. This was in [email protected].

Sowhere in the XEN-docs I read that vif Interfaces are transparent, but in this case they aren't.

So my Question is:
I this a bug? Otherwise I cannot find anything in the docs about this. If this is the right behaviour, where can I change it?
I havent't found any filtering code neither in the backend nor the frontend driver.

Best regards,

Armin Kemper

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click

#1 lore raw
Quoted 5 lines

So my Question is:
I this a bug? Otherwise I cannot find anything in the docs about this. If this is the right behaviour, where can I change it?
I havent't found any filtering code neither in the backend nor the frontend driver.

This is unexpected behaviour at least. We really do expect the virtual networking to 'just work'. Maybe there's an unfortunate interaction with the ether bridge... If you find out more please let us know; we'd like to fix the problem and/or add a solution to the FAQ.

-- Keir

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click

#2 lore raw
In reply to Armin Kemper

Perhaps something's gone wrong due to your bridging setup. Have you adjusted the Xend network and vif-bridge scripts to do the right thing for your setup? If not, Xend will be trying its own bridge setup and possibly confusing thins as a result...

If not, you might want to a) try starting Xend without any preconfigured bridges to see if that works and then b) adapt the scripts to suit your setup properly.

HTH,
Mark

Quoted 68 lines · Armin Kemper

Hi,

I'm new to XEN and trying to migrate from UserMode Linux, because its much faster!!!

After having some trouble messing around with devfs (I'm using gentoo...) the VMs are booting fine.

My current UML Setup looks like this:

Main Machine:
linux-2.4.22-gentoo (using SKAS patch)
2 ethernet interfaces
eth0 connected to LAN
eth1 connected to DSL-Modem

The UML-VM has 2 virtual Interfaces
eth0 and eth1
apperaing as tap0 and tap1 on the main machine

the vm is connected to the lan via proxy-arp/routing (uml-stadard), the tap1 Interface ist bridged to eth1 on the main machine.

The UML-VM is running the rp-pppoe driver on eth1 (tap1)

My XEN 2.0 setup:
what I tried to do is creating 2 bridges (one for each physical interface) on the host, bridging the first VIF to the LAN and the second to the DSL-Modem.

when I start the rp-pppoe inside the vm, I can see the PPPoE packets appearing on the eth1 Interface (using tcpdump -nei eth1 inside the vm), but they never arrive at the corresponding vif on the main machine (using tcpdump -nei vif1.1).

The other way, sending PPPoE packets, to the vif1.1 from the main machine works. I can see them inside the VM, but the other direction seems to be blocked.

If I set an IP-address on the eth1 interface inside the vm, I can see IP/ARP packets to, but no PPPoE.

After searching the XEN Mailing lists and XEN Changlogs, I found that there has been a change in one of 1.x releases making changes to the handling of ethernet packets, but I can't find any similar code in the current release. This was in [email protected].

Sowhere in the XEN-docs I read that vif Interfaces are transparent, but in this case they aren't.

So my Question is:
I this a bug? Otherwise I cannot find anything in the docs about this. If this is the right behaviour, where can I change it?
I havent't found any filtering code neither in the backend nor the frontend driver.

Best regards,

Armin Kemper

Quoted 9 lines

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click

#3 lore raw
Quoted 3 lines

If not, you might want to a) try starting Xend without any preconfigured bridges to see if that works and then b) adapt the scripts to suit your setup properly.

I tried both of that, without any success.

My first attempt was adjusting the xend bridging script to create 2 bridges, one for each physical interface on the host.

Then I tried the VIF <-> eth (vm) transfer without any bridging setup, so that the VIF Interface did not have any routes/ips or bridges attached. Same behaviour.

PPPoE Packets from Domain1 eth1 to Domain0 vif1.1 never arrive,
PPPoE Packets from Domain0 vif1.1 to Domain1 eth1 work fine.

Maybe I'll give the pppoed instead of rp-pppoe a try. But the above has been tested with rp-pppoed on both sides.

So I cannot really understand whats going on, as I see it vif-Interfaces and the corresponding ethx-Interfaces in the vm should be like an ethernet "tunnel", everything send to the ethx inside the vm should appear on the vif interface and vice versa.

Is there any possibility to trace the network front- or backend drivers? Some kind of tcpdump in "between"?

-- Armin

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click