After MVMC 2.0 VM time for license activation in Azure IaaS

May 5th, 2014 No comments

Maybe you read my post about migrating a VM to Azure with the MVMC 2.0 and after successfully migrated my VHD to Azure IaaS I wanted to set my VM to the right key and in Azure that is Microsoft KMS..

I do not know if it is supported to do this but here is how it is done,

The VM I used MVMC to move was a EVAL version,

 

MigratedEval

So the first step was to use Dism to set the version and a KMS license Key

dismlicensestuff

And then after reboot I first got this message

timebeforeactivation but after that I checked slmgr and it reported correctly KMS and activation

slmgrdli

Good luck in your migration to the Cloud

 

Categories: Azure, Virtualization Tags:

Microsoft Teched 2014 in Houston post #1

May 4th, 2014 No comments

imgoing

It´s just about one week left until the Microsoft TechEd 2014 starts in Houston with about 15 000 attendees!

I am really looking forward to this event and the following sessions will be in my priority list and most likely you can find me in those rooms:

Monday

Keynote
Comment: Of course I will be at the Keynote to see what Brad has to say about Hybrid Clouds in the Enterprise

Monday, May 12 11:00 AM – 12:00 PM Room: General Assembly C
Comment: This session is one of the foundation sessions and the one in my area of interest, so this is added of course!
Monday, May 12 1:15 PM – 2:30 PM Room: Grand Ballrom B
Comment: PowerShell is one of my favorite topics and this session with two of TechEds best speakers (Don Jones & Jeffrey Snover) it can´t be bad!
Monday, May 12 3:00 PM – 4:15 PM Room: 371A
Comment: This session will be truly interesting with the expert in the area and MVP friend Marc van Eijk. He has published several brilliant posts on Hyper-V.nu in WAP that have rescued me.
Monday, May 12 4:45 PM – 6:00 PM Room: 372A
Comment: This session is presented by my colleague and MVP friend Anders Asp that have some serious knowledge in Service Manager

 

Tuesday

Wednesday, May 14 10:15 AM – 11:30 AM Room: Hilton L2 Ballrm D
Comment: One of the best speakers again, Jeffrey Snover will dig through this interesting session
Tuesday, May 13 1:30 PM – 2:45 PM Room: 382A
Comment: This is also one great speaker, Eduardo Kassner, and of course an interesting topic!
Tuesday, May 13 5:00 PM – 6:15 PM Room: General Assembly A
Comment: Speakers here are my colleague and MVP Stefan Schörling and MVP friend Jörgen Nilsson. I´m not so much into client stuff but these Swedes know their stuff!

 

Wednesday

Wednesday, May 14 3:15 PM – 4:30 PM Room: Grand Ballrm C
Comment: This session is presented by the one and only Mark Russinovich, it is always a treat to see this man on stage and think that this topic will not make me disappointed!
Wednesday, May 14 5:00 PM – 6:15 PM Room: 320A
Comment: Interesting topic by a MVP friend Damian Flynn

 

Thursday

Thursday, May 15 1:00 PM – 2:15 PM Room: 362A
Comment: If you want to learn from the best DPM gurus then this is the session to be at, with my good friend and MVP colleague Robert Hedblom!

 

I will probably find some more interesting sessions later and will update this list, I will also make a new post when the sessions are available to view on Channel 9.

Here is also a list that my friend and colleague Fredrik Nilsson has wrote in the Channel 9 forums what you should pack to make your visit as smooth as possible, unfortunately he could not attend this year in TechEd US :-(

 

Categories: General Tags:

Regional Settings on your VMM 2012 R2 VM Templates

April 14th, 2014 3 comments

When you created VM templates out-of-the-box in System Center Virtual Machine Manager they get the en-US regional settings for all rolled-out VM´s and that in Sweden is not always standard for the IT departments and the IT techi-guy has to configure that manually afterward. This can be altered with either PowerShell or with an unattend.xml file.

If there happens to be some templates that you have not configured with the right regional settings and keyboard layout I have a small PowerShell script that will configure this for all templates in the VMM library.

Screen Shot 2014-04-14 at 18.53.39

Check out this KB2709539 article for more information and also your specific regional codes for your country :-)

Categories: SCVMM, Virtualization Tags:

Using MVMC 2.0 to migrate a VMware VM to Azure IaaS

April 8th, 2014 3 comments

This evening (in my timezone) Microsoft released the new version of the Microsoft Virtual Machine Converter 2.0 that has the functionality to also migrate VM´s to Azure in the wizard. I wanted to take that path for a spinn to test and see how that worked.

