Showing posts with label Virtualization. Show all posts
Showing posts with label Virtualization. Show all posts

Wednesday, January 2, 2013

Repairing Unable To RDP To A Parallels Virtuozzo Container

Virtuozzo containers uses it's masternode's operating system files in part to run. Because of this, Windows Updates or other changes can cause it to not function properly.

One common issue is RDP suddenly not working. Luckily it's rather trivial to repair.

First step is to RDP to your Virtuozzo master node.

Second step is to open a cmd window and then enter each of these commands one line at a time (substitute the actual container ID in place of CT_ID):
vzfsctl lnkctl CT_ID --link c:\vz\private\CT_ID\root\windows\system32\drivers\rdpwd.sys --dst \windows\system32\drivers\rdpwd.sys --system

vzfsctl lnkctl CT_ID --link c:\vz\private\CT_ID\root\windows\system32\drivers\RdpDD.sys --dst \windows\system32\drivers\RdpDD.sys --system

vzfsctl lnkctl CT_ID --link c:\vz\private\CT_ID\root\windows\system32\drivers\termdd.sys --dst \windows\system32\drivers\termdd.sys --system

vzfsctl lnkctl CT_ID --link c:\vz\private\CT_ID\root\windows\system32\termsrv.dll --dst \windows\system32\termsrv.dll --system
If the file linking was your problem you should immediately be able to RDP to the container once again.

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.

Wednesday, March 14, 2012

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