Installing VM2

At the time of writing, VM2 does not have an automated installation process like Virtualmin. However, it is relatively simple to install, as it has far fewer dependencies.

To install on a CentOS, Redhat Enterprise or Fedora Core system, the steps to follow are :

  1. Install Perl, using the command :
    yum install perl
  2. If you want access to VM2 to be encrypted, install SSL support with the commands :
    yum install openssl openssl-devel
    perl -MCPAN -e 'install Net::SSLeay'
  3. Install the latest version of Webmin in RPM format from www.webmin.com . The command to do this is :
    rpm -U http://www.webmin.com/download/rpm/webmin-current.rpm
  4. If you plan to use VM2 to manage Amazon EC2 instances, several Perl modules need to be installed. These can be added to your system with the commands :
    perl -MCPAN -e 'install Params::Validate'
    perl -MCPAN -e 'install LWP::UserAgent'
    perl -MCPAN -e 'install MIME::Base64'
    perl -MCPAN -e 'install Digest::HMAC_SHA1'
    perl -MCPAN -e 'install XML::Simple'
    perl -MCPAN -e 'install HTTP::Date'
  5. Install the RPM packages containing the VM2 module and Virtualmin theme with the command :
    rpm -U wbm-server-manager-*.rpm wbt-virtual-server-theme-*.rpm

Assuming that all of the above steps succeeded, you are done! Open a web browser, and go to http://yourserver:10000/ to login (replace yourserver in the URL with the IP address or hostname of the VM2 master system). If your system has a root password, you will be able to login as root - if not, you can typically login as a user who has permissions to sudo to root).