歡迎您光臨本站 註冊首頁

使用xen新建主機時候出現問題

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

使用xen新建主機時候出現問題

如圖:  不知道大家有沒有出現過這樣的情況:

i# 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.')
#
# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0      226     1 r-----    448.0
#
《解決方案》

在線求助 謝謝大家了
個人覺得應該是內存分配出問題??
《解決方案》

:em17:
貌似你的內存不夠用了.

你把虛擬機分配的內存減小點試試.
《解決方案》

內存不夠。
I need 307200 KiB, but dom0_min_mem is 262144 and s
hrinking to 262144 KiB would leave only -15936 KiB free.
《解決方案》

嗯,增加了虛擬平台內存就可以了

[火星人 ] 使用xen新建主機時候出現問題已經有498次圍觀

http://coctec.com/docs/service/show-post-5694.html