vmware ESXI

ESXIのシンプロビジョニングで、ゲストOSの容量を削減する。

ESXIでシンプロビジョニングでVMを作成している場合、ゲストOSからデータを削除してもVMのサイズは 減少しない。以下が、対応方法

https://rin-ka.net/thin-provisioning-disk-difference/#toc6

シンプロビジョニング・シックプロビジョニングの違い

  • シックプロビジョニング(Lazy zeroed) 仮想ディスク作成時に指定したサイズ分の領域を確保します。

  • シックプロビジョニング(Eager zeroed) 仮想ディスク作成時に指定したサイズ分の領域を確保し、ゼロで初期化します。

  • シンプロビジョニング 仮想ディスク作成時には最低限の領域のみ確保し、必要に応じて増加します。

GPUのパススルーモードでゲストOSが立ち上がらないとき

Bios設定でAbove 4Mの設定をしても、GUIをアッタチしたOSが立ち上がらない場合、同時に以下の設定をする必要がある。

いったんsshVMwareにログインし、各GestOSのファイルを設定する。 ファイルの場所は、以下の通り。 ./vmfs/volumes/[volumeのSerial]/[Volume名称]/[Volume名].vmx .vmxファイルを設定する。 ./vmfs/volumes/63d9ba3e-c2cf65dc-f5a7-d85ed3eaaa85/Ubuntu20.04__n1/Ubuntu20.04_n1.mvx

[blogs.vmware.com

Here, you add the following two parameters, with the value of the second parameter, as shown, set to TRUE

pciPassthru.use64bitMMIO="TRUE"

The value of the first parameter seen in the dialog above is adjusted to suit your specific GPU requirements:

pciPassthru.64bitMMIOSizeGB=

We calculate the value of the “64bitMMIOSizeGB” parameter using a straightforward approach. Count the number of high-end PCI GPU devices that you intend to pass into this VM. This can be one or more GPUs. Multiply that number by 16 and round it up to the next power of two.

For example, to use passthrough mode with two GPU devices in one VM, the value would be:

2 * 16 = 32, rounded up to the next power of two to give 64.