User Tools

Site Tools


notes:hpc0:kdenson_projects:project_3

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
notes:hpc0:kdenson_projects:project_3 [2010/05/06 19:20] kdensonnotes:hpc0:kdenson_projects:project_3 [2010/05/13 18:48] (current) kdenson
Line 1: Line 1:
 +===Project 2 - VM Server Install===
  
 +First step of this project is to do a fresh install of the physical VM server.
 +     - F12 -> System Setup -> Integrated Devices -> Integrated NIC. Restart.
 +     - 32-bit(i386)-> Debian/i386 Netboot.install Lenny Stable[text]
 +     - Setup -> Enter mirror manually -> mirror -> /debian/ 
 +     - Setup install -> install nothing -> install grub boot loader
 +     - Reboot and change the boot prioirty back to normal.
 +
 +While running as root run the following.... 
 +     - userdel -r vm02
 +     - cd/etc/apt
 +     - rm sources.list
 +     - wget http://10.80.2.6/files/student/sources.list
 +     - aptitude updaate
 +     - aptitude upgrade
 +    
 +Next...
 +     - Aptitude install openssh-client open ssh-server
 +     - aptitude install xen-linux-system-2.26.26-2-xen-686
 +     - aptitude install xen-tools
 +
 +Next...
 +     - cd /etc/xen
 +     - vi xend-config.sxp
 +         - Find the line (network-script network-bridge) and remove the # to uncomment this line.
 +         - Find the line (network-script network-dummy) and add a # to commentout this line.
 +         - Make sure that (vif-script vif-bridge)
 +         - To quickly find these lines rather than scrolling through hit enter while not in insert mode and use a forward slash(/) and type in what you want to match.
 + 
 +Next...
 +     - vi /etc/modules
 +     - Set loop maxloop = 255
 + 
 +Next...
 +     - cd /boot/grub
 +     - vi menu.lst~
 +     - Scroll down untill you find 4 lines pertaining to xen that do not have a .gz attached to them; remove those lines.
 +     - Do this for the 3rd and 4th group of quad lines as well.
 +     - After you've removed those 3 groups of 4 lines. There should be one remaining, on the line speficied as Kernal change it to match..
 +           * kernel          /boot/xen-3.2-1-i386.gz dom0_mem=262144
 +      
 +Next...          
 +     - cd /etc/xen-tools
 +     - vi xen-tools.conf
 +     - Search for the line #dir = /home/xen
 +     - Remove the # and /home from the line. It should look like dir = /xen
 +     - Uncomment install-method = debootstrap
 +     - Down a little further find the "Disk and Sizing options" section and change the following...
 +           * size = 2Gb
 +           * dist = lenny
 +     - Down further find the line that says dhcp = 1, and uncomment.
 +     - Going further, the line passwd = 1, uncomment.
 +     - serial_device = hvc0 #default, uncomment at the beginning of the line, leave the #default alone.
 +     - A couple lines down, disk_device = xvda #default, uncomment, leave #default the same.
 +     - At the bottom of the file uncomment and change the output line to match 
 +           * output = /xen/conf
 +     - And the same for the extention line, it should read as..
 +           * extension = .cfg
 +        
 +Next
 +     - cd /
 +     - mkdir /xen
 +     - mkdir /xen/images
 +     - mkdir /xen/conf
 +     - mkdir /xen/save
 +           * These can all be done at the same time, like...
 +           * mkdir /xen /xen/images /xen/conf /xen/save
 +
 +At this point you should reboot, and see your final product up and running!