{"id":1049,"date":"2010-04-04T14:35:26","date_gmt":"2010-04-04T06:35:26","guid":{"rendered":"http:\/\/blog.nuface.tw\/?p=1049"},"modified":"2010-04-13T22:47:02","modified_gmt":"2010-04-13T14:47:02","slug":"%e4%bd%bf%e7%94%a8xen-%e5%bb%ba%e7%ab%8b%e5%ae%8c%e6%95%b4%e8%99%9b%e6%93%ac%e5%8c%96%e7%b3%bb%e7%b5%b1","status":"publish","type":"post","link":"https:\/\/blog.nuface.tw\/?p=1049","title":{"rendered":"\u4f7f\u7528Xen \u5efa\u7acb\u5b8c\u6574\u865b\u64ec\u5316\u7cfb\u7d71"},"content":{"rendered":"<p>\u4e4b\u524d\u8b1b\u4e86<a href=\"http:\/\/blog.nuface.tw\/?p=718\">\u865b\u64ec\u5316\u6280\u8853\u7684\u6574\u7406<\/a>\uff0c\u9019\u4e00\u7bc7\u4f86\u7528Xen \u7684Full Virtualization\uff0c\u5efa\u7acb\u4e00\u500b\u5168\u865b\u64ec\u5316\u7684\u4f5c\u696d\u7cfb\u7d71\u3002\u5e95\u5c64\u7528FC8 \uff0c\u865b\u6a5f\u4f7f\u7528Oracle Enterprise R4 U7 i386 \uff0c\u628a\u5efa\u7acb\u7684\u904e\u7a0b\u8a18\u9304\u4e00\u4e0b\u3002<br \/>\n<!--more--><br \/>\n\u767b\u5165 vm01 VNC Server<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0000.gif\" alt=\"VNC Server\" \/><\/p>\n<p>\u958b\u555f\u865b\u64ec\u6a5f\u5668\u7ba1\u7406\u54e1<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0001.gif\" alt=\"\u865b\u64ec\u6a5f\u5668\u7ba1\u7406\u54e1\" \/><\/p>\n<p>\u76ee\u524d\u9019\u53f0\u6a5f\u5668\u4e0a\u7684\u865b\u64ec\u6a5f\u5668\u5217\u8868<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0002.gif\" alt=\"\u865b\u64ec\u6a5f\u5668\u5217\u8868\" \/><\/p>\n<p>\u5efa\u7acb\u65b0\u7684\u865b\u64ec\u7cfb\u7d71<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0003.gif\" alt=\"\u65b0\u7684\u865b\u64ec\u7cfb\u7d71\" \/><\/p>\n<p>\u70ba\u865b\u64ec\u7cfb\u7d71\u547d\u540d\uff0c\u9019\u88cf\u6307\u7684\u4e0d\u662f\u65b0\u5efa\u865b\u6a5f\u7684Host \uff0c\u800c\u662f\u5728Xen \u4e0a\u7684\u8b58\u5225\u547d\u540d<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0004.gif\" alt=\"\u865b\u64ec\u7cfb\u7d71\u547d\u540d\" \/><\/p>\n<p>\u9078\u64c7\u865b\u64ec\u5316\u7684\u65b9\u6cd5\uff0c\u5c0f\u745e\u4f7f\u7528\u5168\u865b\u64ec\u5316  Full Virtualization<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0005.gif\" alt=\"\u865b\u64ec\u5316\u7684\u65b9\u6cd5\" \/><\/p>\n<p>\u9078\u64c7\u5b89\u88dd\u6620\u50cf\u6a94\u7684\u4f4d\u7f6e\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5be6\u9ad4\u7684DVD ROM\uff0c\u5c0f\u745e\u4f7f\u7528\u7684\u662fISO \u6a94<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0006.gif\" alt=\"\u5b89\u88dd\u6620\u50cf\u6a94\" \/><\/p>\n<p>\u9078\u64c7\u4f5c\u696d\u7cfb\u7d71\uff0c\u985e\u578b\uff1aLinux \u7cfb\u7d71\u7248\u672c\uff1aRed Hat Enterprise Linux 4<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0007.gif\" alt=\"\u4f5c\u696d\u7cfb\u7d71\u985e\u578b\" \/><\/p>\n<p>\u6307\u5b9a\u5132\u5b58\u7a7a\u9593\u3002\u5c0f\u745e\u7684\u5e95\u5c64\u4f7f\u7528LVM \uff0c\u6240\u4ee5\u76f4\u63a5\u65b0\u589e\u4e00\u500bLV \u5373\u53ef\uff0c\u5728\u9019\u88cf\uff0c\u53ef\u4ee5\u4f7f\u7528\u7c21\u55ae\u7684\u6a94\u6848\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u6b63\u5e38\u5206\u5272\u5340\u3002LV \u7b97\u662f\u4e00\u500b\u6b63\u5e38\u7684\u5206\u5272\u5340<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0008.gif\" alt=\"\u5132\u5b58\u7a7a\u9593\" \/><\/p>\n<p>\u9078\u64c7\u7db2\u8def\u9023\u7dda\u7684\u65b9\u5f0f\uff0c\u6709\uff12\u7a2e\uff0cvirtual network (\u7531\u5e95\u5c64\u7684\u7db2\u8def\u5e6b\u4f60\u505aNAT \u9023\u51fa\u53bb\uff0c\u5728\u5916\u754c\u770b\u4f86\uff0c\u53ea\u770b\u5230\u5e95\u5c64\u90a3\u53f0\u96fb\u8166) \uff0cshare physical device (\u985e\u4f3cbridge \u7684\u65b9\u5f0f\uff0c\u5e95\u5c64birdge \u4e00\u5f35\u7db2\u5361\u8b93\u4f60\u7528\uff0c\u4f60\u518d\u81ea\u5df1\u8a2d\u5b9a\u7db2\u8def\uff0c\u5728\u5916\u754c\u770b\u4f86\uff0c\u50cf\u662f\u5169\u53f0\u96fb\u8166)\uff0c\u5728\u9019\u6211\u5011\u9078\u64c7 share physical device \u7684\u65b9\u5f0f\uff0c\u9810\u8a2dXen \u555f\u52d5\u6642\uff0c\u5df1\u5efa\u7acb\u4e00\u5f35birdge \u7684\u7db2\u5361\u4e86peth0<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0009.gif\" alt=\"\u7db2\u8def\u9023\u7dda\u7684\u65b9\u5f0f\" \/><\/p>\n<p>\u5206\u914d\u8a18\u61b6\u9ad4\u53caCPU \u6578\uff0c\u8a2d\u5b9a\u6700\u5927\u53ef\u4ee5\u4f7f\u7528\u7684RAM\uff0c\u53ca\u6700\u5c0f\u5fc5\u9808\u8981\u6709\u7684RAM\uff0c\u9084\u6709\u6700\u5927\u53ef\u4f7f\u7528\u7684CPU \u6578\uff0c\u9019\u500bCPU \u6578\uff0c\u4e0d\u53ef\u5927\u65bc\u908f\u8f2f\u7e3d\u6578\uff0c\u5728\u5c0f\u745e\u7684Case \u88cf\uff0c\u55ae\u53f0\u865b\u6a5f\u4e0d\u53ef\u4ee5\u5927\u65bc8\u9846\uff0c\u4e0d\u904e\u591a\u53f0\u865b\u6a5f\uff0c\u5404\u81ea\u88ab\u5206\u914d\u5230\u7684CPU  \u6578\uff0c\u52a0\u7e3d\u5f8c\uff0c\u53ef\u4ee5\u5927\u65bc8\u9846<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0010.gif\" alt=\"\u8a18\u61b6\u9ad4\u53caCPU \u6578\" \/><\/p>\n<p>\u57fa\u672c\u8cc7\u6599\uff0c\u8a2d\u5b9a\u597d\u4e86\uff0c\u6e96\u5099\u5b89\u88dd<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0011.gif\" alt=\"\u6e96\u5099\u5b89\u88dd\u865b\u6a5f\" \/><\/p>\n<p>\u865b\u64ec\u6a5f\u958b\u6a5f\u756b\u9762<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0012.gif\" alt=\"\u865b\u64ec\u6a5f\u958b\u6a5f\u756b\u9762\" \/><\/p>\n<p>\u9032\u5165Oracle Enterprise Linux \u5b89\u88dd\u756b\u9762<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0013.gif\" alt=\"OEL\u5b89\u88dd\u756b\u9762\" \/><\/p>\n<p>\u6aa2\u67e5\u5b89\u88dd\u7684\u5a92\u9ad4\uff0c\u6b64\u6642\uff0c\u539f\u672c\u4f7f\u7528\u7684ISO \u6a94\uff0c\u5df1\u88abXEN \u6a21\u64ec\u6210DVD\u4e86<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0014.gif\" alt=\"\u6aa2\u67e5\u5b89\u88dd\u7684\u5a92\u9ad4\" \/><\/p>\n<p>\u9032\u5165OEL\u5b89\u88dd\u756b\u9762<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0015.gif\" alt=\"OEL\u5b89\u88dd\u756b\u9762\" \/><\/p>\n<p>\u9078\u64c7\u8a9e\u8a00<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0016.gif\" alt=\"\u9078\u64c7\u8a9e\u8a00\" \/><\/p>\n<p>\u9375\u76e4\u8a2d\u5b9a\uff0c\u4f7f\u7528U.S English<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0017.gif\" alt=\"\u9375\u76e4\u8a2d\u5b9a\" \/><\/p>\n<p>\u78c1\u789f\u5206\u5272\u65b9\u5f0f\u9078\u64c7\uff0c\u53ef\u4ee5\u8b93\u7cfb\u7d71\u81ea\u52d5\u5207\u5272\uff0c\u4e5f\u53ef\u4ee5\u624b\u52d5\uff0c\u5c0f\u745e\u6bd4\u8f03\u61f6\uff0c\u4f7f\u7528\u81ea\u52d5\u7684<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0018.gif\" alt=\"\u78c1\u789f\u5206\u5272\u65b9\u5f0f\u9078\u64c7\" \/><\/p>\n<p>\u8b66\u544a\u4f60\uff0c\u5b83\u8981\u522a\u6389\u4f60\u786c\u789f\u6240\u6709\u8cc7\u6599\u4e86\uff0e\uff0e\uff08\u96a8\u4fbf\u5b83\u5427)<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0020.gif\" alt=\"\u8b66\u544a\" \/><\/p>\n<p>\u9078\u64c7\u4f60\u8981\u81ea\u52d5partitioning \u7684\u65b9\u5f0f\uff0c\u67093\u7a2e\u65b9\u5f0f\uff0c(1)\u53ea\u79fb\u9664\u9019\u9846\u786c\u789f\u4e0a\u6709Linux \u7684\u7684\u5206\u5272\u5340\uff0c(2)\u522a\u9664\u9019\u9846\u786c\u789f\u4e0a\u7684\u6240\u6709\u5206\u5272\u5340\uff0c(3)\u7559\u4e0b\u6240\u6709\u7684\u5206\u5272\u5340\uff0c\u4f7f\u7528\u9084\u6c92\u6709\u7528\u5230\u7684\u7a7a\u9593\u3002\uff0e\uff0e\u9078\u64c7\u7b2c2\u500b\u5427<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0021.gif\" alt=\"\u81ea\u52d5partitioning \u7684\u65b9\u5f0f\" \/><\/p>\n<p>\u53c8\u518d\u4e00\u6b21\u7684\u8b66\u544a\u4f60\uff0e\uff0e\uff0e<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0022.gif\" alt=\"\u8b66\u544a\" \/><\/p>\n<p>\u8b93\u4f60\u770b\u4e00\u4e0b\uff0c\u5b83\u5e6b\u4f60\u505a\u7684\u898f\u5283<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0023.gif\" alt=\"Disk Setup\" \/><\/p>\n<p>\u95dc\u6a5f\u9078\u9805\u7684\u8a2d\u5b9a\uff0c\u4e3b\u8981\u662f\u554f\u4f60GRUB \u8981\u653e\u5728\u90a3\uff1f\u8981\u4e0d\u8981\u8a2d\u5b9a\u958b\u6a5f\u5bc6\u78bc\u7b49\uff0e\uff0e\u76f4\u63a5\u4f7f\u7528\u9810\u8a2d\u503c<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0024.gif\" alt=\"Grub \u8a2d\u5b9a\" \/><\/p>\n<p>\u7db2\u8def\u8a2d\u5b9a\u9078\u9805\uff0cDHCP \uff0c\u6216\u8457\u624b\u52d5\u6307\u5b9a<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0025.gif\" alt=\"\u7db2\u8def\u8a2d\u5b9a\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0026.gif\" alt=\"\u7db2\u8def\u8a2d\u5b9a\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0027.gif\" alt=\"\u7db2\u8def\u8a2d\u5b9a\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0028.gif\" alt=\"\u7db2\u8def\u8a2d\u5b9a\" \/><\/p>\n<p>\u9632\u706b\u7246\u8a2d\u5b9a\uff0c\u5148\u4e0d\u8a2d\u5b9a<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0029.gif\" alt=\"\u9632\u706b\u7246\u8a2d\u5b9a\" \/><\/p>\n<p>\u6c92\u8a2d\u9632\u706b\u7246\uff0c\u8b66\u544a\u4f60\u4e00\u4e0b<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0030.gif\" alt=\"\u8b66\u544a\" \/><\/p>\n<p>\u984d\u5916\u8a9e\u8a00\u4f7f\u7528\u7684\u9078\u64c7\uff0c\u9078\u4e00\u4e0b\u4e2d\u6587\u5427<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0031.gif\" alt=\"\u984d\u5916\u8a9e\u8a00\u4f7f\u7528\u7684\u9078\u64c7\" \/><\/p>\n<p>\u9078\u64c7\u6642\u5340 \uff0c\u55ef..\u5c0f\u745e\u4eba\u5728\u53f0\u5317\uff0e\uff0e<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0032.gif\" alt=\"\u9078\u64c7\u6642\u5340\" \/><\/p>\n<p>\u8a2d\u5b9a\u4e00\u4e0bGod \u7684\u5bc6\u78bc\uff0e\uff0eroot = god ..<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0033.gif\" alt=\"root \u5bc6\u78bc\" \/><\/p>\n<p>\u5957\u4ef6\u7684\u5b89\u88dd\u9078\u64c7<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0034.gif\" alt=\"\u5957\u4ef6\u7684\u5b89\u88dd\u9078\u64c7\" \/><\/p>\n<p>\u8c6a\u6c23\u4e00\u9ede\uff0c\u5168\u9078\u5566\uff0e\uff0e<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0035.gif\" alt=\"everying\" \/><\/p>\n<p>\u6e96\u5099\u5b89\u88dd\u4e86<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0036.gif\" alt=\"\u6e96\u5099\u5b89\u88dd\u4e86\" \/><\/p>\n<p>\u5b89\u88dd\u904e\u7a0b\u756b\u9762<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0037.gif\" alt=\"\u5b89\u88dd\u904e\u7a0b\u756b\u9762\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0038.gif\" alt=\"\u5b89\u88dd\u904e\u7a0b\u756b\u9762\" \/><\/p>\n<p>\u5b89\u88dd\u5b8c\u6210\u756b\u9762<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0039.gif\" alt=\"\u5b89\u88dd\u5b8c\u6210\u756b\u9762\" \/><\/p>\n<p>\u91cd\u65b0\u958b\u6a5f<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0040.gif\" alt=\"\u91cd\u65b0\u958b\u6a5f\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0041.gif\" alt=\"\u91cd\u65b0\u958b\u6a5f\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0042.gif\" alt=\"\u91cd\u65b0\u958b\u6a5f\" \/><\/p>\n<p>\u555f\u59cb\u7684\u958b\u6a5f\u756b\u9762<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0043.gif\" alt=\"\u555f\u59cb\u7684\u958b\u6a5f\u756b\u9762\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0044.gif\" alt=\"\u555f\u59cb\u7684\u958b\u6a5f\u756b\u9762\" \/><\/p>\n<p>\u7b2c\uff11\u6b21\u958b\u6a5f\uff0c\u5b89\u88dd\u756b\u9762<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0045.gif\" alt=\"\u7b2c\uff11\u6b21\u958b\" \/><\/p>\n<p>\u7248\u6b0a\u5ba3\u544a\u756b\u9762\uff0c\u53ef\u4ee5\u9078\u540c\u610f\u53ca\u4e0d\u540c\u610f\uff0e\uff0e\uff0e\u7576\u7136\u8981\u9078\u540c\u610f\uff0e\uff0e<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0046.gif\" alt=\"\u7248\u6b0a\u5ba3\u544a\u756b\u9762\" \/><\/p>\n<p>\u6642\u9593\u8a2d\u5b9a<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0047.gif\" alt=\"\u6642\u9593\u8a2d\u5b9a\" \/><\/p>\n<p>\u8a2d\u5b9aNTP \uff0c\u56e0\u70ba\u5c0f\u745e\u628a\u6240\u6709Server \u90fd\u6307\u5230\u4e00\u53f0NTP \u4f3a\u670d\u5668\u4e0a\uff0c\u4ee5\u4fbf\u8b93\u6240\u6709\u6a5f\u5668\u7684\u6642\u9593\u90fd\u4e00\u81f4<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0048.gif\" alt=\"NTP\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0049.gif\" alt=\"NTP\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0050.gif\" alt=\"NTP\" \/><\/p>\n<p>\u986f\u793a\u8a2d\u5b9a\uff0c\u4e0d\u9700\u8981\u7279\u5225\u53bb\u8a2d\u5b9a\uff0c\u53cd\u6b63\u662f\u4ee5\u865b\u6a5f\u7684\u578b\u5f0f\u5efa\u7acb<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0051.gif\" alt=\"\u986f\u793a\u8a2d\u5b9a\" \/><\/p>\n<p>\u5efa\u7acb\u7ba1\u7406\u8005<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0052.gif\" alt=\"\u5efa\u7acb\u7ba1\u7406\u8005\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0053.gif\" alt=\"\u5efa\u7acb\u7ba1\u7406\u8005\" \/><\/p>\n<p>\u6709\u6c92\u6709\u5176\u5b83\u8981\u88dd\u7684\u5440\uff0e\uff0e\u6211\u662f\u6c92\u6709\u5566<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0054.gif\" alt=\"\u6709\u6c92\u6709\u5176\u5b83\u8981\u88dd\u7684\u5440\" \/><\/p>\n<p>\u5b8c\u6210\u5b89\u88dd\u8a2d\u5b9a\u756b\u9762<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0055.gif\" alt=\"\u5b8c\u6210\u5b89\u88dd\u8a2d\u5b9a\" \/><\/p>\n<p>\u9032\u5165\u7cfb\u7d71\u756b\u9762<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0056.gif\" alt=\"\u9032\u5165\u7cfb\u7d71\u756b\u9762\" \/><\/p>\n<p>\u770b\u5230\u4e86Oracle Enterprise Linux \u7f8e\u7f8e\u7684\u767b\u5165\u756b\u9762\u4e86<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0057.gif\" alt=\"Oracle Enterprise Linux\" \/><\/p>\n<p>\u9032\u884c\u95dc\u6a5f\uff0c\u5c0f\u745e\u60f3\u8981\u628a\u7559\u5728\u865b\u64ec\u6a5f\u5668\u7ba1\u7406\u54e1\u4e0a\u7684\u9019\u53f0\u865b\u6a5f\uff0c\u522a\u9664\uff0c\u53e6\u5916\u5efa\u7acb\u4e00\u500b\u958b\u555f\u865b\u6a5f\u7684\u8a2d\u5b9a\u6a94<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0058.gif\" alt=\"\u9032\u884c\u95dc\u6a5f\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0059.gif\" alt=\"\u95dc\u6a5f\u7a0b\u5e8f\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0060.gif\" alt=\"\u95dc\u5b8c\u6a5f\u4e86\" \/><\/p>\n<p>\u56de\u5230\u865b\u64ec\u6a5f\u5668\u7ba1\u7406\u54e1\u4e0a<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0061.gif\" alt=\"\u865b\u64ec\u6a5f\u5668\u7ba1\u7406\u54e1\" \/><\/p>\n<p>\u522a\u9664TESTAP1 \u9019\u53f0\u865b\u64ec\u6a5f\u5668(\u4e26\u4e0d\u6703\u628a\u6211\u5011\u5b89\u88dd\u5f8c\u7684partition \u522a\u9664)<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0062.gif\" alt=\"\u522a\u9664TESTAP1\" \/><\/p>\n<p>\u5728\u865b\u6a5f\u7ba1\u7406\u54e1\u4e0a\uff0cTESTAP1 \u5df2\u7d93\u4e0d\u898b\u4e86<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0063.gif\" alt=\"TESTAP1 \u5df2\u7d93\u4e0d\u898b\u4e86\" \/><\/p>\n<p>\u63a5\u8457\u5efa\u7acbtestap1.hvm \u8a2d\u5b9a\u6a94\uff0c\u4ee5\u5f8c\u76f4\u63a5\u4f7f\u7528\u9019\u500b\u8a2d\u5b9a\u6a94\u4f86\u958b\u555f\u865b\u6a5f\u3002<\/p>\n<blockquote><p><code><br \/>\n[root@vm01 ~]# vi testap1.hvm<br \/>\nimport os, re<br \/>\narch = os.uname()[4]<br \/>\nif re.search('64', arch):<br \/>\n    arch_libdir = 'lib64'<br \/>\nelse:<br \/>\n    arch_libdir = 'lib'<br \/>\nkernel = \"\/usr\/lib\/xen\/boot\/hvmloader\"<br \/>\nbuilder='hvm'<br \/>\nmemory = 4096<br \/>\nname = \"testap1\"<br \/>\nvcpus=4<br \/>\npae=1<br \/>\nacpi=1<br \/>\nvif = [ 'type=ioemu, bridge=eth0']<br \/>\ndisk = [ 'phy:\/dev\/VolGroup00\/vps05LV00,hda,w' ]<br \/>\non_poweroff = 'destroy'<br \/>\non_reboot   = 'restart'<br \/>\non_crash    = 'restart'<br \/>\ndevice_model = '\/usr\/' + arch_libdir + '\/xen\/bin\/qemu-dm'<br \/>\nboot=\"dca\"<br \/>\nvnc=1<br \/>\nvncconsole=1<br \/>\n<\/code><\/p><\/blockquote>\n<p>\u4ee5\u5f8c\u53ef\u4ee5\u4f7f\u7528 xm create testap1.hvm \u6307\u4ee4\uff0c\u4f86\u958b\u555ftestap1 \u9019\u53f0\u865b\u6a5f\uff0c\u5982\u679c\u8981\u52a0\u786c\u789f\uff0c\u8a18\u61b6\u9ad4\u6216\u8457\uff0c\u7db2\u8def\u5361\uff0c\u4fee\u6539\u4e00\u4e0b testap1.hvm \u9019\u500b\u6a94\u5373\u53ef\uff0c\u4f8b\u5982\uff1a<\/p>\n<blockquote><p><code><br \/>\n[root@vm01 ~]# vi testap1.hvm<br \/>\nimport os, re<br \/>\narch = os.uname()[4]<br \/>\nif re.search('64', arch):<br \/>\n    arch_libdir = 'lib64'<br \/>\nelse:<br \/>\n    arch_libdir = 'lib'<br \/>\nkernel = \"\/usr\/lib\/xen\/boot\/hvmloader\"<br \/>\nbuilder='hvm'<br \/>\nmemory = 4096<br \/>\nname = \"testap1\"<br \/>\nvcpus=4<br \/>\npae=1<br \/>\nacpi=1<br \/>\nvif = [ 'type=ioemu, bridge=eth0','type=ioemu,bridge=virbr0' ]<br \/>\ndisk = [ 'phy:\/dev\/VolGroup00\/vps05LV00,hda,w' , 'phy:\/dev\/VolGroup00\/vps05LV01,hdb,w' ]<br \/>\non_poweroff = 'destroy'<br \/>\non_reboot   = 'restart'<br \/>\non_crash    = 'restart'<br \/>\ndevice_model = '\/usr\/' + arch_libdir + '\/xen\/bin\/qemu-dm'<br \/>\nboot=\"dca\"<br \/>\nvnc=1<br \/>\nvncconsole=1<br \/>\n<\/code><\/p><\/blockquote>\n<p>\u4e0a\u9762\u9019\u6a23\u8a2d\u5b9a\uff0c\u591a\u52a0\u4e86\u4e00\u5f35\u7db2\u5361\uff0c\u591a\u5206\u914d\u4e00\u500bpartition \u7d66testap1 \u7576\u4f5c\u786c\u789f\uff0c\u958b\u6a5f\u5f8c\u7531testap1 \u9019\u53f0\u865b\u6a5f\uff0c\u81ea\u5df1\u518d\u53bb\u8a2d\u5b9a\u65b0\u589e\u7684\u7db2\u5361IP \uff0c\u53ca\u81ea\u5df1\u53bbfdisk \/dev\/hdb \u518dmke2fs -j \/dev\/hdb1 \u4e4b\u985e\u7684\u4f5c\u696d\u5373\u53ef\u3002<\/p>\n<p>\u4f86\u958b\u500b\u6a5f\u5427<\/p>\n<blockquote><p><code><br \/>\n[root@vm01 ~]# xm create testap1.hvm<br \/>\n<\/code><\/p><\/blockquote>\n<p>\u6b64\u6642\uff0c\u5728\u865b\u64ec\u6a5f\u5668\u7ba1\u7406\u54e1\u4e0a\uff0c\u5c31\u6703\u51fa\u73fe\u90a3\u53f0testap1 \u7684\u6a5f\u5668\u56c9\u3002<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/04\/1049_0064.gif\" alt=\"\" \/><\/p>\n<p>\u4ee5\u4e0a\u662f\u7528Xen \u4f86\u5efa\u7acb\u5b8c\u6574\u865b\u64ec\u5316\u7684\u4f5c\u696d\u7cfb\u7d71\uff0c\u57fa\u672c\u4e0a\u7528\u4f86\u5efa\u7acb &#8220;\u6688\u5012&#8221; \u7cfb\u5217\u7684\u4f5c\u696d\u7cfb\u7d71\uff0c\u4e5f\u53ef\u4ee5\u7684\uff0c\u5404\u4f4d\u81ea\u5df1\u8a66\u8a66\u770b\u56c9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e4b\u524d\u8b1b\u4e86\u865b\u64ec\u5316\u6280\u8853\u7684\u6574\u7406\uff0c\u9019\u4e00\u7bc7\u4f86\u7528Xen \u7684Full Virtualization\uff0c\u5efa\u7acb\u4e00\u500b\u5168\u865b\u64ec\u5316\u7684\u4f5c\u696d\u7cfb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,80],"tags":[138,79,87,119,137,136,135,54,134],"class_list":["post-1049","post","type-post","status-publish","format-standard","hentry","category-mistech","category-mistech-virt","tag-fedora-8","tag-full-virtualization","tag-linux","tag-lvm","tag-ntp","tag-oel4","tag-oracle-enterprise-r4","tag-xen","tag-134"],"_links":{"self":[{"href":"https:\/\/blog.nuface.tw\/index.php?rest_route=\/wp\/v2\/posts\/1049","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nuface.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nuface.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nuface.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nuface.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1049"}],"version-history":[{"count":22,"href":"https:\/\/blog.nuface.tw\/index.php?rest_route=\/wp\/v2\/posts\/1049\/revisions"}],"predecessor-version":[{"id":1264,"href":"https:\/\/blog.nuface.tw\/index.php?rest_route=\/wp\/v2\/posts\/1049\/revisions\/1264"}],"wp:attachment":[{"href":"https:\/\/blog.nuface.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1049"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nuface.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1049"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nuface.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}