Wednesday 25 January 2012

Error: Domain 'vm00' does not exist. Error: Unable to open config file: vm00

You may get the below errors while starting or enter into vps from node on xen.

[root@test ~]# xm start vm00
Error: Domain 'vm00' does not exist.

[root@test ~]# xm reboot vm00
Error: Domain 'vm00' does not exist.

[root@test ~]# xm create vm00
Error: Unable to open config file: vm00


Solution :
[root@test ~]# xm create /home/xen/vm00/vm00.cfg
Using config file "/home/xen/vm00/vm00.cfg".
Started domain vm00 (id=27)


Errors: apache2: Could not reliably determine the server's fully qualified domain name, using x.x.x.x for ServerName

Solution:
To fix that problem, you need to edit the httpd.conf file. Open the terminal and type,  
sudo gedit /etc/apache2/httpd.conf

By default httpd.conf file will be blank. Now, simply add the following line to the file.  
ServerName localhost

Save the file and exit from gEdit. Finally restart the server.  
sudo /etc/init.d/apache2 restart

How to Install and Configure Apache, PHP, MySql and phpmyadmin on Ubuntu

Installing Apache:


Open the Terminal and type the below command to Install Apache

sudo apt-get install apache2

Type your ubuntu password and press enter. 

Type y and hit enter to confirm apache installation.


To Confirm


Open your browser and type 


http;//localhost/


Installing PHP:


sudo apt-get install php5 libapache2-mod-php5

After successful Installation, restart your apache2

# /etc/init.d/apache2 restart

To check
# vi /var/www/phpinfo.php

and type the below code

<?php  phpinfo() ?>

Now open your browser and type

http://localhost/phpinfo.php


Installing MySql

apt-get install mysql-server

give mysql root password when it requires.









Command to List Load Average of Each VPS in Openvz

Enter into node and type the following command to list the load average of each vps and their vps id.

# vzlist -o veid,laverage

Output :
CTID LAVERAGE  
300 0.25/0.39/0.34  
340 0.10/0.09/0.11 
310 0.83/0.89/0.86  
030 1.62/1.62/1.38