1

I'm trying to promote a resource configuration change during VM reboot cycle. Preferably, I'd like to do that without user intervention, as in: I ask the VM to reboot, and between the shutdown and the start, the VM resource change is performed by a script.

However, I haven't been able to find a decent hook to execute that script.

Does such a hook exist?

I'm using win2008 Datacenter R2. I don't have access to the VM internals (we rent it out to a customer), but of course I do have full control over the host.

Koert
  • 133
  • 1
  • 5

1 Answers1

1

I do not know of such a hook, but I am not a Hyper-V expert either.

Would you be able to use a PowerShell script to accomplish the same thing? The PowerShell Management Library for Hyper-V should allow you to write a script that shuts down the VM, reconfigures it however you like, and then restarts it.

Jeremy
  • 641
  • 3
  • 11
  • 16
  • This is indeed a possible route, but it requires us to reboot the system, outside of the customer's control. – Koert Apr 01 '11 at 06:53