There are still some things to think about when using the tool,

  • it still uses ovf export
  • the VM in VMware is offline during the copy of the vmdk data (it creates a VHD for Azure, but if you choose a Hyper-V host you can set it to create a VHDX instead), this can with large amounts of data take some time and will consume space on the converter server.
  • The VM´s Windows OS has to be joined in a Active Directory domain, and the account being used has administrative rights in the VM to successfully uninstall VMware tools during conversion.
  • No EFI support, meaning that the VM´s in your vSphere has to be setup with BIOS to be able to convert (Windows 2012 and later is from a best practice in VMware configured with EFI), but UEFI support is only on VM´s i generation 2 and Azure does not have that, at least not yet..
  • Notice also that now with version 2.0 there is no support for migrating those Win 2003 VM´s

So how does it work in a migration from a VMware VM to Azure, well first of all in the wizard I select to migrate to Azure

Screen Shot 2014-04-08 at 22.10.53

Then I will add some information for the connection to my Azure subscription (yes I have done some editing in the image so not the whole world reading my blog would se my cert thumbprint and sub id)

Screen Shot 2014-04-08 at 22.11.02

After that I select what storage account I want the VHD to be transferred to (smart to think twice to select the storage account in the region where you have the network configured if you are using site 2 site vpn and such :-P ).

Screen Shot 2014-04-08 at 22.11.50

Then I connect to either vCenter or an ESXi and select what VM I want to convert

Screen Shot 2014-04-08 at 22.12.40

After that I either use the already entered credentials or other and the state of the source VM for a successful VMware tools uninstall and as it is being migrated to Azure I do not get the option to select state of the destination VM (that can of course if used with the Azure PowerShell module and MVMC module be automated)

Screen Shot 2014-04-08 at 22.15.28

For the MVMC to succeed in its task to move the VM to Azure it has to store the VHD somewhere before moving it up to the cloud, the little caveat here is that it will create a fixed size vhd so bare that in mind when selecting the drive so you have space!

Screen Shot 2014-04-08 at 22.15.36

Then it´s time to kickoff the conversion

Screen Shot 2014-04-08 at 22.15.50

And as you can see in my vCenter the conversion is under its way

Screen Shot 2014-04-08 at 22.24.21

And then after some waiting the conversion and the upload to azure has completed,

Screen Shot 2014-04-08 at 23.10.40

Now I can enter the Azure management portal and create a VM and from the gallery select this disk disk_testmigrate_00_os.vhd , as the MVMC creates a disk pointer from the storage blob (the VHD) I do not need to do that part.

Screen Shot 2014-04-08 at 23.28.34

And then I can connect to the VM

Screen Shot 2014-04-08 at 23.36.13

Apparently I had some issues creating the VM as a Basic but using standard it worked nicely and as you can see I managed to get an RDP session to it.. So it was not lost in the cloud as in this Dilbert cartoon :-P

lostdatacenter

Categories: Azure, Virtualization, VMware Tags:

New version of the Microsoft Virtual Machine Converter 2.0 and MAT

April 8th, 2014 No comments

Today Microsoft released the long awaited new version of the Virtual Machine Converter (the 1.0 version could be integrated with MAT but had limits in both VMware and Hyper-V latest releases). Microsoft has also released a new version of the MAT (migration automation toolkit) that supports the MVMC 2.0 to automate the migration!

Screen Shot 2014-04-08 at 19.20.57

New Features in MVMC 2.0

MVMC 2.0 release of MVMC includes the following new features:

    • Converts virtual disks that are attached to a VMware virtual machine to virtual hard disks (VHDs) that can be uploaded to Windows Azure.
    • Provides native Windows PowerShell capability that enables scripting and integration into IT automation workflows.
      Note The command-line interface (CLI) in MVMC 1.0 has been replaced by Windows PowerShell in MVMC 2.0.
    • Supports conversion and provisioning of Linux-based guest operating systems from VMware hosts to Hyper-V hosts.
    • Supports conversion of offline virtual machines.
    • Supports the new virtual hard disk format (VHDX) when converting and provisioning in Hyper-V in Windows Server® 2012 R2 and Windows Server 2012.
    • Supports conversion of virtual machines from VMware vSphere 5.5, VMware vSphere 5.1, and VMware vSphere 4.1 hosts Hyper-V virtual machines.
    • Supports Windows Server® 2012 R2, Windows Server® 2012, and Windows® 8 as guest operating systems that you can select for conversion

in the link you can read more about the MVMC functionality

As you can see in the wizard the option to upload the converted VM to Azure directly has been added

Screen Shot 2014-04-08 at 19.21.50

And now in this version we have native PowerShell with the MVMC PS module as described above:

Screen Shot 2014-04-08 at 20.05.11

I will show more in a later post how it can be used and how it works with both migrations to Hyper-V and also directly to Azure :-)

