My experience with Microsoft technology

My experience with Microsoft technology

Hyper-V Live Migration Issue EventID 22506

leave a comment »

Today I troubleshooted a strange issue regarding Live Migration. The customer built a new Hyper-V Cluster but as soon as they tried to live\quick migrate a VM with two network adapters it failed. After checking what they had done I couldn’t find any configuration errors. The relevant message from the Hyper-V High-Availability Log is:

EventID 22506

Migration failed at target for cluster resource ‘Virtual Machine LM Test’ with events ”Virtual Machine LM Test’ live migration did not succeed at the destination.

‘Virtual Machine LM Test’ failed to start.

Live migration of ‘LM Test’ did not succeed. (Virtual machine ID 78DB1ACB-2F30-4FC5-ACB6-1E46607559B8)

‘LM Test’ Microsoft Synthetic Ethernet Port (Instance ID {6B7A9C4E-8B80-4B9A-A069-92DB96367493}): Failed to restore with Error ‘The system cannot find the path specified.’ (0x80070003). (Virtual machine ID 78DB1ACB-2F30-4FC5-ACB6-1E46607559B8)

After searching the net we followed a suggestion to remove the VM from the cluster and add it again. This fixed the problem.

I tried to reconstruct the problem on a different cluster because I never encountered this before. Here is what I did and what I found out:

LM1

I created a new VM with one network interface using cluster manager.

LM2

Live migration was working fine.

LM3

To add a second NIC I clicked on “manage virtual machine” which opened the Hyper-V Manager.

LM4

I added a NIC and connected it to the second external network.

LM5

Live migration failed again. Seems like a pattern.

LM6

After deleting the VM in cluster manager, it is still available in Hyper-V Manager.

LM7

I added it again using the High Availability Wizard in the cluster manager.

LM8

Live Migration succeeded afterwards. There is definitively a pattern. Let’s try if the error persists if we use cluster manager exclusively.

LM9

I created a new VM.

LM10

 

I opened the VM settings using the Actions Pane

LM11

I added a NIC and connected it to the second external network.

LM12

Live Migration succeeded.

Conclusion

  1. Use cluster manager exclusively
  2. If you used Hyper-V Manager by mistake, remove the VM from the cluster and add it again.

Regards Alex

P.S. Visit my blog over on SystemCenterCentral for System Center related posts.

Advertisements

Written by alexanderschmitt

23. November 2011 at 18:56

Posted in Hyper-V

Windows 8 Developer Preview: Dual Boot with Windows 7 Enterprise (Bitlocker enabled) inside a VHD on a Dell E6510

with 2 comments

Hi,

today I finally found the time to write down my experience installing Windows 8 on my notebook. There are already some posts on how to dual boot or how to install Windows 8 inside a VHD. It first I was reluctant to write this post because of this but I just want to describe my approach for a scenario which might be quite common for IT professionals.

The scenario:

You have a working dual boot configuration. One is your private and one your business installation. The business installation is encrypted using Bitlocker. Now you want to replace your private system to built up your Windows 8 skills without endangering your productivity or the customer environment with using pre-beta versions of an operating system (you should not even think about this with beta or RC versions!).

My approach:

First I made a backup of both systems and my data partition (just in case) as well as all application settings and data I needed to migrate. Afterwards I backed up the boot loader configuration for the case the setup is messing it up. You can export the boot loader configuration with the command: “bcdedit /export <path>”

After that I suspended Bitlocker. This is important otherwise you will be asked to put in your Bitlocker Recovery Key each time you boot the protected system.

Next I formatted the partition where my private system was running and created a VHD. I have chosen fixed size because when you native boot from a VHD during Startup the VHD is expanded to it’s full size anyway (technet.microsoft.com/en-us/library/dd440865%28WS.10%29.aspx ).

1

 

Now I deleted the orphaned entry in my boot config. You can list you boot config with “bcdedit /enum”. You can delete an entry using “bcdedit /delete {ID}”:

2

 

After rebooting my business system just to make sure I’m still able to boot I went on installing Windows 8 into the VHD using a DVD (I know, I know how low tech of me 😀 ) following this post: Hanselman.

Everything worked like a charm :-).

 

The post install configuration

Another reason for writing this post was that I noticed some small things I have not read before.

By default windows 8 will set itself as default operating system what results in getting the new boot manager

5

 

Everything cool so far but when I now start Windows 7 it cold boots the machine again (which takes ~10 seconds with this crappy bios) presenting me with the “old” boot manager. Old? Not quite correct. I had to look twice but it is actually the new boot manager with the old black and white style. I noticed because now there is an option on the Bitlocker pin screen to go back to the operating system selection using the F11 key. This is great I cannot count how often I had to cold boot my machine because I did something else because I was to impatient to wait for the stupid bios and not returning in time to choose the private operating system. Anyway setting the default OS to Windows 7 you get always the old looking boot manager and can start Windows 7 as well as Windows 8 without cold booting twice.

 

After installing the display driver (see compatibility section later) I was curious about the performance index. Unfortunately this is not working when booting from a vhd:

3

 

Because I decided to install windows in a VHD I faced two problems. First Windows notifed about my full hard disk (the one the VHD resides on) ok so what. To disable that you have to change the registry follwing this post.

Second I was using some applications like my instant messaging client from both systems. Because the business system is encrypted they are installed in the private on. As this one is now inside a VHD the files can’t be read when I boot the business system. As a small workaround I created an auto-attach script following this. I’m running the script as a startup script like this.

 

