First step of this project is to do a fresh install of the physical VM server.
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 prioirty back to normal.
While running as root run the following….
userdel -r vm02
cd/etc/apt
rm sources.list
-
aptitude updaate
aptitude upgrade
Next…
Aptitude install openssh-client open ssh-server
aptitude install xen-linux-system-2.26.26-2-xen-686
aptitude install xen-tools
Next…
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.
Next…
vi /etc/modules
Set loop maxloop = 255
Next…
cd /boot/grub
vi menu.lst~
Scroll down untill you find 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.
After you've removed those 3 groups of 4 lines. There should be one remaining, on the line speficied as Kernal change it to match..
Next…
cd /etc/xen-tools
vi xen-tools.conf
Search for the line #dir = /home/xen
Remove the # and /home from the line. It should look like dir = /xen
Uncomment install-method = debootstrap
Down a little further find the “Disk and Sizing options” section and change the following…
Down further find the line that says dhcp = 1, and uncomment.
Going further, the line passwd = 1, uncomment.
serial_device = hvc0 #default, uncomment at the beginning of the line, leave the #default alone.
A couple lines down, disk_device = xvda #default, uncomment, leave #default the same.
At the bottom of the file uncomment and change the output line to match
And the same for the extention line, it should read as..
Next
cd /
mkdir /xen
mkdir /xen/images
mkdir /xen/conf
mkdir /xen/save
At this point you should reboot, and see your final product up and running!