This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:mgough:vmserver [2010/05/09 21:01] – mgough | user:mgough:vmserver [2010/08/31 02:52] (current) – mgough | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Installation and Configuration of the Virtual Machine Server ===== | ||
+ | |||
+ | ==== Obtaining the Software ==== | ||
+ | |||
+ | To obtain the vm server software, follow the following input to your terminal. | ||
+ | |||
+ | Ensure that the system is set up to boot via lan. Start the computer and use this procedure. | ||
+ | |||
+ | < | ||
+ | *F12 -> System Setup -> Integrated Devices -> Integrated NIC. Restart. | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Log in as root and perform the following to set up our sources for aptitude. | ||
+ | |||
+ | userdel -r vm02 | ||
+ | cd/etc/apt | ||
+ | rm sources.list | ||
+ | wget http:// | ||
+ | aptitude update | ||
+ | aptitude upgrade | ||
+ | | ||
+ | Now we install our client system and tools. | ||
+ | |||
+ | aptitude install openssh-client open ssh-server | ||
+ | aptitude install xen-linux-system-2.26.26-2-xen-686 | ||
+ | aptitude install xen-tools | ||
+ | |||
+ | Our next step is to configure xen | ||
+ | |||
+ | cd /etc/xen | ||
+ | vi xend-config.sxp | ||
+ | Find the line (network-script network-bridge) and remove the # to uncomment this line. | ||
+ | Find the line (network-script network-dummy) and add a # to commentout this line. | ||
+ | Make sure that (vif-script vif-bridge) | ||
+ | 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. | ||
+ | |||
+ | |||
+ | vi / | ||
+ | set loop maxloop = 255 | ||
+ | |||
+ | Now to set up the grub bootloader | ||
+ | |||
+ | cd /boot/grub | ||
+ | vi menu.lst~ | ||
+ | |||
+ | Scan the file until you locate 4 lines pertaining to xen that do not have a .gz attached to them; remove those lines. | ||
+ | |||
+ | Do this for the 3rd and 4th group of quad lines as well. | ||
+ | |||
+ | On the last line, set up the kernel. | ||
+ | |||
+ | kernel | ||
+ | | ||
+ | | ||
+ | cd / | ||
+ | vi xen-tools.conf | ||
+ | |||
+ | Sarch for the line #dir = /home/xen | ||
+ | Modify the line to: | ||
+ | |||
+ | dir = /xen | ||
+ | |||
+ | Uncomment install-method = debootstrap | ||
+ | |||
+ | Search for "Disk and Sizing options" | ||
+ | |||
+ | size = 2Gb | ||
+ | dist = lenny | ||
+ | |||
+ | Uncomment the following lines: | ||
+ | |||
+ | dhcp = 1 | ||
+ | passwd = 1 | ||
+ | serial_device = hvc0 | ||
+ | disk_device = xvda | ||
+ | |||
+ | Modify the output line to read: | ||
+ | |||
+ | output = /xen/conf | ||
+ | | ||
+ | Modify the extension line to read: | ||
+ | |||
+ | extension = .cfg | ||
+ | | ||
+ | And finally | ||
+ | |||
+ | cd / | ||
+ | mkdir /xen | ||
+ | mkdir /xen/images | ||
+ | mkdir /xen/conf | ||
+ | mkdir /xen/save | ||
+ | | ||
+ | Reboot the system, and the vm server is up and ready to rock. |