Showing posts with label Xen. Show all posts
Showing posts with label Xen. Show all posts

Monday, September 8, 2014

Change Clock Date Time Sync On Xen Linux VPS

Set the following in sysctl.conf on your VPS. This will allow your VPS to have a clock that is not forcibly synced with the host node.
xen.independent_wallclock = 1

Wednesday, May 23, 2012

Block Port 25 On SolusVM/Xen With IPtables

SolusVM (at the time of this writing) has no internal method for firewalling customers containers. I find it often necessary to restrict ports on customers (normally port 25) and after trial and error came up with some rules for IPtables to facilitate this at the hardware node level. SolusVM uses the FORWARD chain inside of IPtables so all you need to do is:
iptables -I FORWARD 1 -d $ip -p tcp -m tcp --dport 25 -j DROP
iptables -I FORWARD 1 -s $ip -p tcp -m tcp --dport 25 -j DROP
...where $ip is the IP you are restricting port traffic on. The above rules prevent all IN/OUT port 25 traffic to a particular host.

Friday, November 4, 2011

Working With Xen Containers

To list all the containers on a Xen Node
xm list

To start a container on a Xen Node
xm start vm###

To stop a container on a Xen Node
xm shutdown vm###

To reboot a container on a Xen Node
xm reboot vm###

To stop all containers on a Xen Node
xm shutdown -a -w