简体   繁体   English

virt-manager在ubuntu上不起作用

[英]virt-manager not working on ubuntu

I've installed KVM/QEMU/libvirt on my laptop and am trying to access it using virt-manager. 我在笔记本电脑上安装了KVM / QEMU / libvirt,并尝试使用virt-manager访问它。 When I run sudo virt-manager -c qemu:///system I get the following error: 当我运行sudo virt-manager -c qemu:///system ,出现以下错误:

Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-manager.py", line 399, in <module>
    main()
  File "/usr/share/virt-manager/virt-manager.py", line 256, in main
    from virtManager import cli
  File "/usr/share/virt-manager/virtManager/cli.py", line 29, in <module>
    import libvirt
ImportError: No module named libvirt

I've tried changing the PYTHONPATH and reinstalling virt-manager with no luck. 我试过更改PYTHONPATH并重新安装virt-manager,但没有运气。 I've been able to succesfully install virt-manager on an ubuntu vm in esxi to manage another KVM host, and am following the same process. 我已经能够在esxi的ubuntu vm上成功安装virt-manager来管理另一个KVM主机,并且正在执行相同的过程。 Can anyone shed some light on this for me? 谁能为我阐明一下?

Problem Solved: 问题解决了:

sudo mv /usr/local/bin/python python-old #example name
sudo ln -s /usr/bin/python /usr/local/bin/python

how do I update PYTHONPATH from /usr/local/bin/python to /usr/bin/python 如何将PYTHONPATH从/ usr / local / bin / python更新到/ usr / bin / python

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM