Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

PowerShell to Live Migrate

$
0
0

I have a scenario here.  I have 10 clusters (2 nodes each cluster)

I would like to LiveMigrate only a single VM, which is very specific and not mission critical to test the VM every month.  This is to test the LiveMigration works on the cluster.  I can also execute the PowerShell script remotely.  If the VM is residing in Host1, then this will execute the LiveMigration to Host2. If the VM is residing in Host2, then it will migrate to Host1.

The purpose of the script is LiveMigrate only a single VM instead of entire.  It's manual executeable and just for the purpose of ensuring the LiveMigration works every month. I know that I can do it from GUI, but as more clusters are coming in, then I can't be able to do it manually.  Prefer a powershell script to it with only a single execution.  

Probably can look into reading from a CSV file e.g.

LOCATION,CLUSTER_NODE,HOST1,HOST2,VM_App1

After the powershell is executed, then can generate a report for successful and failed.

Thank you.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>