[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guests networking using driver domain


  • To: Felix Kuperjans <felix@xxxxxxxxxxxxxxxxxx>, "xen-users@xxxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrea Stevanato <andrea.stevanato@xxxxxxxxxxxxxxx>
  • Date: Mon, 7 Mar 2022 11:27:32 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=santannapisa.it; dmarc=pass action=none header.from=santannapisa.it; dkim=pass header.d=santannapisa.it; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=srZqLQ+gHxU3nV3KdnAb4ADuP7mtsh+U+QnRI7oUlP4=; b=XTvuMH5vI+2CtIay0uFPpgPp/oaMgQBHzxLKFwnnRTLS4QDIYSsdgIK4dGHIu+rHXVgq5SAj8eNVRKQsSw+9JB+w9HcxmVpmyw47Dgp192JVCb/Tx/JhOka+QNwQ8h7c5ZNv2O47oKU3FOnIi4M8IRLaqgVLUmKv0cEem2IDrl5e3y1uSPHXXLWZpHJV7f9kaznwl8+JDtHy4VAsT6j4hf+2mEpETg87fRFhfnmrNAehBkc28O2HDaS1eQZSBNSgrQN8STVJYUokwomkzWCIRgv8Zl4IZzcv7Oh52+Kxj8AdhZsWpMtD+aJAD1oGNOLUiZI+FLOIzwYjFw/bkYxeGw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j04JPbUJ597tT0p/cTPm6gYu5G2Z0BKjogZqLnRs7YGONan4BrS0dMAx9XZ/5BVjo+lMWh2HagCCIeR2W6+WlegTe1WVUW0j1vNMQIghhQsBA/yvMJ+LTYibBSqdvQOc4kxtAOOrGuAg3cB8fpxGRl58GJi2FQwf4yuKD1bAgrtvT/B5Iw960YbUBR59z82EclzKJ8RgBrEVZrK53AzBx6+uCztaPgxYYxUJfXALLjmjRP9z1CKkfuN3FckU2OWi0lh5NPrVTwm8Y/iYthlfL8wEaeF0gDMLvcov4f8A81xwa+Z/BvSnLJidhx8sl4BPSVSwl4bG3Kq6ziP5ZJtZ+Q==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=santannapisa.it;
  • Delivery-date: Mon, 07 Mar 2022 10:28:34 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>

On 3/3/22 23:37, Felix Kuperjans wrote:
Am 03.03.22 um 11:32 schrieb Andrea Stevanato:
Hi all,
I'm trying to configure two guests that can communicate with each other using a "virtual" network card exploiting the netback and netfront driver.

The first guest is created with the following configuration:

name    = "guest0"
kernel  = "/media/sd-mmcblk0p1/Image"
ramdisk = "/media/sd-mmcblk0p1/rootfs.cpio.gz"
extra   = "console=hvc0 rdinit=/sbin/init root=/dev/ram0"
memory  = 1024
vcpus   = 2

Once it is up and running, I create and setup the bridge:

# brctl addbr xenbr0
# ip addr add 10.0.3.1/24 dev xenbr0
# ip link set dev xenbr0 up

Then I configure the udhcpd server with the following configuration (/etc/udhcpd.conf):

start 10.0.3.15
end 10.0.3.254
interface xenbr0
option subnet 255.255.255.0

And start it with: `# udhcpd`​.

The second guest is created with the following configuration:

name    = "guest1"
kernel  = "/media/sd-mmcblk0p1/Image"
ramdisk = "/media/sd-mmcblk0p1/rootfs.cpio.gz"
extra   = "console=hvc0 rdinit=/sbin/init root=/dev/ram0"
memory  = 1024
vcpus   = 2
vif = [ 'bridge=xenbr0, backend=guest0' ]

Once it is up and running on the guest0 the new interface (vifX.0) is created correctly, however on the guest1 the eth0 interface is not present.

If I do the exact same thing on dom0, instead of guest0 (without attaching the eth0 to the bridge, since I do not need to reach outside), the eth0 on the guest is created correctly and get the 10.0.3.15 IP address.

What I'm doing wrong?

Andrea

Hi Andrea,

I think this might be related to problems with the VIF hotplugging on "guest0".

Since the vifX.0 on guest0 is successfully created, some of the hotplugging at least works, but maybe a failure to setup it correctly leads to the problem in "guest1".


A few questions for further investigation:

Is the vifX.0 device up and having "master xenbr0" (see ip link show)?

The vifX.0 do not have "master xenbr0".

If not, there is definitely a problem with the bridge hotplugging.

Which daemon handles the vif hotplugging? xl devd? is /etc/xen/xl.conf configured correctly (usually having vif.default.script="vif-bridge" and run_hotplug_scripts=1)?

The configuration file is all commented, actually also in dom0 it is the
same.

Do the hotplugging scripts exist, esp. /etc/xen/scripts/vif-bridge ? Can you see any log messages from this script in /var/log/xen/xen-hotplug.log?

Yes, the vif-bridge script exists. No, the /var/log/xen directory is empty.

Usually I would expect one of these to have a notable error causing the script to not be called or not run properly. Otherwise, some more log output from guest0 would be helpful, dmesg, log messages about the hotplugging, ...

Please have a look at https://lore.kernel.org/xen-devel/1d00a228-a699-5743-69ae-4dbadee5ebb9@xxxxxxxxxxxxxxx/T/#m50eed0b51f2fc8b0ac26bc269dd5119f83041dd0 where I posted the full
log of xl -vvv devd -F executed on guest0.

Best Regards
Felix

Cheers,
Andrea



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.