Amazon Linux support in Virtualmin install.sh

Howdy all,

I’ve just rolled out support for Amazon Linux to our repositories and install.sh, and added it to our supported OS list as a Grade B supported operating system (it is not, and will probably never be, Grade A because it has rapid rolling releases and does not provide a stable server environment…one can expect applications to break with some regularity on this platform, and one can also expect to needed to perform maintenance to insure upgrades and updates do not break; and one can expect to end up on an EOL version at some unpredictable time).

But, this does mean that you can now easily install Virtualmin on an Amazon micro tier EC2 instance (i.e. the “free” tier; you can get one free instance for one year…and after the first year it’s about $115/year, so it’s a quite cheap way to get a little VM to play with).

The installation is the same as usual, and new Virtualmin AMIs will be created soon for Amazon Linux, as well, making it even easier to get up and running.

As always, if you find any bugs, let us know in our issue tracker.

Regards,
Joe

I am having problems installing on Amazon Linux, here’s the installer output:

Checking for HTTP client…found /usr/bin/curl -s -O
Checking for perl…found /usr/bin/perl
Loading log4sh logging library…
INFO - Started installation log in /root/virtualmin-install.log
INFO - Checking for fully qualified hostname…
INFO - Hostname OK: fully qualified as ip-10-134-125-95.ap-southeast-1.compute.internal
INFO - Installing serial number and license key into /etc/virtualmin-license
INFO - Loading OS selection library…
INFO - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded.
INFO - Loading OS list…
INFO - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded.
INFO - Operating system name: Amazon Linux
INFO - Operating system version: 2012.03
INFO - Configuring package manager for Amazon Linux 2012.03…
INFO - Disabling SELinux during installation…
/usr/sbin/setenforce: SELinux is disabled
INFO - setenforce 0 failed: 1
INFO - Download of http://software.virtualmin.com/gpl/amazon/2012.03/x86_64/virtualmin-release-latest.noarch.rpm Succeeded.
warning: virtualmin-release-latest.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID a0bdbcf9: NOKEY
INFO - Succeeded.
INFO - Installing dependencies using command: /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay
…in progress, please wait…
/Warning: RPMDB altered outside of yum.
INFO - /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay: Succeeded.
INFO - Succeeded.
INFO - Installing Virtualmin and all related packages now using the command:
INFO - yum clean all
Loaded plugins: fastestmirror, priorities, security, update-motd
Existing lock /var/run/yum.pid: another copy is running as pid 8274.
Another app is currently holding the yum lock; waiting for it to exit…
The other application is: yum
Memory : 21 M RSS (291 MB VSZ)
Started: Wed Aug 29 17:39:54 2012 - 00:03 ago
State : Sleeping, pid: 8274
Cleaning repos: amzn-main amzn-updates virtualmin virtualmin-universal
Cleaning up Everything
Cleaning up list of fastest mirrors
INFO - yum -y -d 2 install virtualmin-base
…in progress, please wait…
/http://GPL:GPL@software.virtualmin.com/gpl/universal/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
|http://GPL:GPL@software.virtualmin.com/gpl/universal/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from virtualmin-universal: [Errno 256] No more mirrors to try.
yum -y -d 2 install virtualmin-base failed. Error (if any): 0

Displaying the last 15 lines of /root/virtualmin-install.log to help troubleshoot this problem:
subversion-libs.x86_64 0:1.7.4-1.19.amzn1
t1lib.x86_64 0:5.1.2-6.5.amzn1
unixODBC.x86_64 0:2.2.14-11.5.amzn1
zlib-devel.x86_64 0:1.2.3-27.9.amzn1

Complete!
INFO - 2012-08-29 17:39:56 - /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay: Succeeded.
INFO - 2012-08-29 17:39:56 - Succeeded.
INFO - 2012-08-29 17:39:56 - Installing Virtualmin and all related packages now using the command:
INFO - 2012-08-29 17:39:57 - yum clean all
INFO - 2012-08-29 17:39:59 - yum -y -d 2 install virtualmin-base
Loaded plugins: fastestmirror, priorities, security, update-motd
Determining fastest mirrors

FATAL - Fatal Error Occurred: Installation failed: 0
FATAL - Cannot continue installation.
FATAL - Attempting to remove virtualmin repository configuration, so the installation can be
FATAL - re-attempted after any problems have been resolved.
warning: /etc/yum.repos.d/virtualmin.repo saved as /etc/yum.repos.d/virtualmin.repo.rpmsave
FATAL - Removing temporary directory and files.
FATAL - If you are unsure of what went wrong, you may wish to review the log
FATAL - in /root/virtualmin-install.log

I will try with my spare PRO license and see if it works…

Howdy,

Yeah, I’d be interested in hearing if it works for you with your Pro license.

However, I’d also be curious if running “yum clean all” resolves that.

If not, let us know and we’ll run some tests to make sure nothing is wrong with the repository.

-Eric