| 1 | [[PageOutline]] |
| 2 | |
| 3 | = VM on VM = |
| 4 | == VMware == |
| 5 | * きちんと設定されていないと次のように表示される => [[Image(vmsvonvmws.png, 33%)]] |
| 6 | |
| 7 | * [http://communities.vmware.com/docs/DOC-8970 VMware Communities: Running Nested VMs] |
| 8 | * VMware製品各種での設定がまとめられている |
| 9 | |
| 10 | * 実用的な実行速度で動かすためのハードウェア条件 |
| 11 | * Intel VT-x |
| 12 | * AMD-v with Barcelona or Phenom or later |
| 13 | * 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). |
| 14 | * 手持ちの「AMD Athlon 64 X2 5000+」では「MONITOR MODE: allowed modes : BT」となり、AMD-v使用不能。 |
| 15 | |
| 16 | * vmxファイルに以下の2行を追加すると可能になる(非Intel-VT, 非AMD-V環境では未テスト) |
| 17 | {{{ |
| 18 | monitor_control.vt32 = "TRUE" |
| 19 | monitor_control.restrict_backdoor = "TRUE" |
| 20 | }}} |
| 21 | * IntelCPU+x64GuestだとVTが必須なので自動的に有効になる |
| 22 | {{{ |
| 23 | 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. |
| 24 | }}} |
| 25 | * それ以外の環境では、次の1行もあった方が良いかも知れない(入れ子内のVMguestの起動が非常に遅くなり得る) |
| 26 | {{{ |
| 27 | monitor.virtual_exec = "hardware" |
| 28 | }}} |
| 29 | === VMware Workstation on Intel VT === |
| 30 | * Ubuntu 10.04 lucid on VMware Workstation 7.1.3 with Windows 7 x64 Host |
| 31 | * Linux ubuntu32 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 09:00:03 UTC 2010 i686 GNU/Linux |
| 32 | * model name : Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz |
| 33 | * 仮想マシン設定 > ハードウェア > プロセッサ > 優先モード |
| 34 | * 自動 |
| 35 | * vmware.log |
| 36 | {{{ |
| 37 | Dec 12 17:27:11.858: vmx| MONITOR MODE: allowed modes : BT32 HV |
| 38 | Dec 12 17:27:11.858: vmx| MONITOR MODE: user requested modes : BT32 HV HWMMU |
| 39 | Dec 12 17:27:11.858: vmx| MONITOR MODE: guestOS preferred modes: HWMMU BT32 HV |
| 40 | Dec 12 17:27:11.858: vmx| MONITOR MODE: filtered list : BT32 HV |
| 41 | Dec 12 17:27:11.858: vmx| HV Settings: virtual exec = 'dynamic'; virtual mmu = 'software' |
| 42 | }}} |
| 43 | * /proc/cpuinfo |
| 44 | {{{ |
| 45 | 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 |
| 46 | }}} |
| 47 | * Intel VT-xまたはAMD-V |
| 48 | * diff of Ubuntu32.vmx |
| 49 | {{{ |
| 50 | -monitor.virtual_mmu = "automatic" |
| 51 | -monitor.virtual_exec = "automatic" |
| 52 | +monitor.virtual_mmu = "software" |
| 53 | +monitor.virtual_exec = "hardware" |
| 54 | }}} |
| 55 | * vmware.log |
| 56 | {{{ |
| 57 | Dec 12 17:53:28.574: vmx| MONITOR MODE: allowed modes : BT32 HV |
| 58 | Dec 12 17:53:28.574: vmx| MONITOR MODE: user requested modes : HV |
| 59 | Dec 12 17:53:28.574: vmx| MONITOR MODE: guestOS preferred modes: HWMMU BT32 HV |
| 60 | Dec 12 17:53:28.574: vmx| MONITOR MODE: filtered list : HV |
| 61 | Dec 12 17:53:28.574: vmx| HV Settings: virtual exec = 'hardware'; virtual mmu = 'software' |
| 62 | }}} |
| 63 | * /proc/cpuinfo |
| 64 | {{{ |
| 65 | 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 |
| 66 | }}} |
| 67 | |
| 68 | * 元々が「自動」だからなのか、CPU flagsに変化はなかった。 |