libvirtError:操作失败:无法查询内存气球分配

libvirtError:操作失败:无法查询内存气球分配

尝试使用 virt-manager 安装 kvm vm 时出现此错误。这台机器有 16gb 内存,我输入了 4096MB。这里面有什么问题?

    Unable to complete install '<class 'libvirt.libvirtError'> operation failed: could not query memory balloon allocation
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 1571, in do_install
    vm.startup()
  File "/usr/share/virt-manager/virtManager/domain.py", line 1297, in startup
    self._update_status()
  File "/usr/share/virt-manager/virtManager/domain.py", line 1902, in _update_status
    info = self.get_info()
  File "/usr/share/virt-manager/virtManager/domain.py", line 1212, in get_info
    return self._backend.info()
  File "/usr/lib/python2.6/dist-packages/libvirt.py", line 766, in info
    if ret is None: raise libvirtError ('virDomainGetInfo() failed', dom=self)
libvirtError: operation failed: could not query memory balloon allocation
'

答案1

如果你想要支持更多的 RAM,你kvm也应该安装软件包,它与你的 debian 版本有关:要在 debian 7(wheezy)上安装 kvm,你应该运行此命令:

# apt-get install qemu-kvm libvirt-bin virtinst

但是要在 debian 6(sqeeze)上安装 kvm,您应该运行以下命令:

# apt-get install kvm qemu-kvm libvirt-bin virtinst

答案2

问题解决了:

你可以用 qemu 最多设置 4095 个 RAM

相关内容