The LIGO Software Virtual Machine
- The LIGO Software Virtual Machine (LSVM) provides a simple way of installing the LIGO Scientific Collaboration software toolkits. It runs on many operating systems (Windows, Linux, Mac OS X and Solaris). Currently, LSVM supports SL6.5-x86_64, Debian7-amd64 on both local VirtuabBox and remote Amazon Elastic Compute Cloud (EC2). In Peter Shawhan's blog, a Windows and VMWare based virtualization is also introduced. He provides details of installing LSCSoft on VMWare.
- The principle behind the VM approach is to run Scientific Linux 6 and Debian 7 (64 bits) in a virtualizer (VirtualBox or VMWare), on top of the operating system. With a VM image (template), which has all the LSCSoft installed, users can download the image (template), import it in a VirtualBox or VMWare hypervisor to create a VM instance, and start the instance to run all LSCSoft toolkits. Users don't have to configure and install the LSCSoft toolkits and deal with the OS and software compatibility issues.
- LSCSoft VM on 64-bit Scientific Linux 6.5 for VirtualBox can be downloaded from here.
- LSCSoft VM on 64-bit Debian 7 for VirtualBox can be downloaded from here.
Deployment of the Virtual Machine
- 1. VIRTUALBOX SOLUTION
- 1.01 BIOS Settings (for PCs only)
- Depending on whether your CPU is Intel or AMD, you need to enable "VT-x" in your BIOS when bootstrapping the OS in order to support 64-bit guest OS. Here are detailed instructions.
- 1.02 Download and Install VirtualBox
- The relevant version of VirtualBox for your machine can be downloaded from the official website (Windows, Linux, OS X, etc., and 32- or 64-bit versions available).
- The VirtualBox Extension Pack might be required when opening a Virtual Machine session. If this is the case, it can simply be downloaded when needed.
- 1.03 Download the LSCSoft VM image from one of the links provided above
- 1.04 Import the VM image into VirtualBox
- Start VirtualBox.
- Click the "File".
- In the File menu, select Import Appliance…
- Choose the downloaded ova image file from step 1.03.
- In order to start the virtual machine, click on its
"Start" Button. By default, all users including
root have the password "224466" (without the
- Each image, once installed by VirtualBox, uses about 8 GB
of disk space, therefore make sure to have enough space
available before starting the installation of the image.
- 1.01 BIOS Settings (for PCs only)
- 2. AMAZON EC2 SOLUTION
- Register an Amazon account
- 2.01 Open the Amazon Web Service (AWS) web and click the "My Account/Console" at the top right, and select "AWS Management Console";
- 2.02 If this is the first time you use AWS or any Amazon Web, you need to input your email address, choose "I am a new user", and click "Sign in using secure server". If this is not your first time using Amazon service, jump to step 2.09.
- 2.03 In this "Login Credentials" page, input your name, type your email again, and your password twice;
- 2.04 In this "Amazon Web Services Sign In" page, input all the information needed. If you are previously an Amazon Web user instead of a AWS user for the email you provided, then you don't need to sign up again.
- 2.05 Follow the onscreen instructions. You will need to enter your credit/debit card and address information as EC2 requires a credit card on file for use. A $1 USD hold may occur on the card during verification.
- 2.06 Once you have completed the AWS sign up, and completed the phone verification process, wait for AWS authorization.
- 2.07 After logging into the AWS portal, click the "My Account/Console" at the top right, and select "My Account"
- 2.08 You will find your 12-bit account number right below "Welcome YOUR NAME". Send me an email and let me know your account number. The purpose here is I want to share the LSCSoft VM Image only within the interested people within the LIGO Community. You have to do it only once.
- Choose a VM Template (SL6.5 or Debian7)
- 2.09 In the "Amazon Web Services" page, click "EC2" and this will lead you to the "EC2 Dashbord" page.
- 2.10 In the "EC2 Dashboard" page, click "IMAGES": AMIs at the left column and this will lead you to the AWSMarketPlace where I have published the VM templates there.
- 2.11 Click the "Owned by me" and select "private images", then input "LSCSOFT" in the text box at the right side, and click the "magnifier" to search the VM templates.
- 2.12 You will find the two VM templates with the AMI name starting with "LSCSOFT". Right clickthe one you need, and click "launch"
- Choose, configure and launch a VM Instance
- 2.13 You will now be in the "Step 2" page. There are a variety of VMs types for you to choose, e.g. fast CPU, large memory and optimized I\O. For testing purpose, choose the "Micro instances" (t1.micro), and click "Review and Launch" at the down side of the page.
- 2.14 You will now be in the "Step 7" page. Actually there are many intermediate steps, such as configuring storage space and security groups, adding tags, etc. which will not be coved here. At this page, you just review your VM and click "launch" button at the down side of the page.
- 2.15 A pop-up window indicates whether to use key pairs. Choose "Proceed without a key pair"; click the "I acknowledge.." statement and click the "Launch Instance" Button.
- Use a VM Instance
- 2.16 Go back to the "EC2 Dashboard"; click the "INSTANCES": Instances, you will see the new VM instance just launched. Click the VM instance, you will see a public DNS (ec2-**-**-**-**.compute-1.amazonaws.com), which is the hostname of the VM instance.
- 2.17 Open a console, run "ssh root:fan224466@ec2-**-**-**-**.compute-1.amazonaws.com" and you'll connect to the VM instance.
Building the Virtual Machine from scratch
- 3. VIRTUALBOX SOLUTION
- 3.01 Apply the BIOS Setting and Download and Install VirtualBox steps of the Deployment procedure.
- 3.02 Download a distribution supported by the LSC software (SL6, Debian7, …) and import them into VirtualBox:
- 3.03 Install the LSC software for the chosen Linux distribution:
- 3.04 Export the VirtualBox image and publish it
- After you have installed the LSCSoft based on step 3.03, you need to locate the virtual machine image (ova file) in your VirtualBox image directory. The image can then be distributed.
- 4. AMAZON EC2 SOLUTION
- Register an Amazon EC2 Account
- In these steps, all the procedures are exactly the same as 2.01 to 2.08. The only difference is that you don't have to send me your account number since you are creating a brand-new instance by yourself.
- Choose a VM Template
- Install LSCSoft based on your choice of OS
- Export the AMI you have created
- Navigate back to the Dashboard section, choose the EC2 section. Right click the VM you want to create a template and click "create image", give it an image name and discription, then create the image by clicking the button at the button.
- Switch back to the AMIs section and double check the AMI
- You may need to wait a couple of minutes for the AMI to be shown on your AMIs section. After that, you will be able to see the AMI you just created. Then you can test it by creating a new VM based on steps from 2.13 to 2.17.
- Register an Amazon EC2 Account