What is Scientific Linux?
In short, Scientific Linux is an customized RedHat/CentOS Linux distribution provided by CERN and Fermilab: popular in educational institutions as well as laboratory environments. More can be read about Scientific Linux here: https://www.scientificlinux.org/
From my own long-term testing - before XenServer 6.2 and our pre-release/Alpha - Creedence - I have ran both Scientific Linux 5 and Scientific Linux 6 without issues. This article's scope is to show how one can install Scientific Linux and, more specifically, ensure the XenTools Guest Additions for Linux are installed as these do not require any form of "Xen-ified" kernel.
XenServer and Creedence
The following are my own recommendations to run Scientific Linux in XenServer:
- I recommend using XenServer 6.1 through any of the Alpha releases due to improvements with XenTools
- I recommend using Scientific Linux 5 or Scientific Linux 6
- The XenServer VM Template one will need to use will either be of CentOS 5 or CentOS 6: 32 or 64 bit depends on the release of Scientific Linux you will be using
One will also require a URL as to install Scientific Linux from their repository, found at http://ftp.scientificlinux.org/linux/scientific/.
The following are URLs I recommend for use during the Guest Installation process (discussed later):
- SL 5 32-bit : http://ftp.scientificlinux.org/linux/scientific/5x/i386/
- SL 5 64-bit : http://ftp.scientificlinux.org/linux/scientific/5x/x86_64/
- SL 6 32-bit : http://ftp.scientificlinux.org/linux/scientific/6.0/i386/os/
- SL 6 64-bit : http://ftp.scientificlinux.org/linux/scientific/6.0/x86_64/os/
Scientific Linux 5 or 6 Guest VM Installation
With XenCenter, the process of installing Scientific Linux 5.x or Scientific Linux 6 uses the same principles. You need to create a new VM, select the appropriate CentOS template, and define the VM parameters for disk, RAM, and networking:
1. In XenCenter, select "New VM":
2. When prompted for the new VM Template, select the appropriate CentOS-based template (5 or 6, 32 or 64 bit):
3. Follow the wizard to add processors, disc, and networking information
4. From the console, follow the steps as to install Scientific Linux 5 or 6 based on your preferences.
5. After rebooting, login as root and execute the following command within the Guest VM:
6. Once yum has applied any updates, reboot the Scientific Linux 5 or 6 Guest VM by executing the following within the Guest VM:
7. With the Guest VM back up, login as root and mount the xs-tools.iso within XenCenter:
7. From the command line, execute the following commands to mount xs-tools.iso within the Guest VM as well as to run the install.sh utility:
mount /dev/xvdd tools/
8. With Scientific Linux 5 you will be prompted to install the XenTools Guest Additions - select yes and when complete, reboot the VM:
9. With Scientific Linux 6 you will notice the following output:
Fatal Error: Failed to determine Linux distribution and version.
10. This is not a Fatal Error, but an error induced because the distro build and revision are not presented as expected. This means that you will manually need to install the XenTools Guest Additions by executing the following commands and rebooting:
rpm -ivh xe-guest-utilities-xenstore-<version number here.x86_64.rpm
rpm -ivh xe-guest-utilities-<version number here>.x86_64.rpm
Finally after the last reboot (post guest addition install) one will notice from XenCenter that the network address, stats, and so forth are available (including the ability to migrate the VM):
I hope this article helps any of you out there and feedback is always welcomed!