Creating an SL Virtual Machine¶
You can create an SL virtual machine on a different operating system in order to run the artdaq demo. Below are the instructions, tested on Mac OS X 10.10.
- Download VirtualBox for your OS and the extension pack from the VirtualBox web page: https://www.virtualbox.org/wiki/Downloads
- Install VirtualBox, and then the Extension Pack.
- Make an "Other Linux" virtual machine system. I'd recommend 2 GB of RAM, and at least 15 GB of hard disk (but opt for more if you can).
- Download a boot ISO for SL. You can find a SLF6 one here: http://linux1.fnal.gov/download/slf6x/network.install.x86_64/boot.iso
- Point the CDROM of the virtual machine to load this file. To do that, in the VM settings, go to storage, click on the optical drive, and then click on the cdrom button on the right-hand side under the attributes. Click the 'Choose Virtual Optical Disk File' option, and point it to the boot ISO from the previous step.
- Start the VM. You should see a 'Welcome to SLF 6!' screen and give options for installation. Choose 'Install or Upgrade to SLF6.x'
- After some booting, it will ask to do a test of the disk (the boot ISO). Say 'Skip'
- It should download updates and a basic installation image, and lead you to the GUI installation screen.
- Follow the steps through that, setting up the system as you'd like. I'd recommend one partition devoted to the VM, where you completely wipe whatever was before it.
- Select the timezone.
- Choose installation packages. I'd suggest the default SLF Desktop, with just the default options for add-ons.
- Wait for the installation to finish. Will likely take a while!
- There will be an automatic reboot. Turn the VM off at this point, and go back to the VM settings, Storage, and click on the optical drive, then click on the cdrom button and click 'Remove Disk from Virtual Drive'
- Start up the VM, fill out the initial user info.
- Follow the instructions for the artdaq demo. You will need to install ruby: to do so, you can use the gui package manager. Go to 'System' on the main toolbar, then 'Administration' then 'Add/Remove Software'. Search for 'curl' and download the basic ruby library.
- Before running the quick-start, you need to change the /etc/hosts file to recognize your system name. Find your assigned IP address (using ifconfig), and insert a line into the /etc/hosts file as root to assign the hostname as a nickname for that IP address (follow the pattern for the local host). Then you can run the demo.