Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Clustering > How to "Refresh virtual machine configuration" programmatically

Reply
Thread Tools Display Modes

How to "Refresh virtual machine configuration" programmatically

 
 
DLN
Guest
Posts: n/a

 
      04-01-2010

Hello all,

When dealing with Hyper-V (RTM not R2) based VMs in the Failover Cluster
Management console, there is an option at the resource group level to
“Refresh virtual machine configuration”. Does anybody know if there’s an API
(either native or WMI based) that allows one to execute this command? I’m
also open to using the “cluster” command line tool to perform this task, but
I can’t seem to find the correct arguments that allow me to do it.

I’ve seen references to using PowerShell to do this sort of thing, but in
our environment PS (or anything that calls into .NET for that matter) is not
an option.

Thanks
 
Reply With Quote
 
 
 
 
RCan
Guest
Posts: n/a

 
      04-01-2010
Hi DLN,

yes as far as I'm aware there is WMI or Powershell possible.
for Powershell the command-let is called
"Update-ClusterVirtualMachineConfiguration".

More details can you find here :
http://technet.microsoft.com/en-us/l.../ee461058.aspx

Regards
Ramazan

"DLN" <> wrote in message
news:946800A0-E7B8-47EC-9B84-...
> Hello all,
>
> When dealing with Hyper-V (RTM not R2) based VMs in the Failover Cluster
> Management console, there is an option at the resource group level to
> “Refresh virtual machine configuration”. Does anybody know if there’s an
> API
> (either native or WMI based) that allows one to execute this command? I’m
> also open to using the “cluster” command line tool to perform this task,
> but
> I can’t seem to find the correct arguments that allow me to do it.
>
> I’ve seen references to using PowerShell to do this sort of thing, but in
> our environment PS (or anything that calls into .NET for that matter) is
> not
> an option.
>
> Thanks


 
Reply With Quote
 
DLN
Guest
Posts: n/a

 
      04-01-2010
Hi Ramazan,

I don't quite understand your response - is PowerShell the only way to
accomplish this task? The provided link provides a reference to a PS cmdlet,
but as I mentioned we are not able to use PowerShell in our environment, so
it won't work.

If there's a link you could point me to that references a WMI API, I would
be grateful.

Regards.

"RCan" wrote:

> Hi DLN,
>
> yes as far as I'm aware there is WMI or Powershell possible.
> for Powershell the command-let is called
> "Update-ClusterVirtualMachineConfiguration".
>
> More details can you find here :
> http://technet.microsoft.com/en-us/l.../ee461058.aspx
>
> Regards
> Ramazan
>
> "DLN" <> wrote in message
> news:946800A0-E7B8-47EC-9B84-...
> > Hello all,
> >
> > When dealing with Hyper-V (RTM not R2) based VMs in the Failover Cluster
> > Management console, there is an option at the resource group level to
> > “Refresh virtual machine configuration”. Does anybody know if there’s an
> > API
> > (either native or WMI based) that allows one to execute this command? I’m
> > also open to using the “cluster” command line tool to perform this task,
> > but
> > I can’t seem to find the correct arguments that allow me to do it.
> >
> > I’ve seen references to using PowerShell to do this sort of thing, but in
> > our environment PS (or anything that calls into .NET for that matter) is
> > not
> > an option.
> >
> > Thanks

>

 
Reply With Quote
 
RCan
Guest
Posts: n/a

 
      04-03-2010
Hi DLN,

I personally don't know about the availibility of an scriptable method for
function "refresh VM config..." but generally many failover cluster
funtions/commands are programmable.
sorry for being not clear enough before but as PS is not an option pls check
the following links around all available failover cluster API's :

Failover Cluster APIs
http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx

The Failover Cluster WMI Provider
http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx

Virtualization WMI Provider
http://msdn.microsoft.com/en-us/libr...92(VS.85).aspx

Failover Cluster Administrator Extension Functions and Interfaces
http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx

MSCluster_Resource Class
http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx

Hope the links above should give you the needed informations.

Regards
Ramazan

