tol6/9打哪个

libvirt安装过程中遇到的问题
环境:ubuntu14.04
有些问题可以直接百度到:
有些问题稍微转了下弯:
1,You must install the pciaccess module to build with udev
解决问题:
(此文中解决方式:yum install libpciaccess-devel)
我的yum好像不行,解决方式:
#apt-get install -y libpciaccess-dev
2,libvirtd: error while loading shared libraries: libvirt-lxc.so.0: cannot open shared object file: No such file or directory
解决方式稍微变了点:
$sudo find -name libvirt-lxc.so.0
/home/cloud/Downloads/libvirt-1.2.1/src/.libs/libvirt-lxc.so.0
/usr/local/lib/libvirt-lxc.so.0
$sudo gedit /etc/ld.so.conf
//打开之后,添加
include /usr/local/lib
sudo ldconfig
cloud@cloud:~$ sudo virsh version
Compiled against library: libvirt 1.2.1
Using library: libvirt 1.2.1
Using API: QEMU 1.2.1
error: failed to get the hypervisor version
error: internal error: Cannot find suitable emulator for x86_64
百度说是qemu没有安装好,所以我一连安装qemu-kvm, qemu, qemu-common, qemu-utils
不过忘记是否当即好了,我周一看的时候已经好了,所以不清楚是不是我解决的
4,在python程序中调用‘import libvirt’报错:
ImportError: No module named libvirt
解决办法:安装python-libvirt
cloud_backend.exception.LibvirtError: authentication failed: polkit: polkit\56retains_authorization_after_challenge=1
Authorization requires authentication but no agent is available.
原因:配置文件没有配好
在/etc/libvirt/libvirtd.conf或者/usr/local/etc/libvirt/libvirtd.conf,解注释:
auth_unix_rw = "none"
我顺便将auth_unix_ro = "none"也解注释了,不知是否影响此处
cloud_backend.exception.LibvirtError: Failed to connect socket to '/usr/local/var/run/libvirt/libvirt-sock': Connection refused
解决:用root权限启动libvirt。将原来的libvirt进程杀死,然后sudo libvirtd -d
libvirt: XML-RPC error : authentication failed: polkit: Not authorized
谷歌一个好像说是权限问题,libvirtd要root启动。来源:
不过我的是root启动的,于是我考虑配置文件。
cloud@backplatform0:~$ sudo find / -name libvirtd.conf
[sudo] password for cloud:
/etc/libvirt/libvirtd.conf
/home/cloud/libvirt-0.9.13/tests/confdata/libvirtd.conf
/home/cloud/libvirt-0.9.13/daemon/libvirtd.conf
/home/cloud/vebula-install/libvirt-0.9.13/tests/confdata/libvirtd.conf
/home/cloud/vebula-install/libvirt-0.9.13/daemon/libvirtd.conf
/home/cloud/libvirt-0.9.8/tests/confdata/libvirtd.conf
/home/cloud/libvirt-0.9.8/daemon/libvirtd.conf
/home/cloud/zhuanyi/Downloads/vebula-install/libvirt-0.9.13/tests/confdata/libvirtd.conf
/home/cloud/zhuanyi/Downloads/vebula-install/libvirt-0.9.13/libvirtd.conf
/home/cloud/zhuanyi/Downloads/vebula-install/libvirt-0.9.13/daemon/libvirtd.conf
/home/liang/libvirt/tests/confdata/libvirtd.conf
/home/liang/libvirt/daemon/libvirtd.conf
/usr/local/etc/libvirt/libvirtd.conf
/usr/local/lib/sysctl.d/libvirtd.conf
其中/etc/libvirt/libvirtd.conf是以前改过的没问题,那么/usr/local/etc/libvirt/libvirtd.conf就很可疑了。我估计是因为我后来用压缩包安装时,没有卸载掉原来的,结果变成这样。所以把/usr/local/etc/libvirt/libvirtd.conf改的和/etc/libvirt/libvirtd.conf一样:
unix_sock_group = "libvirtd"
unix_sock_ro_perms = "0777"
unix_sock_rw_perms = "0777"
auth_unix_ro = "none"
auth_unix_rw = "none"
这些都是以前改过的,至于哪个是对权限起作用的就自己测试吧。我杀掉libvirtd进程后再启动,没报这个错了:$sudo libvirtd -d
8,用xml创建qemu虚拟机时:
libvirt: QEMU Driver error : unsupported configuration: Multiple legacy USB controllers are not supported
忘了怎么回事,但是我只是测试,所以将xml中usb的数量设置为1个就可以了,继续。。。
9,libvirt: QEMU Driver error : unsupported configuration: hda-duplex not supported in this QEMU binary
网上查好像与/dev/kvm的权限有关,或者与libvirt相关插件有关
不过我的没有这个文件,所以xml中将声卡等设备都去掉。继续。。。
10,依然是xml创建qemu虚拟机,
error: Operation not supported: JSON monitor is required
我查询后,感觉是版本不合的原因,因为我在ubuntu12.04上,有个成功的范例:
Compiled against library: libvirt 1.2.1
Using library: libvirt 1.2.1
Using API: QEMU 1.2.1
Running hypervisor: QEMU 1.6.2
而我现在测试的,实在ubuntu14.04上,只有qemu的版本不同:Running hypervisor: QEMU 1.7.91
所以我准备降低qemu版本,但是失败了。而且我感觉思路有点不准,继续查。
然后认为是libvirt的版本问题,因为我安装的python-libvirt和qemu一样,是从系统的源下载的,其中python-libvirt的版本为1.2.2:
$ aptitude show python-libvirt
Package: python-libvirt
State: installed
Automatically installed: no
Version: 1.2.2-0ubuntu1
而我的libvirt的是我下载的安装包安装的,版本是1.2.1:
$ sudo virsh version
[sudo] password for cloud:
Compiled against library: libvirt 1.2.1
Using library: libvirt 1.2.1
Using API: QEMU 1.2.1
Running hypervisor: QEMU 1.7.91
网上有个例子是需要两者版本一致的,来源:
所以我卸载掉libvirt-1.2.1,重新安装libvirt-1.2.2。终于成功了
经过之后的测试,发现这步成功后,上面的8,9的问题都不复重现
11,卸载libvirt-1.2.1的过程也不顺利,卸载重装后,查看libvirt版本老是显示为旧版本1.2.1,后来发现是旧版本1.2.1没有卸载成功。
报错结尾没有记录,格式类似:
make[1]: *** [uninstall-recursive] Error 1
make[1]: Leaving directory `/home/cloud/Downloads/libvirt-1.2.1/docs'
make[2]: *** [uninstall-local] Error 1
make[2]: Leaving directory `/home/cloud/Downloads/libvirt-1.2.1/docs'
我认为没有卸载干净,百度了一下,按以下步骤卸载:
$sudo make distclean
$sudo make clean
$sudo make uninstall
(**这个方法卸载不成功:)
另外,重新安装时,配置环境那一步,我使用几个参数,据说是覆盖原有libvirt
$./configure --prefix=/usr --localstatedir=/var
--sysconfdir=/etc
12,重装完libvirt后启动:$sudo libvirtd -d
报错:libvirtd: error: Unable to obtain pidfile. Check /var/log/messages or run without --daemon for more
这个好查多了,原因
“启动记录文件还存在,需要先删除”,解决步骤如下:
(1)查找到libvirtd.pid文件,根据libvirt的安装不同,位置可能不同:
$ sudo find / -name libvirtd.pid
[sudo] password for cloud:
/usr/local/var/run/libvirtd.pid
(2)删除:$sudo rm /usr/local/var/run/libvirtd.pid
(3)启动:$sudo libvirtd -d
没有更多推荐了,
加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!同时更新资讯所属地
暂无更新,休息一会儿
白羊座(03.21-04.19)
金牛座(04.20-05.20)
双子座(05.21-06.21)
巨蟹座(06.22-07.22)
狮子座(07.23-08.22)
处女座(08.23-09.22)
天秤座(09.23-10.23)
天蝎座(10.24-11.22)
射手座(11.23-12.21)
摩羯座(12.22-01.19)
水瓶座(01.20-02.18)
双鱼座(02.19-03.20)
今日运势:
本日可多参与公众事务,将自己的意见与兴趣结合,提供同好们做参考,让欢乐的气氛添加一些趣味性...图标下载,ICON(PNG/ICO/ICNS)图标搜索下载 | EASYICON.NET生活大爆炸第八季第16集里谢耳朵和佩妮玩的心理学游戏叫什么_百度知道
生活大爆炸第八季第16集里谢耳朵和佩妮玩的心理学游戏叫什么
我有更好的答案
让两人即刻爱上彼此的36个问题Set One  第一部分  1. Given the choice of anyone in the world, whom would you want as a dinner guest?  如果你可以选择世界上任何一个人,你想让谁做你晚餐的客人呢?  2. Would you like to be famous? In what way?  你想出名吗?以哪种方式?  3. Before making a telephone call, do you ever rehearse what you are going to say? Why?  在打电话之前,你有没有排练过你想要说的话?为什么?  4. What would constitute a “perfect” day for you?  你的完美一天由什么组成?  5. When did you last sing to yourself? To someone else?  你最后一次独自唱歌是什么时候?最后一次和别人一起唱歌是什么时候?  6. If you were able to live to the age of 90 and retain either the mind or body of a 30-year-old for the last 60 years of your life, which would you want?  如果你能活到90岁,在你人生最后60年里,你想拥有30岁的大脑还是身体?  7. Do you have a secret hunch about how you will die?  你有想过你会怎么死吗?  8. Name three things you and your partner appear to have in common.  举出你和我的三个共同之处。  9. For what in your life do you feel most grateful?  在你的人生中什么让你最感激?  10. If you could change anything about the way you were raised, what would it be?  如果你能改变你成长的方式,你会去改变什么?  11. Take four minutes and tell your partner your life story in as much detail as possible.  用四分钟,尽可能详尽地告诉我你一生的故事。  12. If you could wake up tomorrow having gained any one quality or ability, what would it be?  如果你明天一觉醒来,拥有了某种新的品质或者能力,那会是什么呢?  Set Two  第二部分  13. If a crystal ball could tell you the truth about yourself, your life, the future or anything else, what would you want to know?  如果水晶球能告诉你关于你自己、你的人生、未来或者任何其他事情的真相,你想知道什么?  14. Is there something that you’ve dreamed of doing for a long time? Why haven’t you done it?  有没有某样东西/某件事让你魂牵梦绕很久却没有实现的呢?为什么还没做呢?  15. What is the greatest accomplishment of your life?  你一生最大的成就是什么?  16. What do you value most in a friendship?  友谊中你最珍惜的是什么?  17. What is your most treasured memory?  你最珍贵的记忆是什么?  18. What is your most terrible memory?  你最糟糕的记忆是什么?  19. If you knew that in one year you would die suddenly, would you change anything about the way you are now living? Why?  如果你知道一年后你会突然死去,你会改变现在的生活方式吗?为什么?  20. What does friendship mean to you?  友谊对你意味着什么?  21. What roles do love and affection play in your life?  爱情和感情在你的人生中起了什么作用?  22. Alternate sharing something you consider a positive characteristic of your partner. Share a total of five items.  分享你认为我身上的5个优点。  23. How close and warm is your family? Do you feel your childhood was happier than most other people's?  你的家庭多亲密?你觉得自己的童年比大多数人都快乐吗?  24. How do you feel about your relationship with your mother?  你觉得你和母亲的关系怎么样?  Set Three  第三部分  25. Make three true “we” statements each. For instance, “We are both in this room feeling ... “  分别造三句“我们”的句子。例如,“我们同时在这个房间,感觉……”  26. Complete this sentence: “I wish I had someone with whom I could share ... “  完成这句句子:“我希望我有一个能和他分享……的人。”  27. If you were going to become a close friend with your partner, please share what would be important for him or her to know.  如果你想和我成为亲密的朋友,请分享你认为很重要并一定要我知晓的事情。  28. Tell your partner what be very honest this time, saying things that you might not say to someone you’ve just met.  告诉我你喜欢我的什么;一定要中肯诚实,不要说那些和第一次见面的陌生人就能说的泛泛之谈。  29. Share with your partner an embarrassing moment in your life.  分享给我你一生中一个尴尬的瞬间。  30. When did you last cry in front of another person? By yourself?  你最近一次在别人面前哭是什么时候?被谁弄哭的?还是自己哭的?  31. Tell your partner something that you like about them already.  告诉我你已经喜欢我的一点。  32. What, if anything, is too serious to be joked about?  什么样的玩笑不能开?(如果有的话)  33. If you were to die this evening with no opportunity to communicate with anyone, what would you most regret not having told someone? Why haven’t you told them yet?  如果今晚你要死了,却没有机会和任何人交流,你最后悔没有告诉某人什么事?你为什么到现在为止没有说呢?  34. Your house, containing everything you own, catches fire. After saving your loved ones and pets, you have time to safely make a final dash to save any one item. What would it be? Why?  如果你的家(包括你的所有财产)着火了。在救了爱的人和宠物外,你还有时间安全地再冲进去捡回一个东西。会是什么呢?为什么?  35. Of all the people in your family, whose death would you find most disturbing? Why?  家中所有的人中,谁的死会让你最不安?为什么?  36. Share a personal problem and ask your partner’s advice on how he or she might handle it. Also, ask your partner to reflect back to you how you seem to be feeling about the problem you have chosen.  我会和你讲一个很私人化的问题,请你换位思考告诉我如果是你、你会如何处理。你觉得我在面对这个问题的时候是什么感觉呢?  The last, terrifying, element of this experiment requires the two participants to stare into each other's eyes for four minutes.  这个实验最后一个、也是最惊心动魄元素,是需要两位参与者对视4分钟。
为您推荐:
其他类似问题
生活大爆炸的相关知识
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。

我要回帖

更多关于 打码平台哪个好赚钱 的文章

 

随机推荐