blog.kaniski.eu I just wanna learn!

4Sep/170

Deploying Linux machines by using System Center 2016: Virtual Machine Manager templates

In light of "Microsoft loves Linux" initiative, you can now deploy your Linux virtual machines by using templates in the System Center 2016: Virtual Machine Manager. As I was searching on how to do this (successfully), there were couple of articles that helped, so I’ve decided to do a short list of all the necessary steps (in one place).

Steps to make your Linux VM template deployments work:

  • create a new (Generation 2) virtual machine (as you would normally do)
  • install the Linux operating system in that virtual machine (as you would normally do)
    • HINT: A list of supported Linux distributions and versions on Hyper-V is available here.
  • install the Linux Integration Services (LIS) (as per this post):
    • open the "modules" file
    • add the following to the end of this file:
    • save it (Ctrl+X and Y)
    • install LIS and reboot the machine by using the following commands:
    • check if the services are running by using the command:
  • install the Virtual Machine Manager agent (as per this post):
    • share the folder C:\Program Files\Microsoft System Center 2016\Agents\Linux on your VMM machine
    • copy the VMM agent files to Linux virtual machine
      • as a real Windows admin, I did it through the GUI
    • install the agent:
  • fix the boot for Generation 2 virtual machine (boot information is by default stored in the VM configuration file, not on disk – Ben wrote a great article on this “issue”)
    • Ben’s way (didn’t work for me):
      • change directory to the boot EFI directory
      • copy the ubuntu directory in to a new directory named boot
      • change directory to the newly created boot directory
      • rename the shimx64.efi file
    • TriJetScud’s way in the comments (worked for me with Ubuntu 16.04 Generation 2 VM):
  • shutdown the virtual machine and copy its VHDX to the VMM Library
    • HINT: Don't forget to refresh the VMM Library.
  • go to the VMM Library, right-click the copied VHDX and select the Create VM template option
  • proceed with creating the template as you normally would, to the part Configure Operating System
    • HINT: If you are using Secure boot, don’t forget to select the MicrosoftUEFICertificateAuthority template in hardware settings.
  • there, under Guest OS profile, you select the option to create a new Linux operating system customization settings
  • next you specify your guest OS settings and finish creating the template
  • now you can create a new Linux virtual machine from the template you’ve configured!

Hope it helps!

Cheers!

20Nov/160

Advanced Technology Days 12

Another Advanced Technology Days are now behind us.

It was a great conference, with so many familiar faces (and so many new ones). I didn’t like this year’s venue as much as the last one (let’s be honest – nothing beats a movie theater! Smile), but it was fine – it’s always about the great people, not the venue itself.

This year I was speaking about the new System Center 2016 suite and, judging by the full room (thank you!), this topic is very hot right now. I really like the new features in Virtual Machine Manager and the new “speedy” Operations Manager (with web portal which finally works in “modern” browsers Smile).

CxeYphVXUAAp7Hq CxeZXAnWQAAdZx3

Slides (which are actually customized Microsoft Ignite slides – thank you), are uploaded to my SlideShare.

And now… looking forward to Advanced Technology Days 13. Smile

Cheers!

P.S. Thanks for the pics – Goran & Igor!

3Nov/140

Hosts have “Needs Attention” status after installing the VMM 2012 R2 UR4

For those who installed the Update Rollup 4 for System Center 2012 R2 Virtual Machine Manager, you may be facing this somewhat “strange issue” right after the installation – your hosts will have the “Needs Attention” status.

image

And now the “strange” part – if you open the host Properties window, and check the Status tab, you’ll may see that everything is green.

image

So, what needs the attention then?
The answer is – VMM agent needs the attention, and that’s the cause of this “issue” (you’ll need to run Update Agent action on affected hosts).

image

And, finally, status of your hosts should be OK again.

image

Hope this helps!

P.S. Read the KB document thoroughly – there is a part which mentions the manual update of System Center Virtual Machine Manager DHCP Server (x64) component. It should be like this:

image

17Jul/140

Need a Book for the Beach?

I’m happy to announce that our MVP colleague, Alessandro Cardoso got published again. His book, System Center 2012 R2 Virtual Machine Manager Cookbook, got an update to the latest System Center version and much more!

I’m also happy that I was selected as a Technical Reviewer of this book and, in a (small) way, helped in creating this awesome resource. My final copy arrived just this morning, and I can’t wait to read it (again). Smile

6848EN_System Cookbook

You can find more info about it (as well as order your copy) here.

Cheers!