When testing my new xen hypervisor scheduling algorighm, I often got hang issues when debugging.
Then I am thinking: why not install hypervisor on vmware workstation.
Several steps:
1. Install workstation
2. Create Vmware guest using ubuntu 8.0.4(hardy) iso images
3. boot up guest, under the guest os, download xen3.3.0 source code
4. make world; make install(need to install a lot of tools before this)
apt-get install bcc bin86 gawk bridge-utils iproute libcurl3 libcurl4-openssl-dev bzip2 module-init-tools transfig tgif texinfo pciutils-dev mercurial build-essential make gcc libc6-dev zlib1g-dev python python-dev python-twisted libncurs
es5-dev patch libvncserver-dev libsdl-dev libjpeg62-dev
5. using mkinitramfs to create init fs
# depmod 2.6.18.8-xen
# mkinitramfs -o initrd-2.6.18.8-xen.img 2.6.18.8-xen
6 Add
title xen 3.3
root (hd0,0)
kernel /boot/xen-3.3.0.gz
#module /boot/vmlinuz-2.6.18.8-xen root=UUID=79cf418b-8975-4041-8d74-345f5728b363 ro quiet splash console=tty0
module /boot/vmlinuz-2.6.18.8-xen root=/dev/sda1 ro quiet splash console=tty0
module /boot/initrd.img-2.6.18.8-xen
to /boot/grub/menu.lst
7. Boot up Xen
8. apt-get install xen-tools
modify /etc/xen-tools/xen-tools.conf
choose lenny, and other adjustments you want.
9. sudo xen-create-image --ip 192.168.92.3 --hostname=vm0
10. sudo xm create -c vm0.cfg
most likely guest stuck at crond, add "xencons=tty" in /home/xen/vm0.cfg at extras line.
No comments:
Post a Comment