User Tools

Site Tools


user:rlott:portfolio:project2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
user:rlott:portfolio:project2 [2011/11/02 15:32] – [Project: HP touch pad] rlottuser:rlott:portfolio:project2 [2012/03/06 16:10] (current) – [References] rlott
Line 1: Line 1:
 +======Linux VM Server Install======
  
 +A project for uninx/linux by rob Lott 
 +This project was begun on 2/12/2012 and is anticipated to take 2/13/2012 
 +=====Objectives=====
 +This process will install a virtual machine onto target Linux machine.
 +=====Prerequisites=====
 +In order to successfully accomplish/perform this project, the listed resources/experiences need to be consulted/achieved:
 +  * Desktop installation complete 
 +  * 
 +  * 
 +  * 
 +  * 
 +=====Background=====
 +
 +This project is to show how to install a virtual server on a linux based machine.
 +
 +Xen
 +VirtualBox
 +KVM
 +VMware
 +Parallels
 +VirtualPC
 +
 +
 +
 +
 +
 +
 +
 +=====Scope=====
 +
 +=====Attributes=====
 +State and justify the attributes you'd like to receive upon successful approval and completion of this project.
 +
 +  * One should gain a since of knowledge and love for virtual machine.
 +  * attribute2: why you feel your pursuit of this project will gain you this attribute
 +  * etc...
 +
 +=====Procedure=====
 +The actual steps taken to accomplish the project. Include images, code snippets, command-line excerpts; whatever is useful for intuitively communicating important information for accomplishing the project.
 +
 +
 +
 +
 +
 +
 +. Install the Debian GNU/Linux 5.0 (aka “Lenny”) to a blank device via netboot onto one of the towers in the back of the room.
 +     -32 bit(i386) 
 +     -debrain/i386 # lair selection
 +     - see Linux Desktop installation for turtorial if first step not complete
 +.Network configuration 
 +     -server hostname = default name
 +     -no proxy
 +     -mirror selection- scrool to the top and select manual entry.
 +.Accounts 
 +     -the username and password can be set to "bob" to make access easier 
 +# can be changed later 
 +.clock config
 +     - it would be best if you config your clock to the eastern US time zone. but its your choice
 +.Disk Partition 
 +     - Use the entire disk for partition
 +      use the New user configuration
 +     - finish up and write to drive 
 +.Software
 +     -ssh should be selected 
 +.After Reboot
 +     -Once logged on as user. enter into your superuser profile by typing su and passwd when prompt.
 +   #Enter the following commands in order 
 +     - cd /etc/apt
 +     - rm source.list
 +     - wget http://web.offbyone.lan/files/student/sources.list
 +     - Type vi sources.list
 +     -In the vi  Editor type ”:%s/lenny/squeeze/g” 
 +   #This will replace lenny with squeeze
 +     -Still in the awe inspiring VI Editor type ”:x” .
 +   #This will save and quit all at once
 +     - aptitude update
 +     - aptitude upgrade
 +     - aptitude install ssh
 +     - aptitude install vim 
 +     - aptitude search xen 
 +   #look for xen files the are compatable with the 32 bit/ (i386)
 +     - Aptitude install xen-linux-system-2.6.32-5- xen686 xen-tools xen-hypervisior-4.0-i386
 +   #When promted on a "yes/no" = choose Yes
 +     - aptitude purge xen-hypervisior-4.0-amd64
 +     - type shoutdown -r and return to your seat.
 +. external log in 
 +     -from a seperae terminal ssh to your vm server
 +   -# ssh root@vmserver##.student.lab
 +     - enter passwrd
 +     - vi /etc/xen/xend-config.sxp
 +       - type /network-script to search the text "network-script network-bridge"
 +     - modify the line of text by removing the '#' 
 +     - then save and quit.
 +     - vi to vi /etc/xen/scripts/vif-common.sh
 +       - type /frob_iptable()to search the text
 +       - hit the 'i' key to enter the INSERT mode
 +       - change the foling lines  
 +<cli> loop
 +    forcedeth max_interrupt_work=20 optimization_mode=1 poll_interval=100
 +    </cli>  
 +    #to
 +    
 +    <cli>
 +    loop max_loop=255
 +    #forcedeth max_interrupt_work=20 optimization_mode=1 poll_interval=100 </cli>
 +     - type :x to save and quit 
 +.next
 +   - type vi /etc/xen-tools/xen-tools.conf
 +     - delete the file's content and press 'i' to enter INSERT mode
 +   #replace the folling text with the following
 +    
 +    <cli> #
 +  # /etc/xen-tools/xen-tools.conf
 +  #
 +  
 +  ##
 +  ## Virtual Machine configuration
 +  ##
 +  dir             = /xen
 +  install-method  = debootstrap
 +  
 +  ##
 +  ## Disk and Sizing options
 +  ##
 +  size            = 2Gb      # Disk image size.
 +  memory          = 128Mb    # Memory size
 +  swap            = 128Mb    # Swap size
 +  fs              = ext3     # use the EXT3 filesystem for the disk image.
 +  dist            = squeeze  # Default distribution to install.
 +  images          = full
 +  
 +  ##
 +  ## Network configuration
 +  ##
 +  dhcp            = 1
 +  gateway         = 10.80.3.1
 +  netmask         = 255.255.255.0
 +  
 +  ##
 +  ## Password configuration
 +  ##
 +  passwd          = 1
 +  
 +  ##
 +  ## Package Mirror configuration
 +  ##
 +  arch            = i386
 +  mirror          = http://mirror/debian/
 +  mirror_squeeze  = http://mirror/debian/
 +  
 +  ##
 +  ## Filesystem settings
 +  ##
 +  ext3_options    = noatime,nodiratime,errors=remount-ro
 +  ext2_options    = noatime,nodiratime,errors=remount-ro
 +  xfs_options     = defaults
 +  reiser_options  = defaults
 +  
 +  ##
 +  ## Xen VM boot settings
 +  ##
 +  pygrub          = 1
 +  
 +  ##
 +  ## Xen VM settings
 +  ##
 +  serial_device   = hvc0
 +  disk_device     = xvda
 +  
 +  ##
 +  ## Xen configuration files
 +  ##
 +  output          = /xen/conf
 +  extension       = .cfg  </cli>
 + 
 +=====Code=====
 +Upon completion of the project, if there is an applicable collection of created code, place a copy of your finished code within <nowiki><code> </code></nowiki> blocks here.
 +
 +
 +
 +=====Reflection=====
 +Comments/thoughts generated through performing the project, observations made, analysis rendered, conclusions wrought. What did you learn from doing this project?
 +
 +=====References=====
 +In performing this project, the following resources were referenced:
 +
 +  * lab46 crew
 +  * google.com
 +  * admin
 +  * URL2
 +  * URL3 (provides useful information on topic)
 +  * URL4
 +
 +Generally, state where you got informative and useful information to help you accomplish this project when you originally worked on it (from Google, other wiki documents on the Lab46 wiki, etc.)