0

So I have a cluster for Hyper-V and am working on a script to move all active VMs to a host over the weekend, put the hosts in maintenance mode, and then poweroff all but one of those hosts for the weekend..

I know that the PS VirtualMachineManager module contains things like 'Get-SCVMHost' Stop-SCVMHost, etc. but I can't figure out how to turn off the machine host and power it back on. Is this something which has to be done with IPMI? If so, I can't find the cmdlet to use to pipe credentials/info.

Any help or articles would be greatly appreciated!

Thanks

  • I don't understand. You're going to move them to a particular Hyper-V host and then power off your Hyper-V hosts. Why move the VM's then? – joeqwerty Nov 5 '15 at 22:49
  • We have 4 hyper-V hosts. There are only a few VMs which need to stay on over the weekend. During the week there are quite a few. The goal is moved the few VMs which stay on over the weekend to one Hyper-V host and then power the other Hyper-V hosts off to save power over the weekend (and to make scheduling updates to firmware, etc. easier) @joeqwerty – Abraxas Nov 5 '15 at 22:50
  • Oh, so you're not shutting down all of your Hyper-V hosts. You didn't state that in your question. – joeqwerty Nov 5 '15 at 22:51
  • Updating :) Also we have SCVMM. – Abraxas Nov 5 '15 at 22:52
  • Honestly, if you're in a position where you need to turn off a couple servers to save money you should look at hosting services or cloud IaaS. – Colyn1337 Nov 6 '15 at 20:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.