| 172 | | |
| 173 | | == VM on VM == |
| 174 | | * きちんと設定されていないと次のように表示される => attachment:vmsvonvmws.png |
| 175 | | |
| 176 | | * [http://communities.vmware.com/docs/DOC-8970 VMware Communities: Running Nested VMs] |
| 177 | | * VMware製品各種での設定がまとめられている |
| 178 | | |
| 179 | | * 実用的な実行速度で動かすためのハードウェア条件 |
| 180 | | * Intel VT-x |
| 181 | | * AMD-v with Barcelona or Phenom or later |
| 182 | | * AMD-V is supported on Rev F and later Family 0FH AMD64 processors, but current VMware products only support AMD-V on Family 10H or later AMD64 processors (Barcelona or Phenom). Thus, you can use AMD-V on Family 0FH Rev F and Rev G processors with Workstation 6.0. However, you need a Family 10H processor to use AMD-V with ESX 3.5 and Workstation 6.5 (or later). |
| 183 | | * 手持ちの「AMD Athlon 64 X2 5000+」では「MONITOR MODE: allowed modes : BT」となり、AMD-v使用不能。 |
| 184 | | |
| 185 | | * vmxファイルに以下の2行を追加すると可能になる(非Intel-VT, 非AMD-V環境では未テスト) |
| 186 | | {{{ |
| 187 | | monitor_control.vt32 = "TRUE" |
| 188 | | monitor_control.restrict_backdoor = "TRUE" |
| 189 | | }}} |
| 190 | | * IntelCPU+x64GuestだとVTが必須なので自動的に有効になる |
| 191 | | {{{ |
| 192 | | Software virtualization is incompatible with long mode on this platform. Virtual execution will begin in software mode, but will automatically switch to hardware mode if the guest enters long mode. |
| 193 | | }}} |
| 194 | | * それ以外の環境では、次の1行もあった方が良いかも知れない(入れ子内のVMguestの起動が非常に遅くなり得る) |
| 195 | | {{{ |
| 196 | | monitor.virtual_exec = "hardware" |
| 197 | | }}} |
| 198 | | == VMware Workstation == |
| 199 | | * Ubuntu 10.04 lucid on VMware Workstation 7.1.3 with Windows 7 x64 Host |
| 200 | | * Linux ubuntu32 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 09:00:03 UTC 2010 i686 GNU/Linux |
| 201 | | * model name : Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz |
| 202 | | * 仮想マシン設定 > ハードウェア > プロセッサ > 優先モード |
| 203 | | * 自動 |
| 204 | | * vmware.log |
| 205 | | {{{ |
| 206 | | Dec 12 17:27:11.858: vmx| MONITOR MODE: allowed modes : BT32 HV |
| 207 | | Dec 12 17:27:11.858: vmx| MONITOR MODE: user requested modes : BT32 HV HWMMU |
| 208 | | Dec 12 17:27:11.858: vmx| MONITOR MODE: guestOS preferred modes: HWMMU BT32 HV |
| 209 | | Dec 12 17:27:11.858: vmx| MONITOR MODE: filtered list : BT32 HV |
| 210 | | Dec 12 17:27:11.858: vmx| HV Settings: virtual exec = 'dynamic'; virtual mmu = 'software' |
| 211 | | }}} |
| 212 | | * /proc/cpuinfo |
| 213 | | {{{ |
| 214 | | flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht nx lm constant_tsc arch_perfmon pebs bts tsc_reliable aperfmperf pni ssse3 cx16 hypervisor lahf_lm ida |
| 215 | | }}} |
| 216 | | * Intel VT-xまたはAMD-V |
| 217 | | * diff of Ubuntu32.vmx |
| 218 | | {{{ |
| 219 | | -monitor.virtual_mmu = "automatic" |
| 220 | | -monitor.virtual_exec = "automatic" |
| 221 | | +monitor.virtual_mmu = "software" |
| 222 | | +monitor.virtual_exec = "hardware" |
| 223 | | }}} |
| 224 | | * vmware.log |
| 225 | | {{{ |
| 226 | | Dec 12 17:53:28.574: vmx| MONITOR MODE: allowed modes : BT32 HV |
| 227 | | Dec 12 17:53:28.574: vmx| MONITOR MODE: user requested modes : HV |
| 228 | | Dec 12 17:53:28.574: vmx| MONITOR MODE: guestOS preferred modes: HWMMU BT32 HV |
| 229 | | Dec 12 17:53:28.574: vmx| MONITOR MODE: filtered list : HV |
| 230 | | Dec 12 17:53:28.574: vmx| HV Settings: virtual exec = 'hardware'; virtual mmu = 'software' |
| 231 | | }}} |
| 232 | | * /proc/cpuinfo |
| 233 | | {{{ |
| 234 | | flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht nx lm constant_tsc arch_perfmon pebs bts tsc_reliable aperfmperf pni ssse3 cx16 hypervisor lahf_lm ida |
| 235 | | }}} |
| 236 | | |
| 237 | | * 元々が「自動」だからなのか、CPU flagsに変化はなかった。 |