User Tools

Site Tools


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.
 *32-bit(i386)-> Debian/i386 Netboot.install Lenny Stable[text]
 *Setup -> Enter mirror manually -> mirror -> /debian/ 
 *Setup install -> install nothing -> install grub boot loader
 *Reboot and change the boot priority back to normal.

Log in as root and perform the following to set up our sources for aptitude.

userdel -r vm02
rm sources.list
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 /etc/modules
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          /boot/xen-3.2-1-i386.gz dom0_mem=262144
 cd /etc/xen-tools
 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” and change the following:

 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.

user/mgough/vmserver.txt · Last modified: 2010/08/30 22:52 by mgough