Re: [Qemu-devel] kvm/hyper-v: obtaining client machine id

2013-10-29 Thread Vadim Rozenfeld


- Original Message -
From: Peter Lieven p...@kamp.de
To: Gleb Natapov g...@redhat.com, Vadim Rozenfeld vroze...@redhat.com, 
qemu-devel@nongnu.org
Sent: Monday, October 28, 2013 6:50:31 PM
Subject: [Qemu-devel] kvm/hyper-v: obtaining client machine id

Hi,

do you know if it is possible to obtain the client machine id of a Windows 
vServer via
a Hyper-V hypercall? I would need an information to check vServer activations 
against
our KMS.

Hi Peter,

WMI SoftwareLicensingService should be able to do it
http://msdn.microsoft.com/en-us/library/cc534597%28v=vs.85%29.aspx
Vadim.


Thanks,
Peter




Re: [Qemu-devel] kvm/hyper-v: obtaining client machine id

2013-10-29 Thread Peter Lieven

On 29.10.2013 10:03, Vadim Rozenfeld wrote:


- Original Message -
From: Peter Lieven p...@kamp.de
To: Gleb Natapov g...@redhat.com, Vadim Rozenfeld vroze...@redhat.com, 
qemu-devel@nongnu.org
Sent: Monday, October 28, 2013 6:50:31 PM
Subject: [Qemu-devel] kvm/hyper-v: obtaining client machine id

Hi,

do you know if it is possible to obtain the client machine id of a Windows 
vServer via
a Hyper-V hypercall? I would need an information to check vServer activations 
against
our KMS.

Hi Peter,

WMI SoftwareLicensingService should be able to do it
http://msdn.microsoft.com/en-us/library/cc534597%28v=vs.85%29.aspx
Vadim.

Sorry, I don't see how to get this information via a Hyper-V MSR?!

Peter



Thanks,
Peter




--

Mit freundlichen Grüßen

Peter Lieven

...

  KAMP Netzwerkdienste GmbH
  Vestische Str. 89-91 | 46117 Oberhausen
  Tel: +49 (0) 208.89 402-50 | Fax: +49 (0) 208.89 402-40
  p...@kamp.de | http://www.kamp.de

  Geschäftsführer: Heiner Lante | Michael Lante
  Amtsgericht Duisburg | HRB Nr. 12154
  USt-Id-Nr.: DE 120607556

...




Re: [Qemu-devel] kvm/hyper-v: obtaining client machine id

2013-10-29 Thread Gleb Natapov
On Mon, Oct 28, 2013 at 08:50:31AM +0100, Peter Lieven wrote:
 Hi,
 
 do you know if it is possible to obtain the client machine id of a Windows 
 vServer via
 a Hyper-V hypercall? I would need an information to check vServer activations 
 against
 our KMS.
 
Have not idea, sorry.

--
Gleb.



Re: [Qemu-devel] kvm/hyper-v: obtaining client machine id

2013-10-29 Thread Vadim Rozenfeld
On Tue, 2013-10-29 at 10:40 +0100, Peter Lieven wrote:
 On 29.10.2013 10:03, Vadim Rozenfeld wrote:
 
  - Original Message -
  From: Peter Lieven p...@kamp.de
  To: Gleb Natapov g...@redhat.com, Vadim Rozenfeld 
  vroze...@redhat.com, qemu-devel@nongnu.org
  Sent: Monday, October 28, 2013 6:50:31 PM
  Subject: [Qemu-devel] kvm/hyper-v: obtaining client machine id
 
  Hi,
 
  do you know if it is possible to obtain the client machine id of a Windows 
  vServer via
  a Hyper-V hypercall? I would need an information to check vServer 
  activations against
  our KMS.
 
  Hi Peter,
 
  WMI SoftwareLicensingService should be able to do it
  http://msdn.microsoft.com/en-us/library/cc534597%28v=vs.85%29.aspx
  Vadim.
 Sorry, I don't see how to get this information via a Hyper-V MSR?!
Yes, there is no such MSR. But you probably don't need it in any case.
If you need to collect CMIDs you can access WMI data on remote
computers. Alternatively, you can write a small application to obtain
CMID locally and pass it to host via virtio-serial port.

Vadim.
 
 
 Peter
 
 
  Thanks,
  Peter