{"id":306,"date":"2015-10-07T11:01:10","date_gmt":"2015-10-07T03:01:10","guid":{"rendered":"https:\/\/drho.club\/?p=306"},"modified":"2015-10-07T11:01:10","modified_gmt":"2015-10-07T03:01:10","slug":"make-libvirt-1-2-20-note","status":"publish","type":"post","link":"https:\/\/104.es\/index.php\/2015\/10\/07\/make-libvirt-1-2-20-note\/","title":{"rendered":"CentOS 7.1 \u7de8\u8b6f libvirt-1.2.20 \u8a18\u8981"},"content":{"rendered":"<p>\u539f\u59cb\u7a0b\u5f0f\u53ef\u5728\u6b64\u7db2\u5740\u4e0b\u8f09\uff1ahttp:\/\/libvirt.org\/downloads.html<\/p>\n<p>\u9664\u4e86\u4e0b\u8f09\u539f\u59cb\u78bc\u4e4b\u5916\uff0c\u5728\u89e3\u58d3\u7e2e\u4e4b\u5f8c\u7de8\u8b6f\u7684\u904e\u7a0b\u4e2d\uff0c\u4e5f\u662f\u8981\u5148\u5b89\u88dd\u4e00\u4e9b\u6709\u7684\u6c92\u6709\u7684\u7a0b\u5f0f\u5eab\uff0c\u7279\u5225\u8a18\u9304\u5728\u6b64\uff0c\u4ee5\u514d\u65e5\u5f8c\u53c8\u8981\u91cd\u65b0\u67e5\u627e\u3002 (CentOS 7.1)\u70ba\u4e86\u65b9\u4fbf\u8d77\u898b\uff0c\u6211\u5206\u958b\u5217\u51fa\u4f86\uff0c\u5176\u5be6\u4e00\u53e3\u6c23\u5168\u90e8\u52a0\u5728\u4e00\u8d77\u5b89\u88dd\u4e5f\u662f\u53ef\u4ee5\u7684\u3002\u9810\u8a2d\u6703\u628a\u7a0b\u5f0f\u5b89\u88dd\u5230 \/usr\/local \u53bb\uff0c\u5982\u679c\u60f3\u8981\u63db\u5730\u65b9\uff08\u4e00\u822c\u90fd\u662f\u8981\u63db\uff09\uff0c\u5247\u8981\u5728.configure\u5f8c\u9762\u52a0\u4e0a&#8211;prefix\u7684\u53c3\u6578\uff0c\u6307\u5b9a\u8981\u5b89\u88dd\u7684\u76ee\u9304\u3002\u8a73\u7d30\u7684\u8a2d\u5b9a\u65b9\u6cd5\uff0c\u53ef\u4ee5\u4f7f\u7528 .\/configture &#8211;help \u4e2d\u770b\u5230\u8aaa\u660e\u3002<\/p>\n<p>[code]<br \/>\n# yum update<br \/>\n# yum -y install gnulib<br \/>\n# yum -y install yajl-devel<br \/>\n# yum -y install libxml libxml2-devel<br \/>\n# yum -y install device-mapper-devel<br \/>\n# yum -y install python-devel<br \/>\n# yum -y install libnl-devel<br \/>\n# yum -y install libpciaccess-devel<br \/>\n# .\/configure &#8211;prefix=\/usr<br \/>\n# make<br \/>\n# make install<br \/>\n# service libvirtd restart<br \/>\n[\/code]<\/p>\n<p>\u7576\u7136\u4e0a\u8ff0\u7684\u904e\u7a0b\uff0c\u9084\u662f\u8981\u4ee5root\u7684\u8eab\u4efd\u4f86\u57f7\u884c\uff0c\u4e0d\u7136\u7684\u8a71\uff0c\u5728\u6bcf\u4e00\u500b\u6307\u4ee4\u4e4b\u524d\u90fd\u8981\u52a0\u4e0a sudo \u3002\u5982\u679c\u4f60\u7684\u4f5c\u696d\u7cfb\u7d71\u662fUbuntu\u4e5f\u662f\u5dee\u4e0d\u591a\uff0c\u57fa\u672c\u4e0a\u5927\u90e8\u4efd\u7684\u7a0b\u5f0f\u5eab\u540d\u7a31\u90fd\u985e\u4f3c\uff08\u4f8b\u5982\u5728\u5f8c\u9762\u52a0\u4e0adev\uff0c\u6216\u662f\u628adevel\u6539\u70badev\u7b49\u7b49\uff09\uff0c\u53ea\u662f\u628a yum \u6539\u70ba apt-get \u7f77\u4e86\u3002<\/p>\n<p>\u5982\u679c\u4f60\u4e4b\u524d\u6709\u5b89\u88dd\u904e binary \u7684\u7248\u6728\uff0c\u5247\u9700\u8981\u4f7f\u7528\u4e0b\u5217\u547d\u4ee4\u5148\u628a\u820a\u7248\u672c\u7684\u79fb\u9664\uff1a<\/p>\n<p>[code]<br \/>\n# yum -y remove libvirt (CentOS)<br \/>\n# apt-get -y remove libvirt-bin (Ubunut)<br \/>\n[\/code]<\/p>\n<p>\u518d\u91cd\u65b0\u555f\u52d5\u7cfb\u7d71\uff0c\u7136\u5f8c\u4f60\u5c31\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u6307\u4ee4\u67e5\u8a62\u6700\u65b0\u7684 libvirt \u7248\u672c\u4e86\u3002<\/p>\n<p>[code]<br \/>\n# virsh &#8211;version<br \/>\n1.2.20<br \/>\n[\/code]<\/p>\n<p>\u5b89\u88dd\u5b8c\u7562\u4e4b\u5f8c\u7684\u7248\u672c\u756b\u9762\uff1a<br \/>\n<a href=\"https:\/\/104.es\/wp-content\/uploads\/2015\/10\/cap-2015-10-07-\u4e0a\u534811.20.02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-312\" src=\"https:\/\/104.es\/wp-content\/uploads\/2015\/10\/cap-2015-10-07-\u4e0a\u534811.20.02.png\" alt=\"cap 2015-10-07 \u4e0a\u534811.20.02\" width=\"547\" height=\"360\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9664\u4e86\u4e0b\u8f09\u539f\u59cb\u78bc\u4e4b\u5916\uff0c\u5728\u89e3\u58d3\u7e2e\u4e4b\u5f8c\u7de8\u8b6f\u7684\u904e\u7a0b\u4e2d\uff0c\u4e5f\u662f\u8981\u5148\u5b89\u88dd\u4e00\u4e9b\u6709\u7684\u6c92\u6709\u7684\u7a0b\u5f0f\u5eab\uff0c\u7279\u5225\u8a18\u9304\u5728\u6b64\uff0c\u4ee5\u514d\u65e5\u5f8c\u53c8\u8981\u91cd\u65b0\u67e5\u627e\u3002 (CentOS 7.1)\u70ba\u4e86\u65b9\u4fbf\u8d77\u898b\uff0c\u6211\u5206\u958b\u5217\u51fa\u4f86\uff0c\u5176\u5be6\u4e00\u53e3\u6c23\u5168\u90e8\u52a0\u5728\u4e00\u8d77\u5b89\u88dd\u4e5f\u662f\u53ef\u4ee5\u7684\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[97],"tags":[140,141],"class_list":["post-306","post","type-post","status-publish","format-standard","hentry","category-kvm-libvirt","tag-libvirt-source","tag-libvirt-"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts\/306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/comments?post=306"}],"version-history":[{"count":0,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts\/306\/revisions"}],"wp:attachment":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/media?parent=306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/categories?post=306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/tags?post=306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}