"DLN" <> wrote in message
news:88DF0B7B-4941-40A1-95C8-...
> Hi Ramazan,
>
> I don't quite understand your response - is PowerShell the only way to
> accomplish this task? The provided link provides a reference to a PS
> cmdlet,
> but as I mentioned we are not able to use PowerShell in our environment,
> so
> it won't work.
>
> If there's a link you could point me to that references a WMI API, I would
> be grateful.
>
> Regards.
>
> "RCan" wrote:
>
>> Hi DLN,
>>
>> yes as far as I'm aware there is WMI or Powershell possible.
>> for Powershell the command-let is called
>> "Update-ClusterVirtualMachineConfiguration".
>>
>> More details can you find here :
>> http://technet.microsoft.com/en-us/l.../ee461058.aspx
>>
>> Regards
>> Ramazan
>>
>> "DLN" <> wrote in message
>> news:946800A0-E7B8-47EC-9B84-...
>> > Hello all,
>> >
>> > When dealing with Hyper-V (RTM not R2) based VMs in the Failover
>> > Cluster
>> > Management console, there is an option at the resource group level to
>> > “Refresh virtual machine configuration”. Does anybody know if there’s
>> > an
>> > API
>> > (either native or WMI based) that allows one to execute this command?
>> > I’m
>> > also open to using the “cluster” command line tool to perform this
>> > task,
>> > but
>> > I can’t seem to find the correct arguments that allow me to do it.
>> >
>> > I’ve seen references to using PowerShell to do this sort of thing, but
>> > in
>> > our environment PS (or anything that calls into .NET for that matter)
>> > is
>> > not
>> > an option.
>> >
>> > Thanks

>>

 
Reply With Quote
 
DLN
Guest
Posts: n/a

 
      04-08-2010
I was afraid of that. I've combed the Clustering and Automation APIs several
times and there doesn't seem to be anything that pertains to refreshing the
cluster configuration in either. As of late there seems to be a few
operations that PowerShell appears to be the only option (live migration in
Hyper-V R2 is another one that is PS specific). I hope this isn't a trend
.... PS is a (very) poor substitute for a dedicated API.

"RCan" wrote:

> Hi DLN,
>
> I personally don't know about the availibility of an scriptable method for
> function "refresh VM config..." but generally many failover cluster
> funtions/commands are programmable.
> sorry for being not clear enough before but as PS is not an option pls check
> the following links around all available failover cluster API's :
>
> Failover Cluster APIs
> http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
>
> The Failover Cluster WMI Provider
> http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
>
> Virtualization WMI Provider
> http://msdn.microsoft.com/en-us/libr...92(VS.85).aspx
>
> Failover Cluster Administrator Extension Functions and Interfaces
> http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
>
> MSCluster_Resource Class
> http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
>
> Hope the links above should give you the needed informations.
>
> Regards
> Ramazan
>
> "DLN" <> wrote in message
> news:88DF0B7B-4941-40A1-95C8-...
> > Hi Ramazan,
> >
> > I don't quite understand your response - is PowerShell the only way to
> > accomplish this task? The provided link provides a reference to a PS
> > cmdlet,
> > but as I mentioned we are not able to use PowerShell in our environment,
> > so
> > it won't work.
> >
> > If there's a link you could point me to that references a WMI API, I would
> > be grateful.
> >
> > Regards.
> >
> > "RCan" wrote:
> >
> >> Hi DLN,
> >>
> >> yes as far as I'm aware there is WMI or Powershell possible.
> >> for Powershell the command-let is called
> >> "Update-ClusterVirtualMachineConfiguration".
> >>
> >> More details can you find here :
> >> http://technet.microsoft.com/en-us/l.../ee461058.aspx
> >>
> >> Regards
> >> Ramazan
> >>
> >> "DLN" <> wrote in message
> >> news:946800A0-E7B8-47EC-9B84-...
> >> > Hello all,
> >> >
> >> > When dealing with Hyper-V (RTM not R2) based VMs in the Failover
> >> > Cluster
> >> > Management console, there is an option at the resource group level to
> >> > “Refresh virtual machine configuration”. Does anybody know if there’s
> >> > an
> >> > API
> >> > (either native or WMI based) that allows one to execute this command?
> >> > I’m
> >> > also open to using the “cluster” command line tool to perform this
> >> > task,
> >> > but
> >> > I can’t seem to find the correct arguments that allow me to do it.
> >> >
> >> > I’ve seen references to using PowerShell to do this sort of thing, but
> >> > in
> >> > our environment PS (or anything that calls into .NET for that matter)
> >> > is
> >> > not
> >> > an option.
> >> >
> >> > Thanks
> >>

 
Reply With Quote
 
RCan
Guest
Posts: n/a

 
      04-09-2010
Did you also overlooked WMI here ?

Regards
Ramazan

