问题使用blktap与xen-4.1运行Ubuntu精确库存内核与dom0 xen-4.1.
我明白了:
[ 5.580106] XENBUS: Waiting for devices to initialise: 295s...290s. ... [ 300.580288] XENBUS: Timeout connecting to device: device/vbd/51713 (local state 3,remote state 1)
还有一些系统日志行:
May 17 13:07:30 localhost logger: /etc/xen/scripts/blktap: add XENBUS_PATH=backend/tap/10/51713 May 17 13:07:31 localhost logger: /etc/xen/scripts/blktap: Writing backend/tap/10/51713/hotplug-status connected to xenstore.
用tap:aio:磁盘线. file:/ works.
disk = [ 'tap:aio:/data/root.img,xvda1,w',]
问题存在清晰和精确domU内核,并且两个客户在Ubuntu hardy dom0主机64位2.6.24-28-xen xen-3.3工作
3.2.0-24-generic #37-Ubuntu SMP Wed Apr 25 08:43:22 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux Distributor ID: Ubuntu Description: Ubuntu 12.04 LTS Release: 12.04 Codename: precise
解决方法
就像所有问题一样.寻求帮助通常可以解决问题.即使没有人回答这个问题.
所以答案两折.显然在Ubuntu中安装xen * stuff是不够的.
Blktap和stuff是单独的包和tapdisk用户空间程序,需要blktap模块.
安装blktap-utils和依赖项……
你会得到tapdisk和dkms包内核模块blktap.
这还不够.
显然,Blktap在Ubuntu Hardy和Precise XEN版本(xen-3.3 – > xen-4.1)之间的某个时刻被改为blktap2.
因此磁盘包含在’tap2:tapdisk:aio:’not’tot:aio:’
# Use this to convert existing files perl -i.backup -pe 's/tap:aio:/tap2:tapdisk:aio:/g' *.cfg
有关tap2磁盘选项,请参阅Xen blktap2.
如果您仍然遇到blktap问题,这些下一个命令可能有助于诊断缺少的内容.
ls /lib/modules/$(uname -r)/updates/dkms/blktap.ko && echo run: modprobe blktap || echo Missing module ls /usr/src/linux-headers-$(uname -r ) || echo MISSING kernel headers ls /usr/src/blktap-2* || echo MISSING blktap-dkms ls /var/lib/dkms/blktap/kernel-$(uname -r)* || echo dkms compilation Failed
并为所有dkms模块手动激活编译:
sudo dkms autoinstall -k $(uname -r)