{"id":777,"date":"2017-05-27T19:18:35","date_gmt":"2017-05-27T11:18:35","guid":{"rendered":"http:\/\/www.5x44.cn\/?p=777"},"modified":"2017-07-05T20:26:54","modified_gmt":"2017-07-05T12:26:54","slug":"ubuntu%e5%ae%89%e8%a3%85kvm","status":"publish","type":"post","link":"https:\/\/www.5x44.cn\/?p=777","title":{"rendered":"ubuntu\u5b89\u88c5kvm"},"content":{"rendered":"<p>https:\/\/help.ubuntu.com\/community\/KVM\/Installation<\/p>\n<p>\uff08\u4e00\uff09<\/p>\n<p>\u7528\u4e0a\u9762\u7684\u65b9\u6cd5\u5b89\u88c5\uff0c\u5728\u5b89\u88c5VM\u5ba2\u6237\u673a\u7684\u65f6\u5019\u4e00\u76f4\u63d0\u793a\uff1a<\/p>\n<p>\u201c\u4e0b\u9762\u53c2\u6570\u524d\u90fd\u662f\u4e24\u4e2a\u201c-\u201d<\/p>\n<pre>virt-install \\\r\n&gt; --network bridge:br0 \\\r\n&gt; --name win7 \\\r\n&gt; --ram=2048 \\\r\n&gt; --vcpus=1 \\\r\n&gt; --disk path=\/mnt\/data\/Virtualization\/VM\/win7\/win7.img,size=50 \\\r\n&gt; --vnc \\\r\n&gt; --cdrom \/mnt\/data\/Virtualization\/VM\/win7\/win7.iso\r\nError setting up logfile: No write access to directory \/home\/hank\/.cache\/virt-manager\r\nWARNING\u00a0 \/mnt\/data\/Virtualization\/VM\/win7\/win7.img may not be accessible by the hypervisor. You will need to grant the 'libvirt-qemu' user search permissions for the following directories: ['\/mnt\/data']\r\n\r\nStarting install...\r\nAllocating 'win7.img'\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |\u00a0 50 GB\u00a0 00:00:00\r\nERROR\u00a0\u00a0\u00a0 Cannot access storage file '\/mnt\/data\/Virtualization\/VM\/win7\/win7.img' (as uid:64055, gid:129): Permission denied\r\nRemoving disk 'win7.img'\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |\u00a0\u00a0\u00a0 0 B\u00a0 00:00:00\r\nDomain installation does not appear to have been successful.\r\nIf it was, you can restart your domain by running:\r\nvirsh --connect qemu:\/\/\/system start win7\r\notherwise, please restart your installation.\r\n\r\n\u201d\r\n<\/pre>\n<p>\u6211\u53ea\u6ce8\u610f\uff1aERROR\u00a0\u00a0\u00a0 Cannot access storage file &#8216;\/mnt\/data\/Virtualization\/VM\/win7\/win7.img&#8217; (as uid:64055, gid:129): Permission denied<\/p>\n<p>\u5ffd\u7565\u4e86WARNING\u00a0 \/mnt\/data\/Virtualization\/VM\/win7\/win7.img may not be accessible by the hypervisor. You will need to grant the &#8216;libvirt-qemu&#8217; user search permissions for the following directories: [&#8216;\/mnt\/data&#8217;]<\/p>\n<p>\u5728\u628alibvirt-qemu\u7528\u6237\u6dfb\u52a0\u5230\u2018\/mnt\/data&#8217;\u8bfb\u548c\u6267\u884c\u6743\u9650\u540e\uff0c\u53ef\u4ee5\u6b63\u5e38\u5b89\u88c5\u5ba2\u6237\u7cfb\u7edf\u3002<\/p>\n<p>\uff08\u4e8c\uff09<\/p>\n<p>ISO\u6587\u4ef6\u8981\u548cVM GUEST\u6587\u4ef6\u653e\u5728\u540c\u4e00\u4e2a\u76ee\u5f55\uff08\u6216\u6709\u540c\u6837\u7684\u76ee\u5f55\u6743\u9650\uff09\uff0c\u4e0d\u7136\u4f1a\u4e00\u76f4\u63d0\u793axxx.iso\u6ca1\u6709\u6743\u9650\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/help.ubuntu.com\/community\/KVM\/Installation \uff08\u4e00\uff09 \u7528\u4e0a\u9762\u7684\u65b9\u6cd5\u5b89\u88c5\uff0c\u5728\u5b89\u88c5VM\u5ba2\u6237\u673a\u7684\u65f6\u5019\u4e00\u76f4\u63d0\u793a\uff1a&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.5x44.cn\/?p=777\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"link","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-777","post","type-post","status-publish","format-link","hentry","category-22","post_format-post-format-link"],"_links":{"self":[{"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/posts\/777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=777"}],"version-history":[{"count":5,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/posts\/777\/revisions"}],"predecessor-version":[{"id":803,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/posts\/777\/revisions\/803"}],"wp:attachment":[{"href":"https:\/\/www.5x44.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}