Skip to contentSkip to conversation

allocating virtual nic to domain0

DISCUSSION Björn Sessler 4 participants 5 messages Jan 20, 2005

lore
Share & tools
lore
#0 lore raw

Hi Andrew,

i have a setup with 2 bridges, one on ethertap tap0 serving internal services like nfs for xenU domains and one on separate bridge eth0 for outside communication. so xen0/xenU internal traffic won't effect the bridge on eth0 and performance is much better... you need to define the mac in config-file, because with dynamic configuration both eth-devices in xenU will have same mac.

Rgds,
Bjoern

but i wasn't able to configure vtun/vtap with udev on my gentoo box.

Message: 7
Date: Wed, 19 Jan 2005 15:23:20 -0600
From: Andrew Theurer <[email protected]>
To: [email protected]
Subject: [Xen-devel] allocating virtual nic to domain0

Is it possible to allocate a virtual nic to domain0? I guess under normal conditions you would not need to do this, but I am trying some experiments, and it would be useful.

Thanks,

-Andrew Theurer

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl

#1 lore raw
Quoted 4 lines · Björn Sessler

Hi Andrew,

i have a setup with 2 bridges, one on ethertap tap0 serving internal services like nfs for xenU domains and one on separate bridge eth0 for outside communication. so xen0/xenU internal traffic won't effect the bridge on eth0 and performance is much better... you need to define the mac in config-file, because with dynamic configuration both eth-devices in xenU will have same mac.

Actually, what I wanted to do was assign a xen virtual front-end ethernet to domain0, in a similar manner that one would assign one to another domain (nics = 1 in config file). I can't seem to do that for domain0. It seems like the options for domain0 ae a bit limited.

I actually have noticed some wierdness with ARP resolution, and I had suspected the mac addresses. Linux in the past has has some not quite strict behavior when it came to ARP, and maybe that has also come into play.

Thanks,

-Andrew Theuer

Quoted 23 lines

Rgds,
Bjoern

but i wasn't able to configure vtun/vtap with udev on my gentoo box.

Message: 7
Date: Wed, 19 Jan 2005 15:23:20 -0600
From: Andrew Theurer <[email protected]>
To: [email protected]
Subject: [Xen-devel] allocating virtual nic to domain0

Is it possible to allocate a virtual nic to domain0? I guess under normal conditions you would not need to do this, but I am trying some experiments, and it would be useful.

Thanks,

-Andrew Theurer

Quoted 10 lines

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl

#2 lore raw
Quoted 7 lines · Andrew Theurer
Quoted 4 lines · Björn Sessler

Hi Andrew,

i have a setup with 2 bridges, one on ethertap tap0 serving internal services like nfs for xenU domains and one on separate bridge eth0 for outside communication. so xen0/xenU internal traffic won't effect the bridge on eth0 and performance is much better... you need to define the mac in config-file, because with dynamic configuration both eth-devices in xenU will have same mac.

Actually, what I wanted to do was assign a xen virtual front-end ethernet to domain0, in a similar manner that one would assign one to another domain (nics = 1 in config file). I can't seem to do that for domain0. It seems like the options for domain0 ae a bit limited.

Sorry, I don't understand what you mean. Are you saying no network interfaces are available in domain0? domain0 has access to all physical interfaces installed on your machine. For example, I have a 3c59x and a RTL8139 which are both accessible from domain0 as eth0 and eth1, respectively.

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl

#3 lore raw
Quoted 4 lines · Felipe Alfaro Solana
Quoted 2 lines · Andrew Theurer

Björn Sessler wrote:

Quoted 9 lines
Quoted 5 lines
Quoted 4 lines

Hi Andrew,

i have a setup with 2 bridges, one on ethertap tap0 serving internal services like nfs for xenU domains and one on separate bridge eth0 for outside communication. so xen0/xenU internal traffic won't effect the bridge on eth0 and performance is much better... you need to define the mac in config-file, because with dynamic configuration both eth-devices in xenU will have same mac.

Actually, what I wanted to do was assign a xen virtual front-end ethernet to domain0, in a similar manner that one would assign one to another domain (nics = 1 in config file). I can't seem to do that for domain0. It seems like the options for domain0 ae a bit limited.

Sorry, I don't understand what you mean. Are you saying no network interfaces are available in domain0? domain0 has access to all physical interfaces installed on your machine. For example, I have a 3c59x and a RTL8139 which are both accessible from domain0 as eth0 and eth1, respectively.

I would like to have one device per domain: domain0 has scsi controller1, domin2 has network adapter 1, etc. In order to do this, domain0 still needs network access.

-Andrew

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl

#4 lore raw
Quoted 3 lines

I would like to have one device per domain: domain0 has scsi controller1, domin2 has network adapter 1, etc. In order to do this, domain0 still needs network access.

Proper driver domains stuff. It'd certainly be a neat feature to have working. The current code is almost but not quite there :-(

1) AFAIK netfront currently looks for interfaces once, at init time (and it doesn't do this at all if it's dom0). Some code for dynamically reprobing for interfaces seems to be available but not enabled. Netfront would need to be changed to support dynamically adding interfaces and to still listen for interfaces being added, even if in dom0.
2) The control tools don't allow you to add a frontend interface to domain 0 (in fact, I don't know if they allow you to dynamically add net interfaces at all). Xend / xm would need tweaking so you could say "and now create another interface for this domain". This would send the appropriate messages to netback and the modified netfront to allow the interface to be connected. This could benefit domU domains too.

HTH,
Mark

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl