Gavin Spurgeon
2008-Jun-24 15:41 UTC
[Xen-users] Monitor/Restrict network traffic of XEN Client
Hi List, (Long time lecher, first time poster) Not sure if this is the best place to ask, but here goes.. I have a few test Guests on a Xen host, and I would like to start monitoring (and maybe restricting) the network traffic of the guests but not the Host. No I know this can be done with iptables, but I just wondered if anyone knew of a package or how-to to set this up with Xen on CentOS 5 ? If this is way OT, then please let me know and I will hunt for another list to post to... Thank You for your help... ----------------------------------------------------------------------- "The happiest of people don''t necessarily have the best of everything, they just make the most of everything that comes along their way.." Gavin Spurgeon. AKA DaGeek _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rudi Ahlers
2008-Jun-25 05:08 UTC
Re: [Xen-users] Monitor/Restrict network traffic of XEN Client
Gavin Spurgeon wrote:> Hi List, > > (Long time lecher, first time poster) > > Not sure if this is the best place to ask, but here goes.. > > I have a few test Guests on a Xen host, and I would like to start monitoring > (and maybe restricting) the network traffic of the guests but not the Host. > > No I know this can be done with iptables, but I just wondered if anyone knew > of a package or how-to to set this up with Xen on CentOS 5 ? > > If this is way OT, then please let me know and I will hunt for another list > to post to... > > Thank You for your help... > > ----------------------------------------------------------------------- > "The happiest of people don''t necessarily have the best of everything, > they just make the most of everything that comes along their way.." > Gavin Spurgeon. > AKA DaGeek > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >I know there''s a good howto on this subject on the OpenVZ forums, which will work the same for Xen as well. Check it out -- Kind Regards Rudi Ahlers CEO, SoftDux Web: http://www.SoftDux.com Check out my technical blog, http://blog.softdux.com for Linux or other technical stuff, or visit http://www.WebHostingTalk.co.za for Web Hosting stuff _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
So I give my users a weight equal to the amount of ram they buy. Right now, I''m doing this by hand... xm sched-credit -d test -w 64 in this case. works great. so, I was poking around thinking about atuomating this today... xm create --help-config gives me: --- cpu_weight=WEIGHT Set the new domain''s cpu weight. WEIGHT is a float that controls the domain''s share of the cpu. --- bootloader = "/usr/bin/pygrub" cpu_weight=64 memory = 64 name = "test" vif = [''vifname=test,ip=216.218.223.103,bridge=xenbr0,mac=aa:00:00:53:31:67'' ] disk = [ ''phy:/dev/boar_domU/test_boot,sda,w'', ''phy:/dev/boar_domU/test,sdb,w'' ] but it does nothing. [root@boar lsc]# xm sched-credit -d 2 {''cap'': 0, ''weight'': 256} this is on CentOS 5.1 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users