User Tools

Site Tools


notes:notes:hpc0:kdenson_projects:project_3

Project 2 - VM Server Install

First step of this project is to do a fresh install of the physical VM server.

  1. F12 → System Setup → Integrated Devices → Integrated NIC. Restart.
  2. 32-bit(i386)→ Debian/i386 Netboot.install Lenny Stable[text]
  3. Setup → Enter mirror manually → mirror → /debian/
  4. Setup install → install nothing → install grub boot loader
  5. Reboot and change the boot prioirty back to normal.

While running as root run the following….

  1. userdel -r vm02
  2. cd/etc/apt
  3. rm sources.list
  4. aptitude updaate
  5. aptitude upgrade

Next…

  1. Aptitude install openssh-client open ssh-server
  2. aptitude install xen-linux-system-2.26.26-2-xen-686
  3. aptitude install xen-tools

Next…

  1. cd /etc/xen
  2. vi xend-config.sxp
    1. Find the line (network-script network-bridge) and remove the # to uncomment this line.
    2. Find the line (network-script network-dummy) and add a # to commentout this line.
    3. Make sure that (vif-script vif-bridge)
    4. 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…

  1. vi /etc/modules
  2. Set loop maxloop = 255

Next…

  1. cd /boot/grub
  2. vi menu.lst~
  3. Scroll down untill you find 4 lines pertaining to xen that do not have a .gz attached to them; remove those lines.
  4. Do this for the 3rd and 4th group of quad lines as well.
  5. 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…

  1. cd /etc/xen-tools
  2. vi xen-tools.conf
  3. Search for the line #dir = /home/xen
  4. Remove the # and /home from the line. It should look like dir = /xen
  5. Uncomment install-method = debootstrap
  6. Down a little further find the “Disk and Sizing options” section and change the following…
  • size = 2Gb
  • dist = lenny
  1. Down further find the line that says dhcp = 1, and uncomment.
  2. Going further, the line passwd = 1, uncomment.
  3. serial_device = hvc0 #default, uncomment at the beginning of the line, leave the #default alone.
  4. A couple lines down, disk_device = xvda #default, uncomment, leave #default the same.
  5. At the bottom of the file uncomment and change the output line to match
  • output = /xen/conf
  1. And the same for the extention line, it should read as..
  • extension = .cfg

Next

  1. cd /
  2. mkdir /xen
  3. mkdir /xen/images
  4. mkdir /xen/conf
  5. 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!

notes/notes/hpc0/kdenson_projects/project_3.txt · Last modified: 2010/05/13 18:48 by 127.0.0.1