xc l
2011-Jun-09 11:07 UTC
[Xen-users] can xen partition physical network bandwidth for guest VMs
Hello Can xen partition physical network bandwidth for guest VMs. For example,a physical server`s network bandwidth is 1G,can I allocate 200M to domain1 and 300M to domain2.......? Many thanks _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Steve Allison
2011-Jun-09 11:13 UTC
Re: [Xen-users] can xen partition physical network bandwidth for guest VMs
On 09/06/2011 12:07, xc l wrote:> Hello > > Can xen partition physical network bandwidth for guest VMs. > For example,a physical server`s network bandwidth is 1G,can I allocate > 200M to domain1 and 300M to domain2.......? > > Many thanks/lists.xensource.com/xen-usersI don''t think Xen can do this. However this shouldn''t be hard to implement using the standard linux tc filter. If you label your virtual interface names so they remain static ( vifname=xxxx ) then you can use tc to create a QoS on the interface resulting in what you requested. -- May the ping be with you .. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Alexandre Chapellon
2011-Jun-09 11:58 UTC
Re: [Xen-users] can xen partition physical network bandwidth for guest VMs
Le 09/06/2011 13:13, Steve Allison a écrit :> On 09/06/2011 12:07, xc l wrote: >> Hello >> >> Can xen partition physical network bandwidth for guest VMs. >> For example,a physical server`s network bandwidth is 1G,can I >> allocate 200M to domain1 and 300M to domain2.......? >> >> Many thanks/lists.xensource.com/xen-users > > I don''t think Xen can do this. However this shouldn''t be hard to > implement using the standard linux tc filter. > > If you label your virtual interface names so they remain static ( > vifname=xxxx ) then you can use tc to create a QoS on the interface > resulting in what you requested. >Even better, using a vif-network wrapper script in /etc/xen/xen-config.sxp would allow you to set up correct tc filter with dynamic vif names... to be tried. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Steve Allison
2011-Jun-09 15:26 UTC
Re: [Xen-users] can xen partition physical network bandwidth for guest VMs
On 09/06/2011 12:58, Alexandre Chapellon wrote:> Le 09/06/2011 13:13, Steve Allison a écrit : >> On 09/06/2011 12:07, xc l wrote: >>> Hello >>> >>> Can xen partition physical network bandwidth for guest VMs. >>> For example,a physical server`s network bandwidth is 1G,can I >>> allocate 200M to domain1 and 300M to domain2.......? >>> >>> Many thanks/lists.xensource.com/xen-users >> >> I don''t think Xen can do this. However this shouldn''t be hard to >> implement using the standard linux tc filter. >> >> If you label your virtual interface names so they remain static ( >> vifname=xxxx ) then you can use tc to create a QoS on the interface >> resulting in what you requested. >> > Even better, using a vif-network wrapper script in > /etc/xen/xen-config.sxp would allow you to set up correct tc filter > with dynamic vif names... to be tried.This would be a better idea actually so the rules are created with the interface. -- May the ping be with you .. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users