DEBUG (blkif:27) exception looking up device number for xvda: [Errno 2] No such file or directory: '
在 RHEL-5.8 安装 XEN 时报错如下:
ERROR POST操作失败: xend_post:来自 xen 守护进程的错误:(xend.err 'Device 0 (vif) could not be connected. Hotplug scripts not working.')域安装似乎没有成功。如果是这样,您可以运行 'virsh start vm02' 重启您的域,否则请重新开始安装。ERROR POST操作失败: xend_post:来自 xen 守护进程的错误:(xend.err 'Device 0 (vif) could not be connected. Hotplug scripts not working.')Traceback (most recent call last): File "/usr/sbin/virt-install", line 895, in ? main() File "/usr/sbin/virt-install", line 757, in main start_time, guest.start_install) File "/usr/sbin/virt-install", line 819, in do_install dom = install_func(conscb, progresscb, wait=(not wait)) File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 541, in start_install return self._do_install(consolecb, meter, removeOld, wait) File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 633, in _do_install self.domain = self.conn.createLinux(install_xml, 0) File "/usr/lib/python2.4/site-packages/libvirt.py", line 1277, in createLinux if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)libvirtError: POST操作失败: xend_post:来自 xen 守护进程的错误:(xend.err 'Device 0 (vif) could not be connected. Hotplug scripts not working.')
到 /var/log/xen/xend.log 查阅、发现:
DEBUG (blkif:27) exception looking up device number for xvda: [Errno 2] No such file or directory: '/dev/xvda'
解决方法如下:
mknod /dev/xvda b 220 0