"DLN" <> wrote in message
news:8FBA592D-2C5E-401D-8E28-...
> I was afraid of that. I've combed the Clustering and Automation APIs
> several
> times and there doesn't seem to be anything that pertains to refreshing
> the
> cluster configuration in either. As of late there seems to be a few
> operations that PowerShell appears to be the only option (live migration
> in
> Hyper-V R2 is another one that is PS specific). I hope this isn't a trend
> ... PS is a (very) poor substitute for a dedicated API.
>
> "RCan" wrote:
>
>> Hi DLN,
>>
>> I personally don't know about the availibility of an scriptable method
>> for
>> function "refresh VM config..." but generally many failover cluster
>> funtions/commands are programmable.
>> sorry for being not clear enough before but as PS is not an option pls
>> check
>> the following links around all available failover cluster API's :
>>
>> Failover Cluster APIs
>> http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
>>
>> The Failover Cluster WMI Provider
>> http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
>>
>> Virtualization WMI Provider
>> http://msdn.microsoft.com/en-us/libr...92(VS.85).aspx
>>
>> Failover Cluster Administrator Extension Functions and Interfaces
>> http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
>>
>> MSCluster_Resource Class
>> http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
>>
>> Hope the links above should give you the needed informations.
>>
>> Regards
>> Ramazan
>>
>> "DLN" <> wrote in message
>> news:88DF0B7B-4941-40A1-95C8-...
>> > Hi Ramazan,
>> >
>> > I don't quite understand your response - is PowerShell the only way to
>> > accomplish this task? The provided link provides a reference to a PS
>> > cmdlet,
>> > but as I mentioned we are not able to use PowerShell in our
>> > environment,
>> > so
>> > it won't work.
>> >
>> > If there's a link you could point me to that references a WMI API, I
>> > would
>> > be grateful.
>> >
>> > Regards.
>> >
>> > "RCan" wrote:
>> >
>> >> Hi DLN,
>> >>
>> >> yes as far as I'm aware there is WMI or Powershell possible.
>> >> for Powershell the command-let is called
>> >> "Update-ClusterVirtualMachineConfiguration".
>> >>
>> >> More details can you find here :
>> >> http://technet.microsoft.com/en-us/l.../ee461058.aspx
>> >>
>> >> Regards
>> >> Ramazan
>> >>
>> >> "DLN" <> wrote in message
>> >> news:946800A0-E7B8-47EC-9B84-...
>> >> > Hello all,
>> >> >
>> >> > When dealing with Hyper-V (RTM not R2) based VMs in the Failover
>> >> > Cluster
>> >> > Management console, there is an option at the resource group level
>> >> > to
>> >> > “Refresh virtual machine configuration”. Does anybody know if there’s
>> >> > an
>> >> > API
>> >> > (either native or WMI based) that allows one to execute this
>> >> > command?
>> >> > I’m
>> >> > also open to using the “cluster” command line tool to perform this
>> >> > task,
>> >> > but
>> >> > I can’t seem to find the correct arguments that allow me to do it.
>> >> >
>> >> > I’ve seen references to using PowerShell to do this sort of thing,
>> >> > but
>> >> > in
>> >> > our environment PS (or anything that calls into .NET for that
>> >> > matter)
>> >> > is
>> >> > not
>> >> > an option.
>> >> >
>> >> > Thanks
>> >>

 
Reply With Quote
 
DLN
Guest
Posts: n/a

 
      04-13-2010
