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

Guests networking using driver domain


  • To: "xen-users@xxxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxxx>, "xen-users@xxxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrea Stevanato <Andrea.Stevanato@xxxxxxxxxxxxxxx>
  • Date: Thu, 3 Mar 2022 10:32:02 +0000
  • Accept-language: en-US
  • 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=qghX4GkQYS/pKg0A3OFRYsoSP7wFSu6t9l4sitEPmsE=; b=Nn4gKIwyt0HlRyhmpbuCSEdJBwCxS7E0Fu6ci5uvCktVvC6oMR8Dz8oG+EU0g6gsxasn8CjV7JvNDBbgrb6L3U2QCpQT8YGnrrz9KJTJ1NpbobcA95yfuzYUcDv6uzlxpTfGx73BxA5ib5MZQnYjVDH29PgLGL7A0sbT5TVLYuevhC+EBjGqeaJ9W+uMZLI+BGdUWgAWcI2hlD6CTi/Mp6N87qZ0BR1Ik5/ALrbAli//gBXdFE2z43JyweoQpfbczhS/LXW2J+wxGOUyFIP+ysmYY+MLYzmTnmlJ/SRNkrYy4WeGoZQNFTcHef4pzZUQYuScqlKx/o9SXuG0sszhFA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J5knbLiYmxruC50tq9ExBfrjpElrqpH2S4Ut03bSpluJMGuSQ+IvOCvokylRCYcZT5xqk4Np9Y9wjr05OIEAGMTKVqSfQWQzIBXo/ljBqdV51FqYDcSAVtsNJlvJZnGUdShnkfHULutcaT/w4e4moXS5e8i27wCCgDYkKxMaLHP4i1DoCoqim0NXIZ8Ik8UzT1GsmonAwhFWiAO3zX72OusMOh41p6bGdEreERwipTMmCxG0Tc8hM6FP3J3gU9BGNPgYZm1Zrelh+qzuDwDeA+/HpPwTwwLyN2qKBcY5fIAMQyQT552M30yXMQNm12z8r9p0WkoUGNaLT958fblM1w==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=santannapisa.it;
  • Delivery-date: Thu, 03 Mar 2022 10:33:06 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>
  • Suggested_attachment_session_id: 6864cd2e-6a83-2fb0-6e5e-70a38b53fa28
  • Thread-index: AQHYLugrGx0SY50f5Eyfyg7NlOqgLA==
  • Thread-topic: Guests networking using driver domain

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

 


Rackspace

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