Virtualization with Windows Server 2019

[The following is an excerpt from the book: Windows Server 2019 Administration Fundamentals, Second Edition]

Windows Server 2019 Administration Fundamentals, Second Edition

You have probably heard about cloud services, but you have probably not yet visualized what a cloud infrastructure looks like. Regardless, you should be aware that it is a complex infrastructure that is completely virtualized. In a data center that provides cloud services, a large number of servers are grouped to form a cluster. On top of that cluster, there are hundreds or thousands of virtual machines (VMs) running to make up the cloud’s infrastructure.

So, in this chapter, you will get to know the virtualization concept, as well as become familiar with the Hyper-V software, which enables the virtualization of Windows-based servers. In addition, you will learn about the steps it takes to add the Hyper-V role to the server, get to know the Hyper-V Manager, and learn to create VMs. That way, you will be able to understand what virtualization is, how you can enable the Hyper-V role, and how to create VMs. This chapter concludes with an exercise where you will learn how to install the Hyper-V role on Windows Server 2019.

The following topics will be covered in this chapter:

  • Understanding server virtualization
  • Getting to know Hyper-V Manager
  • Chapter exercise—Installing the Hyper-V role on Windows Server 2019

Technical requirements

In order to complete the lab for this chapter, you will need the following equipment:

  • A PC with Windows Server 2019 Standard, at least 8 GB of RAM, 500 GB of HDD, and access to the internet

Understanding server virtualization

From a technical point of view, virtualization technology should be understood as a way of creating a virtual server. In addition, virtualization also enables you to create storage devices and network resources. So, instead of having ten physical servers, you can have one physical server and nine VMs running on it. Windows Server 2019 comes equipped with a Hyper-V feature that enables virtualization. As a descendant of Windows Virtual PC, Microsoft’s Hyper-V was introduced in Windows Server 2008. Since then, even though it is younger than its competition, Hyper-V has managed to attract the interest of system administrators, thereby positioning itself strongly in second place in terms of virtualization platform market share—right behind Amazon Web Services. In specific terms, Hyper-V provides the services that can be used to create and manage VMs, along with their resources.

We will now learn about various aspects of server virtualization, beginning with virtualization modes.

Understanding virtualization modes

Generally, the following two virtualized modes are the most commonly used in today’s virtualized environments:

  • Fully virtualized mode: This enables an isolated and secure execution of one or more OSes in a single physical server where guest OSes use the host’s OS resources (see Figure 8.1):

Figure 8.1: Windows Server 2019 running in an isolated and secure virtual environment

  • Paravirtualized mode: This can be understood as a computer inside a computer that has an installed OS that does not simulate the hardware. Rather, it offers a special application program interface (API) so that we can modify the guest OS.

A host OS is the OS on a physical server, whereas a guest OS is the OS on a VM. In my case, I am running Windows 10 Pro on a laptop as the host OS, and I am running Windows Server 2019 Standard as the guest OS.

Now, let’s understand what we mean by Hyper-V architecture.

Understanding Hyper-V architecture

The Hyper-V architecture is based on a hierarchical format where the first level represents the hypervisor as the main element that constitutes the Hyper-V virtual platform. Thus, a hypervisor is accommodated at the root and has direct access to hardware devices. The root component then creates branch OSes that represent isolated executable environments. Specifically, the branched OS represents a logical unit of isolation that has no access to hardware devices. Then, in these parts, it will be possible to run guest OSes. Components such as the virtualization service provider (VSP) and virtualization service consumer (VSC), through logical channels for communication known as the virtual machine bus (VMBus), enable communication between the root portion and the branch OSes (see Figure 8.2):

Figure 8.2: Hyper-V architecture

By correlating the Understanding virtualization modes and Understanding Hyper-V architecture sections, we understand that Figure 8.2 represents an example of a fully virtualized mode. Now that you are familiar with the architecture of Hyper-V, it would be great to become familiar with Hyper-V installation requirements.

Hyper-V installation requirements

First things first: to accommodate the hypervisor, the server must support virtualization. To fulfill this requirement, it must be based on an Intel or AMD processor with Intel Virtualization Technology (VT) or AMD Virtualization enabled.

Now, let’s understand what we mean by nested virtualization.

Understanding nested virtualization

Nested virtualization refers to a VM that runs inside another VM. In other words, it is the ability of the server’s hardware to run the Hyper-V inside a VM, which itself runs on a Hyper-V too. The concept of a VM inside a VM allows us to effectively nest one Hyper-V within another.

To set up nested virtualization in Windows Server 2019 using Windows PowerShell, complete the following steps:

  1. Right-click the Start button, and then select Windows PowerShell (Administrator) from the admin’s menu.
  2. In the Windows PowerShell window, run the following two commands:
Set-VMProcessor -VMName <VMname> -ExposeVirtualizationExtensions $true
Get-VMNetworkAdapter -VMName <VMname> | Set-VMNetworkAdapter - MacAddressSpoofing On
  1. Then, proceed with the installation of the Hyper-V (refer to the Chapter exercise – Installing Hyper-V on Windows Server 2019 section later on in this chapter).

In this section, we have learned about server virtualization concepts such as virtualization modes, Hyper-V architecture, Hyper-V installation requirements, and nested virtualization. In the next section, we will learn about Hyper-V Manager.

[the chapter continues …]

The book is available for purchase on:

Enjoy reading.

Follow me on Twitter or LinkedIn. Check out my blog or the vlog.