I've been looking at both WMI and the native clustering APIs and can find
nothing that allows me to programmatically update the cluster configuration.
To make things even more difficult, it doesn't look like the PowerShell
commandlet was available until R2 (but maybe I'm wrong). The same PS command
I use to update the Cluster configuration in Server 2008 R2, I can not get to
work in Server 2008 RTM.

So to be clear, in Server 2008 RTM, I have been unable to find any API call
using WMI, the native cluster APIs, or even PowerShell that will allow me to
refresh the virtual machine configuration.

I have been looking at updating the cluster database via direct Registry
edits and I think I can make that work, but to go to that extreme seems to be
a bit of a hack and prone to error ... it's something I would prefer to not
to have to do.

Any suggestions?

"RCan" wrote:

> Did you also overlooked WMI here ?
>
> Regards
> Ramazan
>
> "DLN" <> wrote in message
> news:8FBA592D-2C5E-401D-8E28-...
> > I was afraid of that. I've combed the Clustering and Automation APIs
> > several
> > times and there doesn't seem to be anything that pertains to refreshing
> > the
> > cluster configuration in either. As of late there seems to be a few
> > operations that PowerShell appears to be the only option (live migration
> > in
> > Hyper-V R2 is another one that is PS specific). I hope this isn't a trend
> > ... PS is a (very) poor substitute for a dedicated API.
> >
> > "RCan" wrote:
> >
> >> Hi DLN,
> >>
> >> I personally don't know about the availibility of an scriptable method
> >> for
> >> function "refresh VM config..." but generally many failover cluster
> >> funtions/commands are programmable.
> >> sorry for being not clear enough before but as PS is not an option pls
> >> check
> >> the following links around all available failover cluster API's :
> >>
> >> Failover Cluster APIs
> >> http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
> >>
> >> The Failover Cluster WMI Provider
> >> http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
> >>
> >> Virtualization WMI Provider
> >> http://msdn.microsoft.com/en-us/libr...92(VS.85).aspx
> >>
> >> Failover Cluster Administrator Extension Functions and Interfaces
> >> http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
> >>
> >> MSCluster_Resource Class
> >> http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
> >>
> >> Hope the links above should give you the needed informations.
> >>
> >> Regards
> >> Ramazan
> >>
> >> "DLN" <> wrote in message
> >> news:88DF0B7B-4941-40A1-95C8-...
> >> > Hi Ramazan,
> >> >
> >> > I don't quite understand your response - is PowerShell the only way to
> >> > accomplish this task? The provided link provides a reference to a PS
> >> > cmdlet,
> >> > but as I mentioned we are not able to use PowerShell in our
> >> > environment,
> >> > so
> >> > it won't work.
> >> >
> >> > If there's a link you could point me to that references a WMI API, I
> >> > would
> >> > be grateful.
> >> >
> >> > Regards.
> >> >
> >> > "RCan" wrote:
> >> >
> >> >> Hi DLN,
> >> >>
> >> >> yes as far as I'm aware there is WMI or Powershell possible.
> >> >> for Powershell the command-let is called
> >> >> "Update-ClusterVirtualMachineConfiguration".
> >> >>
> >> >> More details can you find here :
> >> >> http://technet.microsoft.com/en-us/l.../ee461058.aspx
> >> >>
> >> >> Regards
> >> >> Ramazan
> >> >>
> >> >> "DLN" <> wrote in message
> >> >> news:946800A0-E7B8-47EC-9B84-...
> >> >> > Hello all,
> >> >> >
> >> >> > When dealing with Hyper-V (RTM not R2) based VMs in the Failover
> >> >> > Cluster
> >> >> > Management console, there is an option at the resource group level
> >> >> > to
> >> >> > “Refresh virtual machine configuration”. Does anybody know if there’s
> >> >> > an
> >> >> > API
> >> >> > (either native or WMI based) that allows one to execute this
> >> >> > command?
> >> >> > I’m
> >> >> > also open to using the “cluster” command line tool to perform this
> >> >> > task,
> >> >> > but
> >> >> > I can’t seem to find the correct arguments that allow me to do it.
> >> >> >
> >> >> > I’ve seen references to using PowerShell to do this sort of thing,
> >> >> > but
> >> >> > in
> >> >> > our environment PS (or anything that calls into .NET for that
> >> >> > matter)
> >> >> > is
> >> >> > not
> >> >> > an option.
> >> >> >
> >> >> > Thanks
> >> >>

 
Reply With Quote
 
RCan
Guest
Posts: n/a

 
      04-13-2010
true - hard to find information about it but as SCVMM 2008 RTM had managed
RTM failover clusters with Hyper-V I think there must be a programatically
way to do this, which is accessible via WMI/PS. Let's see if somebody from
MS comments this post.... :-)

Regards
Ramazan

