Install Enomalism on Centos 5.2

Automated steps

Copy and paste the following command blocks depending on your cpu architecture.

For x86_64

wget http://downloads.sourceforge.net/enomalism/enomalism.public 
wget http://downloads.sourceforge.net/enomalism/enomalism001.pubkey.asc
rpm --import enomalism.public
rpm --import enomalism001.pubkey.asc

wget http://downloads.sourceforge.net/enomalism/libvirt-0.4.1-1.CentOS5.x86_64.rpm?modtime=1205833130&big_mirror=0
yum install /libvirt-0.4.1-1.CentOS5.x86_64.rpm
wget http://downloads.sourceforge.net/enomalism/Enomalism2-2.1-py24-noarch.rpm?modtime=1223313658&big_mirror=0
yum install Enomalism2-2.1-py24-noarch.rpm
/etc/init.d/mysqld start
chkconfig mysqld on

For x86_32

wget http://downloads.sourceforge.net/enomalism/enomalism.public 
wget http://downloads.sourceforge.net/enomalism/enomalism001.pubkey.asc
rpm --import enomalism.public
rpm --import enomalism001.pubkey.asc

wget http://downloads.sourceforge.net/enomalism/libvirt-0.4.1-1.CentOS5.i386.rpm?modtime=1205833113&big_mirror=0
yum install libvirt-0.4.1-1.CentOS5.i386.rpm
wget http://downloads.sourceforge.net/enomalism/Enomalism2-2.1-py24-noarch.rpm?modtime=1223313658&big_mirror=0
yum install Enomalism2-2.1-py24-noarch.rpm
/etc/init.d/mysqld start
chkconfig mysqld on
Manual Steps

Set a mysql root password if you don't already have one. Substitute your password for .

   mysqladmin password  

Configure Enomalism. Substitute your mysql_root_password, your desired_enomalism_username and desired_enomalism_password.

cd /opt/enomalism2
scripts/init-db.sh mysql_root_password desired_enomalism_username desirec_enomalism_password

cp default.cfg config/$HOSTNAME.cfg
uuidgen

#Copy the output from uuidgen to the clipboard

vi config/$HOSTNAME.cfg
  • Change sqlobject.dburi="mysql://enomalism2:zx45qw12@localhost/enomalism2" to reflect your proper MySQL username and password.
  • Change enomalism2.self="5fe6f05e-7ee0-11dc-ba7c-0011d88b8e81" paste the output of uuidgen here
  • Change enomalism2.baseurl="http://127.0.0.1:8080/rest/" to the IP/hostname you use to access the Enomalism web interface.
  • Change enomalism2.ip_addr="1.2.3.4" to the IP/hostname you use to access the Enomalism web interface, this will be used later for clustering.

Configuring VNC access to your VMs

 

  • /etc/libvirt/qemu.conf (NOTE: If this file is missing or is a directory, you probably did not install the 0.4.1 version of libvirt!)
    # VNC is configured to listen on 127.0.0.1 by default.
    # To make it listen on all public interfaces, uncomment
    # this next option.
    #
    # NB, strong recommendation to enable TLS + x509 certificate
    # verification when allowing public access
    #
    vnc_listen = "0.0.0.0"
  • /etc/xen/xend-config.sxp
    # The interface for VNC servers to listen on. Defaults
    # to 127.0.0.1 To restore old 'listen everywhere' behaviour
    # set this to 0.0.0.0
    (vnc-listen '0.0.0.0')

Running Enomalism

service enomalism2.sh start

  • If no errors occur point your browser to: http://server:8080 , where "server" is the IP or the hostname of the enomalism server.
  • After the install completes, click on the bottom link and log in using
    • username: admin
    • password: password