Monthly Archives: April 2014

WAP usage does not work. Last ID never changes

If you are working with usage and WAP you might have a problem getting it to work. The usage.records table is empty and the IIS logs on the SPF-server is not helping you much? This might be an answer to your problem. It helped me in our case.

 

IIS Log from the SPF-server

If you look at the log entry you can see that the lastId is empty. This might be due to incorrect configuration of the SPF connection to the Operations Manager Data Warehouse.

Logon to the SPF-server
Open a powershell window and run the command below.

Look at the parameter Spfsettings. In my case it’s empty and thats not correct. We have to remove the OMDW connection and add it again to correct the error.

Remove the OPMA1-server

Now run the command get-scspfserver and verify that the connection is removed.  If it’s remove correctly we can now add it again.

Run the command get-scspfserver again and check if the spfsettings parameter looks like below.

You can now logon to the databasserver that hosts the WAP database. Look into the table usage.records and see if it gets populated by records.

usage_spf_error

Migrate from VMware to Hyper-V in different domains

If you are a hosting company you are likley not to have trusts between all your domains. Atleast thats the way things are in Sweden.

This might be a big issue for some company using System Center Products.Microsoft just release the new Microsoft Virtual Machine Converter 2.0 (MVMC) and i have tried it to migrate a VMware machine from vCenter 5.1 to VMM 2012 R2. Both setups are in two different domains with no trusts between them.

The setup are the following.

Domain A
vCenter 5.1
Host A
Host B
VM A

(There are no trusts between domain a and domain b)

Domain B
VMM 2012 R2
Host A
Host B

Install MVMC on your VMM machine. And open the console.

1

Select Migrate to Hyper-V

2

Enter the adress to one of your Hyper-V hosts

3

Select the storage. If you are using a failover cluster on your Hyper-V hosts just select the CVS volume. (A folder with the name of the machine will be created in the selected path)

4

Enter the credentials and address to your vCenter. (If you are using another domain then the domain vmm are in. enter the username in the following syntax domain\user).  If theDNS-server cannot lookup the VMware hosts you will have to add them to your host file

5

Select the machine you want to migrate. (You have to turn off the machine in vCenter first)

6

Enter some parameters. If you want the machine to be turned on when it’s migrated etc.

7

On the workspace tab you have to enter a temporary placement for the converter to use. This must have enough space to fit the entire virtual machine. So check your vCenter for how much space the VM you are about to migrate uses.

When it’s done you get a summery page and when you hit finish the converter starts to convert the VM. When this is done there are a few steps you have to do.

  1. Change to VM so it’s connected to the right network
  2. Start the VM so integration services will be installed
  3. Uninstall VMware Products (VMware Tools for example)

If this is a HA cluster that needs the virtual machine to be highly available

8

 

This is quite simple to fix. Just do a migrate vm and select make this vm highly available. And now it’s done. You’re machine is now a Hyper-V machine.