Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V...

47
Spark the future.

Transcript of Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V...

Page 1: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Spark the future.

Page 2: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Alessandro Cardoso, Microsoft MVP

Creating your own “Private Cloud” with Windows 10 Hyper-V

WIN443

Page 3: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

A little intro to Hyper-V

Page 4: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

What Hyper-V enables you to do

Hyper-V enables running virtualized computer systems on top of a physical machine *.

Virtualized systems can be used and managed just as if they were physical computer systems

Virtualization enables quick deployment of computer systems

Windows 10

Virtual Machines

NEW: you can now have nested virtualization with Windows 10

Page 5: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Common scenarios• A test environment consisting of multiple

virtual machines of multiple operating systems.

• You can use Hyper-V to troubleshoot virtual machines from any Hyper-V deployment.

• Using virtual networking, you can create a multi-machine environment on a laptop for demonstrating older versions of Windows or non-Windows operating systems

Windows 10

Virtual Machines

Page 6: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Checking if your computer have the pre-requisites

Page 7: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

First, let check the Software side…

Page 8: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Make sure you have the supported version of Windows 10: • Windows 10 Enterprise

• Windows 10 Professional• Windows 10 Education

Page 9: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

And then Hardware…

Page 10: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Checking Hardware Compatibility• 64-bit Processor with SLAT.• CPU support for VM Monitor Mode Extension

(VT-c on Intel CPU's).

It is recommended a minimum of 4 GB memory

Page 11: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Checking Hardware Compatibility

If you run systeminfo.exe on an existing Hyper-V host

On the command prompt, type systeminfo.exe

Page 12: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Enabling BIOSBoot your computer and go to BIOS setup to enable both Virtualization Technology and Data Execution Prevention

Page 13: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Installing Hyper-V

Page 14: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Install Hyper-V

Go to Control Panel → Programs → Turn Windows features on or off, check Hyper-V

Page 15: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Demo: Let’s get hands onInstalling Hyper-VAlessandro Cardoso

Page 16: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Hyper-V Manager

Page 17: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Hyper-V Manager

Page 18: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

External – if a virtual machine needs to get access to a physical network directly.Internal – if no need to get access to physical network. however network connectivity exists between virtual machines and Hyper-V host.Private – if  a virtual machine only runs on this host and connectivity does not exist between virtual machines and Hyper-V host.

Networking

Page 19: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

You may want to create a virtual switch for both the wired and wireless network cards.

With this configuration you can change your virtual machines between theses switches dependent on how the laptop is network connected.

Virtual Switches and Laptops

Page 20: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Creating Virtual Switches

Page 21: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Demo: Let’s get hands onNetworkingAlessandro Cardoso

Page 22: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Supported Guest OS

Page 23: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Supported Windows GuestsGuest operating system Max

VP Notes

Windows 10 32

Windows 8/ 8.1 32

Windows 7 / SP1 4 Ultimate, Enterprise, and Professional editions (32-bit and 64-bit).

Windows Vista SP2 2 Business, Enterprise, and Ultimate, including N and KN editions.

Windows Server 2012 / R2 64

Windows Server 2008 R2 SP 1 64 Datacenter, Enterprise, Standard and Web editions.

Windows Server 2008 SP 2 4 Datacenter, Enterprise, Standard and Web editions (32-bit and 64-bit).

Windows Home Server 2011 4

Windows Small Business Server 2011 Essentials edition – 2 VP’s, Standard edition – 4 VP’s

Page 24: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Supported Linux Guests• CentOS and Red Hat Enterprise

Linux • Debian • SUSE• Oracle Linux• Ubuntu• FreeBSD

Page 25: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Demo: Let’s get hands onCreating Virtual MachinesAlessandro Cardoso

Page 26: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

CheckPointsYou may want to create a virtual machine checkpoint before making software configuration changes, applying a software update, or installing new software

Page 27: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

CheckpointsOne of the great benefits to virtualization is the ability to easily save the state of a VM•Standard Checkpoints – takes a snapshot of the VM and VM memory state at the time the checkpoint is initiated.•Production Checkpoints – uses VSS or File System Freeze on a Linux virtual machine to create a data consistent back of the VM.

Page 28: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Demo: Let’s get hands onCheckpointsAlessandro Cardoso

Page 29: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Import/Export a VM

Page 30: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

An export can be used for backup, restoration, or a way to move a virtual machine between hosts

Export VM

When creating an export of a virtual machine, all associated files are bundled in the export. This includes configuration files, hard drive files and also any existing checkpoint files

Page 31: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

A virtual machine export can be imported back into the host from which it was derived or new host.

Register in-place – Keep the same ID. VM files are on location where it should be run. If the virtual machine is already registered with Hyper-V it needs to be deleted before the import will work. Restore the virtual machine – Creates a copy of the exported file and moves them to a selected location. If the VM is already running in Hyper-V it needs to be deleted before the import can be completed. Copy the virtual machine – The imported VM has a new unique ID which means that it can be imported into the same host many times.

Export VM

Page 32: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Virtual Machine Configuration Version

Page 33: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

What version of Hyper-V the VM configuration, saved state, and snapshot files is compatible with?

Checking the Configuration Version

Get-VM * | Format-Table Name, Version

Important: The .VMCX file is a binary format. Directly editing the .VMCX or .VMRS file isn't supported.

Page 34: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Connected Standby

Page 35: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

When Hyper-V is enabled on a computer that uses the Always On/Always Connected (also known as InstantON) power model

Connected Standby is now available

Page 36: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Windows PowerShell Direct

Page 37: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

• The host needs to a Windows 10 or Windows Server 2016• The guest VM’s needs to run Windows 10 or Windows Server

2016.• You need to be logged on the host with Hyper-V Administrator

account.• You need User credentials for the virtual machine.• The VM you want to connect to must be running

Requirements for PowerShell Direct

Page 38: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Demo: Let’s get hands onPowerShell DirectAlessandro Cardoso

Page 39: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Nested Virtualisation

Page 40: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Demo: Let’s get hands onNEW: Nested VirtualizationAlessandro Cardoso

Page 41: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

What is not available in Win10 Hyper-V

Page 42: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Windows Server featuresNot included on Windows 10 Hyper-V:

• The Remote FX capability to virtualize GPUs • Live migration of virtual machines from one host to another• Hyper-V Replica• Virtual Fibre Channel• SR-IOV networking• Shared .VHDX

Page 43: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

License

Page 44: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

You'll need to have a valid license for any operating systems you use in the VMs.

http://msdn.com //OS Subscription

Page 45: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Complete your session evaluation on My Ignite for your chance to win one of many daily prizes.

Page 46: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

Continue your Ignite learning pathVisit Microsoft Virtual Academy for free online training visit https://www.microsoftvirtualacademy.comVisit Channel 9 to access a wide range of Microsoft training and event recordings https://channel9.msdn.com/Head to the TechNet Eval Centre to download trials of the latest

Microsoft products http://Microsoft.com/en-us/evalcenter/

Page 47: Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.

© 2015 Microsoft Corporation. All rights reserved.Microsoft, Windows and other product names are or may be registered

trademarks and/or trademarks in the U.S. and/or other countries.MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,

AS TO THE INFORMATION IN THIS PRESENTATION.