Centos 7 out - Virtualmin release?

No worries, if you need any help Beta testing let me know. I use RackSpace Cloud Servers in the UK, and the only option the have for CentOS7 is based on PVHVM - does that make any difference and is it supported/recommended with Virtualmin?

http://www.rackspace.com/knowledge_center/article/choosing-a-virtualization-mode-pv-versus-pvhvm

Yeah, me too :wink:

Is there already something like an alpha version?

Hey guys – I haven’t had a chance to test this yet, but rather than further delay it, I thought I’d let you know and we can all test it together :slight_smile:

Joe just finished pushing out the CentOS 7 changes, and what we have in the repository could use some testing.

There are quite a few of changes, so it’d be surprising if there we no issues at all. But hopefully we already took care of all the large ones :slight_smile:

In order to install Virtualmin onto a CentOS 7 system, you would need the latest install.sh script, available in the “Downloads” section above, or at http://virtualmin.com/serial/ if you’re using Virtualmin Pro.

There is one outstanding issue we know of that requites a manual change… and that is for quotas.

The default filesystem on CentOS 7 is XFS. In most cases, in order to enable quota support, it will require a change in the kernel boot options (as quota support is disabled in the kernel by default).

To do that, edit this file:

/etc/default/grub

Then, find the line beginning with: GRUB_CMDLINE_LINUX

What we’ll need to do is add rootflags=usrquota,grpquota to the end of that line… it should look something like the following:

GRUB_CMDLINE_LINUX="rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto vconsole.keymap=us rhgb quiet rootflags=usrquota,grpquota"

Now backup your grub config file:

cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.orig

Then generate a new grub config containing the settings you updated:

grub2-mkconfig -o /boot/grub2/grub.cfg

Once you do that – reboot, and quota support should work properly.

Let us know what issues you run into, and we’ll get them fixed up ASAP. We’ll be doing additional testing of our own as well. Thanks!

-Eric

Hello, ths is the result of my try.

INFO - 2014-08-26 07:54:35 - Started installation log in /root/virtualmin-install.log DEBUG - 2014-08-26 07:54:35 - Install mode: full DEBUG - 2014-08-26 07:54:35 - Product: Virtualmin GPL DEBUG - 2014-08-26 07:54:35 - Virtualmin Meta-Package list: virtualmin-base DEBUG - 2014-08-26 07:54:35 - install.sh version: 1.1.1 INFO - 2014-08-26 07:54:35 - Checking for fully qualified hostname... INFO - 2014-08-26 07:54:35 - Hostname OK: fully qualified as example.com INFO - 2014-08-26 07:54:35 - Installing serial number and license key into /etc/virtualmin-license INFO - 2014-08-26 07:54:35 - Loading OS selection library... INFO - 2014-08-26 07:54:35 - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded. INFO - 2014-08-26 07:54:35 - Loading OS list... INFO - 2014-08-26 07:54:36 - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded. INFO - 2014-08-26 07:54:36 - Operating system name: CentOS Linux INFO - 2014-08-26 07:54:36 - Operating system version: 7.0.1406 INFO - 2014-08-26 07:54:36 - Configuring package manager for CentOS Linux 7.0.1406... INFO - 2014-08-26 07:54:36 - Disabling SELinux during installation... DEBUG - 2014-08-26 07:54:36 - setenforce 0 succeeded INFO - 2014-08-26 07:54:37 - Download of http://software.virtualmin.com/gpl/rhel/7.0.1406/x86_64/virtualmin-release-latest.noarch.rpm Succeeded. FATAL - 2014-08-26 07:54:37 - Fatal Error Occurred: Installation of virtualmin-release failed: 30 FATAL - 2014-08-26 07:54:37 - Cannot continue installation. FATAL - 2014-08-26 07:54:37 - Attempting to remove virtualmin repository configuration, so the installation can be FATAL - 2014-08-26 07:54:37 - re-attempted after any problems have been resolved. FATAL - 2014-08-26 07:54:37 - Removing temporary directory and files. FATAL - 2014-08-26 07:54:37 - If you are unsure of what went wrong, you may wish to review the log FATAL - 2014-08-26 07:54:37 - in /root/virtualmin-install.log

The requested URL /gpl/rhel/7.0.1406/x86_64/virtualmin-release-latest.noarch.rpm was not found on this server.

