hi,Shriram
i install xen-4.2-unstable on squeeze(i386) according to
http://remusha.wikidot.com/:
1)*install xen*
#cd /usr/src
#hg clone http://xenbits.xensource.com/xen-unstable.hg xen-unstable
#cd xen-unstable
#make clean
#make xen tools
#make install-xen
#make install-tools PYTHON_PREFIX_ARG=
2)*compile kernel 2.6.32.40*
#cd /usr/src
#git clone http://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git
linux-2.6-xen
#cd linux-2.6-xen
#git reset --hard
2b494f184d3337d10d59226e3632af56ea66629a(必须的,将内核定在2.6.32.40)
#wget
http://remusha.wikidot.com/local--files/configuring-and-installing-remus/config-2.6.32.40-xen0-i386
#cp config-2.6.32.40-xen0-i386 .config
#make menuconfig ARCH=i386
#make clean
#make
#make modules_install install
#mkinitramfs -o /boot/initrd.img-2.6.32.40 2.6.32.40
3)*install xen-tools*
#cd /usr/src
#wget http://www.xen-tools.org/software/xen-tools/xen-tools-4.2.1.tar.gz
#tar -xzvf xen-tools-4.2.1.tar.gz
#cd /usr/src/xen-tools-4.2.1
#make clean
#make install
4)*edit /etc/default/grub*
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to
Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_LINUX_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
# Disable OS prober to prevent virtual machines on logical volumes from
appearing in the boot menu.
GRUB_DISABLE_OS_PROBER="true"
5) *edit /etc/grub.d/08_xen*
#!/bin/sh
exec tail -n +3 $0
menuentry "Xen Unstable / Debian Squeeze kernel 2.6.32.40" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set
462d4924-f228-4721-a6ff-adc82d0f3c2b
multiboot /boot/xen-4.2-unstable.gz dummy
module /boot/vmlinuz-2.6.32.40 dummy
root=UUID=462d4924-f228-4721-a6ff-adc82d0f3c2b ro quiet console=tty0
nomodeset
module /boot/initrd.img-2.6.32.40
}
the UUID is according to *blkid* command.
6)update grub
#chmod -x /etc/grub.d/20_linux_xen
#chmod 755 /etc/grub.d/08_xen
#update-grub2
after reboot,xend boots proerly.
i don't install drbd.
then i install a new centos 5.5(i386)HVM as usual,the VM config file is as
follows:
*kernel = "hvmloader"
builder='hvm'
memory = 1024
name = "centos-i386"
vcpus=4
vif = [ 'type=ioemu, bridge=eth0,mac=00:16:3e:3a:7a:de' ]
pae = 1
acpi = 1
apic = 1
disk = [ 'tap2:aio:/home/xen/tpl/hvm/ubuntu.img,hda,w',
'file:/home/xen/tpl/hvm/CentOS-5.5-i386-bin-DVD.iso,hdc:cdrom,r' ]
device_model = 'qemu-dm'
boot="cd"
sdl = 0
vnc = 1
vnclisten = "0.0.0.0"
stdvga = 0
serial = "pty"*
after installation,i change the disk string to "disk = [
'tap2:aio:/home/xen/tpl/hvm/centos.img,hda,w']
",and then the CentOS HVM can boot successfully,the CentOS VM kernel is*
2.6.18-194.el5*.
BUT these are some problems:
1)remus centos-i386
*Disk is not replicated: tap:aio:/home/xen/tpl/hvm/centos.img,hda,w
tc qdisc add dev vif1.0 ingress
Cannot find device "vif1.0"
Traceback (most recent call last):
File "/usr/bin/remus", line 219, in <module>
run(cfg)
File "/usr/bin/remus", line 125, in run
bufs.append(BufferedNIC(vif))
File "/usr/local/lib/python2.6/dist-packages/xen/remus/device.py", line
326, in __init__
self.setup()
File "/usr/local/lib/python2.6/dist-packages/xen/remus/device.py", line
358, in setup
self.bufdev.install(self.vif)
File "/usr/local/lib/python2.6/dist-packages/xen/remus/device.py", line
181, in install
raise e
xen.remus.util.PipeException: tc failed (errmsg: Cannot find device
"vif1.0"): 1, Operation not permitted*
2)remus --no-net centos-i386
*Disk is not replicated: tap:aio:/home/xen/tpl/hvm/centos.img,hda,w
Segmentation fault*
3)remus --no-net --blackhome centos-i386
*Segmentation fault*
didn't remus support CentOS HVM?but a try fedora/rhel/ubuntu/suse.....,the
result is the same.
so i think there is something wrong as i do,but i have not found it.
any suggestions would be appreciated.
best regards
yous
yunjiedu
--
View this message in context:
http://xen.1045712.n5.nabble.com/remus-problem-tp4745592p4917603.html
Sent from the Xen - User mailing list archive at Nabble.com.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|