Xen – 尝试在启用VNC的情况下创build域时,“NoneType”对象没有属性“rfind”错误

我第一次安装了Debian Xen服务器,到目前为止它已经很顺利。 然而,每当我尝试启用一个域的VNC连接(通过添加一个vfb=...行到configuration文件),试图在configuration文件上运行xm create导致崩溃与以下神秘的Python错误:

Error: 'NoneType' object has no attribute 'rfind'

一些谷歌search显示,这是Python脚本启动域时选项parsing中的一个错误,但是这并不能告诉我如何解决这个问题。 如果我在configuration文件中注释掉“vfb”这一行,那么这个域将不会出现任何问题。 我的完整configuration文件的域名如下:

 # # Configuration file for the Xen instance devnode.sector91.com, created # by xen-tools 4.2 on Thu Apr 26 15:40:33 2012. # # # Kernel + memory size # bootloader = '/usr/lib/xen-default/bin/pygrub' vcpus = '1' memory = '512' # # Disk device(s). # root = '/dev/xvda2 ro' disk = [ 'phy:/dev/chimera/devnode.sector91.com-disk,xvda2,w', 'phy:/dev/chimera/devnode.sector91.com-swap,xvda1,w', ] # # Physical volumes # # # Hostname # name = 'devnode.sector91.com' # # Networking # vif = [ 'ip=192.168.254.95,mac=00:16:3E:96:1A:FF,bridge=br0' ] # # Remote VNC Access # vfb = [ 'type=vnc' ] # # Behaviour # on_poweroff = 'destroy' on_reboot = 'restart' on_crash = 'restart' 

任何想法如何使这个错误停止? 有什么明显的我忘了在这里?

(操作系统:Debian Squeeze,32位)

我想这是你要找的东西:

apt-get install xen-qemu-dm-4.0