| 1 | * 澤哥再詢問 OpenNEbula 啟動 windows 的問題時,查了一下發現 [http://www.google.com/url?sa=t&source=web&cd=2&ved=0CCAQFjAB&url=http%3A%2F%2Fwww.opennebula.org%2F_media%2Fdocumentation%3Aopennebula_1.4_features_rev20100615.pdf&ei=Z0SgTN7_CJCkvgP4raCJDQ&usg=AFQjCNFNuu0VAACDDAt3JJLI_G7RrW9Y1Q&sig2=oRro7s8vmt3HnlPJAREJ9g 1.4] [http://www.google.com/url?sa=t&source=web&cd=3&ved=0CCcQFjAC&url=http%3A%2F%2Fwww.opennebula.org%2F_media%2Fdocumentation%3Aopennebula_2.0_features_rev20100913.pdf&ei=Z0SgTN7_CJCkvgP4raCJDQ&usg=AFQjCNFNV7IOB17x_76MK_502K3rkEfuAQ&sig2=QzBKo8zoXz1YSJXlWivJ4A 2.0] 都說可以支援 windows image,但測試卻都不行,會來去看了一下原始碼,雖然Ruby 看不懂,但幸好英文看的懂: |
| 2 | {{{ |
| 3 | $ vim ./src/vmm/VirtualMachineManager.cc |
| 4 | 897 if ( type == "XEN" ) |
| 5 | 898 { |
| 6 | 899 vmm_driver = new XenDriver(uid, vattr->value(),(uid != 0),vmpool); |
| 7 | 900 } |
| 8 | 901 else if ( type == "KVM" ) |
| 9 | 902 { |
| 10 | 903 vmm_driver = new LibVirtDriver(uid, vattr->value(), |
| 11 | 904 (uid != 0),vmpool,"kvm"); |
| 12 | 905 } |
| 13 | }}} |
| 14 | {{{ |
| 15 | $ vim ./src/vmm/LibVirtDriver.cc |
| 16 | 145 if (emulator == "kvm") |
| 17 | 146 { |
| 18 | 147 file << "\t\t<type>hvm</type>" << endl; |
| 19 | 148 } |
| 20 | }}} |
| 21 | * 原來 hvm 模式再 OpenNEbula 只支援 KVM,Xen目前再 OpenNEbula 尚未支援 |
| 22 | * [http://lists.opennebula.org/pipermail/users-opennebula.org/2010-March/001765.html 參考設定檔連結] |