Change hostname for VPS in Virtuozzo hardware node
Monday, March 7th, 2016vzctl set VEID –hostname VEID.domain.local –save
vzctl set VEID –hostname VEID.domain.local –save
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 http://repo.smartservermanagement.com/misc/iproute-2.6.32-23.el6.x86_64.rpm 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 references http://www.hostlift.com/linux/rtnetlink-answers-no-such-device-on-a-virtuozzo-vps
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.
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:
Make sure no snapshots are associated with this VM.
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:
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.
Reference
http://www.petri.co.il/expanding-virtual-hard-disks-with-hyper-v.htm
It is not possible to access to Parallels Plesk Panel. Browser displays the following error:
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.
check lock file and remove PID :
vi /vz/lock/434.lk
ps aux | grep vz //check vzquota is running , kill the process
References
http://kmaiti.blogspot.com/2010/05/cannot-lock-container.html
http://kb.parallels.com/655
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:
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
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 124.217.255.10
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
[client]
user=”root”
pass=”new-password”
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
wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.4.1/phpMyAdmin-3.4.1-all-languages.tar.gz?r=http%3A%2F%2Fwww.phpmyadmin.net%2Fhome_page%2Findex.php&ts=1306296119&use_mirror=cdnetworks-kr-1
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 config.sample.inc.php config.inc.php
vim config.inc.php
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
http://vps-ip-address/phpmyadmin
Done
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
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
yum-metadata-parser-1.1.2-3.el5.centos
yum-3.2.22-33.el5.centos
yum-fastestmirror-1.1.16-14.el5.centos.1
vzmigrate -r no root@192.168.132.4 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.
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