This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:cgaines:portfolio:hpc0project2 [2013/02/13 16:41] – [Project: YOUR PROJECT NAME HERE] cgaines | user:cgaines:portfolio:hpc0project2 [2013/02/13 17:18] (current) – [Procedure] cgaines | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======VM Server - Squeeze Install Part 2====== | ||
+ | |||
+ | Installation of i386 Debian/ | ||
+ | |||
+ | start date 2/6/13 | ||
+ | end date 2/13/13 | ||
+ | |||
+ | Partner Erik Scouten | ||
+ | |||
+ | =====Objectives===== | ||
+ | State the purpose of this project. What is the point of this project? What do we hope to accomplish by undertaking it? | ||
+ | |||
+ | =====Prerequisites===== | ||
+ | |||
+ | http:// | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | =====Procedure===== | ||
+ | |||
+ | System Update and Configuration | ||
+ | |||
+ | Type “cd /etc/apt” and press < | ||
+ | | ||
+ | Type “mv sources.list sources.list.salv” and press < | ||
+ | | ||
+ | Type “wget http:// | ||
+ | | ||
+ | Type “vi sources.list” and press < | ||
+ | | ||
+ | In the amazing VI Editor type ”: | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | Still in the awe inspiring VI Editor typeAptitude Updates and Xen | ||
+ | |||
+ | Type cd to get back to the '#' | ||
+ | | ||
+ | Type “aptitude upgrade” and press < | ||
+ | | ||
+ | Type “apt-get install vim” and press < | ||
+ | When prompted to continue enter “Y” and press < | ||
+ | |||
+ | Type “aptitude install xen-linux-system xen-tools” and press < | ||
+ | When prompted to continue enter “Y” and press < | ||
+ | |||
+ | Type “apt-get install ssh” and press < | ||
+ | When prompted to continue enter “Y” and press < | ||
+ | |||
+ | |||
+ | |||
+ | External script configuration | ||
+ | |||
+ | Using an outside terminal within the lab logon to a terminal session. | ||
+ | Log into the new VM server by typing “ssh root@vmserver02.student.lab” and press < | ||
+ | Enter the root password and press < | ||
+ | | ||
+ | Type “vi / | ||
+ | In the elation instilling VI Editor type ”/ | ||
+ | Press the <N> key untill you find ' | ||
+ | Use the arrow keys to place the cursor over the '#' | ||
+ | |||
+ | Type ”:wq” and press < | ||
+ | | ||
+ | Type “vi / | ||
+ | In the endorphin simulating VI Editor, type ”/ | ||
+ | Press the <I> key to enter insert mode (indicated in the lower left corner.) | ||
+ | Within the frob_iptable function make two changes (as follows.) | ||
+ | |||
+ | The line: | ||
+ | |||
+ | |||
+ | iptables " | ||
+ | | ||
+ | | ||
+ | |||
+ | changes to: | ||
+ | |||
+ | | ||
+ | iptables " | ||
+ | | ||
+ | |||
+ | AND the line: | ||
+ | |||
+ | | ||
+ | --physdev-out " | ||
+ | | ||
+ | |||
+ | changes to: | ||
+ | |||
+ | | ||
+ | --physdev-is-bridged --physdev-out " | ||
+ | | ||
+ | |||
+ | Press the <Esc> key to exit insert mode. | ||
+ | |||
+ | Type ”:wq” and press < | ||
+ | | ||
+ | Type “vi / | ||
+ | Press <I> to enter insert mode in the Reality Altering VI Editor. | ||
+ | |||
+ | |||
+ | Change the lines: | ||
+ | |||
+ | | ||
+ | loop | ||
+ | |||
+ | | ||
+ | |||
+ | into: | ||
+ | |||
+ | | ||
+ | loop max_loop=255 | ||
+ | #forcedeth max_interrupt_work=20 optimization_mode=1 poll_interval=100 | ||
+ | |||
+ | and press <Esc> to exit insert mode. | ||
+ | |||
+ | Type ”:wq” and press < | ||
+ | | ||
+ | Type “vi / | ||
+ | |||
+ | Type “i” to clear the file and enter insert mode. | ||
+ | |||
+ | |||
+ | Enter the following lines. | ||
+ | # | ||
+ | # / | ||
+ | # | ||
+ | | ||
+ | ## | ||
+ | ## Virtual Machine configuration | ||
+ | ## | ||
+ | dir = /xen | ||
+ | install-method | ||
+ | | ||
+ | ## | ||
+ | ## Disk and Sizing options | ||
+ | ## | ||
+ | size = 2Gb # Disk image size. | ||
+ | memory | ||
+ | swap = 128Mb # Swap size | ||
+ | fs = ext3 # use the EXT3 filesystem for the disk image. | ||
+ | dist = squeeze | ||
+ | images | ||
+ | | ||
+ | ## | ||
+ | ## Network configuration | ||
+ | ## | ||
+ | dhcp = 1 | ||
+ | gateway | ||
+ | netmask | ||
+ | | ||
+ | ## | ||
+ | ## Password configuration | ||
+ | ## | ||
+ | passwd | ||
+ | | ||
+ | ## | ||
+ | ## Package Mirror configuration | ||
+ | ## | ||
+ | arch = i386 | ||
+ | mirror | ||
+ | mirror_squeeze | ||
+ | | ||
+ | ## | ||
+ | ## Filesystem settings | ||
+ | ## | ||
+ | ext3_options | ||
+ | ext2_options | ||
+ | xfs_options | ||
+ | reiser_options | ||
+ | | ||
+ | ## | ||
+ | ## Xen VM boot settings | ||
+ | ## | ||
+ | pygrub | ||
+ | | ||
+ | ## | ||
+ | ## Xen VM settings | ||
+ | ## | ||
+ | serial_device | ||
+ | disk_device | ||
+ | | ||
+ | ## | ||
+ | ## Xen configuration files | ||
+ | ## | ||
+ | output | ||
+ | extension | ||
+ | |||
+ | Then press <Esc> to exit insert mode. | ||
+ | |||
+ | Type ”:wq” and press < | ||
+ | | ||
+ | Type “vi / | ||
+ | | ||
+ | Type “33” and press < | ||
+ | |||
+ | |||
+ | Enter the following at the end of the file: | ||
+ | |||
+ | | ||
+ | # Disable OS prober to prevent virtual machines on logical volumes from | ||
+ | # appearing in the boot menu. | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | Then press <Esc> to leave insert mode. | ||
+ | |||
+ | Once again type ”:wq” and press < | ||
+ | |||
+ | |||
+ | Type “mv / | ||
+ | |||
+ | Type “update-grub2” and press < | ||
+ | | ||
+ | Type “vi / | ||
+ | |||
+ | |||
+ | Make the following changes: | ||
+ | |||
+ | | ||
+ | XENDOMAINS_SAVE=/ | ||
+ | | ||
+ | |||
+ | gets changed to: | ||
+ | |||
+ | | ||
+ | XENDOMAINS_SAVE="" | ||
+ | | ||
+ | |||
+ | Then change the XENDOMAINS_RESTORE line to: | ||
+ | |||
+ | | ||
+ | XENDOMAINS_RESTORE=false | ||
+ | | ||
+ | |||
+ | Press the <Esc> key to exit insert mode. | ||
+ | |||
+ | Type ”:wq” and press < | ||
+ | |||
+ | Directory creation | ||
+ | |||
+ | Create directories | ||
+ | Type “mkdir /xen” and press < | ||
+ | Type “mkdir / | ||
+ | Type “mkdir / | ||
+ | Type “mkdir / | ||
+ | Type “mkdir / | ||
+ | Type “shutdown -r now” and press < | ||
+ | |||
+ | Final check | ||
+ | |||
+ | Wait for the system to reboot. | ||
+ | Login in again from the remots terminal by typing “ssh -v root@10.80.3.12” and pressing < | ||
+ | Enter the root password. | ||
+ | Confirm that there are no errors, and only one Virtual machine running by typing “xm list” and pressing < | ||
+ | |||
+ | VM server is now installed and confirmed. Type “exit” and press < | ||
+ | |||
+ | |||
+ | =====Execution===== | ||
+ | Again, if there is associated code with the project, and you haven' | ||
+ | |||
+ | <cli> | ||
+ | lab46: | ||
+ | Hello, World! | ||
+ | lab46: | ||
+ | </ | ||
+ | |||
+ | |||