==== 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: **^** You should seen a screen with 4 option chose **32-Bit (i386) .** 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: **** 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: ** ** Verify: ** ** Name of user: ** ** This will be removed later but you are forced to enter a user id Verify user account: ** ** Username of account: ** ** Password for the user: ** ** Verify Password: ** ** Participate in the package usage survey: **No ** Software Selection Screen : **** click **continue** Install Grub on Master Boot Sector: **Yes ** Once the system is done installing the operating system it will reboot At the login screen: login with **root ** Password: ** ** ==== Finale configuration of the system to turn it into a virtual server ==== **userdel -r A ** This removes the userid we created earlier. Next we need to get an update the systems package database and preform upgrades. **cd /etc/apt ** **mv sources.list sources.list.bak ** wget http://10.80.2.6/files/student/sources.list **** **aptitude update ** **aptitude upgrade ** **aptitude search ssh ** **aptitude install openssh-client openssh-server ** 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 ** **Vi modules ** 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 ** **vi xend-config.sxp ** 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: 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** **Save file: !wq** **cd /etc/xen-tools** **vi xen-tools.conf** Make changes to file so the output look like: 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. **Save file: !wq** **mkdir /xen** **mkdir /xen/images** **mkdir /xen/boot** **mkdir /xen/conf** **mkdir /xen/save**