{"id":16216,"date":"2022-10-06T13:09:55","date_gmt":"2022-10-06T05:09:55","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=16216"},"modified":"2022-10-06T13:10:38","modified_gmt":"2022-10-06T05:10:38","slug":"kvm-xen-virtualization","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/kvm-xen-virtualization.html","title":{"rendered":"\u79d1\u666e\uff1aKVM\u4e0eXEN\u865a\u62df\u5316\u73af\u5883\u7a76\u7adf\u6709\u4f55\u4e0d\u540c\uff1f"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u865a\u62df\u5316\u7684\u6982\u5ff5\u5728\u8fd1\u4e9b\u5e74\u6536\u5230\u4e86\u5f88\u5927\u7a0b\u5ea6\u4e0a\u7684\u666e\u53ca\uff0c\u6c42\u5176\u539f\u56e0\u5f88\u7b80\u5355\uff1a\u865a\u62df\u5316\u80fd\u591f\u6700\u5927\u7a0b\u5ea6\u5229\u7528\u8d44\u6e90\uff0c\u4e3a\u4f01\u4e1a\u8282\u7ea6\u6210\u672c\u3002\u76ee\u524d\u5e02\u9762\u8f83\u53d7\u6b22\u8fce\u7684\u865a\u62df\u67b6\u6784\u4e3b\u8981\u6709KVM\u3001XEN\u548cVMware\uff0c\u5176\u4e2d\uff0cKVM\u548cXEN\u90fd\u662f\u514d\u8d39\u5f00\u6e90\u7684\uff0c\u800cVMware\u5219\u662f\u4ed8\u8d39\u7684\uff0c\u6240\u4ee5\uff0c\u6b64\u6b21\u7b14\u8005\u53ea\u5bf9\u6bd4KVM\u3001XEN\u4e4b\u95f4\u7684\u5dee\u522b\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u5982\u679c\u7ed9KVM\u3001XEN\u7b80\u5355\u5f52\u7c7b\u7684\u8bdd\uff0cKVM\u662f\u5b8c\u5168\u865a\u62df\u5316\u6280\u672f\u53c8\u53eb\u786c\u4ef6\u8f85\u52a9\u865a\u62df\u5316\u6280\u672f\uff08Full Virtualization)\u3002\u76f8\u53cd\uff0cXEN\u662f\u534a\u865a\u62df\u5316\u6280\u672f\uff08paravirtualization\uff09\uff0c\u4e5f\u53eb\u505a\u51c6\u865a\u62df\u5316\u6280\u672f\u3002 \n \n \nKVM\u662f\u5728\u865a\u62df\u673a\u548c\u786c\u4ef6\u4e4b\u95f4\u52a0\u4e86\u4e00\u4e2a\u8f6f\u4ef6\u5c42--Hypervisor\uff0c\u6216\u8005\u53eb\u505a\u865a\u62df\u673a\u7ba1\u7406\u7a0b\u5e8f\uff08VMM\uff09\uff0cKVM\u7684hypervisor\u662f\u76f4\u63a5\u8fd0\u884c\u5728\u7269\u7406\u786c\u4ef6\u4e4b\u4e0a\u7684\u3002XEN\u662f\u5728\u5168\u865a\u62df\u5316\u7684\u57fa\u7840\u4e0a\uff0c\u628a\u5ba2\u6237\u64cd\u4f5c\u7cfb\u7edf\u8fdb\u884c\u4e86\u4fee\u6539\uff0c\u589e\u52a0\u4e86\u4e00\u4e2a\u4e13\u95e8\u7684API\uff0c\u4f7f\u5ba2\u6237\u64cd\u4f5c\u7cfb\u7edf\u96c6\u6210\u4e86\u865a\u62df\u5316\u65b9\u9762\u7684\u4ee3\u7801\uff0c\u8be5\u65b9\u6cd5\u65e0\u9700\u91cd\u65b0\u7f16\u8bd1\u6216\u5f15\u8d77\u9677\u9631\uff0c\u56e0\u4e3a\u64cd\u4f5c\u7cfb\u7edf\u81ea\u8eab\u80fd\u591f\u4e0e\u865a\u62df\u8fdb\u7a0b\u8fdb\u884c\u5f88\u597d\u7684\u534f\u4f5c\u3002 \n \n \n\u4e5f\u6709\u4eba\u5c06KVM\u67b6\u6784\u5206\u89e3\u4e3a\u4e24\u90e8\u5206\uff1aKVM\u9a71\u52a8\uff0c\u5373linux kernel\u7684\u4e00\u4e2a\u6a21\u5757\u548cQemu\uff0cQemu\u7528\u4e8e\u6a21\u62df\u865a\u62df\u673a\u7684\u7528\u6237\u7a7a\u95f4\u7ec4\u4ef6\uff0c\u63d0\u4f9bI\/O\u8bbe\u5907\u6a21\u578b\uff0c\u8bbf\u95ee\u5916\u8bbe\u7684\u9014\u5f84\u3002\u5176\u6700\u5927\u7684\u4f18\u52bf\u5728\u4e8eKVM\u4f7f\u7528Linux\u5185\u6838\u96c6\u6210\u7684\uff0c\u6240\u4ee5\u901f\u5ea6\u8f83\u5feb\uff0c\u540c\u65f6\uff0cKVM\u662f\u5b8c\u5168\u865a\u62df\u7684\uff0c\u6240\u4ee5\u4e0d\u9700\u8981\u533a\u5206pv\u548chvm\uff0c\u53ef\u4ee5\u5b89\u88c5\u5404\u79cdLinux\u53d1\u884c\u7248\u548cWindows\u53d1\u884c\u7248\uff0c\u53ef\u4ee5\u8fd0\u884c\u5728\u652f\u6301\u865a\u62df\u5316\u6269\u5c55\u7684X86\u548cX86-64\u786c\u4ef6\u67b6\u6784\u4e0a\u3002<\/p>\n XEN\u5b9e\u9645\u4e0a\u51fa\u73b0\u7684\u65f6\u95f4\u8981\u65e9\u4e8eKVM\uff0c\u5b83\u662f\u7531\u5251\u6865\u5927\u5b66\u5f00\u53d1\u7684\uff0c\u4e00\u4e2a\u5f00\u6e90\u7684\u865a\u62df\u673a\u76d1\u89c6\u5668\u3002\u534a\u865a\u62df\u5316\u67b6\u6784\u51b3\u5b9a\u4e86\u5b83\u6ce8\u5b9a\u4e0d\u662f\u771f\u6b63\u7684\u865a\u62df\u673a\uff0c\u53ea\u662f\u81ea\u5df1\u8fd0\u884c\u4e86\u4e00\u4e2a\u5185\u6838\u7684\u4f8b\u5b50\uff0c\u540c\u65f6\u533a\u5206Xen+pv+\u548cXen+hvm\uff0c\u5176\u4e2dpv\u53ea\u652f\u6301Linux\uff0c\u800chvm\u5219\u652f\u6301Windows\u7cfb\u7edf\u3002\u9664\u6b64\u4e4b\u5916\uff0cXEN\u8fd8\u62e5\u6709\u66f4\u597d\u7684\u53ef\u7528\u8d44\u6e90\u3001\u5e73\u53f0\u652f\u6301\u3001\u53ef\u7ba1\u7406\u6027\u3001\u5b9e\u65bd\u3001\u652f\u6301\u52a8\u6001\u8fc1\u79fb\u548c\u6027\u80fd\u57fa\u51c6\u7b49\u4f18\u52bf\u3002<\/p>\n \u76ee\u524d\u6765\u770b\uff0c\u4ece\u6027\u80fd\u548c\u6210\u719f\u5ea6\u4e0a\u800c\u8a00\uff0cXEN\u8981\u4f18\u4e8eKVM\uff0c\u4f46\u662f\u7ea2\u5e3d\u7b49\u516c\u53f8\u5728KVM\u4e0a\u7684\u6295\u5165\u4e5f\u8d8a\u6765\u8d8a\u591a\uff0c\u4f46\u8bf8\u5982AWS\u3001\u963f\u91cc\u4e91\u7b49\u4e91\u670d\u52a1\u63d0\u4f9b\u5546\u4ecd\u7136\u4f7f\u7528\u7684XEN\u534a\u865a\u62df\u5316\u6280\u672f\uff0cXEN\u4e5f\u79ef\u7d2f\u4e86\u5f88\u591a\u4f18\u79c0\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u7a33\u5b9a\u6027\u66f4\u4f18\uff0c\u800cKVM\u6700\u5927\u7684\u597d\u5904\u5c31\u5728\u4e8e\u5b83\u662f\u4e0eLinux\u5185\u6838\u96c6\u6210\u7684\uff0c\u53ef\u4ee5\u8bf4KVM\u4e0eESX\u62e5\u6709\u76f8\u540c\u7684\u67b6\u6784\uff0c\u8fd9\u4e5f\u8ba9KVM\u4eca\u5e74\u5f97\u5230\u5927\u6279\u7528\u6237\u7684\u652f\u6301\u3002 \n\u5728\u7f51\u7edc\u6280\u672f\u3001\u4e91\u8ba1\u7b97\u8fc5\u901f\u53d1\u5c55\u7684\u4eca\u5929\uff0c\u6570\u636e\u91cf\u8fc5\u901f\u589e\u52a0\uff0c\u865a\u62df\u5316\u6280\u672f\u4e5f\u5f97\u5230\u4e86\u53d1\u5c55\u7684\u571f\u58e4\uff0c\u751a\u81f3\u53ef\u4ee5\u8bf4\u4e91\u6280\u672f\u5c31\u662f\u65b0\u578b\u7684\u865a\u62df\u5316\u6280\u672f\u3002\u65e0\u8bba\u8f6f\u4ef6\u865a\u62df\u5316\u8fd8\u662f\u786c\u4ef6\u865a\u62df\u5316\u90fd\u53d7\u5230\u4f01\u4e1a\u7684\u5173\u6ce8\uff0c\u800c\u865a\u62df\u5316\u6240\u5e26\u6765\u7684\u964d\u4f4e\u4f01\u4e1aTCO\uff0c\u5feb\u901f\u90e8\u7f72\u7b49\u4f18\u52bf\u4e5f\u8ba9\u5176\u9700\u6c42\u4e0d\u65ad\u589e\u52a0\u3002<\/p>\n \u672a\u6765\u865a\u62df\u5316\u6280\u672f\u5c06\u60f3\u7740\u5f00\u6e90\u7684XEN\u4e0eKVM\u53d1\u5c55\uff0c\u8fd8\u662f\u95ed\u6e90\u7684VMware\u66f4\u80dc\u4e00\u7b79\uff0c\u5728\u5f00\u6e90\u7684\u4e16\u754c\u4e2d\uff0cXEN\u80fd\u5426\u5b88\u4f4f\u9635\u8425\uff0cKVM\u53c8\u5c06\u5982\u4f55\u53d1\u5c55\u90fd\u503c\u5f97\u6211\u4eec\u5173\u6ce8\u3002<\/p>\n \n |