buy tb-500

Archive for the ‘Virtual Private Server (VPS)’ Category

Change hostname for VPS in Virtuozzo hardware node

Monday, March 7th, 2016

vzctl set VEID –hostname VEID.domain.local –save



RTNETLINK answers: Operation not supported – VPS

Friday, January 31st, 2014

If yo faced this error RTNETLINK answers: Operation not supported   in VPS while you restart the  “service network restart ”


then you need to apply the below solitions


1- Login to the main node and download the RPM as per the arch.

[root@node3 ~]# wget
2- cp iproute-2.6.32-23.el6.x86_64.rpm /vz/private/455113/fs/root/
3- vzctl enter 455113
4- rpm -qa |grep iproute
then you will get iproute-2.6.32-31.el6.x86_64 after waiting for while
5- rpm -e iproute-2.6.32-31.el6.x86_64 --nodeps
6- rpm -ivh iproute-2.6.32-23.el6.x86_64.rpm
7 - finally do service network restart  then you will see no more error
and if you ping the vps you will find it working fine


Expanding Virtual Hard Disks with Hyper-V

Sunday, January 22nd, 2012

One of the most frequent questions I see on forums and newsgroups that deal with virtualization is the age-old question of “I have used all the space inside a VHD hard disk. How do I expand the virtual hard disk to make room for additional data?”. Luckily for us, with Microsoft Hyper-V on Windows Server 2008, this is now possible. Hyper-V now adds the ability to increase the maximum size of a virtual hard disk.  Expanding the disk increases the storage capacity of a dynamically expanding virtual hard disk or a fixed virtual hard disk.

Monitoring Both Physical & Virtual Servers from One Console Are you able to identify precisely which processes are sucking up resources and slowing down your servers? Can you do this equally well over VM guests that VMotion?

OpManager also allows admins to remotely shut down problem-causing processes. With over 500 built-in monitors & 70 deep VMware metrics reported on, OpManager is one of the most comprehensive fault & performance management solutions available today for entire server infrastructure – both physical and virtual.

Start monitoring VMs in minutes! Download 30-day trial here »

Before using the ability to expand the VHD hard disk you must take the following issues into consideration:

  • You must first completely shut down the virtual machine. You cannot expand a virtual hard disk that is associated with a running or saved stated virtual machine.
  • If you expand a virtual hard disk that is associated with a virtual machine that has snapshots, these snapshots will be invalidated. If you need the snapshots, you’d better make sure you plan ahead of time, and/or create new snapshots after performing the expansion of the hard disk.
  • Make sure no snapshots are associated with this VM.

  • After expanding the virtual hard disk there will be an empty space at the end of the virtual hard disk, just like not using the entire disk when you’ve originally created partitions in it.  You will either need to create a new partition to use the new space, or expand an existing partition into the new space.

Note: Expanding or extending partitions on Windows Vista and Windows Server 2008 is easier than on Windows Server 2003 or Windows XP, and is performed by using either the Disk Management snap-in from the Computer Management tool, or by using the DISKPART command. Please read my How to Extend a Disk Partition in Windows Vista and Server 2008 article for more information.

Follow these steps to expand VHD hard disks:

  1. Open the Hyper-V management tool from the Administrative Tools folder (or by typing virtmgmt.msc in the Run command).
  2. Start the Edit Virtual Hard Disk wizard by selecting Edit Disk…
  3. If the Before you begin window appears, click Next.
  4. Select the virtual hard disk you want to expand. Click Open and then Next.
  5. Select Expand on the Choose Action page and then press Next.
  6. Enter the new size of the virtual hard disk that you want and then press Next.
  7. In the final screen, press Finish.
  8. Wait till the operation finishes, which should be quite fast.

Next, after booting the VM, use Disk Management snap-in from the Computer Management tool, or by using the DISKPART command to expand the partition within Windows. While possible in Windows Server 2008 and Windows Vista, unfortunately, in Windows 2000/XP/2003, you cannot use the built-in tools to expand the System Partition (the one the Windows operating system is installed on). For these versions you will need to use of these free partition utilities.