I just tried this out on a clean CentOS 7 system and got similar results to Schnuecks. Here is the output of /root/virtualmin-install.log
INFO - 2014-07-17 13:11:36 - Started installation log in /root/virtualmin-install.log
DEBUG - 2014-07-17 13:11:36 - Install mode: full
DEBUG - 2014-07-17 13:11:36 - Product: Virtualmin GPL
DEBUG - 2014-07-17 13:11:36 - Virtualmin Meta-Package list: virtualmin-base
DEBUG - 2014-07-17 13:11:36 - install.sh version: 1.1.1
INFO - 2014-07-17 13:11:36 - Checking for fully qualified hostname…
INFO - 2014-07-17 13:11:36 - Hostname OK: fully qualified as example.co.uk
INFO - 2014-07-17 13:11:36 - Installing serial number and license key into /etc/virtualmin-license
INFO - 2014-07-17 13:11:36 - Loading OS selection library…
INFO - 2014-07-17 13:11:37 - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded.
INFO - 2014-07-17 13:11:37 - Loading OS list…
INFO - 2014-07-17 13:11:37 - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded.
INFO - 2014-07-17 13:11:37 - Operating system name: CentOS Linux
INFO - 2014-07-17 13:11:37 - Operating system version: 7.0.1406
INFO - 2014-07-17 13:11:37 - Configuring package manager for CentOS Linux 7.0.1406…
INFO - 2014-07-17 13:11:37 - Disabling SELinux during installation…
INFO - 2014-07-17 13:11:37 - setenforce 0 failed: 1
INFO - 2014-07-17 13:11:38 - Download of http://software.virtualmin.com/gpl/rhel/7.0.1406/x86_64/virtualmin-release-latest.noarch.rpm Succeeded.
FATAL - 2014-07-17 13:11:38 - Fatal Error Occurred: Installation of virtualmin-release failed: 30
FATAL - 2014-07-17 13:11:38 - Cannot continue installation.
FATAL - 2014-07-17 13:11:38 - Attempting to remove virtualmin repository configuration, so the installation can be
FATAL - 2014-07-17 13:11:38 - re-attempted after any problems have been resolved.
FATAL - 2014-07-17 13:11:38 - Removing temporary directory and files.
FATAL - 2014-07-17 13:11:38 - If you are unsure of what went wrong, you may wish to review the log
FATAL - 2014-07-17 13:11:38 - in /root/virtualmin-install.log
INFO - 2014-08-26 10:47:47 - Started installation log in /root/virtualmin-install.log
DEBUG - 2014-08-26 10:47:47 - Install mode: full
DEBUG - 2014-08-26 10:47:47 - Product: Virtualmin GPL
DEBUG - 2014-08-26 10:47:47 - Virtualmin Meta-Package list: virtualmin-base
DEBUG - 2014-08-26 10:47:47 - install.sh version: 1.1.1
INFO - 2014-08-26 10:47:47 - Checking for fully qualified hostname…
INFO - 2014-08-26 10:47:47 - Hostname OK: fully qualified as example.co.uk
INFO - 2014-08-26 10:47:47 - Installing serial number and license key into /etc/virtualmin-license
INFO - 2014-08-26 10:47:47 - Loading OS selection library…
INFO - 2014-08-26 10:47:47 - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded.
INFO - 2014-08-26 10:47:47 - Loading OS list…
INFO - 2014-08-26 10:47:47 - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded.
INFO - 2014-08-26 10:47:47 - Operating system name: CentOS Linux
INFO - 2014-08-26 10:47:47 - Operating system version: 7.0.1406
INFO - 2014-08-26 10:47:48 - Configuring package manager for CentOS Linux 7.0.1406…
INFO - 2014-08-26 10:47:48 - Disabling SELinux during installation…
INFO - 2014-08-26 10:47:48 - setenforce 0 failed: 1
INFO - 2014-08-26 10:47:48 - Download of http://software.virtualmin.com/gpl/rhel/7.0.1406/x86_64/virtualmin-release-latest.noarch.rpm Succeeded.
FATAL - 2014-08-26 10:47:48 - Fatal Error Occurred: Installation of virtualmin-release failed: 30
FATAL - 2014-08-26 10:47:48 - Cannot continue installation.
FATAL - 2014-08-26 10:47:48 - Attempting to remove virtualmin repository configuration, so the installation can be
FATAL - 2014-08-26 10:47:48 - re-attempted after any problems have been resolved.
FATAL - 2014-08-26 10:47:48 - Removing temporary directory and files.
FATAL - 2014-08-26 10:47:48 - If you are unsure of what went wrong, you may wish to review the log
FATAL - 2014-08-26 10:47:48 - in /root/virtualmin-install.log

It might be worth noting that this is exactly the same output I received when I ran the install script last month (i just wanted to see what would happen).

I removed the old install.sh and downloaded and new one just prior to install.
I did not do the grub changes to enable quota (as it is not a feature I use) but can test again with those changes made if you would think that is causing and problems.

I just tried the script and it failed at the same point. Seems the virtualmin-release rpm’s are not there.

Sorry guys, I had my fingers crossed that there wouldn’t be any issues like this, but it sounds like perhaps I should have done a test run first :-/

It looks like Joe overlooked the virtualmin-release package in the the GPL repo. I’ve asked him to correct that, and I’ll update this once he does.

