{"id":1046,"date":"2022-03-06T11:14:07","date_gmt":"2022-03-06T03:14:07","guid":{"rendered":"https:\/\/b.yesiyu.top\/?p=1046"},"modified":"2022-03-06T11:14:07","modified_gmt":"2022-03-06T03:14:07","slug":"kvm%e8%99%9a%e6%8b%9f%e8%bf%81%e7%a7%bb","status":"publish","type":"post","link":"https:\/\/b.yesiyu.top\/?p=1046","title":{"rendered":"kvm\u865a\u62df\u8fc1\u79fb"},"content":{"rendered":"<h1 class=\"postTitle\">kvm\u865a\u62df\u8fc1\u79fb<\/h1>\n<div class=\"clear\"><\/div>\n<div class=\"postBody\">\n<div id=\"cnblogs_post_body\" class=\"blogpost-body blogpost-body-html\">\n<h2 class=\"a\">1. \u865a\u62df\u8fc1\u79fb<\/h2>\n<p>\u8fc1\u79fb\uff1a<\/p>\n<p>\u7cfb\u7edf\u7684\u8fc1\u79fb\u662f\u6307\u628a\u6e90\u4e3b\u673a\u4e0a\u7684\u64cd\u4f5c\u7cfb\u7edf\u548c\u5e94\u7528\u7a0b\u5e8f\u79fb\u52a8\u5230\u76ee\u7684\u4e3b\u673a\uff0c\u5e76\u4e14\u80fd\u591f\u5728\u76ee\u7684\u4e3b\u673a\u4e0a\u6b63\u5e38\u8fd0\u884c\u3002\u5728\u6ca1\u6709\u865a\u62df\u673a\u7684\u65f6\u4ee3\uff0c\u7269\u7406\u673a\u4e4b\u95f4\u7684\u8fc1\u79fb\u4f9d\u9760\u7684\u662f\u7cfb\u7edf\u5907\u4efd\u548c\u6062\u590d\u6280\u672f\u3002\u5728\u6e90\u4e3b\u673a\u4e0a\u5b9e\u65f6\u5907\u4efd\u64cd\u4f5c\u7cfb\u7edf\u548c\u5e94\u7528\u7a0b\u5e8f\u7684\u72b6\u6001\uff0c\u7136\u540e\u628a\u5b58\u50a8\u4ecb\u8d28\u8fde\u63a5\u5230\u76ee\u6807\u4e3b\u673a\u4e0a\uff0c\u6700\u540e\u5728\u76ee\u6807\u4e3b\u673a\u4e0a\u6062\u590d\u7cfb\u7edf\u3002\u968f\u7740\u865a\u62df\u673a\u6280\u672f\u7684\u53d1\u5c55\uff0c\u7cfb\u7edf\u7684\u8fc1\u79fb\u66f4\u52a0\u7075\u6d3b\u548c\u591a\u6837\u5316\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u6700\u7ec8\u6211\u4eec\u8fc1\u79fb\u7684\u76ee\u7684\u5c31\u662f\uff1a<\/p>\n<p>\u7b80\u5316\u7cfb\u7edf\u7ef4\u62a4\u7ba1\u7406\uff1b<\/p>\n<p>\u9ad8\u7cfb\u7edf\u8d1f\u8f7d\u5747\u8861\uff1b<\/p>\n<p>\u589e\u5f3a\u7cfb\u7edf\u9519\u8bef\u5bb9\u5fcd\u5ea6\uff1b<\/p>\n<p>\u4f18\u5316\u7cfb\u7edf\u7535\u6e90\u7ba1\u7406\u3002<\/p>\n<h2 class=\"a\">2. \u70ed\u8fc1\u79fb<\/h2>\n<p>KVM \u865a\u62df\u673a\u7684\u70ed\u8fc1\u79fbLive Migration\uff1a<\/p>\n<p>\u670d\u52a1\u5668\u865a\u62df\u5316\u6280\u672f\u662f\u5f53\u524d\u7684\u70ed\u70b9\uff0c\u800c\u865a\u62df\u673a\u7684\u201c\u70ed\u8fc1\u79fb\uff08 Live Migration \uff09\u201d\u6280\u672f\u5219\u662f\u865a\u62df\u5316\u6280\u672f\u5f53\u4e2d\u7684\u70ed\u70b9\u3002<\/p>\n<p>\u70ed\u8fc1\u79fb\uff08\u53c8\u53eb\u52a8\u6001\u8fc1\u79fb\u3001\u5b9e\u65f6\u8fc1\u79fb\uff09\uff0c\u5373\u865a\u62df\u673a\u4fdd\u5b58\uff08 save \uff09 \/ \u6062\u590d (restore) \uff1a\u5c06\u6574\u4e2a\u865a\u62df\u673a\u7684\u8fd0\u884c\u72b6\u6001\u5b8c\u6574\u4fdd\u5b58\u4e0b\u6765\uff0c\u540c\u65f6\u53ef\u4ee5\u5feb\u901f\u7684\u6062\u590d\u5230\u539f\u6709\u786c\u4ef6\u5e73\u53f0\u751a\u81f3\u662f\u4e0d\u540c\u786c\u4ef6\u5e73\u53f0\u4e0a\u3002\u6062\u590d\u4ee5\u540e\uff0c\u865a\u62df\u673a\u4ecd\u65e7\u5e73\u6ed1\u8fd0\u884c\uff0c\u7528\u6237\u4e0d\u4f1a\u5bdf\u89c9\u5230\u4efb\u4f55\u5dee\u5f02\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u8fc1\u79fb\u7684\u79cd\u7c7b\uff1a<\/p>\n<p>P2P \uff1a\u7269\u7406\u673a\u4e4b\u95f4\u7684\u8fc1\u79fb\uff1b<\/p>\n<p>V2P \uff1a\u865a\u62df\u673a\u8fc1\u5230\u7269\u7406\u673a\uff1b<\/p>\n<p>P2V \uff1a\u7269\u7406\u673a\u8fc1\u5230\u865a\u62df\u673a\uff1b<\/p>\n<p>V2V \uff1a\u865a\u62df\u673a\u8fc1\u5230\u865a\u62df\u673a\u3002<\/p>\n<h2>\u00a03. \u70ed\u8fc1\u79fb\u7684\u5e94\u7528<\/h2>\n<p>1&gt; \u865a\u62df\u673a\u7684\u70ed\u8fc1\u79fb\u6280\u672f\u6700\u521d\u662f\u88ab\u7528\u4e8e\u53cc\u673a\u5bb9\u9519\u6216\u8005\u8d1f\u8f7d\u5747\u8861\uff1a\u5f53\u5bbf\u4e3b\u673a\u51fa\u73b0\u8f6f\u786c\u4ef6\u6545\u969c\u5bfc\u81f4\u670d\u52a1\u5f02\u5e38\u65f6\uff0c\u865a\u62df\u673a\u53ef\u6f02\u79fb\u5230\u53e6\u5916\u4e3b\u673a\u4e0a\uff0c\u6216\u8005\u5728\u96c6\u7fa4\u4e2d\u4f9d\u636e\u5de5\u4f5c\u8d1f\u8f7d\u91cf\u7684\u5927\u5c0f\uff0c\u9009\u62e9\u66f4\u6362\u5bbf\u4e3b\u673a\u4e0e\u5426\u6765\u4fdd\u8bc1\u81ea\u8eab\u826f\u597d\u7684\u670d\u52a1\u63d0\u4f9b\u6027\u3002<\/p>\n<p>2&gt; \u7cfb\u7edf\u786c\u4ef6\u7ef4\u62a4\uff1a\u5f53\u524d\u5f88\u591a\u64cd\u4f5c\u7cfb\u7edf\u90fd\u80fd\u591f\u7a33\u5b9a\u652f\u6301 7\u00d724 \u8fd0\u884c\uff0c\u4f46\u662f\u786c\u4ef6\u5374\u9700\u8981\u5b9a\u671f\u7684\u8fdb\u884c\u7ef4\u62a4\u3002\u5982\u679c\u4f7f\u7528\u865a\u62df\u673a\u7684\u52a8\u6001\u8fc1\u79fb\u6280\u672f\uff0c\u5c06\u865a\u62df\u673a\u4ece\u9700\u8981\u7ef4\u62a4\u7684\u7269\u7406\u673a\u5668\u8fc1\u79fb\u5230\u53e6\u5916\u4e00\u4e3b\u5668\uff0c\u7b49\u7ef4\u62a4\u5b8c\u6210\u540e\uff0c\u5728\u5c06\u5176\u8fc1\u56de\u5230\u539f\u6765\u7684\u7269\u7406\u673a\u5668\u3002\u6240\u6709\u7684\u7cfb\u7edf\u670d\u52a1\u548c\u5e94\u7528\u7a0b\u5e8f\u5728\u8fc1\u79fb &amp; \u6062\u590d\u540e\u4ecd\u65e7\u6b63\u5e38\u8fd0\u884c\uff0c\u7528\u6237\u4e0d\u4f1a\u5bdf\u89c9\u5230\u7531\u4e8e\u786c\u4ef6\u7ef4\u62a4\u9020\u6210\u7684\u4e2d\u65ad\u3002\u6700\u7ec8\u5b9e\u73b0\u4e86\u6211\u4eec\u670d\u52a1\u4e0d\u53d7\u786c\u4ef6\u7ef4\u62a4\u5e72\u6270\u7684 7*24 \u5c0f\u65f6\u7684\u5de5\u4f5c\u613f\u671b\u3002<\/p>\n<p>3&gt; \u6570\u636e\u5e93\u5907\u4efd\uff1a\u5bf9\u4e8e\u4e00\u4e9b\u5927\u578b\u3001\u5173\u952e\u7684\u6570\u636e\u5e93\u5e94\u7528\uff0c\u5907\u4efd\u662f\u4e00\u9879\u91cd\u8981\u4f46\u590d\u6742\u7684\u5de5\u4f5c\u3002\u865a\u62df\u673a\u7684\u4fdd\u5b58\/ \u6062\u590d\u53ef\u4ee5\u5c06\u6570\u636e\u5e93\u8fd0\u884c\u5728\u865a\u62df\u673a\u4e2d\uff0c\u5982\u9700\u5907\u4efd\u5c31\u4fdd\u5b58\u865a\u62df\u673a\uff0c\u8fd9\u6837\u6570\u636e\u5e93\u4e2d\u7684\u6240\u6709\u6570\u636e\u3001\u72b6\u6001\u90fd\u505a\u4e86\u5907\u4efd\u3002\u5982\u679c\u6570\u636e\u5e93\u5d29\u6e83\u4e86\uff0c\u5c31\u53ef\u4ee5\u901a\u8fc7\u6062\u590d\u865a\u62df\u673a\u6765\u6062\u590d\u6574\u4e2a\u6570\u636e\u5e93\u3002<\/p>\n<p>4&gt; \u73af\u5883\u91cd\u73b0\uff1a\u8fdb\u884c\u6027\u80fd\u6d4b\u8bd5\u6216\u7a0b\u5e8f\u8c03\u8bd5\u65f6\uff0c\u90fd\u9700\u8981\u91cd\u73b0\u5f53\u65f6\u590d\u6742\u5e9e\u5927\u5e76\u4e14\u4e0e\u5b9e\u65f6\u5b8c\u5168\u4e00\u81f4\u7684\u7f51\u7edc\u73af\u5883 , \u4e0d\u4ec5\u4ec5\u662f\u91cd\u542f\u3001\u914d\u7f6e\u8f6f\u4ef6\uff0c\u800c\u4e14\u5e38\u5e38\u9700\u8981\u4e00\u5b9a\u7684\u8fd0\u884c\u65f6\u95f4\u3002\u6211\u4eec\u53ef\u4ee5\u5c06\u5404\u670d\u52a1\u5b89\u88c5\u5230\u72ec\u7acb\u7684\u5404\u4e2a\u865a\u62df\u673a\uff0c\u7136\u540e\u5229\u7528\u5404\u4e2a\u72ec\u7acb\u865a\u62df\u673a\u90e8\u7f72\u6211\u4eec\u6240\u9700\u7684\u5de5\u4f5c\u73af\u5883\uff0c\u53ef\u4ee5\u5927\u5927\u7f29\u77ed\u73af\u5883\u91cd\u73b0\u65f6\u95f4\u3002<\/p>\n<p>5&gt; \u8ba1\u7b97\u673a\u5171\u4eab\uff1a \u5728\u4e00\u4e9b\u516c\u5171\u573a\u5408\u7528\u6237\u9700\u8981\u5171\u4eab\u8ba1\u7b97\u673a\uff0c\u4f46\u662f\u7531\u4e8e\u4e0d\u540c\u7684\u7cfb\u7edf\u914d\u7f6e\u548c\u8f6f\u4ef6\u9700\u8981\u82b1\u8d39\u5927\u91cf\u7684\u65f6\u95f4\u6765\u914d\u7f6e\u548c\u6062\u590d\u3002\u8fd9\u65f6\u4f7f\u7528\u865a\u62df\u673a\u7684\u4fdd\u5b58 \/\u6062\u590d\u53ef\u4ee5\u5f88\u597d\u5730\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002\u6216\u8005\u4e5f\u53ef\u4ee5\uff0c\u5728\u7269\u7406\u673a\u4e0a\u8fd0\u884c\u591a\u4e2a\u903b\u8f91\u865a\u62df\u673a\u5e2e\u52a9\u6211\u4eec\u5206\u914d\u7ed9\u6bcf\u4e00\u4e2a\u9700\u8981\u8005\u4e00\u4e2a\u72ec\u7acb\uff0c\u5b89\u5168\uff0c\u7a33\u5b9a\u7684\u73af\u5883\u3002\u5f53\u56e0\u4e3a\u5bbf\u4e3b\u673a\u51fa\u73b0\u95ee\u9898\u5f71\u54cd\u865a\u62df\u673a\u4f7f\u7528\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u8ba9\u8be5\u865a\u62df\u673a\u6f02\u79fb\u5230\u5176\u4ed6\u5bbf\u4e3b\u673a\u4ee5\u6b64\u6765\u4fdd\u6301\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n<h2 class=\"a\">4. \u70ed\u8fc1\u79fb\u7684\u4f18\u52bf<\/h2>\n<p>1&gt; \u9996\u5148\u662f\u53ef\u4f38\u7f29\u6027\u6bd4\u8f83\u5f3a\uff0c IT \u7ba1\u7406\u8005\u53ef\u4ee5\u5728\u5408\u7406\u65f6\u95f4\u6bb5\u8ba9\u8fd0\u884c\u67d0\u4e9b\u5173\u952e\u4e1a\u52a1\u7684\u670d\u52a1\u5668\u9002\u5f53\u51cf\u5c11\u5de5\u4f5c\u91cf\uff0c\u4ee5\u4fbf\u8fdb\u884c\u66f4\u65b0\u64cd\u4f5c\u7cfb\u7edf\uff0c\u7ed9\u5e94\u7528\u7a0b\u5e8f\u6253\u8865\u4e01\u7b49\u3002\u800c\u5230\u4e86\u670d\u52a1\u9ad8\u5cf0\u671f\uff0c\u53c8\u53ef\u4ee5\u5f39\u6027\u5730\u8fdb\u884c\u5927\u8d1f\u8f7d\u91cf\u7684\u8fd0\u7b97\u3002\u865a\u62df\u673a\u8fc1\u79fb\u8fc7\u7a0b\u5b8c\u5168\u900f\u660e\uff0c\u51e0\u4e4e\u4e0d\u5f71\u54cd\u4f7f\u7528\u3002<\/p>\n<p>2&gt; \u5176\u6b21\uff0c\u73b0\u5728\u7684\u6570\u636e\u4e2d\u5fc3\u90fd\u8ffd\u6c42\u73af\u4fdd\u8282\u80fd\uff0c \u5de5\u4f5c\u91cf\u8d1f\u8f7d\u5927\u7684\u5e94\u7528\u7a0b\u5e8f\u5fc5\u7136\u4f1a\u4ee4\u670d\u52a1\u5668\u80fd\u8017\u589e\u52a0\uff0c\u6709\u4e86\u865a\u62df\u673a\u70ed\u8fc1\u79fb\u6280\u672f\uff0c\u5f53\u4e00\u53f0\u7269\u7406\u670d\u52a1\u5668\u8d1f\u8f7d\u8fc7\u5927\u65f6\uff0c\u7cfb\u7edf\u7ba1\u7406\u5458\u53ef\u4ee5\u5c06\u5176\u4e0a\u9762\u7684\u865a\u62df\u673a\u8fc1\u79fb\u5230\u5176\u4ed6\u670d\u52a1\u5668\uff0c\u53ef\u6709\u6548\u51cf\u4f4e\u6570\u636e\u4e2d\u5fc3\u670d\u52a1\u5668\u7684\u603b\u4f53\u80fd\u8017\uff0c\u518d\u901a\u8fc7\u51b7\u5374\u7cfb\u7edf\u5c06\u6570\u636e\u4e2d\u5fc3\u7684\u6e29\u5ea6\u4fdd\u6301\u5728\u6b63\u5e38\u6c34\u5e73\u3002<\/p>\n<h2 class=\"a\">5. \u70ed\u8fc1\u79fb\u7684\u5c40\u9650<\/h2>\n<p>\u8fdb\u884c\u865a\u62df\u673a\u7684\u70ed\u8fc1\u79fb\u4e5f\u6709\u4e0d\u5c11\u7684\u9650\u5236\u3002\u4f8b\u5982\uff0c<\/p>\n<p>VMotion \u5728\u8fdb\u884c\u8fc1\u79fb\u4e4b\u524d\uff0c\u7ba1\u7406\u8f6f\u4ef6\u4f1a\u68c0\u6d4b\u76ee\u6807\u670d\u52a1\u5668\u7684 X86 \u67b6\u6784\u662f\u5426\u4e0e\u539f\u670d\u52a1\u5668\u517c\u5bb9\u3002\u5305\u62ec\u5b58\u50a8\u8bbe\u5907\u4ee5\u53ca\u5904\u7406\u5668\uff0c\u865a\u62df\u673a\u5fc5\u987b\u653e\u5230\u5171\u4eab\u7684\u5b58\u50a8\u91cc\uff0c CPU \u7684\u7c7b\u578b\u4e5f\u8981\u4e00\u6837\uff0c\u4e0d\u4ec5\u4e0d\u80fd\u4e00\u4e2a\u662f\u82f1\u7279\u5c14\uff0c\u4e00\u4e2a\u662f AMD \uff0c\u751a\u81f3\u76f8\u540c\u5382\u5546\u4e0d\u540c\u4ea7\u54c1\u7ebf\u7684CPU \u4e5f\u4e0d\u884c\uff0c\u6bd4\u5982\u82f1\u7279\u5c14\u81f3\u5f3a\u548c\u5954\u817e\u3002<\/p>\n<h2 class=\"a\">6. \u8861\u91cf\u865a\u62df\u673a\u8fc1\u79fb\u7684\u6548\u7387<\/h2>\n<p>1&gt; \u6574\u4f53\u8fc1\u79fb\u65f6\u95f4\uff1a\u4ece\u6e90\u4e3b\u673a\u4e2d\u8fc1\u79fb\u64cd\u4f5c\u5f00\u59cb\u5230\u76ee\u7684\u4e3b\u673a\u4e0a\u5ba2\u6237\u673a\u670d\u52a1\u5904\u4e8e\u4e0d\u53ef\u7528\u72b6\u6001\u7684\u65f6\u95f4\uff0c\u6b64\u65f6\u6e90\u4e3b\u673a\u4e0a\u5ba2\u6237\u673a\u5df2\u7ecf\u6682\u505c\u670d\u52a1\uff0c\u76ee\u7684\u4e3b\u673a\u4e0a\u7684\u5ba2\u6237\u673a\u8fd8\u672a\u6062\u590d\u670d\u52a1\u3002<\/p>\n<p>2&gt; \u670d\u52a1\u5668\u505c\u673a\u65f6\u95f4\uff1a\u5728\u8fc1\u79fb\u8fc7\u7a0b\u4e2d\uff0c\u6e90\u4e3b\u673a\u548c\u76ee\u7684\u4e3b\u673a\u4e0a\u7684\u5ba2\u6237\u673a\u90fd\u5904\u4e8e\u4e0d\u53ef\u7528\u72b6\u6001\u7684\u65f6\u95f4\uff0c\u6b64\u65f6\u6e90\u4e3b\u673a\u4e0a\u5ba2\u6237\u673a\u5df2\u6682\u505c\uff0c\u76ee\u7684\u76ee\u7684\u4e3b\u673a\u4e0a\u5ba2\u6237\u8fd8\u672a\u6062<\/p>\n<p>\u590d\u670d\u52a1\u3002<\/p>\n<p>3&gt; \u5bf9\u670d\u52a1\u7684\u6027\u80fd\u5f71\u54cd\uff1a\u4e0d\u4ec5\u5305\u62ec\u8fc1\u79fb\u540e\u7684\u5ba2\u6237\u673a\u4e2d\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u4e0e\u8fc1\u79fb\u524d\u76f8\u5bf9\u6bd4\u662f\u5426\u6709\u6240\u964d\u4f4e\uff0c\u8fd8\u5305\u62ec\u8fc1\u79fb\u540e\u5bf9\u76ee\u7684\u4e3b\u673a\u4e0a\u7684\u5176\u4ed6\u670d\u52a1\u7684\u6027\u80fd\u5f71\u54cd\u3002<\/p>\n<h2>7. Kvm \u52a8\u6001\u8fc1\u79fb\u5efa\u8bae\u548c\u6ce8\u610f\u4e8b\u9879<\/h2>\n<p>1&gt; \u6e90\u5bbf\u4e3b\u673a\u548c\u76ee\u7684\u5bbf\u4e3b\u673a\u76f4\u63a5\u5c3d\u91cf\u7528\u7f51\u7edc\u5171\u4eab\u7684\u5b58\u50a8\u7cfb\u7edf\u6765\u4fdd\u5b58\u5ba2\u6237\u673a\u78c1\u76d8\u955c\u50cf\u3002\u4f8b\u5982 NFS \uff0c ISCSI \uff0c Glusterfs \u7b49\u3002<\/p>\n<p>2&gt; \u4e3a\u4e86\u63d0\u9ad8\u52a8\u6001\u8fc1\u79fb\u7684\u6210\u529f\u7387\uff0c\u5c3d\u91cf\u5728\u540c\u7c7b\u578b cpu\u7684\u4e3b\u673a\u4e0a\u9762\u8fdb\u884c\u52a8\u6001\u8fc1\u79fb\uff0c\u5c3d\u7ba1 kvm \u52a8\u6001\u8fc1\u79fb\u4e5f\u652f\u6301\u4ece Intel \u5e73\u53f0\u8fc1\u79fb\u5230 amd \u5e73\u53f0\u3002\u00a0 \u4f46\uff0c\u4ece\u5b89\u5168\u6027\uff0c\u7a33\u5b9a\u5ea6\u8003\u8651\u4e0d\u5efa\u8bae\u8fd9\u6837\u53bb\u64cd\u4f5c\u3002<\/p>\n<p>3&gt; 64 \u4f4d\u7684\u5ba2\u6237\u673a\u53ea\u80fd\u8fd0\u884c\u5728 64 \u5bbf\u4e3b\u673a\u4e4b\u95f4\u7684\u8fc1\u79fb\uff0c\u800c 32 \u4f4d\u5ba2\u6237\u673a\u53ef\u4ee5\u5728 32 \u5bbf\u4e3b\u673a\u548c 64 \u4f4d\u5bbf\u4e3b\u673a\u4e4b\u95f4\u8fc1\u79fb\u3002<\/p>\n<p>4&gt; \u5728\u8fdb\u884c\u52a8\u6001\u8fc1\u79fb\u65f6\uff0c\u88ab\u8fc1\u79fb\u5ba2\u6237\u673a\u7684\u540d\u79f0\u662f\u552f\u4e00\u7684\uff0c\u5728\u76ee\u7684\u5bbf\u4e3b\u673a\u4e0a\u4e0d\u80fd\u6709\u4e0e\u6e90\u5bbf\u4e3b\u673a\u88ab\u8fc1\u79fb\u5ba2\u6237\u673a\u540c\u540d\u7684\u5ba2\u6237\u673a\u5b58\u5728\u3002<\/p>\n<p>5&gt; \u76ee\u7684\u5bbf\u4e3b\u673a\u548c\u6e90\u5bbf\u4e3b\u673a\u7684\u8f6f\u4ef6\u5c3d\u53ef\u80fd\u7684\u76f8\u540c\u3002\u4e5f\u5c31\u662f\u540c\u4e3a Vmware \uff0c KVM \uff0c Xen \u7b49\u3002<\/p>\n<h2 class=\"a\">8. V2V\u8fc1\u79fb\u5b9e\u4f8b<\/h2>\n<p>\u8fc1\u79fb\u6240\u7528\u4e3b\u673a\uff1a192.168.16.3\u3001192.168.16.13\uff0c\u4ece.13\u8fc1\u79fb\u865a\u62df\u673avm1\u81f3.3\u3002<\/p>\n<p>1&gt; \u4fee\u6539\u4e3b\u673a\u540d\u3002\u4e3b\u673a\u540d\u76f8\u540c\u65e0\u6cd5\u8fdb\u884c\u8fc1\u79fb<\/p>\n<p align=\"center\">\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<div class=\"cnblogs_code\">\n<div class=\"cnblogs_code_toolbar\">\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<\/div>\n<pre>192.168.16.3\r\n[root@localhost ~]# hostnamectl set-hostname ajyone\r\n[root@localhost ~]# hostname\r\najyone\r\n\r\n192.168.16.13\r\n[root@localhost ~]# hostnamectl set-hostname ajytwo\r\n[root@localhost ~]# hostname\r\najytwo<\/pre>\n<div class=\"cnblogs_code_toolbar\">\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>2&gt; \u642d\u5efanfs\u5171\u4eab\u5b58\u50a8<\/p>\n<div class=\"cnblogs_code\">\n<div class=\"cnblogs_code_toolbar\">\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<\/div>\n<pre>#192.168.16.13\uff1a\r\n[root@localhost ~]# mount \/dev\/cdrom \/mnt\r\nmount: \/dev\/sr0 \u5199\u4fdd\u62a4\uff0c\u5c06\u4ee5\u53ea\u8bfb\u65b9\u5f0f\u6302\u8f7d\r\n[root@localhost ~]# yum install nfs-utils rpcbind -y\r\n[root@localhost ~]# mkdir \/nfsdata\r\n[root@localhost ~]# vim \/etc\/exports\r\n\/nfsdata *(rw,sync)\r\n[root@localhost ~]# chown -R nfsnobody: \/nfsdata\r\n[root@localhost ~]# systemctl restart rpcbind nfs\r\n[root@localhost ~]# systemctl stop firewalld\r\n[root@localhost ~]# setenforce 0\r\n[root@localhost ~]# showmount -e\r\nExport list for localhost.localdomain:\r\n\/nfsdata *\r\n\r\n#192.168.16.3\uff1a\r\n[root@localhost ~]# systemctl stop firewalld\r\n[root@localhost ~]# setenforce 0\r\n[root@localhost ~]# yum install nfs-utils -y\r\n[root@localhost ~]# showmount -e 192.168.16.13\r\nExport list for 192.168.16.13:\r\n\/nfsdata *\r\n[root@localhost ~]# mkdir \/nfsdata\r\n[root@localhost ~]# mount -t nfs 192.168.16.13:\/nfsdata \/nfsdata\r\n[root@localhost ~]# systemctl stop firewalld\r\n[root@localhost ~]# setenforce 0\r\n[root@localhost ~]# df -h\r\n192.168.16.13:\/nfsdata   27G   12G   16G   44% \/nfsdata<\/pre>\n<div class=\"cnblogs_code_toolbar\">\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>3&gt; \u5148\u8fdb\u884c\u51b7\u8fc1\u79fb\uff0c\u5c06.8\u7684vm3\u8fc1\u79fb\u81f3\/nfsdata\u76ee\u5f55\u4e0b<\/p>\n<div class=\"cnblogs_code\">\n<div class=\"cnblogs_code_toolbar\">\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<\/div>\n<pre>[root@localhost ~]# virsh list --all\r\n Id    \u540d\u79f0                         \u72b6\u6001\r\n----------------------------------------------------\r\n -     centos7.0                      \u5173\u95ed\r\n -     vm1                          \u5173\u95ed\r\n -     vm2                          \u5173\u95ed\r\n -     vm3                          \u5173\u95ed\r\n[root@localhost ~]# cd \/etc\/libvirt\/qemu\/\r\n[root@localhost qemu]# ls\r\ncentos7.0.xml  networks  vm1.xml  vm2.xml  vm3.xml\r\n[root@localhost qemu]# cp vm3.xml vm3.xml.bak\r\n[root@localhost qemu]# mv vm3.xml \/root\r\n[root@localhost qemu]# virsh undefine vm3\r\n\u57df vm3 \u5df2\u7ecf\u88ab\u53d6\u6d88\u5b9a\u4e49\r\n[root@localhost qemu]# cd \/var\/lib\/libvirt\/images\/\r\n[root@localhost images]# ls\r\ncentos7.0.qcow2  CentOS-7-x86_64-DVD-1611.iso  vm1.qcow2  vm3.qcow2\r\n[root@localhost images]# mv vm3.qcow2 \/nfsdata\r\n[root@localhost images]# cd \/root\r\n[root@localhost ~]# ls\r\nvm3.xml\r\n[root@localhost ~]# vim vm3.xml\r\n&lt;disk type='file' device='cdrom'&gt;\r\n      &lt;driver name='qemu' type='raw'\/&gt;\r\n      &lt;source file='\/var\/lib\/libvirt\/images\/CentOS-7-x86_64-DVD-1611.iso'\/&gt;\r\n[root@localhost ~]# cd \/nfsdata\/\r\n[root@localhost nfsdata]# ls\r\nvm3.qcow2\r\n[root@localhost ~]#  virsh define vm3.xml\r\n\u5b9a\u4e49\u57df vm3\uff08\u4ece vm3.xml\uff09\r\n[root@localhost ~]# virsh start vm3\r\n\u57df vm3 \u5df2\u5f00\u59cb\r\n[root@localhost ~]# virsh list --all\r\n Id    \u540d\u79f0                         \u72b6\u6001\r\n----------------------------------------------------\r\n 1     vm3                            running\r\n -     centos7.0                      \u5173\u95ed\r\n -     vm1                            \u5173\u95ed\r\n -     vm2                            \u5173\u95ed<\/pre>\n<div class=\"cnblogs_code_toolbar\">\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>4&gt;\u7f16\u8f91\u57df\u540d\u89e3\u6790<\/p>\n<div class=\"cnblogs_code\">\n<pre>#\u6bcf\u53f0\u4e3b\u673a\u90fd\u5199\r\n[root@localhost ~]# vim \/etc\/hosts\r\n127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4\r\n::1         localhost localhost.localdomain localhost6 localhost6.localdomain6\r\n192.168.16.3 ajyone\r\n192.168.16.13 ajytwo<\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>5&gt; \u4e24\u53f0\u5bbf\u4e3b\u673a\u4e92\u8fde\uff0c\u51c6\u5907\u70ed\u8fc1\u79fb<\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p>6&gt; \u8fdb\u884c\u8fc1\u79fb<\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p>&nbsp;<\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><em><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/em><\/div>\n<p>&nbsp;<\/p>\n<p><em>\u00a0<\/em><\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><em><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/em><\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>7&gt; \u8fc1\u79fb\u5b8c\u6210\u540e\uff0c\u5728.3\u6253\u5f00\u8fc1\u79fb\u8fc7\u53bb\u7684\u7ec8\u7aefvm3\uff0c\u67e5\u770b\u7ec8\u7aef\u4e1a\u52a1\u662f\u5426\u505c\u6b62<\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u6b64\u65f6\u5f00\u673a\u4f1a\u63d0\u793a\u5bf9\/nfsdata\/vm3.qcow2\u65e0\u6743\u9650\uff0c\u65e0\u6cd5\u6253\u5f00\uff0c\u7ed9\u6743\u9650\u5373\u53ef<\/p>\n<div class=\"cnblogs_code\">\n<div class=\"cnblogs_code_toolbar\">\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<\/div>\n<pre>[root@localhost \/]# cd \/nfsdata\/\r\n[root@localhost nfsdata]# ls\r\nvm3.qcow2\r\n[root@localhost nfsdata]# chmod 777 vm3.qcow2\r\n[root@localhost nfsdata]# ll\r\n\u603b\u7528\u91cf 1420100\r\n-rwxrwxrwx. 1 root root 1454243840 6\u6708  24 19:23 vm3.qcow2\r\n[root@localhost nfsdata]#<\/pre>\n<div class=\"cnblogs_code_toolbar\">\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<\/div>\n<\/div>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p>\u7136\u540e\u518d\u5c06\u8be5\u865a\u62df\u673a\u8fc1\u79fb\u81f3192.168.16.13\uff0c\u67e5\u770b\u754c\u9762\u662f\u5426\u6539\u53d8\uff0c\u82e5\u6ca1\u6709\u6539\u53d8\u5219\u8868\u793a\u70ed\u8fc1\u79fb\u6210\u529f\uff0c\u5373\u5728\u4e0d\u5f71\u54cd\u4f7f\u7528\u7684\u60c5\u51b5\u4e0b\u8fdb\u884c\u4e86\u8fc1\u79fb<\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p>\u5207\u6362\u81f3192.168.16.13\u7ec8\u7aef\u67e5\u770b&nbsp;<\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p>\u7a97\u53e3\u754c\u9762\u76f8\u540c\uff0c\u8fc1\u79fb\u6210\u529f\u3002<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>kvm\u865a\u62df\u8fc1\u79fb 1. \u865a\u62df\u8fc1\u79fb \u8fc1\u79fb\uff1a \u7cfb\u7edf\u7684\u8fc1\u79fb\u662f\u6307\u628a\u6e90\u4e3b\u673a\u4e0a\u7684\u64cd\u4f5c\u7cfb\u7edf\u548c\u5e94\u7528\u7a0b\u5e8f\u79fb\u52a8\u5230\u76ee\u7684\u4e3b\u673a\uff0c\u5e76\u4e14\u80fd\u591f\u5728 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/b.yesiyu.top\/?p=1046\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201ckvm\u865a\u62df\u8fc1\u79fb\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1046","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/1046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1046"}],"version-history":[{"count":1,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/1046\/revisions"}],"predecessor-version":[{"id":1061,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/1046\/revisions\/1061"}],"wp:attachment":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1046"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}