Application compatability

NVidia display driver 280.26 working

Office 2010 working

Firefox partly working (facebook shows always the mobile version)

Paint.net 3.5.8 working

7 Zip 9.20 working

Foxit Reader 5.0 working (there were two errors during the browser plug-in installation but I’m not displaysing PDFs in the browser)

True Crypt 7.1 working

BlogDesk not working:

4

 

Regards

Alex

P.S. Visit my blog over on SystemCenterCentral for System Center related posts.

Written by alexanderschmitt

27. September 2011 at 21:24

Posted in Windows 8

Windows 8 Developer Preview: Disable spell checker

with 3 comments

Hi,

most of you who tried the Window 8 Developer preview might have noticed that Internet Explorer 10 has now a spell checker which is basically a good thing. Unfortunately there is no way to disable it in the options (hopefully only for the developer preview). As it messes up my blog software turning write things wrong and slowing some web pages to actually miss keystrokes I was searching for a way to disable it. As it took some time I reblog the information I found here . Just kill the MSSpellCheckingFacility process.

1

But killing the process seems not enough. Each time I start an application with a text field the process spins up again. Because of that I rename the file to MsSpellCheckingFacility.exe.bak. To be able to do that you need to take ownership of the file first and grant you full control:

2

 

Regards

Alex

P.S. Visit my blog over on SystemCenterCentral for System Center related posts.

Written by alexanderschmitt

27. September 2011 at 20:25

Posted in Windows 8

Windows 8 Developer Preview: Search Apps/Programs

leave a comment »

Hi,

As playing around with the new Metro style start menu I unpinned some of the apps using the right click menu:

1

The next logical question is how to add them. There is no right click menu on an empty space at all. There is neither an option in the metro style control panel nor one in the classical start menu which you can open clicking on more settings.

3

4

The solution is to start typing in the start menu which brings up the up search (you can browse all apps if you don’t know the exact name of the app you are searching for):

2

Using the windows key to get to the start menu from an app and the app search it is easier then I expected to use the Metro style UI with keyboard and mouse 🙂

HTH

Alex

P.S. Visit my blog over on System Center Central for System Center related posts.

Written by alexanderschmitt

15. September 2011 at 02:10

Posted in Allgemeines

Windows 8 Developer Preview initial configuration

leave a comment »

Hi,

as you may have heard the Windows 8 Developer Preview is downloadable from www.buildwindows.com/. The x64 image without the developer tools is 3,63 Gb in size. After the installation which is basically the same as in Windows 7 you are presented with this screen where you can specify the name of your PC:

1

After that you can choose to accept the express settings which I of course don’t do because I want to know what the new settings are :-):

2

I won’t list the settings as images tell more than 1000 words:

3

4

5

6

7

Hey that’s an interesting one. You can choose to log on to your device with your Windows Live ID which enables you to recover your password if you have forgotten it!

8

After pressing next in this screen Windows said it would create me a new account but in reality it associated the PC with my Live ID. Some minutes later I received an email to confirm that I was the one associating the device with my ID. If you confirm that you can the all your devices in your Windows Live profile:

13

After that Windows is preparing your PC:

9

Shortly after that you are presented with the new Start menu. Clicking on Desktop here will open the classic desktop. But when you press the start button on the classic desktop this new start menu will open. To scroll through it there is a little scrollbar on the bottom. Hopefully there is an option to get back to the classic start menu because with a mouse this behaviour is not very convenient.

11

As you can see on the above screen shot there is no option to shutdown the PC from a logged on user session. To shutdown the PC you need to log off and navigate two screens to shutdown the PC. This needs to be simplified in subsequent builds!

14

12

Opening the explorer shows that the vanilla installation needs around 10GB of disk space

10

That’s it for now. Stay tuned.

Alex

Written by alexanderschmitt

14. September 2011 at 15:04

Posted in Miscellaneous

Syspreping Windows 2008 R2 more than 3 times

leave a comment »

Hi,

while trying to install SQL Server with VMM 2012 I had to sysprep my image several times. Today this process failed. After a minute of searching I found that you can sysprep your image only three times because each time you generalize your image a rearm is done. Microsoft suggest to rebuild the image (http://support.microsoft.com/kb/929828/en-us). As the article explains you can work around the issue with an answer file and skipping the rearm. But I didn’t want to rebuild a searched a bit more and found a couple of suggestions. What worked for me was the following:

1. Change the value of the following registry keys (note that the location of the keys are different in different versions of windows):

HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\
CleanupState:2

HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\
GeneralizationState:7

2. Start -> Run : msdtc -uninstall (wait a bit, there will be no success message)
3. Start -> Run : msdtc -install (wait a bit, there will be no success message)
4. Restart the machine
5. Check the registry for the right registry keys values
6. Sysprep (You can do it using the GUI but if you have to sysprep again you should use an answer file with skiprearm)

Alex

Written by alexanderschmitt

5. September 2011 at 14:53

Posted in Miscellaneous

SCVMM 2012: Domain join during deployment

leave a comment »

Hi,

just a quick post as I couldn’t find it in the beta documentation quickly: When you try to join a VM to a domain during deployment use the FQDN for the domain name parameter otherwise it will not join the domain and no error will be logged in the VMM console:

1

Regards

Alex

Written by alexanderschmitt

1. September 2011 at 12:26