Few Handy VMware Powershell commandlines

Add a HDD to a virtual machine: $VM=’name of the VM’ $size=’Size in GB, Numeric only’ $Datastore=’Name of the Datastore’ $ProvisionType=”Thin/Thick/EagerZeroedThick”) $Controller=’SCSI Controller 0′ New-HardDisk -VM $VM -CapacityGB $size -Datastore $Datastore -StorageFormat $ProvisionType -Controller $Controller $DiskType   Clone VM $Name=’Name of the new VM’ $source=Name of the Source virtual machine’ $Datastore=’Datastore name’ $host=’host name or […]

Read More

VMware PowerCLi Install on windows 10, 1809

Install PowerCli from Windows Gallery Open powerCLI as an administrator and then run: Install-Module -Name VMware.PowerCLI List available VMware module: Get-Module -ListAvailable -Name VMware*   Import Module  Get-Module vmware* | Import-Module Set execution policy to remote signed if the importing fails: Set-ExecutionPolicy RemoteSigned   the failure generally would look like the below: PS C:\windows\system32> Import-Module […]

Read More

Passing through a Nvidia GTX970 to a VMware Virtual machine

Create a virtual machine with EFI boot, install windows + tools and power down the VM Open ssh to the host where the VM is registered to use VIM-cmd vmsvc/getallvms | grep *name_of_VM* cd to the datastore path cd /vmfs/volumes/NVME/nvidia/ Edit the vmx file using the vi editor and add the below lines hypervisor.cpuid.v0 = […]

Read More

Creating a Cent OS7 template for VMware Guest Customization and Deployment

To start off with, Download the latest version of CentOs7 from https://www.centos.org/download/ At the time of writing, this is: CentOS-7 (1804) Lets start by creating a new Virtual machine.  I will select Esxi 6.5 for backward compatibility  with other host. Mount the ISO,   Power on the VM and begin installing of the OS and begin the […]

Read More

Generate a memory dump for a frozen VMware, windows virtual machine.

Enable complete memory dump feature by changing following registry keys:   HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\CrashControl CrashDumpEnabled    REG_DWORD    0x1   HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Memory Management PagingFiles    REG_MULTI_SZ    c:\pagefile.sys 13312 13312   Enable keyboard crash dump feature by adding following registry keys:   HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters Value Name: CrashOnCtrlScroll Data Type:    REG_DWORD Value:    1   HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\kbdhid\Parameters Value Name: CrashOnCtrlScroll Data Type:    REG_DWORD Value:    1 […]

Read More