I experienced couple times the VM migration stuck in middle of the process due to this and that reasons. After the failed migration, there is not much you can do in the SCVMM console, as the only choice you can do is to click ‘repair’ to try to fix it. But sometimes, the repair can … Continue reading SCVMM 2008 R2 VM Status Tricks
Category: Scripting
PowerShell: Hyper-V Dynamic Memory Settings
Some great PS scripts about Hyper-V Dynamic Memory Settings can be found at the following link. http://social.technet.microsoft.com/wiki/contents/articles/hyper-v-how-to-set-dynamic-memory-using-powershell.aspx
PowerShell: Using Credential File For Connect-VIServer
To run a scheduled PS script against the vCenter server, you either hard code the credential in your script or use the credential file. Needless to say that credential file is better in terms of security, as the password is encrypted in the file. Two steps to complete: 1) Create a credential file. Add-PSSnapIn VMware.VimAutomation.CoreNew-VICredentialStoreItem … Continue reading PowerShell: Using Credential File For Connect-VIServer
PowerShell: Use Connect-VIServer In Your Script
To use ‘Connect-VIServer’ cmdlet in your PowerShell script. You have to follow two steps: 1) Install VMware PowerCLI in your machine. It will register itself in PowerShell during the installation. 2) Use ‘Add-PSSnapIn VMware.VimAutomation.Core’ to add the registered PowerShell VMware Snapin to the current session.
Moving VM to Folder in vCenter
To make things more organized in vCenter, I use folders to categorize the servers with the same functions together. The folders can be Production with subfolders SQL server, Linux server … But somehow, two servers refused to move. Everything looks fine, they just did not want to move to a new folder. After being frustrated … Continue reading Moving VM to Folder in vCenter