Parallels Plesk Panel returns error: SWKeyExFatalError

Tuesday, December 6th, 2011


It is not possible to access to Parallels Plesk Panel. Browser displays the following error:

ERROR: SWKeyExFatalError
xmlrpc error: XML parsing failed

0: common_func.php3:4523
of_get_key_by_product(string ‘plesk-win’)
1: common_func.php3:4523
2: common_func.php3:4602
getKeyProp(string ‘demo’)
3: auth.php3:54

Also it is not possible to retrieve key number with utility keymng.exe, cause of unexpected error:
>”%plesk_bin%\keymng.exe” –get-key-number
Unexpected error


Check the size of the file %plesk_dir%\admin\repository\registry.xml. If file is empty and equals 0KB, delete this file.
Once it is done, try to access to Parallels Plesk Panel. New file should be generated automatically.

Cannot lock Container

Wednesday, June 8th, 2011

check lock file and remove PID :

vi /vz/lock/
ps aux | grep vz //check vzquota is running , kill the process


install Mysql and Phpmyadmin using yum

Wednesday, May 25th, 2011

yum -y install mysql mysql-server php-mysql

Start mysql service

/etc/rc.d/init.d/mysqld start

You’ll see mysql is being started, keep on watching for following line:

To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password ‘new-password’
/usr/bin/mysqladmin -u root -h vps-hostname password ‘new-password’

MySQL instruct you to create for mysql root’s password, so do it.

/usr/bin/mysqladmin -u root password ‘new-password’
/usr/bin/mysqladmin -u root -h vps-hostname password ‘new-password’

change new-password to vps password
change vps-hostname to vps hostname you have set up from PMC

Test newly set password by log in to mysql

mysql -u root -p
Enter password:

You should be able to log into mysql with the password if set correctly.

Create .my.cnf inside /root folder

vim /root/.my.cnf

add following lines


Save & exit & change mode that file

chmod 600 /root/.my.cnf

Download phpmyadmin from phpmyadmin’s site, untar it under /var/www/html

cd /var/www/html
tar xvzf phpMyAdmin-3.4.1-all-languages.tar.gz
ln -s phpMyAdmin-3.4.1-all-languages phpmyadmin
chown -R apache.apache phpMyAdmin-3.4.1-all-languages
chown -R apache.apache phpmyadmin
cd phpmyadmin
cp -p

look for line

$cfg[‘blowfish_secret’] = ”; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

add random text to become like this

$cfg[‘blowfish_secret’] = ‘$5^tY7F3w’; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

random text can be anything

Check phpmyadmin from browser



Install PHP using yum

Wednesday, May 25th, 2011

to install php, you need to use below commands

yum -y install php php-mbstring php-mcrypt php-gd

Restart httpd and verify PHP by create phpinfo.php

/etc/rc.d/init.d/httpd restart
cd /var/www/html
vim phpinfo.php

add these line

<? phpinfo() ?>

Change own phpinfo.php

chown apache.apache phpinfo.php

Browse from the browser https://ip-address/phpinfo.php

Install yum from the Hardware node

Wednesday, May 25th, 2011

to install yum,

you need to run the below command

vzpkg install VEID -p yum

VEID = vps ID

Verify yum has been installed into VPS by log into newly created VPS from hardware node.

vzctl enter VEID
rpm -qa | grep yum

VPS migration to other hardware node

Monday, May 2nd, 2011

vzmigrate -r no root@ veid

to run the above migration command, follow the below steps

1- login to the souce hardware node

2- make sure the above ip is the destation ip of the hardware node

3- make sure the VEID  is the vps id in the current hardwarende

Please let us know if you need further assist.

Thank you.

re-install VPS form plesk pwoer panel

Monday, May 2nd, 2011

How to reinstall your VPS? You may have corrupted your operating system or accidentally removed system files, to restore your VPS to a few operating system, you can perform the following steps

1) Access your power panel home page via https://YourVpsIP:4643

2) Login using your root username and password

3) Click on Maintenance

4) Click on Reinstall

5) Click on Stop Container 6) Click on Reinstall

Thank you