User Tools

Site Tools


user:rlott:portfolio:project2

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.

  1. 32 bit(i386)
  2. debrain/i386 # lair selection
  3. see Linux Desktop installation for turtorial if first step not complete

.Network configuration

  1. server hostname = default name
  2. no proxy
  3. mirror selection- scrool to the top and select manual entry.

.Accounts

  1. the username and password can be set to “bob” to make access easier

# can be changed later .clock config

  1. it would be best if you config your clock to the eastern US time zone. but its your choice

.Disk Partition

  1. Use the entire disk for partition
  2. use the New user configuration
  3. finish up and write to drive

.Software

  1. ssh should be selected

.After Reboot

  1. Once logged on as user. enter into your superuser profile by typing su and passwd when prompt.

#Enter the following commands in order

  1. cd /etc/apt
  2. rm source.list
  3. Type vi sources.list
  4. In the vi Editor type ”:%s/lenny/squeeze/g”

#This will replace lenny with squeeze

  1. Still in the awe inspiring VI Editor type ”:x” .

#This will save and quit all at once

  1. aptitude update
  2. aptitude upgrade
  3. aptitude install ssh
  4. aptitude install vim
  5. aptitude search xen

#look for xen files the are compatable with the 32 bit/ (i386)

  1. 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

  1. aptitude purge xen-hypervisior-4.0-amd64
  2. type shoutdown -r and return to your seat.

. external log in

  1. from a seperae terminal ssh to your vm server
  2. # ssh root@vmserver##.student.lab
  3. enter passwrd
  4. vi /etc/xen/xend-config.sxp
    1. type /network-script to search the text “network-script network-bridge”
  5. modify the line of text by removing the '#'
  6. then save and quit.
  7. vi to vi /etc/xen/scripts/vif-common.sh
    1. type /frob_iptable()to search the text
    2. hit the 'i' key to enter the INSERT mode
    3. change the foling lines
 loop
    forcedeth max_interrupt_work=20 optimization_mode=1 poll_interval=100

#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

  1. type vi /etc/xen-tools/xen-tools.conf
    1. 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 <code> </code> 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.)

user/rlott/portfolio/project2.txt · Last modified: 2012/03/06 16:10 by rlott