免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2417 | 回复: 4
打印 上一主题 下一主题

使用xen新建主机时候出现问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-05-10 19:54 |只看该作者 |倒序浏览
如图:  不知道大家有没有出现过这样的情况:

i[root@localhost ~]# virt-install
What is the name of your virtual machine? vm1
How much RAM should be allocated (in megabytes)? 300
What would you like to use as the disk (path)? /dev/hdb1
Would you like to enable graphics support? (yes or no) no
What is the install location? ftp://192.168.195.130/pub/


Starting install...
Retrieving Fedora...                                               0 B 00:00
Retrieving vmlinuz...     100% |=========================| 2.0 MB    00:01     R
Retrieving initrd.img...  100% |=========================| 5.0 MB    00:04
libvir: Xen Daemon error : POST operation failed: (xend.err 'Error creating doma
in: I need 307200 KiB, but dom0_min_mem is 262144 and shrinking to 262144 KiB wo
uld leave only -15936 KiB free.')
Traceback (most recent call last):
  File "/usr/sbin/virt-install", line 633, in ?
    main()
  File "/usr/sbin/virt-install", line 578, in main
    dom = guest.start_install(conscb,progresscb)
  File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 649, in start_
install
    return self._do_install(consolecb, meter)
  File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 666, in _do_in
stall
    self.domain = self.conn.createLinux(install_xml, 0)
  File "/usr/lib/python2.4/site-packages/libvirt.py", line 503, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self
)
libvirt.libvirtError: virDomainCreateLinux() failed POST operation failed: (xend
.err 'Error creating domain: I need 307200 KiB, but dom0_min_mem is 262144 and s
hrinking to 262144 KiB would leave only -15936 KiB free.')
[root@localhost ~]#
[root@localhost ~]# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0      226     1 r-----    448.0
[root@localhost ~]#

论坛徽章:
0
2 [报告]
发表于 2010-05-10 19:55 |只看该作者
在线求助 谢谢大家了
个人觉得应该是内存分配出问题??

论坛徽章:
33
荣誉会员
日期:2011-11-23 16:44:17天秤座
日期:2014-08-26 16:18:20天秤座
日期:2014-08-29 10:12:18丑牛
日期:2014-08-29 16:06:45丑牛
日期:2014-09-03 10:28:58射手座
日期:2014-09-03 16:01:17寅虎
日期:2014-09-11 14:24:21天蝎座
日期:2014-09-17 08:33:55IT运维版块每日发帖之星
日期:2016-04-17 06:23:27操作系统版块每日发帖之星
日期:2016-04-18 06:20:00IT运维版块每日发帖之星
日期:2016-04-24 06:20:0015-16赛季CBA联赛之天津
日期:2016-05-06 12:46:59
3 [报告]
发表于 2010-05-10 22:09 |只看该作者

貌似你的内存不够用了.

你把虚拟机分配的内存减小点试试.

论坛徽章:
0
4 [报告]
发表于 2010-05-11 09:13 |只看该作者
内存不够。
I need 307200 KiB, but dom0_min_mem is 262144 and s
hrinking to 262144 KiB would leave only -15936 KiB free.

论坛徽章:
0
5 [报告]
发表于 2010-05-11 15:22 |只看该作者
嗯,增加了虚拟平台内存就可以了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP