{"id":50,"date":"2011-03-25T07:26:13","date_gmt":"2011-03-24T23:26:13","guid":{"rendered":"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/?p=50"},"modified":"2014-10-13T09:37:33","modified_gmt":"2014-10-13T01:37:33","slug":"%e8%99%9b%e6%93%ac%e5%8c%96%e7%ad%86%e8%a8%98-ups%e7%ae%a1%e7%90%86vmware-esxi-server4-1%e4%bb%a5%e9%a3%9b%e7%91%9ewinpower%e7%82%ba%e4%be%8b","status":"publish","type":"post","link":"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/?p=50","title":{"rendered":"\u3010\u865b\u64ec\u5316\u7b46\u8a18\u3011UPS\u7ba1\u7406VMware esxi Server4.1(\u4ee5\u98db\u745eWinpower\u70ba\u4f8b)"},"content":{"rendered":"<p><strong><span style=\"background-color: #ffffff;\">\u524d\u8a00\uff1a<br \/>\n<\/span><\/strong><strong><span style=\"background-color: #ffffff;\">\u865b\u64ec\u5316\u662f\u73fe\u968e\u6bb5\u5de5\u4f5c\u7684\u76ee\u6a19\uff0c\u865b\u64ec\u5316\u7684\u512a\u52e2\u70ba\uff1a<br \/>\n<\/span><\/strong><strong><span style=\"background-color: #ffffff;\">1.\u591a\u53f0\u4f3a\u670d\u566824\u5c0f\u6642\u904b\u8f49\u76f8\u7576\u8017\u96fb\uff0c\u4f3a\u670d\u5668\u5408\u4f75\u57281\u53f0\uff0c\u53ef\u4ee5\u70ba\u5b78\u6821\u7bc0\u7701\u96fb\u8cbb\u3002\u96fb\u529b\u548c\u51b7\u537b\u9700\u6c42\u90fd\u6703\u964d\u4f4e\u3002<br \/>\n<\/span><\/strong><strong><span style=\"background-color: #ffffff;\">2.\u5efa\u7f6e\u865b\u64ec\u4f3a\u670d\u5668\uff0c\u53ea\u8981\u5728ESXi Server\u80fd\u8ca0\u8377\u7684\u7bc4\u570d\uff0c\u589e\u52a0\u865b\u64ec\u4f3a\u670d\u5668\uff0c\u5982\u6b64\u53ef\u4ee5\u4e0d\u7528\u8cfc\u8cb7\u5be6\u9ad4\u4f3a\u670d\u5668\uff0c\u6a3d\u7bc0\u7d93\u8cbb\u3002<br \/>\n<\/span><\/strong>\u76ee\u524d\u4ecd\u5c6clab\u968e\u6bb5\uff0c\u7562\u7adf\u8a18\u61b6\u9ad4\u548c\u7db2\u8def\u983b\u5bec\u8a2d\u5099\u7686\u672a\u5230\u4f4d\uff0c\u5df2\u65bc\u8cc7\u8a0a\u5c0f\u7d44\u6703\u8b70\u63d0\u51fa\u9700\u6c42\uff0c\u8a08\u756b\u4eca\u5e745\u6708\u63a1\u8cfc\u8a18\u61b6\u9ad4\uff0c\u81f3\u65bc<span lang=\"EN-US\">Gigabit \u9aa8\u5e79Switch\u56e0\u7d93\u8cbb\u4e0d\u8db3\u88ab\u5217\u70ba<strong>\u975e\u512a\u5148\u9078\u9805<\/strong>\u3002<\/span><\/p>\n<p><strong>\u8aaa\u660e\uff1a<br \/>\n<\/strong>\u56e0esxi\u514d\u8cbb\u7248\u62ff\u6389\u4e86\u5927\u90e8\u5206linux\u6307\u4ee4\uff0c\u6240\u4ee5VMware\u63d0\u4f9b<span style=\"color: #0000ff;\"><strong>vSphere Management Assistant<\/strong>(\u7c21\u7a31vMA)<\/span>\uff0c\u8b93\u7ba1\u7406\u54e1\u80fd\u5728esxi\/esx\u4e0a\u57f7\u884cscripts\u6216agents\uff0c\u7279\u5225\u7684\u662f\uff0c\u5b83\u662f\u500b\u6253\u5305\u597d\u7684VM\u6a94\u6848\uff0c\u53ef\u4ee5\u76f4\u63a5\u90e8\u7f72\u5728esxi Server\u4e0a\uff0c\u4e0d\u9700\u8981\u53e6\u5916\u4e00\u53f0\u5be6\u9ad4\u6a5f\u5668\u3002<\/p>\n<p>\u8a2d\u5b9aUPS\u7ba1\u7406\u74b0\u5883\uff0c\u5982\u4e0b\u5716\uff1a<\/p>\n<p><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/wp-content\/uploads\/2011\/03\/5ec32d0b14fc03e722c220720b24546f.jpg\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-191\" title=\"UPS\u7ba1\u7406\u74b0\u5883\u5716\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/wp-content\/uploads\/2011\/03\/5ec32d0b14fc03e722c220720b24546f.jpg\" alt=\"UPS\u7ba1\u7406\u74b0\u5883\u5716\" width=\"548\" height=\"433\" srcset=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/wp-content\/uploads\/2011\/03\/5ec32d0b14fc03e722c220720b24546f.jpg 548w, http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/wp-content\/uploads\/2011\/03\/5ec32d0b14fc03e722c220720b24546f-300x237.jpg 300w\" sizes=\"(max-width: 548px) 100vw, 548px\" \/><\/a><\/p>\n<p><!--more--><\/p>\n<p><strong>\u904b\u4f5c\u539f\u7406\uff1a<\/strong><\/p>\n<p>\u65b7\u96fb\u6642\uff0cUPS\u900f\u904eRS-232\u901a\u77e5\u5b89\u88dd\u5728Windows2003\u4e2d\u7684UPS\u4e3b\u63a7\u7a0b\u5f0f\uff0c\u4e3b\u63a7\u7a0b\u5f0f\u900f\u904e\u5340\u57df\u7db2\u8def\u901a\u77e5vMA4.0\uff0cvMA4.0\u5c0dEsxi Server\u57f7\u884c\u95dc\u6a5f\u8173\u672c\uff0cEsxi Server\u4f7f\u7528shutdown guest\u529f\u80fd\u95dc\u9589\u6240\u6709VM\u5f8c\uff0c\u518d\u95dc\u9589\u5be6\u9ad4\u6a5f\uff0c\u9054\u5230\u5168\u90e8Server\u95dc\u6a5f\u76ee\u7684\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u5b89\u88dd\u8a2d\u5b9a\uff1a<\/strong><\/p>\n<p>1.\u4e0b\u8f09<strong>vMA<\/strong> \uff1a<a title=\"vma\" href=\"http:\/\/www.vmware.com\/support\/developer\/vima\/\" target=\"_blank\">\u5b98\u65b9\u4e0b\u8f09\u9801\u9762<\/a>\u00a0(PS:\u98db\u745eUPS Agent\u76ee\u524d\u5df2\u652f\u63f44.0\u7248\u4ee5\u4e0a\uff0c\u5305\u62ec5.0)<\/p>\n<p>2.\u4e0b\u8f09\u98db\u745eUPS\u7ba1\u7406\u8edf\u9ad4<strong>Winpower_setup_LinuxAMD64<\/strong>\uff1a<a title=\"winpower\" href=\"http:\/\/powerquality.eaton.tw\/Support\/software-Drivers\/Downloads\/Winpower.asp\" target=\"_blank\">\u5b98\u65b9\u4e0b\u8f09\u9801\u9762<\/a>\u3002<\/p>\n<p>3.\u4f7f\u7528VMware vSphere Client \u90e8\u7f72<strong>OVF Template<\/strong>\uff0c\u5982\u4e0b\u5716\uff1a<\/p>\n<p><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/6fdb3195a1d312f29330213c62960f01_n.png\"><img loading=\"lazy\" style=\"border: 0px;\" title=\"\u90e8\u7f72OVF Template\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/6fdb3195a1d312f29330213c62960f01_n.png\" alt=\"\u90e8\u7f72OVF Template\" width=\"600\" height=\"455\" border=\"0\" \/><\/a><\/p>\n<p>4.\u90e8\u7f72\u597d\u76f8\u95dc\u8a2d\u5b9a\u5f8c\uff0c\u5c07vMA\u958b\u6a5f\uff0c\u53ef\u4ee5\u4f7f\u7528vSphere Client\u6216Putty\u7b49ssh\u8edf\u9ad4\u9023\u5165vMA\uff0c<span style=\"color: #0000ff;\">\u9810\u8a2d\u5e33\u865f\u70bavi-admin<\/span>\uff0c\u5982\u4e0b\u5716\uff1a<\/p>\n<p><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/06996744aa59f5ba927cc7ff6a882d55_m.png\"><img loading=\"lazy\" style=\"border: 0px;\" title=\"\u4f7f\u7528vSphere Client\u6216Putty\u7b49ssh\u8edf\u9ad4\u9023\u5165vMA\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/06996744aa59f5ba927cc7ff6a882d55_m.png\" alt=\"\u4f7f\u7528vSphere Client\u6216Putty\u7b49ssh\u8edf\u9ad4\u9023\u5165vMA\" width=\"450\" height=\"334\" border=\"0\" \/><\/a><\/p>\n<p>5.\u8f38\u5165: <span style=\"color: #0000ff;\">sudo vifp addserver [esxi\u4f3a\u670d\u5668\u7684ip]<\/span>\uff0c\u5c07\u8981\u88abvMA\u7ba1\u7406\u7684esxi\u4f3a\u670d\u5668\u52a0\u5165vMA\u4e2d\uff0c\u4e26\u8f38\u5165esxi server root \u5bc6\u78bc\uff0c\u5982\u4e0b\u5716\uff1a<\/p>\n<p><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/58c312b620dce5b465295e59b434d2c9.gif\"><img loading=\"lazy\" style=\"border: 0px;\" title=\"\u5c07\u8981\u88abvMA\u7ba1\u7406\u7684esxi\u4f3a\u670d\u5668\u52a0\u5165vMA\u4e2d\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/58c312b620dce5b465295e59b434d2c9.gif\" alt=\"\u5c07\u8981\u88abvMA\u7ba1\u7406\u7684esxi\u4f3a\u670d\u5668\u52a0\u5165vMA\u4e2d\" width=\"471\" height=\"122\" border=\"0\" \/><\/a><\/p>\n<p><strong><span style=\"color: #ff0000;\">[\u6ce8\u610f]\uff1a<\/span><\/strong>\u5982\u679c\u51fa\u73fe<span style=\"color: #0000ff;\">&#8220;Error: Failed to connect. Please make sure the server is up and is of supported version&#8221;<\/span>\u932f\u8aa4\u8a0a\u606f\uff0c\u8acb\u4f7f\u7528\uff1a<span style=\"color: #0000ff;\">sudo nano \/etc\/hosts<\/span> \u6307\u4ee4\uff0c\u624b\u52d5\u5c07esxi Server\u7684ip\u52a0\u5165hosts\u6e05\u55ae\u5f8c\uff0c<span style=\"color: #0000ff;\">\u518d\u57f7\u884c\u4e0a\u9762\u7684\u6307\u4ee4<\/span>\uff0c\u5982\u4e0b\u5716(<a title=\"vmware\" href=\"http:\/\/communities.vmware.com\/message\/1487736\" target=\"_blank\">\u53c3\u8003\u7db2\u5740<\/a>)\uff1a<\/p>\n<p><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/5732d4b7950ca52acee8da7898ebe09b_n.gif\"><img loading=\"lazy\" style=\"border: 0px;\" title=\"\u624b\u52d5\u5c07esxi Server\u7684ip\u52a0\u5165hosts\u6e05\u55ae\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/5732d4b7950ca52acee8da7898ebe09b_n.gif\" alt=\"\u624b\u52d5\u5c07esxi Server\u7684ip\u52a0\u5165hosts\u6e05\u55ae\" width=\"600\" height=\"390\" border=\"0\" \/><\/a><\/p>\n<p>\u6309\u4e0b&#8221;F3&#8243;\u5beb\u5165\uff0c&#8221;Ctrl+X&#8221;\u96e2\u958b\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>6.\u70ba\u4e86\u78ba\u4fddesxi\u7684CLI\u548cVI Perl\u5b8c\u7f8e\u7d50\u5408\uff0c\u9700\u8981\u521d\u59cb\u5316esxi\u4e3b\u6a5f\uff0c\u8acb\u8f38\u5165\uff1a<span style=\"color: #0000ff;\">vifpinit \u00a0[esxi\u4f3a\u670d\u5668\u7684ip]<br \/>\n<\/span><span style=\"color: #ff0000;\">\u8acb\u6ce8\u610f\uff0cvMA4.1\u4ee5\u5f8c\u8acb\u8f38\u5165\uff1avifptarget &#8211;set [esxi\u4f3a\u670d\u5668\u7684ip]<\/span><\/p>\n<p><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/4bdf1e52b000ee4bbcb5d62d8fad01b8.gif\"><img loading=\"lazy\" style=\"border: 0px;\" title=\"\u521d\u59cb\u5316esxi\u4e3b\u6a5f\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/4bdf1e52b000ee4bbcb5d62d8fad01b8.gif\" alt=\"\u521d\u59cb\u5316esxi\u4e3b\u6a5f\" width=\"420\" height=\"75\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>7.\u78ba\u8a8desxi\u4f3a\u670d\u5668\u662f\u5426\u6b63\u78ba\u52a0\u5165\uff0c\u8acb\u8f38\u5165\uff1a<span style=\"color: #0000ff;\">sudo vifp listservers<\/span>\uff0cvMA\u5217\u51fa\u4e0b\u5217\u7d50\u679c\u4ee3\u8868\u6210\u529f\u52a0\u5165\u3002<\/p>\n<p><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/a07e0aa162333f823a1ff2aa72037c12.gif\"><img loading=\"lazy\" style=\"border: 0px;\" title=\"\u78ba\u8a8desxi\u4f3a\u670d\u5668\u662f\u5426\u6b63\u78ba\u52a0\u5165\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/a07e0aa162333f823a1ff2aa72037c12.gif\" alt=\"\u78ba\u8a8desxi\u4f3a\u670d\u5668\u662f\u5426\u6b63\u78ba\u52a0\u5165\" width=\"497\" height=\"102\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>8.\u63a5\u4e0b\u4f86\u8981\u5728vMA\u4e2d\u5b89\u88ddUPS Agent(\u9019\u88e1\u4ee5\u98db\u745eWinpower\u70ba\u4f8b)\uff0c\u53ef\u4ee5\u71d2\u6210\u7a0b\u5f0f\u5149\u789f\u639b\u8f09\u81f3vMA\u6216\u7528WinSCP\u4e0a\u50b3\u81f3vMA\u3002\u9019\u88e1\u4f7f\u7528\u524d\u8005\u7684\u65b9\u5f0f\u3002<\/p>\n<p>\u8acb\u6ce8\u610f\uff0c\u5982\u679c\u662f\u8ddf\u672c\u4f8b\u4e00\u6a23\uff0c\u5c07vMA\u5b89\u88dd\u7f6eesxi\u7576\u4f5cguest OS\uff0c\u8acb\u8a18\u5f97\u8981\u5148\u5728vSphere Client\u4e2d\u639b\u8f09\u5916\u90e8CD\/DVD Drive\uff0c\u5982\u4e0b\u5716\uff1a<\/p>\n<p><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/bdbf86b5591cd718b8710a1c658e6d2a_n.png\"><img loading=\"lazy\" style=\"border: 0px;\" title=\"\u639b\u8f09\u5916\u90e8CD\/DVD Drive\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/bdbf86b5591cd718b8710a1c658e6d2a_n.png\" alt=\"\u639b\u8f09\u5916\u90e8CD\/DVD Drive\" width=\"600\" height=\"531\" border=\"0\" \/><\/a><\/p>\n<p>9.\u5c07UPS\u7a0b\u5f0f\u5149\u789f\u653e\u5165esxi\u5916\u90e8\u5149\u789f\u6a5f\uff0c\u639b\u8f09\u5149\u789f\uff0c\u8acb\u8f38\u5165\uff1a\u00a0<span style=\"color: #0000ff;\">sudo mount \/dev\/cdrom \/mnt<\/span><\/p>\n<p><span style=\"color: #0000ff;\">\u00a0<a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/28997a43526f93639f29d267b276025f_n.gif\"><img loading=\"lazy\" style=\"border: 0px;\" title=\"\u639b\u8f09\u5149\u789f\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/28997a43526f93639f29d267b276025f_n.gif\" alt=\"\u639b\u8f09\u5149\u789f\" width=\"600\" height=\"385\" border=\"0\" \/><\/a>\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">10. \u5c07UPS\u7a0b\u5f0fcopy\u5230\u5bb6\u76ee\u9304\uff1a<span style=\"color: #0000ff;\">sudo cp \/mnt\/Winpower_setup_linuxamd64.tar.gz ~vi-admin<\/span><br \/>\n<a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/a8cc8f844610ecbe2b3ee896264e4104_n.png\"><img loading=\"lazy\" style=\"border: 0px;\" title=\"\u5c07UPS\u7a0b\u5f0fcopy\u5230\u5bb6\u76ee\u9304\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/a8cc8f844610ecbe2b3ee896264e4104_n.png\" alt=\"\u5c07UPS\u7a0b\u5f0fcopy\u5230\u5bb6\u76ee\u9304\" width=\"600\" height=\"446\" border=\"0\" \/><\/a> \u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">11.\u89e3\u58d3\u7e2e\uff1a<span style=\"color: #0000ff;\">\u00a0tar zxvf Winpower_setup_linuxamd64.tar.gz<\/span><\/span><\/p>\n<p><span style=\"color: #000000;\"><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/wp-content\/uploads\/2011\/03\/e18731d5fabb65588ddbaa78604a692c.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-192\" title=\"\u89e3\u58d3\u7e2e\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/wp-content\/uploads\/2011\/03\/e18731d5fabb65588ddbaa78604a692c.png\" alt=\"\u89e3\u58d3\u7e2e\" width=\"509\" height=\"89\" srcset=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/wp-content\/uploads\/2011\/03\/e18731d5fabb65588ddbaa78604a692c.png 509w, http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/wp-content\/uploads\/2011\/03\/e18731d5fabb65588ddbaa78604a692c-300x52.png 300w\" sizes=\"(max-width: 509px) 100vw, 509px\" \/><\/a><\/span><\/p>\n<p><span style=\"color: #000000;\">12.\u4f9d\u5e8f\u9032\u5165\u4e0b\u5217\u76ee\u9304\uff1aWinpower_setup_LinuxAMD64 \u3001LinuxAMD64\u5f8c\uff0c\u57f7\u884c\u5b89\u88dd\u7a0b\u5f0f\uff1a<span style=\"color: #0000ff;\">.\/setup_console.bin<\/span><\/span><\/p>\n<p><span style=\"color: #000000;\"><span style=\"color: #0000ff;\"><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/8701341510aa96b482fcc7d0442d7886.png\"><img loading=\"lazy\" style=\"border: 0px;\" title=\"\u57f7\u884c\u5b89\u88dd\u7a0b\u5f0f\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/8701341510aa96b482fcc7d0442d7886.png\" alt=\"\u57f7\u884c\u5b89\u88dd\u7a0b\u5f0f\" width=\"499\" height=\"125\" border=\"0\" \/><\/a> \u00a0<\/span><\/span><\/p>\n<p><span style=\"color: #000000;\"><span style=\"color: #000000;\">13.\u5b89\u88dd\u904e\u7a0b\u9700\u6307\u5b9a\u5b89\u88dd\u76ee\u9304\uff0c\u9810\u8a2d\u503c\u662f\/opt\/winpower\uff0c\u9019\u88e1\u4ee5 \/home\/vi-admin\/winpower\u70ba\u4f8b\uff1a<\/span><\/span><\/p>\n<p><span style=\"color: #000000;\"><span style=\"color: #000000;\"><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/2f6cbd043dd6ad3de46e7fd11a8610c8.png\"><img loading=\"lazy\" style=\"border: 0px;\" title=\"\u6307\u5b9a\u5b89\u88dd\u76ee\u9304\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/2f6cbd043dd6ad3de46e7fd11a8610c8.png\" alt=\"\u6307\u5b9a\u5b89\u88dd\u76ee\u9304\" width=\"503\" height=\"37\" border=\"0\" \/><\/a> \u00a0<\/span><\/span><\/p>\n<p>14.\u78ba\u8a8d\u7121\u8aa4\u5f8c\uff0c\u6309\u4e0bEnter\u5b89\u88dd\u3002<\/p>\n<p><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/wp-content\/uploads\/2011\/03\/000.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-193\" title=\"\u78ba\u8a8d\u7121\u8aa4\u5f8c\uff0c\u6309\u4e0bEnter\u5b89\u88dd\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/wp-content\/uploads\/2011\/03\/000.png\" alt=\"\u78ba\u8a8d\u7121\u8aa4\u5f8c\uff0c\u6309\u4e0bEnter\u5b89\u88dd\" width=\"441\" height=\"272\" srcset=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/wp-content\/uploads\/2011\/03\/000.png 441w, http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/wp-content\/uploads\/2011\/03\/000-300x185.png 300w\" sizes=\"(max-width: 441px) 100vw, 441px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>15.\u5b89\u88dd\u6210\u529f\uff0c\u4e26\u986f\u793a\u5b89\u88dd\u54ea\u500b\u76ee\u9304\u4e0b\u3002<\/p>\n<p><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/71b1bad8d0a42c058f8c67038f6ee0e1_n.png\"><img loading=\"lazy\" style=\"border: 0px;\" title=\"\u5b89\u88dd\u6210\u529f\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/71b1bad8d0a42c058f8c67038f6ee0e1_n.png\" alt=\"\u5b89\u88dd\u6210\u529f\" width=\"600\" height=\"268\" border=\"0\" \/><\/a><\/p>\n<p>16.\u7de8\u8f2f\u5b89\u88dd\u76ee\u9304\u4e0b\u7684<span style=\"color: #0000ff;\">VMwareESXHosts<\/span>\uff0c\u5c07esxi\u4e3b\u6a5f\u7684ip\u52a0\u5165\u6e05\u55ae\u4e2d\uff0c\u4e0d\u540c\u7684ip\u4ee5\u7a7a\u683c\u5206\u958b\uff0c<span style=\"color: #ff0000;\">\u57f7\u884cvMA\u7684esxi ip\u8981\u52a0\u5728\u6700\u5f8c\u9762<\/span>\uff0c\u5982\u4e0b\u5716\uff1a<\/p>\n<p><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/9adc074a8c5e594ce5497df8a0ef1d83_n.gif\"><img loading=\"lazy\" style=\"border: 0px;\" title=\"\u5c07esxi\u4e3b\u6a5f\u7684ip\u52a0\u5165\u6e05\u55ae\u4e2d\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/9adc074a8c5e594ce5497df8a0ef1d83_n.gif\" alt=\"\u5c07esxi\u4e3b\u6a5f\u7684ip\u52a0\u5165\u6e05\u55ae\u4e2d\" width=\"600\" height=\"374\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/wp-content\/uploads\/2011\/03\/123.gif\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-194\" title=\"\u5c07esxi\u4e3b\u6a5f\u7684ip\u52a0\u5165\u6e05\u55ae\u4e2d\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/wp-content\/uploads\/2011\/03\/123.gif\" alt=\"\u5c07esxi\u4e3b\u6a5f\u7684ip\u52a0\u5165\u6e05\u55ae\u4e2d\" width=\"600\" height=\"105\" srcset=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/wp-content\/uploads\/2011\/03\/123.gif 600w, http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/wp-content\/uploads\/2011\/03\/123-300x52.gif 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>17.\u5207\u63db\u5230\u5b89\u88dd\u76ee\u9304\uff0c\u555f\u52d5UPS Agent\uff0c\u8acb\u8f38\u5165\uff1a<span style=\"color: #0000ff;\">.\/agent start<\/span><\/p>\n<p><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/e7403fe2840d55b0401d61b7c1630473.png\"><img loading=\"lazy\" style=\"border: 0px;\" title=\"\u555f\u52d5UPS Agent\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/e7403fe2840d55b0401d61b7c1630473.png\" alt=\"\u555f\u52d5UPS Agent\" width=\"560\" height=\"114\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>18.\u5982\u679c\u8981\u6bcf\u6b21vMA\u958b\u6a5f\u6642\u81ea\u52d5\u555f\u52d5UPS agent\uff0c\u5247\u8981\u5c07\u5b89\u88dd\u76ee\u9304\u4e2d\u7684<span style=\"color: #0000ff;\">S99winpower<\/span>\u9019\u500b\u6a94\u6848<br \/>\ncopy\u5230 <span style=\"color: #0000ff;\">\/etc\/rc.d\/rc3.d<\/span> \u548c <span style=\"color: #0000ff;\">\/etc\/rc.d\/rc5.d<\/span> \u9019\u5169\u500b\u76ee\u9304\u5e95\u4e0b\uff0c\u5982\u4e0b\u5716\uff1a<br \/>\n<span style=\"color: #0000ff;\">sudo cp \/home\/vi-admin\/winpower\/S99Winpower \/etc\/rc.d\/rc3.d<\/span><br \/>\n<span style=\"color: #0000ff;\">sudo cp \/home\/vi-admin\/winpower\/S99Winpower \/etc\/rc.d\/rc5.d<\/span><\/p>\n<p><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/wp-content\/uploads\/2011\/03\/f.jpg\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-195\" title=\"\u81ea\u52d5\u555f\u52d5UPS agent\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/wp-content\/uploads\/2011\/03\/f.jpg\" alt=\"\u81ea\u52d5\u555f\u52d5UPS agent\" width=\"600\" height=\"267\" srcset=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/wp-content\/uploads\/2011\/03\/f.jpg 600w, http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/wp-content\/uploads\/2011\/03\/f-300x133.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><span style=\"color: #000000;\">\u81f3\u6b64\u5df2\u5b8c\u6210\u5728vMA4.0\u5b89\u88ddUPS Agent\uff0c\u81f3\u65bcUPS\u96fb\u6e90\u7ba1\u7406\u53c3\u6578\u5247\u8981\u900f\u904e\u5728\u53e6\u5916\u4e00\u53f0Windows\u4e0a\u5b89\u88dd\u98db\u745eWinpower\u7ba1\u7406\u4e3b\u63a7\u53f0\u8edf\u9ad4\u4f86\u7ba1\u7406\u3002<br \/>\nPS:\u5982\u679c\u518d\u4e0b\u5716\u756b\u9762\u6c92\u6709\u770b\u5230vMA\uff0c\u61c9\u8a72\u662fvMA\u9632\u706b\u7246\u8a2d\u5b9a\u7684\u95dc\u4fc2\uff0c\u8acb\u81ea\u884c\u8a2d\u5b9a\u9632\u706b\u7246\u6216\u4e7e\u8106\u95dc\u6389\u3002<br \/>\n<\/span><strong><span style=\"color: #0000ff;\">sudo service iptables save<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">sudo service iptables stop<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">sudo chkconfig iptables off<\/span><\/strong><\/p>\n<p>19.\u5728Windows\u7ba1\u7406\u4e3b\u63a7\u53f0\u8a2d\u5b9a<strong>\u9023\u63a5COM1\u7684\u95dc\u6a5f\u53c3\u6578<\/strong>\uff0c\u5982\u4e0b\u5716\uff1a<\/p>\n<p><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/94d6a26595033f8a67db449283706c1d_n.gif\"><img loading=\"lazy\" style=\"border: 0px;\" title=\"\u8a2d\u5b9a\u9023\u63a5COM1\u7684\u95dc\u6a5f\u53c3\u6578\u8a2d\u5b9a\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/94d6a26595033f8a67db449283706c1d_n.gif\" alt=\"\u8a2d\u5b9a\u9023\u63a5COM1\u7684\u95dc\u6a5f\u53c3\u6578\u8a2d\u5b9a\" width=\"600\" height=\"422\" border=\"0\" \/><\/a><\/p>\n<p>\u8aaa\u660e\u4e00\u4e0b\uff0c<strong>fhps1-old<\/strong>\u662f\u5b89\u88dd\u4e86UPS\u4e3b\u63a7\u53f0\u8edf\u9ad4\u4e26\u4ee5RS-232\u9023\u63a5UPS\u7684windows2003\uff0c\u4e5f\u5c31\u662f\u756b\u9762\u4e0a\u7684\u9019\u53f0\u96fb\u8166\u3002<strong>vMA<\/strong>\u662f\u4e0a\u9762\u525b\u8a2d\u5b9a\u597d\u7684vMA\uff0cip\u70ba192.168.1.2\uff0c\u4e0a\u5716\u7684\u610f\u601d\u662f\uff1a<strong>\u5229\u7528\u300e\u95dc\u6a5f\u689d\u4ef6\u300f\u4f86\u8a2d\u5b9aUPS\u96fb\u6c60\u653e\u96fb5\u5206\u9418\u5f8c\uff0c\u901a\u77e5vMA(192.168.1.2)\u95dc\u6a5f<\/strong>\u3002<\/p>\n<p>20.\u4e0b\u5716\u662fvMA\u7684\u95dc\u6a5f\u53c3\u6578\u8a2d\u5b9a\uff1a<\/p>\n<p><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/0fc671b80fb7cec83ef894a8ad02ff5c_n.gif\"><img loading=\"lazy\" style=\"border: 0px;\" title=\"vMA\u7684\u95dc\u6a5f\u53c3\u6578\u8a2d\u5b9a\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/0fc671b80fb7cec83ef894a8ad02ff5c_n.gif\" alt=\"vMA\u7684\u95dc\u6a5f\u53c3\u6578\u8a2d\u5b9a\" width=\"600\" height=\"429\" border=\"0\" \/><\/a><\/p>\n<p>\u7576vMA\u63a5\u6536\u5230\u4f86\u81eafhps1-old (ip\u70ba192.168.1.3)\u7684\u95dc\u6a5f\u901a\u77e5\u5f8c\uff0c\u95dc\u6a5f\u524d\u57f7\u884c\u6a94\u6848<strong>(\u5be6\u6e2c\u904e\uff0c\u9019\u88e1\u4e0d\u7528\u6307\u5b9a\uff0c\u4e00\u6a23\u6703\u57f7\u884cvMA\u4e2dUPS\u7a0b\u5f0f\u6240\u9644\u7684\u95dc\u6a5f\u8173\u672c)<\/strong>\uff0c\u7136\u5f8c\u901a\u77e5esxi\u8981\u95dc\u6a5f\u4e86\u3002<\/p>\n<p>21.esxi\u4e0a\u7684\u96fb\u6e90\u8a2d\u5b9a\uff0c\u8acb\u9078\u64c7<span style=\"color: #0000ff;\">\u300eConfiguration\u300f<\/span>\u2192<span style=\"color: #0000ff;\">\u300eVirtual Machine Startup\/Shutdown\u300f<\/span>\u2192<span style=\"color: #0000ff;\">\u300eProperties\u300f<\/span>\uff0c\u5982\u4e0b\u5716\uff1a<\/p>\n<p><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/2cb7dec9d25225fb71d876d755bbac7e_n.gif\"><img loading=\"lazy\" style=\"border: 0px;\" title=\"esxi\u4e0a\u7684\u96fb\u6e90\u8a2d\u5b9a\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/2cb7dec9d25225fb71d876d755bbac7e_n.gif\" alt=\"esxi\u4e0a\u7684\u96fb\u6e90\u8a2d\u5b9a\" width=\"600\" height=\"329\" border=\"0\" \/><\/a><\/p>\n<p>22.\u5728<span style=\"color: #0000ff;\">\u300eShutdown Action\u300f<\/span>\u7684\u8a2d\u5b9a\u8acb\u9078\u64c7\uff1a<span style=\"color: #0000ff;\">\u300eGuest Shutdown\u300f<\/span>\uff0c\u5982\u6b64\u4e00\u4f86\uff0c\u7576esxi\u63a5\u6536\u5230vMA\u95dc\u6a5f\u901a\u77e5\u5f8c\uff0c\u6703\u5148\u95dc\u9589\u6240\u6709\u6b63\u5728\u904b\u4f5c\u7684Guest OS\uff0c\u7136\u5f8c\u518d\u95dc\u9589esxi\u5be6\u9ad4\u4f3a\u670d\u5668\uff0c\u9019\u6a23\u5c31\u9054\u5230<span style=\"color: #0000ff;\">\u300c\u96fb\u6c60\u653e\u96fb5\u5206\u9418\u5f8c\uff0c\u95dc\u9589\u6240\u6709VM\uff0c\u7136\u5f8c\u95dc\u9589esxi\u5be6\u9ad4\u4f3a\u670d\u5668\u300d<\/span>\u7684\u76ee\u7684\u4e86\u3002<\/p>\n<p><a href=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/1de2c471af0a6793ef7b3211f894c541_n.gif\"><img loading=\"lazy\" style=\"border: 0px;\" title=\"esxi\u4e0a\u7684\u96fb\u6e90\u8a2d\u5b9a\" src=\"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/\/HLIC\/1de2c471af0a6793ef7b3211f894c541_n.gif\" alt=\"esxi\u4e0a\u7684\u96fb\u6e90\u8a2d\u5b9a\" width=\"600\" height=\"388\" border=\"0\" \/><\/a><\/p>\n<p>\u7d93\u904e\u4e0a\u9762\u7684\u8a2d\u5b9a\u5f8c\uff0c\u5be6\u6e2c\u904e\uff0c\u62d4\u6389UPS\u7684\u5e02\u96fb\uff0c\u5927\u7d045\u5206\u9418\u5f8c\uff0cesxi\u9678\u7e8c\u6703\u95dc\u9589Guest VM\uff0c\u7136\u5f8c\u95dc\u9589\u5be6\u9ad4\u6a5f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00\uff1a \u865b\u64ec\u5316\u662f\u73fe\u968e\u6bb5\u5de5\u4f5c\u7684\u76ee\u6a19\uff0c\u865b\u64ec\u5316\u7684\u512a\u52e2\u70ba\uff1a 1.\u591a\u53f0\u4f3a\u670d\u566824\u5c0f\u6642\u904b\u8f49\u76f8\u7576\u8017\u96fb\uff0c\u4f3a\u670d\u5668\u5408\u4f75\u57281\u53f0\uff0c\u53ef\u4ee5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_links_to":"","_links_to_target":""},"categories":[11,8],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/index.php?rest_route=\/wp\/v2\/posts\/50"}],"collection":[{"href":"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=50"}],"version-history":[{"count":25,"href":"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/index.php?rest_route=\/wp\/v2\/posts\/50\/revisions"}],"predecessor-version":[{"id":89,"href":"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/index.php?rest_route=\/wp\/v2\/posts\/50\/revisions\/89"}],"wp:attachment":[{"href":"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.fhps.tp.edu.tw\/fhpsmis\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}