Notations: A-Action, R-Result, Q-Question, C-Cognition/Commentary, X-Exploration research
A MAP-1.1.1 Completed the Mathematica installation.
R MAP-1.1.2 Mathematica installation completed successfully. As far as I can tell at this point Mathematica 7 for Students runs well on an Ubuntu Server 9.10 virtual machine in the ESX Server 3i 3.5 Build 153875 environment.
This - MAP - procedure details the steps I am taking to build an Ubuntu 9.10 server virtual machine platform ready to install Mathematica 7. I will also be documenting the steps I am taking to perform the Mathematica 7 installation. I've wanted to get to know Mathematica for as long as I can remember. I am excited to see what kind of ways I can integrate it into my work as Network Engineer and especially to see what types of tools I can develop.
Notations: A-Action, R-Result, Q-Question, C-Cognition/Commentary, X-Exploration research
C MAP 1.0.1 - I recently added 2x 2GB RAM sticks to my DL360 G3 host. Now running at 4.7G RAM
A MAP 1.0.2 - Create a new virtual machine
a. Custom virtual machine
b. 2 virtual CPUs
c. Choose the memory size recommended for best performance: 4864MB
d. 1 NIC, VM Network, Flexible
e. SCSI LSI logic
f. Create new virtual disk, 18GB, browse to "datastore2"
g. start VM, connect to Ubuntu 9.10 server ISO
h. server install successfully - with LAMP and SAMBA
i. install ubuntu gui desktop: apt-get install ubuntu-desktop (takes 2G more disk space)
j. reboot MAP1 vm after successful ubuntu-desktop install
k. insert Mathematica 7 into CD/DVD drive
l. execute this command: root@MAP1:/media/cdrom0/Unix/Installer# sh MathInstaller
R MAP 1.0.3 - Below is the resulting text
Enter the installation directory, or press ENTER to select
/usr/local/Wolfram/Mathematica/7.0:
A MAP 1.0.4 - Hit enter
R MAP 1.0.5 - Below is the result
Now Installing...
[****
C MAP 1.0.6 - It took so long for the first * to appear in the installation that I assumed that it hung so I exited and restarted, resolving to let it try installing overnight. While I was doing some research on issues with Mathematica and Ubuntu I went back to the console and say sime stars..
R MAP 1.0.7 - More output from the install
Type the directory path in which the Wolfram Mathematica script(s) will be
created, or press ENTER to select /usr/local/bin:
Please choose how you want to configure the password for Wolfram Mathematica 7.0.
(1) Single machine
Install a password specific to this machine. Wolfram Mathematica will
launch, and you can enter your password.
(2) Network license
Obtain a license from a MathLM license server on your network each time
Wolfram Mathematica is launched.
(3) Enter license information later
Input your password and register when you start Wolfram Mathematica.
Type your selection, or press ENTER to select (1):
Configuring Single-Machine password...
Mathematica 7.0 for Linux x86 (32-bit)
Copyright 1988-2009 Wolfram Research, Inc.
You will need to get a password from your
license certificate or from Wolfram Research
(http://register.wolfram.com).
Machine name: Machine name
MathID: MathID number
You will need a valid license ID and password in order
to proceed. Go to http://register.wolfram.com or
consult your Getting Started documentation.
Enter your name:
The goal here is to recreate (using the procedures of William Lam and Raj Perumal) a repeatable procedure for backing up VMs to "external storage". The system I am using is ESX server 3i 3.5.0 Build 153875
Notations: A-Action, R-Result, Q-Question, C-Cognition, X-Exploration research
A BES 1.0.1 - Allow SSH to ESX host server
(This step is only necessary on the first instance of the procedure)
Go the physical server hosting ESX and press Alt+F1, then type "unsupported" - you will not see anything as you type - you will then be prompted for a password. After gaining root access use vi to edit /etc/inetd.conf Remove "#" comment character in front of the SSH line. Save changes and reboot the system. You now have SSH access to the host.
A BES 1.0.2 - Get script to ESX host server
(This step is only necessary on the first instance of the procedure)
Download a copy of the ghettoVCB script found here http://communities.vmware.com/docs/DOC-8760 then transfer it without modification to the ESX server with WinSCP making sure the transfer happens in Text mode. The destination on the ESX server should be: /vmfs/volumes/"datastorename". Once the transfer is complete change the permission to allow it to be executed: chmod +x ghettoVCB.sh
A BES 1.0.3 - Create list of VMs to back up
(This step is only necessary on the first instance and then every time the list of VMs to be backed up changes)
Since the script uses a text file to input the names (one per line) of the VMs to be backed up, this needs to created on the ESX host server. Use vi to create the textfile in the same directory in which the ghettoVCB.sh script is located.
A BES 1.0.4 - Create destination for backups
(This step is only necessary on the first instance and every time the backup storage destination changes)
I took Raj's advice and downloaded Allegro NFS in order to create and NFS share on my Windows machine as the destination for the backups.
Launch Allegro NFS to create the share
a. in the Export tab click "new" type /j/vmwarebackups (where j is the local partition and vmwarebackups is the folder)
b. browse for folder to partition j and folder vmwarebackups
c. click all on allowed hosts list, click everyone and root for read/write, do not click anything in read only
d. click apply and the apply button goes grey, click ok and Allegro NFS config window closes.
Open VMware Infrastructure Client (VIC) to add the share as a datastore
e. select host machine
f. select Storage in hardware then select add storage link
g. select NFS then next
h. input the static IP of the backup destination
i. input the path of the backup destination ( see a., and b. above)
j. do not check Mount NFS read-only
k. input the name of the datastore - for example: backup
l. click next and finish
R BES 1.0.5 - You see the new data store in the VIC
A BES 1.0.6 - Configure the ghettoVCB script
(This step is only necessary on the first instance and every time you need to reconfigure the script)
Use vi to edit the ghettoVCB.sh file on the ESX server
a. first make a backup of the script: cp ghettoVCB.sh unmodified_ghettoVCB.sh
b.. VM_BACKUP_VOLUME=/vmfs/volumes/backup or whatever the path of the NFS share is from BES 1.0.4i
c.. any other changes needed based on reading of script
d.. write changes and exit vi
Q BES 1.0.7 - My Windows NFS share is probably non-persistent NFS-backup, but I didn't modify the non-persistent section of the script - will this matter?
A BES 1.0.8 - Run the script
(This step will be needed every time you want a backup unless a cron'd)
a. execute the script: ./ghettoVCB.sh vmbackups
R BES 1.0.9 - The script ran successfully and let me know that since a snapshot was found the backup will not take place.
A BES 1.0.10 - Remove the snapshots before running the backup
a. shut down VM
b. go to snapshot manager in VIC and select remove all snapshots
c. the task window show in progress, but it has been a long time - good thing I trusted VMware and didn't reboot the box - that operation took 30 minutes, but completed successfully.
Q BES 1.0.11 - Why after removing the snapshots have I not gained capacity back on my datastore?
A BES 1.0.12 - Re-Run the script now that snapshot were removed.
a. execute the script: ./ghettoVCB.sh vmbackups
b. Script running sucessfully with % done ticker.