VMware

3BX

Exploration of the methods and materials needed for building a vmware infrastructure. Primarily oriented to the development of personal scale virtual network simulations running on virtual servers for training purposes [cf. J.Renwick]

10 Posts
0

MAP-1.1 Mathematica Platform

Posted by focaccio Nov 21, 2009

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.

Mathematica on MAP1.jpg

0 Comments Permalink
0

MAP-1.0 Mathematica Platform

Posted by focaccio Nov 10, 2009

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:

(to be continued)

0 Comments Permalink
0

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.

0 Comments Permalink
0

Notations: A-Action, R-Result, Q-Question, C-Cognition/Comment, X-Exploration research

C SES 1.1.1 This procedure is being deprecated because my research shows that Virtual Machine snapshots are not an appropriate method for VM backups. A new procedure - BES - or Backup to External Storage - will be developed using the free ghettoVCB script method found here: http://communities.vmware.com/docs/DOC-8760

0 Comments Permalink
0

The goal here is to make a repeatable procedure for saving VM snapshots to "external storage". There are a couple of reasons that I want to do this: 1. Every time I take a snapshot now, the size of my host datastore gets smaller, and 2. When I upgrade the SCSI drives on my host (DL360 G3) system and remove the old drives I don't want to lose access to my snapshots. Notations: A-Action, R-Result, Q-Question, C-Cognition, X-Exploration research

C SES 1.0.1 There has to be a function within ESX to export and import snapshots so that they do not take up storage space on the host.
Q SES 1.0.2 How do I save a virtual machine snapshot to a storage device that is not built-in to the ESX server host, for example a USB flash drive connected to the host?
X SES 1.0.3 Will research for answers and the best forum to ask the question (Q SES 1.0.2) if I do not find the answer.

0 Comments Permalink
0

UBP- Follow up Notes

Posted by focaccio Oct 15, 2009

Procedure follow up notes: N

N 1 UBP The Server that was installed was the ISO 9.04 not the CD that was in the host DL360's drive.

N 2 UBP server, following installation of GNS3 shows 7.5G of free disk space out of an original allocated 12G - so the install of Ubuntu server 9.04 with LAMP and SAMBA takes up about 4.5G. For the next VM install of Ubuntu Desktop as a GNS3 platform I'll allocate 7G.

0 Comments Permalink
0

The goal here is to make a repeatable procedure for installing GNS http://www.gns3.net/ on the Ubuntu platorm created in the UBP procedure. As before we have the following notations: A-Action; R-Result; Q-Question; C-cognition

A GUI 1.1.1 Review the video tutorial located here: http://www.blindhog.net/tutorials/gns3-linux-install/gns3-linux-install.html
A GUI 1.1.2 Followed the video tutorial

R GUI 1.1.3 When I tried to drop one of the routers into play I got an error saying to "Test" the path of the executable in preferences

A GUI 1.1.4 Went to Edit then Preferences for Dynamips. After I clicked on the "Test" button Dynamips "Started" and I was able to put a router into play and console in!

R GUI 1.1.5 I have my very first virtual lab router running on a virtual machine. Awesome!

First Virtual Router 20091013.jpg

******************
GUI - PROCEDURE SUCCESSFULLY COMPLETE; first instance
******************

In this - GUI - procedure I used the VM created in the UBP procedure as the platform to install the graphical network simulator GNS3. I was able to console in to my first virtual router created within GNS3. Next Procedure is to build the actual network labs within GNS3 and then "save" the VMs as the lab environments.

0 Comments Permalink
0

I'll be recording as I go along here: A is for action, R is for result, Q is for Question, C for cognition

A UBP 1.1.1 Wizard Type: Using the VMware Infrastructure client or VMIC New Virtual Machine Wizard choose "Custom" configuration
A UBP 1.1.2 Name and Location: UBP1 for Ubuntu Platform 1
A UBP 1.1.3 Datastore: Left as default - only one choice in this host system at this point
A UBP 1.1.4 Guest Operating System: Ubuntu 32 bit Linux
A UBP 1.1.5 Memory: Use 1024MB since my host machine only has 2G at this point
A UBP 1.1.6 Network: 1 NIC at this point, using VM Network, and Flexible adapter with connect at power on option
A UBP 1.1.7 I/O Adapter: left as default "SCSI LSI logic"
A UBP 1.1.8 Select a Disk: Create a new virtual disk
A UBP 1.1.9 Disk Capacity and Location: This is the tricky one since I have about 60G drive space - two 36G 15K Ultra320 drives - to work with and I dont yet have a good sense about how big these Lab VMs LVMs are going to be. The default is 8G. If I make the capacity 12 then I should be able to back up - don't know how yet - onto a 16G USB flash drive, so I'll start with 12. For location I choose "Store with virtual machine".
A UBP 1.1.10 Advanced Options: No idea what the Virtual Device Node or Mode is so leaving these on default: SCSI(0:0) and Mode Independent unchecked