"DLN" <> wrote in message
news:01B0859D-765D-4928-B9F8-...
> I've been looking at both WMI and the native clustering APIs and can find
> nothing that allows me to programmatically update the cluster
> configuration.
> To make things even more difficult, it doesn't look like the PowerShell
> commandlet was available until R2 (but maybe I'm wrong). The same PS
> command
> I use to update the Cluster configuration in Server 2008 R2, I can not get
> to
> work in Server 2008 RTM.
>
> So to be clear, in Server 2008 RTM, I have been unable to find any API
> call
> using WMI, the native cluster APIs, or even PowerShell that will allow me
> to
> refresh the virtual machine configuration.
>
> I have been looking at updating the cluster database via direct Registry
> edits and I think I can make that work, but to go to that extreme seems to
> be
> a bit of a hack and prone to error ... it's something I would prefer to
> not
> to have to do.
>
> Any suggestions?
>
> "RCan" wrote:
>
>> Did you also overlooked WMI here ?
>>
>> Regards
>> Ramazan
>>
>> "DLN" <> wrote in message
>> news:8FBA592D-2C5E-401D-8E28-...
>> > I was afraid of that. I've combed the Clustering and Automation APIs
>> > several
>> > times and there doesn't seem to be anything that pertains to refreshing
>> > the
>> > cluster configuration in either. As of late there seems to be a few
>> > operations that PowerShell appears to be the only option (live
>> > migration
>> > in
>> > Hyper-V R2 is another one that is PS specific). I hope this isn't a
>> > trend
>> > ... PS is a (very) poor substitute for a dedicated API.
>> >
>> > "RCan" wrote:
>> >
>> >> Hi DLN,
>> >>
>> >> I personally don't know about the availibility of an scriptable method
>> >> for
>> >> function "refresh VM config..." but generally many failover cluster
>> >> funtions/commands are programmable.
>> >> sorry for being not clear enough before but as PS is not an option pls
>> >> check
>> >> the following links around all available failover cluster API's :
>> >>
>> >> Failover Cluster APIs
>> >> http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
>> >>
>> >> The Failover Cluster WMI Provider
>> >> http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
>> >>
>> >> Virtualization WMI Provider
>> >> http://msdn.microsoft.com/en-us/libr...92(VS.85).aspx
>> >>
>> >> Failover Cluster Administrator Extension Functions and Interfaces
>> >> http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
>> >>
>> >> MSCluster_Resource Class
>> >> http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
>> >>
>> >> Hope the links above should give you the needed informations.
>> >>
>> >> Regards
>> >> Ramazan
>> >>
>> >> "DLN" <> wrote in message
>> >> news:88DF0B7B-4941-40A1-95C8-...
>> >> > Hi Ramazan,
>> >> >
>> >> > I don't quite understand your response - is PowerShell the only way
>> >> > to
>> >> > accomplish this task? The provided link provides a reference to a
>> >> > PS
>> >> > cmdlet,
>> >> > but as I mentioned we are not able to use PowerShell in our
>> >> > environment,
>> >> > so
>> >> > it won't work.
>> >> >
>> >> > If there's a link you could point me to that references a WMI API, I
>> >> > would
>> >> > be grateful.
>> >> >
>> >> > Regards.
>> >> >
>> >> > "RCan" wrote:
>> >> >
>> >> >> Hi DLN,
>> >> >>
>> >> >> yes as far as I'm aware there is WMI or Powershell possible.
>> >> >> for Powershell the command-let is called
>> >> >> "Update-ClusterVirtualMachineConfiguration".
>> >> >>
>> >> >> More details can you find here :
>> >> >> http://technet.microsoft.com/en-us/l.../ee461058.aspx
>> >> >>
>> >> >> Regards
>> >> >> Ramazan
>> >> >>
>> >> >> "DLN" <> wrote in message
>> >> >> news:946800A0-E7B8-47EC-9B84-...
>> >> >> > Hello all,
>> >> >> >
>> >> >> > When dealing with Hyper-V (RTM not R2) based VMs in the Failover
>> >> >> > Cluster
>> >> >> > Management console, there is an option at the resource group
>> >> >> > level
>> >> >> > to
>> >> >> > “Refresh virtual machine configuration”. Does anybody know if
>> >> >> > there’s
>> >> >> > an
>> >> >> > API
>> >> >> > (either native or WMI based) that allows one to execute this
>> >> >> > command?
>> >> >> > I’m
>> >> >> > also open to using the “cluster” command line tool to perform
>> >> >> > this
>> >> >> > task,
>> >> >> > but
>> >> >> > I can’t seem to find the correct arguments that allow me to do
>> >> >> > it.
>> >> >> >
>> >> >> > I’ve seen references to using PowerShell to do this sort of
>> >> >> > thing,
>> >> >> > but
>> >> >> > in
>> >> >> > our environment PS (or anything that calls into .NET for that
>> >> >> > matter)
>> >> >> > is
>> >> >> > not
>> >> >> > an option.
>> >> >> >
>> >> >> > Thanks
>> >> >>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a network USB hub for a virtual machine? Bo Berglund Virtual PC 5 03-06-2010 06:13 PM
Vista Activation in Virtual Machine Pleonasm Windows Vista Installation 3 12-26-2007 06:10 PM
Microsoft Virtual Machine David Windows Vista Performance 2 12-09-2007 11:12 AM
Vista installation on a Virtual Machine Dung Windows Vista Installation 7 06-11-2006 03:49 AM
Visa installation and Microsoft Virtual Machine abcd Windows Vista Installation 1 06-09-2006 11:25 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59