Mailing List Archive

virtual interface problems
Hi Everyone,

Hope you are all well..

I have some problems to configure bandwidth monitoring for domains in an
xen vps......

Suppose we have three domains..... The ifconfig entry will something
like this

vif1.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3691 errors:0 dropped:0 overruns:0 frame:0
TX packets:412527 errors:0 dropped:776 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:435348 (425.1 Kb) TX bytes:24588202 (23.4 Mb)

vif2.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4894 errors:0 dropped:0 overruns:0 frame:0
TX packets:412178 errors:0 dropped:667 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:477402 (466.2 Kb) TX bytes:25068366 (23.9 Mb)

vif3.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:64606 errors:0 dropped:0 overruns:0 frame:0
TX packets:376113 errors:0 dropped:610 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:18405141 (17.5 Mb) TX bytes:73257575 (69.8 Mb)

Only the specific part taken.... When we stop and start all these
domains it will be vif4.0, vif5.0, vif6.0 and if we restrat once again
it would take the next three digits and will be going up. Only a system
reboot would bring this to its first stage...

So really bandwidth monitoring seems to be a horrible task... I use the
contents of /proc/net/dev as mrtg collects data from there... So if i
restart a domain i must make related changes in mrtg config files....

I submitted this earlier to mailing list and got this reply..


With recent 2.0-testing you can put vifname in the config file:

vif=[ 'mac=aa:00:00:4b:a0:c1, bridge=xen-br0, vifname=vif-example.0' ]

So then it would have a device always called vif-example.0.

Seems good.. But since we are using xen in a production environment xen-2.0-testing shouldn't be an alternative for us. Let me know whether this feature will be included in xen-3.0 stable or not?

Thanks
Sadique



_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
virtual interface problems [ In reply to ]
Hi Everyone,

Hope you are all well..

I have some problems to configure bandwidth monitoring for domains in an
xen vps......

Suppose we have three domains..... The ifconfig entry will something
like this

vif1.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3691 errors:0 dropped:0 overruns:0 frame:0
TX packets:412527 errors:0 dropped:776 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:435348 (425.1 Kb) TX bytes:24588202 (23.4 Mb)

vif2.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4894 errors:0 dropped:0 overruns:0 frame:0
TX packets:412178 errors:0 dropped:667 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:477402 (466.2 Kb) TX bytes:25068366 (23.9 Mb)

vif3.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:64606 errors:0 dropped:0 overruns:0 frame:0
TX packets:376113 errors:0 dropped:610 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:18405141 (17.5 Mb) TX bytes:73257575 (69.8 Mb)

Only the specific part taken.... When we stop and start all these
domains it will be vif4.0, vif5.0, vif6.0 and if we restrat once again
it would take the next three digits and will be going up. Only a system
reboot would bring this to its first stage...

So really bandwidth monitoring seems to be a horrible task... I use the
contents of /proc/net/dev as mrtg collects data from there... So if i
restart a domain i must make related changes in mrtg config files....

I submitted this earlier to mailing list and got this reply..


With recent 2.0-testing you can put vifname in the config file:

vif=[ 'mac=aa:00:00:4b:a0:c1, bridge=xen-br0, vifname=vif-example.0' ]

So then it would have a device always called vif-example.0.

Seems good.. But since we are using xen in a production environment
xen-2.0-testing shouldn't be an alternative for us. Let me know whether
this feature will be included in xen-3.0 stable or not?

Thanks Sadique




_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Re: virtual interface problems [ In reply to ]
On Fri, Jul 15 '05 at 23:05, sadique@vanillanetworks.com wrote:
> With recent 2.0-testing you can put vifname in the config file:
>
> vif=[ 'mac=aa:00:00:4b:a0:c1, bridge=xen-br0, vifname=vif-example.0' ]

This works fine with 2.0.6
--
Goetz Bock (c) 2005 as blacknet.de - Munich - Germany /"\
IT Consultant Creative Commons secure mobile Linux everNETting \ /
X
ASCII Ribbon Campaign against HTML email & microsoft attachments / \

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users