Bekim Dauti [Contributor]

I am the author of the Windows Server 2019 Administration Fundamentals book and the founder of Dautti, a Virtual Instructor-Led Training platform that provides real-time computer courses. I have published computer articles on PC World Albanian and CIO Albania, as well as computer books published by Packt and Amazon. My books are being sold by various online sales channels and are at your disposal 24/7. I’m a Cisco Certified Academy Instructor (CCAI) and Microsoft Certified Trainer (MCT) who teaches regularly computer courses. Example engagements include DauttiInfoTech, and QuickStart. I hold an MSc. in Information Technology from the University of Maryland University College Europe. I received my BSc. in Informatics from the University of Tirana – Albania.

Amazon | Blogu | Facebook | Packt Publishing | LinkedIn | Twitter | YouTube | Acclaim

 

“Windows Server 2019 Administration Fundamentals” have been awarded three prices by BookAuthority

After the success of the “Windows Server 2016 Administration Fundamentals” book, I’m happy to announce that my book, “Windows Server 2019 Administration Fundamentals: A beginner’s guide to managing and administering Windows Server environments, 2nd Edition”, made it to:

BookAuthority collects and ranks the best books in the world, and it is a great honor to get this kind of recognition. Thank you for all your support!
The book is available for purchase on:

Enjoy reading.

Follow me on Twitter or LinkedIn. Check out my blog or the vlog.

Bekim Dauti [Contributor]

I am the author of the Windows Server 2019 Administration Fundamentals book and the founder of Dautti, a Virtual Instructor-Led Training platform that provides real-time computer courses. I have published computer articles on PC World Albanian and CIO Albania, as well as computer books published by Packt and Amazon. My books are being sold by various online sales channels and are at your disposal 24/7. I’m a Cisco Certified Academy Instructor (CCAI) and Microsoft Certified Trainer (MCT) who teaches regularly computer courses. Example engagements include DauttiInfoTech, and QuickStart. I hold an MSc. in Information Technology from the University of Maryland University College Europe. I received my BSc. in Informatics from the University of Tirana – Albania.

Amazon | Blogu | Facebook | Packt Publishing | LinkedIn | Twitter | YouTube | Acclaim

Get prepared for the MTA 98-365 exam and pass it with ease

Book Description

Windows Server 2016 is the server operating system developed by Microsoft as part of the Windows NT family of operating systems, developed concurrently with Windows 10. This book is designed to get you started with Windows Server 2016. It will prepare you for your MTA 98-365 exam. With step-by-step instructions driven by targeted, easy-to-understand graphics, you will be able to understand the roles, features, functions, and quirks of Windows Server 2016.

The book begins with the basics of Windows Server 2016, which includes the installation process and basic configuration. You will then move on to roles and features such as Active Directory, Hyper-V, Remote Access, Storage, and Printer. With the help of real-world examples, you will get to grips with the fundamentals of Windows Server 2016, which will help you solve difficult tasks the easy way. Later, the book also shows you maintenance and troubleshooting tasks, where with the help of best practices you will be able to manage Windows Server 2016 with ease. Each chapter ends with a questionnaire to ensure you make the best use of the content provided. By the end of this book, you will have the knowledge required to administer and manage Windows Server environments.

What You Will Learn?

  • Become familiar with Windows Server OS concepts
  • Learn how to install Windows Server 2016
  • Learn how to install device drivers and run services in Windows Server 2016
  • Learn how to add and install roles in Windows Server 2016
  • Learn how to apply GPO to your Windows Server 2016 environment
  • Learn how to tune, maintain, update, and troubleshoot Windows Server 2016
  • Prepare for the MTA 98-365 exam

Where you can buy it?

Customer Reviews (from Amazon.com)

Lucas Krupinski

April 25, 2019

Format: Paperback | Verified Purchase
Ejel

February 12, 2019

Format: Paperback | Verified Purchase

Just finished reading all the chapters in preparation for the 98-365 Server Administration Certification test.

The Bad: Terms are introduced and not defined. Many of the descriptions come straight from Microsoft’s pages and are too succinct. It was like they were just copied and pasted with lots left out. The answers to the chapter questions for Chapters 6 and 7 are switched around. The author refers to servers with personal pronouns. Uses “your server” frequently. Just not well written in that respect. That is not unusual in Computer textbooks though. It is a server and the server, not my server or yours. It belongs to the organization, unless you are a sole proprietor. That is just not how professional text books are written. This book would be more suited to someone who has been doing Sys Admin work for a while. It is like it is written for people already in the biz who know most of it and just need a review. Active Directory and Group Policy could have used more discussion.

The Good: Most of the hands on instructions are great. Let’s face it, if you are doing Server Administration, you must know how to get around the Server. That was my favorite part of the book. Having clear instructions for adding a role, service or feature, etc. You will know your way around the server. The binding is good. The last Microsoft course book that I used fell apart, literally. This one is holding together quite well. The pages are not shiny and distracting. The author included an appendix on Group Policy and with Shortcuts as extras. I must admit I have not spent much time reviewing those as I am prepping for the Certification.

For me, I use multiple resources to study for these Certification tests. I have the 98-366 and the A+ under my belt. His writing style was a nice complement to the ITPro.TV videos, the MOAC MS text, the Udemy coursework and some of the Lynda coursework I have watched. Will update once I am done passing the 98-365.

Daniel

February 10, 2019

Format: Paperback | Verified Purchase