centos下安装xen4.0
2010-10-25 21:30
参考上述给的文档,相当详细 O(∩_∩)O~ 总结记录一些自己碰到的问题和解决方式
1)
drivers/built-in.o: In function `blktap_prep_foreign’:
/usr/src/linux-2.6.31.8-xen/drivers/xen/blktap2/device.c:442: undefined reference to `blkback_pagemap_read’
make menuconfig中,xen--->选项下Block-device tap中的相应选项有选择为*的,修改为M就ok2)
insmod: error inserting '/lib/dm-region-hash.ko' : -1 File exist%C0%EE%D5%F1%BF%AD123/blog/item/ce6eef2b3ad37d375343c1bb.html
以下为引用
"
1,解压initrd文件
[root@bogon ~]# cp /boot/initrd-2.6.30.4.img /tmp
[root@bogon ~]# cd /tmp/
[root@bogon tmp]# ls
initrd-2.6.30.4.img
[root@bogon tmp]# mkdir newinitrd
[root@bogon tmp]# cd newinitrd/
[root@bogon newinitrd]# zcat ../initrd-2.6.30.4.img | cpio -i
11537 blocks
释放之后看到如下内容
[root@bogon newinitrd]# ls
bin dev etc init lib proc sbin sys sysroot
2下边就是编辑init,删掉其中重复的四行中的两行
echo "Loading dm-region-hash.ko module"
insmod /lib/dm-region-hash.ko
echo "Loading dm-region-hash.ko module"
insmod /lib/dm-region-hash.ko
3,重新打包initrd
[root@bogon newinitrd]# find . | cpio -c -o > ../initrd
11538 blocks
[root@bogon newinitrd]# cd ..
[root@bogon tmp]# gzip -9 < initrd > initrd.img
[root@bogon tmp]# ls
initrd-2.6.30.4.img initrd initrd.img newinitrd
好了,initrd.img就是重新打包的initrd了,然后把initrd.img拷贝到/boot,更改grub.conf里边的
initrd-2.6.30.4.img为initrd.img就可以了,这样“insmod: error inserting '/lib/dm-region-
hash.ko' : -1 File exists” 就不会有了
其实将init文件的第二行“setquiet” 去掉,你就知道initrd文件到底在做什么了
"
3)
mount could not find filesystem '/dev/root'
setuproot: moving /dev failed: No such file or directory
setuproot: error mounting /proc: No such file or directory
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
修改.config文件中的“CONFIG_SYSFS_DEPRECATED_V2”,默认是被注释掉的,将其改为y,再编译4)
Device 0 (vif) could not be connected. Hotplug scripts not working.
修改.config文件设置CONFIG_HOTPLUG_PCI为y,再编译5)xm cr windows.hvm时出错:
[root@localhost hvm]# xm cr window.hvm
Using config file "./window.hvm".
Error: Failed to unpause domain sp3
查看/var/log/xen/qemu-dm-sp3.log
warning: could not open /dev/net/tun: no virtual network emulation
Could not initialize device 'tap'
来自:%B0%B5%D4%C2%C1%F7%B9%E2/blog/item/94477c9abdc0c6bac8eaf4e4.html
阅读(2702) | 评论(0) | 转发(2) |