CentOS Virtual Image
This CentOS 6.3 Virtual Image is created for the benefit of those attending HPC Training by HPC@LSU User Services. If you have questions regarding this image, please email lsuhpchelp_at_gmail.com. Please do not email the HPC Help Desk.
CentOS is based on Red Hat Enterprise Linux (RHEL) which is OS used on the supercomputers that we administer. By downloading and installing this image, you acknowledge that
- You have accepted the EULA for CentOS.
- HPC@LSU is not responsible for adminstering this computer,
- You will treat this image as any computer you own i.e. you are the administrator for this system and it is your responsibility to keep this system secure,
- All software installed on our clusters are not installed on this image,
- Softwares are not installed in the same location on the clusters as they are in this image,
- Just because a software can be installed on this image does not imply that it is or will be installed on the cluster.
- This image is for you to play around with and for learning to work on a Linux OS and is not a subsitute for a LONI or LSU HPC account.
- If you decide to install Linux on your laptop or desktop, HPC@LSU will not provide support with the installation, you are on your own and will acquire necessary knowledge to do so.
As provided, there are two accounts on the system:
- user account with no password
- root account with no password
The account user is in the wheel group and has sudo permission.
As soon as you install this image, please do the following:
- Create a password for user
[user@localhost ~]$ sudo su - [root@localhost ~]# passwd user
You will be prompted for entering a password, you need to add the password two times.
- Create a password for root
[root@localhost ~]# passwd root
You will be prompted for entering a password, you need to add the password two times.
By default, the runlevel is set to text mode. If you want to change to a graphical or X-Windows mode,
- login as root
[user@localhost ~]$ sudo su -
- edit the file /etc/inittab
[root@localhost ~]# vi /etc/inittab
- Change the last line
from id:3:initdefault: to id:5:initdefault:
You will need to do this for the Training courses on Octave, GNUPLOT and LaTeX
This image was first created in Spring 2013 with only trainings provided in that semester as a reference. In future, as we develop new trainings, this image will be updated.
CentOS uses yum for managing the software database.
- To update the OS: sudo yum update
- To search for software called program: sudo yum search program
- To install a software called program: sudo yum install program
- To delete a software called program: sudo yum erase program
As we add more software to the image to suite future training courses, you will need to install software using the yum package manager. Instructions to do this will be provided in the Change Log section below. This is done so that you do not have to download and install an image for every minor changes that we make to image.
Change Log
Download and Install
Download and Install Oracle VM Virtual Box, you will be leaving HPC@LSU website
Install Virtual Image
Virtual Box
- Open Oracle VM Virtual Box
- From the Menu Bar, Select File>Import Applicance
- Click the Choose Button and browse and select the virtual images that you have just downloaded and click the Next button
- Click the Import Button
- Virtual Box will now import the Image, this may take a few minutes
- In the main Virtual Box window, you should see a virtual machine by the name "CentOS6.3", double click it or select it and then click the Start button
- When you get the login prompt, enter "user" for the login field and hit "Enter".
VMWare
A detailed description is provided at an external website.
Sharing Folders between Host and Guest on VirtualBox
VirtualBox permits sharing of folders between the Host and Guest (in this case CentOS) OS. To enable this feature, you need to carry out the following steps:
- Update system
- Install the following software packages:kernel-devel, kernel-headers, gcc
- Reboot system into GUI mode
- Once the system has rebooted, from the menu bar, select Devices>Install Guest Additions
- Open a terminal and login as root using the command su - or sudo su -
- Execute the following commands:
[root@localhost ~]# cd /media/VBOXADDITIONS_4.2.6_82870
If you are using a different version of Guest Additions, use the command cd /media/{hit the tab key} and then enter - Build and Install the Guest Additions kernel modules:
- If the build is successful, shutdown the Guest OS. If it is not successful, check if the above packages are installed or check the log file mentioned on the screen output
- Select the Guest OS from the main VirtualBox window, and then click the Settings tab.
- In the window that pops up, select the Shared Folders tab
- Add the Folder on the Host OS that you want to share with the Guest OS. If you want to write to this folder, make sure that the Read-only radio button is unchecked. I'm assuming the folder name is share.
- Start the Guest OS, preferably in GUI mode.
- Create a folder on the Guest where you want to mount the Shared Folder, e.g. mkdir -p ~/Shared
- Mount the Host Folder using the command
- To auto-mount the Host folder at boot time, add the following line to /etc/fstab (you need to do this as root)
- Mount the Shared folder by entering the command mount -a as root or reboot system
- Your Shared Host Folder is now in /home/user/Shared
[user@localhost ~]$ sudo yum update
[user@localhost ~]$ sudo yum install kernel-devel kernel-headers gcc
[root@localhost ~]# ./VBoxLinuxAdditions.run
[user@localhost ~]$ sudo mount -t vboxsf share ~/Shared
share /home/user/Shared vboxsf defaults 0 0