both MVMC and MAT can be read about and downloaded here

Categories: Azure, Hyper-V, Powershell, Virtualization, VMware Tags:

testing the new Microsoft Azure Portal

April 3rd, 2014 No comments

Well as I am a techy nerd I have been checking out and following the Build keynote on Channel 9 and found that they now release the Microsoft Azure Portal, it is in Preview but it looks good! Just hope that this also soon comes to the Windows Azure Pack to the hosters

I have signed in at the Portal.Azure.com and as you can see I get a good overview regarding my subscriptions and how the Azure current status is right now

Screen Shot 2014-04-03 at 19.33.29

right now in the preview I cannot handle my IaaS VM´s and networks yet :-(  but that will probably be updated soon I can think …

Categories: Azure, Virtualization Tags:

Installed Windows 8.1 Update that was available from MSDN today

April 2nd, 2014 No comments

Noticed today that during the Build conference that Microsoft released an update to Windows 8.1 and also for Windows Server 2012 R2.

The improvements have been blogged at this MS link

I downloaded from my MSDN and started installing

Screen Shot 2014-04-02 at 21.21.13

In the Update zip there is a text file describing which KB that should be applied first and in what order.

Screen Shot 2014-04-02 at 21.23.24

No problems during the installation but several reboots though :-P

Screen Shot 2014-04-02 at 21.24.59

And once installed I can among other things see that when logging in I get to the desktop directly and I also can find the power button and search from the startscreen!

Screen Shot 2014-04-02 at 21.44.18

Good luck in your upgrade :-)

Categories: Win8 Tags:

Automated PowerShell to keep your template vhd(x) IC updated

March 31st, 2014 No comments

For the Veeam Seminar I did some digging in how to check and also apply updated integrational components on virtual disks in the System Center VMM library and found Ben´s script which I altered to fit my goal. This is quite convenient based on that you can schedule it and always have updated IC´s on those VHDX in the library.

I check and get the current IC´s from one Hyper-V host and thus based on that if it has been updated I also get that update instead of using a copied IC version locally in the VMM server. The script runs on the VMM server and that is why I use the Mount-DiskImage cmdlet instead of the Mount-VHD as that does not work on a non-hyper-V enabled windows server.

Screen Shot 2014-03-30 at 10.42.33

 

 

 

Recordings and code from SMA and Powershell webinar with Veeam

March 29th, 2014 No comments

Last week I had two webinars together with Veeam in the subject of “Automating daunting virtualization tasks”. Now these have been uploaded and shared on Veeams web. One is in swedish and one in english. during the webinar I show some different tasks that can be managed and handled with the Service Management Automation (SMA) and utilizing PowerShell.

51075482-98cb-11e3-82f1-12313b12ccaf-large

here is the english version: http://www.veeam.com/videos/webinar-replay-service-management-automation-akerlund-en-3932.html

and here is the swedish version: http://www.veeam.com/videos/webinar-replay-service-management-automation-akerlund-sw-3649.html

Here are some of the tasks and the PowerShell code,

First one of the tasks was adding VM´s to cluster where I utilize the function in this link

Next task that can be automated that you always will have a percentage free on the C drive for the VM´s (it both shrinks and expands), I am utilizing the generation 2 VM´s so for this to work your VM´s have to be configured with this latest virtual hardware version on Hyper-V 2012 R2

As you can see when I extend the size I make the VHDx about 230 MB larger to be able to set the partition to the size calculated regarding the overhead of the virtual disk, so if I would have tried to make both the VHDx and partition 15GB it would fail..

The rest of the scripts will be uploaded later in a follow up post. Of course there can be improvements in the ways to do things and if you have any comments or ideas please share :-)

 

Azure Iaas VM not activated on my virtual network

March 25th, 2014 No comments

I have been configuring a demonstration environment on Azure and that connected to my local datacenter with S2S VPN.

I created several VM´s in Azure and during that process I connected them to my own network. One thing I noticed once doing this was that these VM´s was not activated.

Screen Shot 2014-03-03 at 08.25.44

The reason for this appeared to be quite easy and as I had the plan to setup a DC with DNS I only added that in the networking dns settings and the gallery VM´s points to a KMS in Azure and as I did not have a name resolution working the VM´s could not be activated. Checking that you can do a name resolution of the following url shows if you have any potential issues..

NSLOOKUP kms.core.windows.net 

So after I added an second DNS (excuse me for adding a google dns, but it is so easy to remember) and started the VM´s I could see that they been successfully activated :-)

Screen Shot 2014-03-25 at 15.44.47

Screen Shot 2014-03-25 at 15.48.28

Happy Azuring :-)

Categories: Azure Tags: