xen 启动卡住 两个问题
已有 238 次阅读 2010-09-27 11:44
xen使用中遇到2个小问题
1、我的xen运行在centos5.2上,已经可以安装vm了,但是安装5,6台后,就开始出现下面的错误信息:
Failed to find an unused loop device
很明显,因为使用的文件的方式,而不是分区的方式,loop设备已经不够了,loop设备默认是8个,可以lsmod|grep loop查看加载的模块,可以通过ls /dev/loop*查看loop块设备,这个是可以增加的,可以使用如下命令增加为16个:
rmmod loop
modprobe loop max_loop=16
如果需要开机自动加载loop模块并创建16个设备,可以修改/etc/modprobe.conf,增加一行:options loop max_loop=16,重启服务器,就可以看到生成16个loop了
另外,据说mknod可以创建块设备或者字符设备,mknod -m660 /dev/loop b 7 8,但是我尝试使用这个设备的时候,可能哪里有点问题。
2、安装了8个vm以后,启动vm,但是总是有2个没有反应,可以启动,但是虚拟终端只显示:Console is not yet active for guest,cpu占用为0,而且还无法关闭,只能destroy掉。查看日志,发现如下线索:
domid: 23
qemu: the number of cpus is 2
Watching /local/domain/23/logdirty/next-active
xs_read(): vncpasswd get error. /vm/14c1d5ec-5473-7cd0-4732-d0ef810f98d5/vncpasswd.
bind() failed
于是,坚信我不是遇到这个问题的第一人,搜索,发现了http://www.firmotech.com/lurker/message/20080621.104851.0af4c066.fr.html,是这么说的:
Auteur: Artur Linhart - Linux communication
Date: 2008-06-21 18:48 +800
À: 'Michael Jinks', xen-users
Sujet: RE: solved, Re: [Xen-users] Windows domU doesn't boot
Hello,
I had the same problem. But I do not think, this is related to the
serial='pty'
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余1页未读,立即下载