-Eric

I tried out the install.sh and it failed on the mariadb stuff. I am not going to be using that on this server so I removed it from the install.sh script. The rest seemed to work fine. It even put the ports in the zone I have active in firewalld for the external interface.

Here was the error that it threw during the initial install:

Processing Conflict: 1:mariadb-galera-server-5.5.37-2.el7.x86_64 conflicts mariadb-server

FYI, the Linux Firewall is still looking for the old iptables service instead of the firewalld stuff. Not sure if that is something you would be concerned with or if it would be a different group.

Thanks for your work
Mark

I tried it again and all was going well until cache/yum/x86_64/7/virtualmin/packages/proftpd-1.3.5-2.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY

Is there a missing key on this package?
Let me know if you would like any other info/logs etc.
thanks

Yeah Joe is working on correcting an issue with the GPL repository – I’ll post a note here when it’s working properly.

-Eric

Alright, I think the repository issue is all fixed up – Joe and I were both able to perform installs using the GPL repository. Give it another shot and let us know if that works for you :slight_smile:

Note that it’s not necessary to perform the manual quota setup steps described above for Virtualmin to work. That step is only necessary if you require quota support.

-Eric

Hi,

Thanks for the great work you guys do however i found a conflict and a small bug.
If i have the repo EPEL 7 (beta) installed/enabled the install fails on a conflict with mariadb
“Conflict: 1:mariadb-galera-server-5.5.37-2.el7.x86_64 conflicts mariadb-server”
but disabling the repo lets it install ok and i can re-enable afterwards without problems, i confirmed this on 2 separate servers.
I have attached both install logs in case they help you.

Now once it is installed and i run through the “Post-Installation Wizard” i get a problem with clamav “However, Virtualmin does not know how to enable the ClamAV server scanner on your system. You will need to set it up manually.”

I will report anything else i find while testing.

Howdy,

Thanks for reporting the issue with EPEL, that’s good to know.

Unfortunately, I don’t believe there’s anything we can do about that since it’s a third party repository, and what it’s conflicting with is the default database package.

However, knowing that there is a package in EPEL which conflicts with the mariadb-server package provided in CentOS 7 will help us keep an eye out for related issues.

Regarding ClamAV – can you try installing the package “clamav-server-sysvinit”, which you can do with this command:

yum install clamav-server-sysvinit

Once you do that, is Virtualmin able to work with ClamAV?

-Eric

That fixed ClamAV thanks.

As for the EPEL repo could you not use --disablerepo on the yum command? i.e. yum --disablerepo=epel install mariadb-server etc, I’ve used that before for other conflicts?

I too got the:

Error: mariadb-galera-server conflicts with 1:mariadb-server-5.5.37-1.el7_0.x86_64

The CentOS 7 image rackspace provide is setup with EPEL enabled by default. Disabling it in /etc/yum.repos.d/epel.repo did the trick.

I see clamav-server-sysvinit is now installed by install.sh :slight_smile:

Everything seems to be up and running, and I’ve enabled quotas in the grub config. I’ll report back with any issues I come across.

On the ‘Post Install Wizard’ I get:

Error
Systemd service clamd-virtualmin cannot be created unless a command is given

When changing ‘Enabled Features’ I get the following (note: I wasn’t trying to enbled or disable virus scanning at the time. It was enabled and I had left it checked)

Failed to save enabled features : The ClamAV program clamscan does not appear to be working properly :
ERROR: Can’t write to temporary directory

----------- SCAN SUMMARY -----------
Known viruses: 3513235
Engine version: 0.98.4
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 8.490 sec (0 m 8 s)
. Either change the program on the spam and virus scanners page, or disable this feature.

Couple of notes, just did a “minimum” Centos 7 installation

Virtualmin install notes: Aug 28, 2014

Centos7, “minimum”
yum install perl

wget http://software.virtualmin.com/gpl/scripts/install.sh

All worked! Yay!

Post-Installation Wizard
Virus Scanning
Run ClamAV server scanner () yes, Next
ERROR: Systemd service clamd-virtualmin cannot be created unless a command is given
selecting (
) No lets me continue

Virtualmin: Checking Configuration: BIND complaining about resolv.conf needing a 127.0.0.1. Can be added via the network module now anyway. (never worked in 6.5)

Webalizer isn’t installed? yum install webalizer says it can’t be found, turn it off… Can’t because mailman isn’t running, turn it off too.

The Bind PID file wrong, should point to /var/run/named/named.pid

virtualmin update says ust-virtual-server-mobile Usermin theme wasn’t installed.

I Just reading the post and like to know if all the bugs now fixed with centos 7.00

I am planing to update my older server from centos 6.5 to 7.00 just need the info before i start the process

Please advice

Thanks

Same here, I’m going to do this tomorrow morning due to out of date packages (OpenSSL, Apache). Anything I should know?