User Tools

Site Tools


user:jbrant:csit1320:project1

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:jbrant:csit1320:project1 [2010/02/07 12:39] jbrantuser:jbrant:csit1320:project1 [2010/05/15 21:21] (current) jbrant
Line 1: Line 1:
 +==== Virtual Server Install ====
  
 +Upon bootup hit **F12**  to enter the Boot Menu
 +
 +Goto **System Setup**
 +
 +**Chose Integrated Devices**
 +
 +**Select Integrated NIC**  set option to  **On w/ PXE**
 +
 +Reboot:  **^<alt><del>**
 +
 +You should seen a screen with 4 option chose  **32-Bit (i386) <enter>.**
 +
 +The next  screen has 4 options, the one required is:\\ 
 +**Debian/i386 Netboot. install Lenny stable[text]**
 +
 +Choose a language: **English**
 +
 +Choose a country: **United States
 +**
 +Keymap: **American English**
 +
 +Host Name: **vmseverXY** \\    
 + X=bank number (0 or 1) and Y= system number is system in bank (1-4) 
 +
 +Domain Name:**student.lab**
 +
 +Debian archive mirror country: Scroll to the top, chose **'Enter informatin Manually'** 
 +
 +Next **mirror**
 +
 +NOTE: Use the default settings for the next 3 options
 +Debian archive mirror hostname: ** mirror**
 +
 +Debian archive mirror directory: **/debian/**
 +
 +HTTP proxy information: **<leave blank>**
 +
 +Time Zone: **Eastern**
 +
 +==== Partitioning the Hard Drive ====
 +
 +Partitioning method:  **Use entire disk**
 +
 +Select disk to partition: **IDE1 master (hda**)
 +
 +Partitioning Scheme: **All files in partition **
 +
 +Write the changes to the disk: **Yes**
 +
 +Root password: **<enter password> <enter>**
 +
 +Verify: **<reenter password> <enter>**
 +
 +Name of user: **<A> <enter>** 
 + This will be removed later but you are forced to enter a user id
 +
 +Verify user account: ** <enter> **
 +
 +Username of account: **<A> <enter>**
 +
 +Password for the user: **<A> <enter>**
 +
 +Verify Password: **<A> <enter> **
 +
 +Participate in the package usage survey: **No <enter>**
 +
 +Software Selection Screen : **<Uncheck all options>** click **continue**
 +
 +Install Grub on Master Boot Sector: **Yes <enter>**
 +
 +Once the system is done installing the operating system it will reboot
 +
 +At the login screen:  login with **root <enter>** 
 +
 +Password: **<root password> <enter>**
 +
 +==== Finale configuration of the system to turn it into a virtual server ==== 
 +
 +**userdel -r A  <enter>** 
 + This removes the userid we created earlier.
 +
 +Next we need to get an update the systems package database and preform upgrades.
 +
 +**cd /etc/apt <enter>** 
 +
 +**mv sources.list sources.list.bak <enter>**
 +
 +<nowiki> wget http://10.80.2.6/files/student/sources.list </nowiki> **<enter>** 
 +
 +**aptitude update <enter>** 
 +
 +**aptitude upgrade <enter>** 
 +
 +**aptitude search ssh <enter>** 
 +
 +**aptitude install openssh-client openssh-server <enter>** 
 +
 +Do you want to contine (Y/n) chose **Y**
 + 
 +**aptitude install xen-linux-system-2.6.26-2-xen-686  xen-tools** 
 +
 +Do you want to contine (Y/n) chose **Y**
 +
 +**cd  /etc <enter>**
 +
 +**Vi  modules <enter>**
 +
 +Move down to loop and concatenate **max_loop= 255** to the end of the line. Then save the file. **!wq**
 +
 +Line looks like **'loop max_loop=255'**
 +
 +**cd /etc/xen <enter>**
 +
 +**vi xend-config.sxp <enter>**
 +
 +verify that these two lines are un-commented  (if commented remove the **#** at the beginning of each line)
 +
 +  (network-script network-bridge)
 +  (vif-script vif-bridge)
 +
 +Comment out this line ( inserting a **#** as the first character  of the line)
 +
 +  (network-script network-dummy)
 +
 +Save file:  **!wq**
 +
 +**cd /boot/grub**
 +
 +**vi menu.lst**
 +
 +Edit the following line as indicated:
 +
 +<code>
 + title           Xen 3.2-1-i386 / Debian GNU/Linux, kernel 2.6.26-2-xen-686
 + root            (hd0,0)
 +Add text in quotes==> kernel          /boot/xen-3.2-1-i386.gz "dom0_mem=262144"
 + module          /boot/vmlinuz-2.6.26-2-xen-686 root=/dev/hda1 ro console=tty0
 + module          /boot/initrd.img-2.6.26-2-xen-686
 +
 +Delete title           Debian GNU/Linux, kernel 2.6.26-2-xen-686
 +Delete root            (hd0,0)
 +Delete kernel          /boot/vmlinuz-2.6.26-2-xen-686 root=/dev/hda1 ro quiet
 +Delete Initrd          /boot/initrd.img-2.6.26-2-xen-686
 +
 +Delete title           Debian GNU/Linux, kernel 2.6.26-2-xen-686 (single-user mode)
 +Delete root            (hd0,0)
 +Delete kernel          /boot/vmlinuz-2.6.26-2-xen-686 root=/dev/hda1 ro single
 +Delete initrd          /boot/initrd.img-2.6.26-2-xen-686**
 +
 +</code>
 +
 +**Save file: !wq**
 +
 +**cd /etc/xen-tools**
 +
 +**vi  xen-tools.conf**
 +
 +Make changes to file so the output look like: 
 +<code>
 +  dir = /xen
 +  install-method = debootstrap
 +  size   = 2Gb      # Disk image size.
 +  memory = 128Mb    # Memory size
 +  swap   = 128Mb    # Swap size
 +  fs     = ext3     # use the EXT3 filesystem for the disk image.
 +  dist   = lenny    # Default distribution to install.
 +  image  = full     # Specify sparse vs. full disk images.
 +  dhcp = 1
 +  passwd = 1
 +  kernel      = /boot/vmlinuz-`uname -r`
 +  initrd      = /boot/initrd.img-`uname -r`
 +  mirror = http://mirror/debian/
 +  ext3_options   = noatime,nodiratime,errors=remount-ro
 +  ext2_options   = noatime,nodiratime,errors=remount-ro
 +  xfs_options    = defaults
 +  reiser_options = defaults
 +  serial_device = hvc0 #default
 +  disk_device = xvda #default
 +  output    = /xen/conf
 +  extension = .cfg
 +
 +NOTE: These lines are not all together in the file please but are in this order.
 +
 +</code>
 +**Save file: !wq**
 +
 +**mkdir /xen**
 +
 +**mkdir /xen/images**
 +
 +**mkdir /xen/boot**
 +
 +**mkdir /xen/conf**
 +
 +**mkdir /xen/save**