R UBP 1.1.11 The result is that I now have UBP1 listed under the host machine - time to install Ubuntu

A UBP 1.1.12 Select UBP1 and Power On...the console is showing "PXE-M0F: Exiting Intel PXE ROM. Operating System not found"
A UBP 1.1.13 Select "Connect CD/DVD 1" in the VMIC...it wants an ISO on my machine, so I am downloading the ISO for 9.04...now connected to ISO..lets reset the VM.
A UBP 1.1.14 During reset the CD/DVD is disconnected so I reconneced, but still same result as .12 above. By accident found that if I click in the console window and hit enter the Ubuntu server set-up shows up! I don't know if it is running from the connected ISO or the physical CD in the drive...we'll see
A UBP 1.1.15 Choosing Language, Region and Keyboard
A UBP 1.1.16 Don't know if I should use "Guided - use entire disk" or the " and set up LVM" option. Since this is a simple VM, going to skip the LVM.

R UBP 1.1.17 The disk then shows up as SCSI3 (0,0,0) (sda) - 12.9 GB VMware Virtual disk...OK...Installing the base system

A UBP 1.1.18 Since this is supposed to be a bare bones system for dynagen/dynamips/GNS, I probably should have just installed a desktop ubuntu system, but since this is a server I will install the LAMP and Samba options

R UBP 1.1.19 The VM UBP1 server base model is built and I've successfully logged in.

******************
=BEGIN PROCEDURE INTERLEAVE=
Can I save a snapshot of the UBP1 base model to a USB external drive connected to the host DL360? Procedure name: Snapshot External Save SES
A SES 1.1.1 Connect Buffalo external drive to host DL360 to see what happens...

R SES 1.1.2 Nothing happened

A SES 1.1.3 Selected "Take a snapshot of this vm" from within VMIC, but there was no option of where to save it

Q SES 1.1.4 Where is the snapshot save and can I store it external to the host machine?
=END PROCEDURE INTERLEAVE=
******************

C UBP 1.1.20 Now I need to install a GUI desktop so I can run GNS
A UBP 1.1.21 Try running this code:

sudo apt-get install ubuntu-desktop

R UBP 1.1.22 It is going to take 1.8G of disk space...OK...finally finished..

A UBP 1.1.23 Reset the VM

R UBP 1.1.24 Ubuntu Server with GUI desktop is up and running in the console tab

A UBP 1.1.25 from VMIC choose Inventory, Virtual Machine, Open Console to get breakout console
A UBP 1.1.25 Take snapshot of base Ubuntu server with GUI desktop

******************
UBP - PROCEDURE SUCCESSFULLY COMPLETE; first instance
******************

In this - UBP - procedure I used ESX Server 3i 3.5.0 and a DL360 to successfully create an Ubuntu 9.04 32bit server VM with GUI desktop to serve as platform for the graphical network simulator GNS3. The next procedure is to install and GNS3 on the UBP1 vm.

0 Comments Permalink
0

Lift-Off !

Posted by focaccio Oct 13, 2009

Thanks to two really awesome dudes at CIRCUITEGRITY here in San Diego - Gabriel and Nate - I now have my first server capable of doing some real machine and network virtualization research and development work. It is a dual 3.06 GHz Xeon hp Proliant DL360 loaded with VMWare ESX Server 3i 3.5.0

3BX 240x180.jpg

I also want to thank Joe Renwick, CCIE #16465, of GoNetForward who first turned me on to VMWare and first told me about the idea of using virtual machines - where each would have its own virtual rack of network gear based on dynagen/dynamips/GNS - as virtual labs. So it would go like this: I want to study BGP routing, well I fire up the BGP virtual machine which is named such because it is running dynagen/dynamips/GNS3 configured with a BGP router lab rack, and so on...

What I'm going to do here is make this an electronic version of a research laboratoty notebook. It is for my reference and to share. I am going to log each step with a number and each number is going to be prefaced by the tag for the project that the step is on the way to accomplishing. For example the first project might be: Build a virtual Ubuntu server platform ready to install dynagen/dynamips/GNS - the tag would be UBP. The first entry title would then be UBP-1. Many steps are going to take more than one entry, so each entry will be titled with the number plus a sequential decimal number until complete. In this way I can interleave projects and steps since the title of the entry will describe what project is being worked on. If the entry does not follow the format then it is probably a commentary, open question, or digression.

0 Comments Permalink
0

I've found a couple of references for the installation of Graphical Network Simulator GNS3 http://www.gns3.net/ on ubuntu, so that is going to be the first vm.

0 Comments Permalink
Click to view focaccio's profile Member since: Jul 31, 2009

Exploration of the methods and materials needed for building a vmware infrastructure. Primarily oriented to the development of personal scale virtual network simulations running on virtual servers for training purposes [cf. J.Renwick]

View focaccio's profile

Recent Comments

  • No recent comments.

Communities