Sunteți pe pagina 1din 233

23/03/2016

Formation
Hyper-V 2016

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

1
23/03/2016

Plan
• Présentation de votre formateur

• Présentation du plan de formation

• Objectifs de la formation

• Publique concerné

• Prérequis

• Introduction Hyper-V 2016

• Ressources utiles

Formation Hyper-v 2016 alphorm.com™©

2
23/03/2016

Présentation de votre formateur


• Seyfallah Tagrerout
• Microsoft MVP Cloud and Datacenter Management
Membre de la Communauté AOS http://aos.community/

• Sogeti du groupe Capgemini

• Migration; Design; Troubleshooting; Mise en place des infrastructures


Microsoft / VMware / Citrix et Cisco
• Formateur YNOV (école d’ingénieur Aix-En-Provence)

• Spécialité : Virtualisation

• Me joindre :
Mail : Seyfallah.t@gmail.com
• Blog : http://seyfallah-it.blogspot.fr/
• LinkedIn : https://fr.linkedin.com/in/seyfallahtagrerout

Formation Hyper-v 2016 alphorm.com™©

3
23/03/2016

Cursus Hyper-V
• Formation Hyper-V 2016 de Base

• Formation Hyper-V 2016 Avancés

Formation Hyper-v 2016 alphorm.com™©

4
23/03/2016

Plan de formation
• Chapitre 1 : Présentation de la formation

• Chapitre 2 : Introduction à la virtualisation

• Chapitre 3 : Installation & configuration d’Hyper-V 2016

• Chapitre 4 : Les machines virtuelles sous Hyper-V 2016

• Chapitre 5 : Les réseaux virtuels sous Hyper-V 2016

• Chapitre 6 : Les disques virtuels sous Hyper-V 2016

• Chapitre 7 : Sauvegarde et restauration

Formation Hyper-v 2016 alphorm.com™©

5
23/03/2016

Pourquoi cette formation?


• Monter en compétence sur les technologies Microsoft

• Apprendre à utiliser Hyper-V en production

• Préparation de certification Microsoft

• Être à jour au niveau des nouveautés qui arrivent ….

Formation Hyper-v 2016 alphorm.com™©

6
23/03/2016

Pour qui ?
• Débutant en virtualisation

• Confirmé / Expert

• Toute personne qui souhaite découvrir la solution d’Hyper-V 2016 de


Microsoft
• Étudiants école d’ingénieur / Fac / BTS & DUT informatique

Formation Hyper-v 2016 alphorm.com™©

7
23/03/2016

Prérequis
• Connaissances TCP/IP

• Connaissances Windows Server 2008 / 2012 / R2

• Base sur les principes de virtualisation

• Base sur le stockage

Formation Hyper-v 2016 alphorm.com™©

8
23/03/2016

Introduction Hyper-V 2016


• Plateforme de virtualisation depuis 2008

• Rôle dans Windows Server

• Création de machines virtuelles Windows et Linux

• Création de Cloud Privé / Hybride

• Gestion centralisée

• Apports PRA & PCA

• Augmenter la productivité de l’entreprise

Formation Hyper-v 2016 alphorm.com™©

9
23/03/2016

Ressources utiles
• Les blogs:
http://seyfallah-it.blogspot.fr/
http://www.guvirt.org/
http://danstoncloud.com/becloud/
http://blogs.technet.com/b/virtualization/

• Livres:

Formation Hyper-v 2016 alphorm.com™©

10
23/03/2016

Ce qu’on a couvert

Are you ready !!

Formation Hyper-v 2016 alphorm.com™©

11
23/03/2016

Présentation de la formation

Présentation du Lab

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

12
23/03/2016

Plan
• Introduction

• Présentation du bac à sable

• Ressources utiles

• Démo

Formation Hyper-v 2016 alphorm.com™©

13
23/03/2016

Présentation du bac à sable

Formation Hyper-v 2016 alphorm.com™©

14
23/03/2016

Présentation du bac à sable

Formation Hyper-v 2016 alphorm.com™©

15
23/03/2016

Présentation du bac à sable


• Le réseau du LAB : 192.168.1.0 /24

• Un serveur Hyper-V : (Nested Virtualization)


Un AD : 192.168.1.1 /24 Nom de domaine: Alphorm.fr
VH01 – 192.168.1.2 /24
SRV-SMB01 – 192.168.1.3 /24
Un client Windows 8.1 ou Windows 10 : 192.168.1.100

Formation Hyper-v 2016 alphorm.com™©

16
23/03/2016

Ressources utiles
• How TO

http://seyfallah-it.blogspot.fr/2015/01/nested-virtualization-monter-un-lab.html

Formation Hyper-v 2016 alphorm.com™©

17
23/03/2016

Ce qu’on a couvert
• Lab sur le quel nous allons faire la formation

• Le principe du Nested Virtualization

Formation Hyper-v 2016 alphorm.com™©

18
23/03/2016

Introduction à la virtualisation

Présentation
de la virtualisation

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

19
23/03/2016

Plan
• Introduction

• La virtualisation et son origine

• Avantages et inconvénients de la virtualisation

• Types d'hyperviseurs

• Différents briques de virtualisation

• Microsoft et la virtualisation

Formation Hyper-v 2016 alphorm.com™©

20
23/03/2016

Introduction
• Omniprésence sur le marché

• Concept compliqué à comprendre

• Technologies qui avancent très vite

• Nouvelle forme (domaines) de virtualisation

Formation Hyper-v 2016 alphorm.com™©

21
23/03/2016

La virtualisation et son origine


• Concept créé par IBM dans les années 60

• Partitionnement de la gamme Mainframes

• But : Optimiser l'utilisation afin d'éviter la sous-consommation

• 1998 ==> Naissance de VMware

• 1999 VMware WorkStation 1.0

Formation Hyper-v 2016 alphorm.com™©

22
23/03/2016

La virtualisation et son origine


• Microsoft fait son entrée sur la partie Hyperviseur en 2008 avec Hyper-
V
• 2008 64 Bits

• Amélioration avec 2008 R2

• Un gap énorme avec la version 3 d’Hyper-V sous Windows Server 2012


et 2012 R2
• Et maintenant 2016 …

Formation Hyper-v 2016 alphorm.com™©

23
23/03/2016

Avantages la virtualisation
• Consolidation des serveurs: (équation un serveur = plusieurs applications)

Formation Hyper-v 2016 alphorm.com™©

24
23/03/2016

Avantages de la virtualisation
• Gain d’énergie « Si le cloud public était un pays, sa consommation
électrique le mettrait au cinquième rang mondial »

Formation Hyper-v 2016 alphorm.com™©

25
23/03/2016

Avantages de la virtualisation
• Réduction du TCO :

Formation Hyper-v 2016 alphorm.com™©

26
23/03/2016

Avantages de la virtualisation
Consolidation Flexibilité Consommation

Infra
Productivité Réduction
optimisée
du RTO

Réduction Facilité Administration


du TCO d’administration centralisée

Formation Hyper-v 2016 alphorm.com™©

27
23/03/2016

Inconvénients de la virtualisation
• Notion de coût pour les décideurs de l’IT

• Réduction de performances dans certains cas particuliers

• La virtualisation en elle-même

• Complexité de changement

Formation Hyper-v 2016 alphorm.com™©

28
23/03/2016

Types d'hyperviseurs

Formation Hyper-v 2016 alphorm.com™©

29
23/03/2016

Différents briques de virtualisation


• SDDC (SDN / SDS /….)

Systèmes Applications

SI

Stockage Réseaux

Formation Hyper-v 2016 alphorm.com™©

30
23/03/2016

Différentes briques de virtualisation


Part dans les SI en 2015 - Virtualisation

Applications 20

Réseaux 5

Stockage 10

Poste de travail 25

Serveurs 40

0 5 10 15 20 25 30 35 40 45

Formation Hyper-v 2016 alphorm.com™©

31
23/03/2016

Microsoft et la virtualisation
• Serveur :
Virtual Server
Hyper-v

• Client (poste de travail):


Virtual PC
Microsoft Entreprise Desktop Virtualization (MED-V)

• Application:
App-V

Formation Hyper-v 2016 alphorm.com™©

32
23/03/2016

Ce qu’on a couvert
• La virtualisation

• L’origine de la virtualisation

• Avantages et inconvénients

• Types d’hyperviseurs

• Types de virtualisation

• Différents briques des SI touchés par la virtualisation

• Microsoft et la virtualisation

Formation Hyper-v 2016 alphorm.com™©

33
23/03/2016

Introduction à la virtualisation

Présentation de MAP

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

34
23/03/2016

Plan
• Introduction

• Découvert de MAP

• Démo

Formation Hyper-v 2016 alphorm.com™©

35
23/03/2016

Introduction
• Etude de l’existant

• Virtualiser oui, mais quoi ? Et comment ?

• Comment faire le design de l’infrastructure de virtualisation

Formation Hyper-v 2016 alphorm.com™©

36
23/03/2016

Découverte MAP
• MAP : Microsoft Assessment and Planning Toolkit
Version actuelle: 9.3 | Date de sortie : 13/10/2015
Link: http://www.microsoft.com/en-in/download/details.aspx?id=7826

Formation Hyper-v 2016 alphorm.com™©

37
23/03/2016

Découverte MAP
• Collection de données du parc

• Aide à la conception d’une architecture de virtualisation

• Analyse de données

• Gestion des Rapports

• Inventaire matériel du parc


Collections des informations sur le matériel du parc
Collections des informations logicielles du parc

Formation Hyper-v 2016 alphorm.com™©

38
23/03/2016

Démo

Formation Hyper-v 2016 alphorm.com™©

39
23/03/2016

Ce qu’on a couvert
• MAP

Formation Hyper-v 2016 alphorm.com™©

40
23/03/2016

Installation et Configuration d’Hyper-V

Présentation
d’Hyper-V

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

41
23/03/2016

Plan
• Introduction

• Le rôle Hyper-V

• Versions

• Prérequis matériels

• Mode d’installation

• Gestion d’Hyper-V

Formation Hyper-v 2016 alphorm.com™©

42
23/03/2016

Introduction
• Marché de virtualisation

• Acteurs sur le marché (Vmware et Citrix)

• Hyper-V naissance en 2008

Formation Hyper-v 2016 alphorm.com™©

43
23/03/2016

Le rôle Hyper-V
• Hyper-V c’est quoi ?
• Hyperviseur qui permet de crée des environnement virtuels (Microsoft et
Linux)
• Hyperviseur de Type 1 ==>

Formation Hyper-v 2016 alphorm.com™©

44
23/03/2016

Le rôle Hyper-V
• Rôle dans Windows Server
• Get-WindowsFeature

Formation Hyper-v 2016 alphorm.com™©

45
23/03/2016

Versions
• Les versions d’Hyper-V:

HYPER-V 2016
HYPER-V V3
(2012 et
2012 R2
HYPER-V V2
(2008 R2)

HYPER-V V1
(2008)

Formation Hyper-v 2016 alphorm.com™©

46
23/03/2016

Prérequis matériels
• Les prérequis d’HYPER-V 2016:
CPU 64 Bits
• Gestion de la virtualisation matériel (AMD-V / Intel-VT)
CPU qui gère la technologie SLAT
• Vérification https://technet.microsoft.com/en-us/sysinternals/cc835722
Au moins 4 Giga de RAM
Au moins 32 Giga d’espace disque sur le C:

Formation Hyper-v 2016 alphorm.com™©

47
23/03/2016

Mode d’installation
• Deux modes d’installation du rôle Hyper-V
Via le Server Manager
En PowerShell

• Type d’installation d’Hyper-V


GUI (Windows Server 2016 complet)
Core (Windows Server 2016 version core)
Nano Server
Hyper-V container

Formation Hyper-v 2016 alphorm.com™©

48
23/03/2016

Gestion d’Hyper-V
• Administration et gestion d’hyper-V :
Hyper-V Manager directement sur le serveur hôte
Hyper-V manager depuis un autre serveur
En PowerShell
En PowerShell Direct
Depuis un poste client avec les outils (RSAT)
• RSAT Windows 10 (Preview) :
- https://www.microsoft.com/en-us/download/details.aspx?id=45520&WT.mc_id=rss_alldownloads_all

Formation Hyper-v 2016 alphorm.com™©

49
23/03/2016

Ce qu’on a couvert
• Présentation d’Hyper-V

• Les différents versions d’Hyper-V

• Ses prérequis matériel

• Son mode d’installation

• Sa gestion

Formation Hyper-v 2016 alphorm.com™©

50
23/03/2016

Installation et Configuration d’Hyper-V


Présentation des nouveautés
d’Hyper-V 2016

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

51
23/03/2016

Plan
• Introduction Hyper-V 2016

• Machines Virtuelles

• Windows Container et Hyper-V Container

• Nested Virtualization

• Nouveautés Gestion et administration des VMs

• Networking Features

• Rolling Hyper-V cluster upgrade

• OS supportés

• Surprise …. ☺

Formation Hyper-v 2016 alphorm.com™©

52
23/03/2016

Introduction
• Hyper-V sous Windows Server Technical Preview

• Hyper-V sous Windows Server Technical Preview 2

• Hyper-V sous Windows Server Technical Preview 3

• Hyper-V sous Windows Server Technical Previw 4 (version actuelle)

• Téléchargement https://www.microsoft.com/en-
us/evalcenter/evaluate-windows-server-technical-preview

Formation Hyper-v 2016 alphorm.com™©

53
23/03/2016

Machine Virtuelles
• Nouvelle version de VM 7.0

• Nouveau format de fichier de configuration des VMs :


.VMCX
VMRS

• Linux Secure Boot Virtual Machines & vTPM

• Service d’intégration via Windows update

• Production checkpoints

• Discrete Device assignment

• Ajout / Remove de mémoire et carte réseaux à chaud

• Shielded Virtual Machines


Formation Hyper-v 2016 alphorm.com™©

54
23/03/2016

Windows container et Hyper-V container


• Vient des technologies de virtualisation d'applications sous Linux

• Partenariat avec Docker afin que Microsoft utilise Docker dans le


prochain Windows Server 2016
Moteur et client docker

• Les containers offrent :


Un nouvel format d'isolation / Agilité / rapidité de déploiement
Isolation entre l'applicative et le systèmes d'exploitation

Formation Hyper-v 2016 alphorm.com™©

55
23/03/2016

Windows container et Hyper-V container


• Serveur Windows classique:

Formation Hyper-v 2016 alphorm.com™©

56
23/03/2016

Windows container et Hyper-V container


• Serveur Windows avec Hyper-V :

Formation Hyper-v 2016 alphorm.com™©

57
23/03/2016

Windows container et Hyper-V container


• Windows Container:

Formation Hyper-v 2016 alphorm.com™©

58
23/03/2016

Windows container et Hyper-V container


• Hyper-V Container:

Formation Hyper-v 2016 alphorm.com™©

59
23/03/2016

Nested Virtualization
• Virtualization du même type d’OS
Win Server 2016 TP4 / Windows 10
Build 10565
Intel VT
4 GB de RAM

Formation Hyper-v 2016 alphorm.com™©

60
23/03/2016

Nouveautés Gestion et administration


Gestion d’Hyper-V en remote: (GUI)
• Utilisation d’autres crédentials pour se connecter sur un autre serveur
depuis Hyper-V manager
• On peut manager :
Hyper-V sous Windows 8 / 8.1
Hyper-V sous 2012 / R2

Formation Hyper-v 2016 alphorm.com™©

61
23/03/2016

Nouveautés Gestion et administration


Ce qu’apporte PowerShell direct:
Facilite l’administration des VMs
Pas besoin de réseau sur la VM
Pas besoin de configuration spécifique de firewall sur la VM ou l’host

Commande d’avant gout PowerShell directe:


Enter-PSSession -VMName VMName

Formation Hyper-v 2016 alphorm.com™©

62
23/03/2016

Networking Features
• Remote Direct Memory Access (RDMA) avec Switch embedded teaming
(SET)
• Virtual Machine Multi Queues VMQ

• QOS pour le SDN

• Switch virtuel de type NAT

Formation Hyper-v 2016 alphorm.com™©

63
23/03/2016

Rolling Hyper-V cluster upgrade


• Ajout d’un nœud Windows server 2016 à un cluster 2012 R2

• Appliquer des règles de QOS sur un server SOFS et assigner ces policies
à une ou plusieurs VMs

Formation Hyper-v 2016 alphorm.com™©

64
23/03/2016

Os supportés
• Windows Server 2016

• Windows Server 2012 R2

• Windows Server 2012

• Windows Server 2008 R2 (SP1) standard / Datacenter/entreprise & web


édition

• Windows Server 2008 (SP2) Standard / Datacenter/entreprise & web édition


• Windows Home Server (2011)

• Windows Small Business Server (2011) Standard & Essentials

Formation Hyper-v 2016 alphorm.com™©

65
23/03/2016

Os supportés
• Windows 10

• Windows 8 / 8.1

• Windows 7 SP 1 Entreprise / Ultimate & Pro (32 & 64 bits)


• Windows 7 Entreprise / Ultimate & Pro (32 & 64 bits)
• Windows Vista SP 2 Entreprise / Ultimate / Business

Formation Hyper-v 2016 alphorm.com™©

66
23/03/2016

Os supportés
• Suse

• Free BSD

• Ubuntu

• Debian

• Oracle Linux

• CentOS Red Hat entreprise Linux 5. / 6 /7 series

Formation Hyper-v 2016 alphorm.com™©

67
23/03/2016

Surprise

Formation Hyper-v 2016 alphorm.com™©

68
23/03/2016

Mise en œuvre des Windows Containers


• Un serveur Hyper-V sous Windows Server TP4

• https://www.microsoft.com/en-us/evalcenter/evaluate-windows-
server-technical-preview
• Installez la feature « Containers »
Install-WindowsFeature Containers

• Installez le module « ContainerProvider »


Install-Package ContainerProvider

Installer une image container:


Install-ContainerImage -Name WindowsServerCore

Formation Hyper-v 2016 alphorm.com™©

69
23/03/2016

Mise en œuvre des Windows Containers


Création des Containers:
New-Container –name Contain1 –containerImageName WindowsServerCore
New-Container –name Contain2 –containerImageName WindowsServerCore
New-Container –name Contain3 –containerImageName WindowsServerCore
Vérification:
Get-Container
Get-ContainerHost
(Get-Container contain01).id

Formation Hyper-v 2016 alphorm.com™©

70
23/03/2016

Mise en œuvre des Windows Containers


Contain2

Win10
Contain3 Contain1
Vm02

Formation Hyper-v 2016 alphorm.com™©

71
23/03/2016

Ce qu’on a couvert
• Les nouveauté d’Hyper-V 2016

• Les Windows Containers / Hyper-V Containers

Formation Hyper-v 2016 alphorm.com™©

72
23/03/2016

Installation et Configuration d’Hyper-V

Prérequis et installation
d’hyper-v version complète

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

73
23/03/2016

Plan
• Introduction

• Rappel Prérequis Hyper-V 2016

• Installation de Windows Server 2016 TP3

• Installation d’Hyper-V
Installation en GUI
Installation en PowerShell

Formation Hyper-v 2016 alphorm.com™©

74
23/03/2016

Introduction
• Windows Server 2016 TP1 – TP2 TP3 – TP4

Formation Hyper-v 2016 alphorm.com™©

75
23/03/2016

Rappel prérequis Hyper-V 2016


• Les prérequis d’HYPER-V 2016:
CPU 64 Bits
• Gestion de la virtualisation matériel (AMD-V / Intel-VT)
CPU qui gère la technologie SLAT
• Vérification https://technet.microsoft.com/en-us/sysinternals/cc835722
Au moins 4 Giga de RAM (Vaut mieux avoir 8 ou + quand même ☺ )
Au moins 32 Giga d’espace disque sur le C:
• Pas de stockage centralisé avoir un disque D: autre que le C: pour stocker les VMs
• Stockage centralisé Partage SMB / stockage iSCSI / San Fiber Channel

Formation Hyper-v 2016 alphorm.com™©

76
23/03/2016

Installation de Windows Server 2016 TP4


• Installation Graphique de Windows Server 2016 TP4

Formation Hyper-v 2016 alphorm.com™©

77
23/03/2016

Rappel prérequis Hyper-V 2016


• Attention : si vous choisissez le mode « Windows Server 2016 Technical Preview 4 » c’est-à-dire le mode « Core » il ne sera plus
possible de passer au mode « serveur complet avec l’interface graphique » comme on pouvait le faire avant.

Formation Hyper-v 2016 alphorm.com™©

78
23/03/2016

Installation d’Hyper-V 2016


• En Interface Graphique :
Server Manager – Manage – Add role and Features – Choisir le rôle Hyper-V

Formation Hyper-v 2016 alphorm.com™©

79
23/03/2016

Installation d’Hyper-V 2016


• En PowerShell:

Install-WindowsFeature -name Hyper-V

Formation Hyper-v 2016 alphorm.com™©

80
23/03/2016

Ce qu’on a couvert
• Rappel des prérequis pour l’installation d’Hyper-V 2016

• L’installation de Windows Server 2016 TP4

• L’installation d’hyper-V 2016


En interface graphique
En PowerShell

Formation Hyper-v 2016 alphorm.com™©

81
23/03/2016

Installation et Configuration d’Hyper-V

Installation d’Hyper-V
Mode « Core »

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

82
23/03/2016

Plan
• Introduction Hyper-V mode core

• Installation de Windows Server 2016 Technical Preview 4

• Installation d’Hyper-V

Formation Hyper-v 2016 alphorm.com™©

83
23/03/2016

Introduction Server Core


• Réduction de mises à jours

• Une surface d’attaque réduite

• Moins de consommation de ressources (CPU / RAM)

• Serveur plus légers

Formation Hyper-v 2016 alphorm.com™©

84
23/03/2016

Introduction Server Core


• Vue d’ensemble depuis 2008 jusqu’à 2016

Formation Hyper-v 2016 alphorm.com™©

85
23/03/2016

Installation de Windows Server 2016 Technical Preview 3


Attention : Une fois la version Core choisie, on pourra plus basculer vers
la version complète (nouveauté dans Win Server 2016)

Formation Hyper-v 2016 alphorm.com™©

86
23/03/2016

Installation d’Hyper-V
• Etapes de configuration :
Mettre le mots de passe Administrator
Nommer le serveur « VH02 »
Configuration TCP/IP
Pare-Feu
Ajout du rôle Hyper-V en Powershell

Formation Hyper-v 2016 alphorm.com™©

87
23/03/2016

Installation d’Hyper-V
Ajout du rôle Hyper-V en PowerShell:

Formation Hyper-v 2016 alphorm.com™©

88
23/03/2016

Installation d’Hyper-V
Vérification avec Get-WindowsFeature

Possibilité de supprimer le rôle Hyper-V: Remove-WindowsFeature Hyper-V –restart

Formation Hyper-v 2016 alphorm.com™©

89
23/03/2016

Ce qu’on a couvert
• Différentes versions d’installation Windows Server

• Server Core 2016 et ses avantages

• Installation de Windows Server 2016 en mode core

• Installation d’Hyper-V en mode core

Formation Hyper-v 2016 alphorm.com™©

90
23/03/2016

Installation et Configuration d’Hyper-V

Nano Server

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

91
23/03/2016

Plan
• Introduction Nano Server

• Cas d’utilisation Nano Server

• Hyper-V et Nano Server

• Création d’un VHDx Nano Server

• Installation d’Hyper-V sur Nano Server

• Installation d’active Directory « Rapide »

• Administration du Nano server via Powershell Direct

• Démo

Formation Hyper-v 2016 alphorm.com™©

92
23/03/2016

Introduction Nano Server

• Brique plus base que le server Core


(environ 400 MB)
• Plus léger, conçu pour le cloud et
pour le mode container
• Sans interface graphique

• Administrable via Powershell

Formation Hyper-v 2016 alphorm.com™©

93
23/03/2016

Introduction Nano Server


• Ce que offrent les Nano Server:
Moins de patchs critiques pour le système
Reboot plus rapide
Taille du disque (VHD) très réduite comparée au serveur classique
et au serveur core

Formation Hyper-v 2016 alphorm.com™©

94
23/03/2016

Introduction Nano Server


• Réduction en chiffre par rapport aux autres versions de Windows server:
80 % de moins de Reboot
93 % de moins la taille du VHD
92 % de moins des patchs critiques pour le système

Formation Hyper-v 2016 alphorm.com™©

95
23/03/2016

Cas d’utilisation Nano Server


• Pourquoi Nano Server :
Serveur d’applications pour le cloud
Hyperviseur (Hyper-V)
Fail Over Clustering
Storage pour le cluster SOFS (Scale-Out File Server)
DNS
IIS

Formation Hyper-v 2016 alphorm.com™©

96
23/03/2016

Hyper-V et Nano Server


• Hyper-V avec Nano Server, proche de la version classique de Windows
Server sauf :
Pas de possibilité de faire du RemotFx
La gestion se fera en Remote (à distance), le serveur de Gestion devra avoir la
même version Windows server que les nœuds Nano server en cluster

• Au niveau des Features nous aurons :


Création de VM de Génération (1 & 2)
La création de Switch Virtuel
La gestion des VMs de manière classique

• NB: Hyper-V réplication n’est pas supporté dans cette version


Formation Hyper-v 2016 alphorm.com™©

97
23/03/2016

Création d’un VHDx Nano Server


• Prérequis : Avoir l'ISO Windows Server TP4

Disponible ici: https://www.microsoft.com/en-us/evalcenter/evaluate-windows-


server-technical-preview
• Créer le répertoires suivant:

C:\NanoServer
• Montez l’ISO de Windows Server 2016 TP4

Allez dans votre ISO « monté » et allez dans le dossier NanoServer et copiez
les deux scripts suivants dans C:\NanoServer

Formation Hyper-v 2016 alphorm.com™©

98
23/03/2016

Création d’un VHDx Nano Server


• Ouvrez une console PowerShell en « Tant qu’administrateur »
Importez le module « NanoServerImageGenerator »
Import-Module .\NanoServerImageGenerator.psm1
• Création du VHDx NanoServer:
C:\NanoServer> New-NanoServerImage -MediaPath E: -BasePath .\base -TargetPath .\Nano1\Nano.vhdx
-ComputerName Nano01
-GuestDrivers
Attention:
VHD: Machine virtuelle de génération 1
VHDx: Machine virtuelle de génération 2

Formation Hyper-v 2016 alphorm.com™©

99
23/03/2016

Création d’un VHDx Nano Server


• Première connexion à Nano Server:

Formation Hyper-v 2016 alphorm.com™©

100
23/03/2016

Installation d’Hyper-V sur Nano Server


• Edition d’un VHDx Nano Server:
Ajout du rôle « Hyper-V »
Ajout de paramètres TCP/IP

Formation Hyper-v 2016 alphorm.com™©

101
23/03/2016

Installation d’Hyper-V sur Nano Server


• Les dossiers Packages:

Formation Hyper-v 2016 alphorm.com™©

102
23/03/2016

Installation d’Hyper-V sur Nano Server


• Les packages au niveau de Nano Server

Role / Feature Package File


Hyper-V Microsoft-NanoServer-Compute-Package.cab

Serveur de fichier et stockage Microsoft-NanoServer-Storage-Package.cab

Fail Over Cluster Microsoft-NanoServer-FailoverCluster-Package.cab

Drivers pour la VM Nano Server


Microsoft-NanoServer-Guest-Package.cab

Driver Basique carte réseaux , contrôleur Microsoft-NanoServer-OEM-Drivers-Package.cab


stockage etc
Package container Microsoft-NanoServer-Containers-Package.cab

Reverse Pour la comptabilité des Microsoft-NanoServer-ReverseForwardrs-Package.cab


applications (Node.Js, Net Framwork, etc)

Antimalware Windows Defender Microsoft-NanoServer-Defender-Package.cab

Formation Hyper-v 2016 alphorm.com™©

103
23/03/2016

Installation d’Hyper-V sur Nano Server


• Les packages au niveau de Nano Server
Role / Feature Package File
DNS Packages Microsoft-NanoServer-DNS-Package-Package.cab

Desired State Configuration (DSC) -Packages Microsoft-NanoServer-DSC-Package-Package.cab

IIS -Packages Microsoft-NanoServer-IIS-Package-Package.cab

System Center Virtual Machine Manager -Packages Microsoft-Windows-Server-SCVMM-Package-Package.cab


agent
-Packages Microsoft-Windows-Server-SCVMM-Compute-Package-Package.cab

Data Center Bridging -Packages Microsoft-NanoServer-DCB-Package-Package.cab

Network Performance Diagnostics Service -Packages Microsoft-NanoServer-NPDS-Package-Package.cab


(NPDS)

Formation Hyper-v 2016 alphorm.com™©

104
23/03/2016

Administration du Nano server via Powershell Direct


• Création de la VM sous Hyper-V et attachement du VHDx Nano Server

• Connexion avec PowerShell Direct :


Enter-PSSession -VMName Nano4

Formation Hyper-v 2016 alphorm.com™©

105
23/03/2016

Administration du Nano Server via Server Manager (remote)


• Installation de l’Active directory
Création d’un groupe « Servers »

• Jonction au domaine du Nano Server

• Création d’un Groupe d’administration dans Server Manager

• Administration du Nano Server et d’Hyper-V


Ajout de rôle à distance par exemple …

Formation Hyper-v 2016 alphorm.com™©

106
23/03/2016

Démo

Formation Hyper-v 2016 alphorm.com™©

107
23/03/2016

Ce qu’on a couvert
• Les Nano Servers, leur intérêt, avantages

• La création d’un VHDx Nano Server

• La modification d’un VHDx Nano Server

• L’installation d’Active Directory de manière Rapide

• Administration de Nano Server

Formation Hyper-v 2016 alphorm.com™©

108
23/03/2016

Installation et Configuration d’Hyper-V

Hyper-V sur
Windows 10

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

109
23/03/2016

Plan
• Introduction Hyper-V client Windows 10

• Différence entre Hyper-V et Hyper-V client

• Versions d’OS Windows 10

• Vérification des prérequis hardware

• Administration

• Démo

Formation Hyper-v 2016 alphorm.com™©

110
23/03/2016

Introduction Hyper-V client Windows 10


• Scénarios : Test d’OS , test de mise à jours , Lab, POC etc …

• Prérequis :
Os 64 bits
CPU 64 bits (SLAT) / au moins 4 GB de RAM

• Hyper-V Client tourne sur les Os suivants:


Windows 8
Windows 8.1
Windows 10

• Hyper-V client possède en partie les nouveautés d’Hyper-V 2016(Server)

• Os supportés : https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/about/supported_guest_os

https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/about/supported_guest_os

Formation Hyper-v 2016 alphorm.com™©

111
23/03/2016

Différence entre Hyper-V et Hyper-V client


• La gestion de la Mémoire

• Hyper-V client ne prend pas en compte ses fonctionnalités :


• Hyper-V Replica
• SR-IOV Networking
• Shared.VHDX
• Live Migration d’un PC A vers un PC B
• Remote FX pour la virtualisation des (GPUs
• Virtual Fiber Channel

Formation Hyper-v 2016 alphorm.com™©

112
23/03/2016

Version d’OS Windows 10


• On peut installer Hyper-V sur les versions suivantes :
Windows 10 Pro
Windows 10 Entreprise
Windows 10 Education

• Pas pris en compte sur les versions suivantes :


Windows 10 Mobile
Windows 10 Mobile Entreprise
Windows 10 Home

Formation Hyper-v 2016 alphorm.com™©

113
23/03/2016

Vérification des prérequis hardware


Vérification hardware du PC :
systeminfo.exe

Formation Hyper-v 2016 alphorm.com™©

114
23/03/2016

Administration
• Administration d’Hyper-v clients :
Interface Graphique avec Hyper-v manager
PowerShell
Remote management

• Depuis un Hyper-V sur Windows 10 on peut manager :


Une autre machine avec Hyper-V sur Windows 10 / 8 / 8.1
Hyper-V sous 2012 ou 2012 R2 (Core, Datacenter, Hyper-V Server)

Formation Hyper-v 2016 alphorm.com™©

115
23/03/2016

Démo

Formation Hyper-v 2016 alphorm.com™©

116
23/03/2016

Ce qu’on a couvert
• Hyper-V sur la partie client Windows 10

• Différence entre Hyper-V client et Hyper-V Server

• Version de Windows 10 qui permettent l’installation d’Hyper-V

• Les prérequis

• L’aspect administration

• Et une petite démo

Formation Hyper-v 2016 alphorm.com™©

117
23/03/2016

Installation et Configuration d’Hyper-V

Gestion
d’Hyper-V 2016

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

118
23/03/2016

Plan
• Introduction

• Hyper-V Manager

• Administration en remote

Formation Hyper-v 2016 alphorm.com™©

119
23/03/2016

Introduction
Gestion d’Hyper-V :
En GUI via Hyper-V manager
En Gui remote
• RSAT for Windows 10 : https://www.microsoft.com/en-
us/download/details.aspx?id=45520

En PowerShell

Formation Hyper-v 2016 alphorm.com™©

120
23/03/2016

Démo

Formation Hyper-v 2016 alphorm.com™©

121
23/03/2016

Ce qu’on a couvert
• La gestion d’Hyper-V 2016 sous différentes façons

Formation Hyper-v 2016 alphorm.com™©

122
23/03/2016

Installation et Configuration d’Hyper-V

Configuration de base
d’Hyper-V 2016

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

123
23/03/2016

Plan
• Introduction

• Configuration de base d’Hyper-V

• Démo

Formation Hyper-v 2016 alphorm.com™©

124
23/03/2016

Introduction
• Configuration de base Hyper-V « Server »:
• Stockage
• Physical GPUs
• Numa Spanning
• Live Migration / Storage Migration
• Réplication

• Configuration de base Hyper-V « User »

Formation Hyper-v 2016 alphorm.com™©

125
23/03/2016

Démo

Formation Hyper-v 2016 alphorm.com™©

126
23/03/2016

Ce qu’on a couvert
• Le paramétrage de base d’Hyper-V

Formation Hyper-v 2016 alphorm.com™©

127
23/03/2016

Les machines virtuelles


Présentation
d’une machine virtuelle

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

128
23/03/2016

Plan
• Introduction

• Vue d’ensemble d’une VM sous Hyper-V 2016

• Types de VMs sous Hyper-V 2016

• Différentes Possibilités Création des VMs

• Présentation des paramètres d’une VM

• Fichier et emplacement de VM

Formation Hyper-v 2016 alphorm.com™©

129
23/03/2016

Introduction
• Machine virtuelle est une entité logique qui est lancée au sein d’hyperviseur, elle dispose
de ses propres ressources matériels qui sont alloués par l’Hyperviseur en question.

Formation Hyper-v 2016 alphorm.com™©

130
23/03/2016

Vue d’ensemble d’une VM sous Hyper-V 2016

Formation Hyper-v 2016 alphorm.com™©

131
23/03/2016

Vue d’ensemble d’une VM sous Hyper-V 2016


• Autre façon de représenter des VMs dans vos schémas de design ☺

Formation Hyper-v 2016 alphorm.com™©

132
23/03/2016

Vue d’ensemble d’une VM sous Hyper-V 2016


Et voici la visualisation des VM sur un serveur Hyper-V, via la console « Hyper-V
Manager »:

Formation Hyper-v 2016 alphorm.com™©

133
23/03/2016

Type de VMs sous Hyper-V 2016


Deux types de VMs:
Génération 1
Génération 2
VM Génération 2 dans Hyper-V 2016:
Boot PXE
Contrôleur SCSI pour le disque de boot
Prise en charge de UEFI
Virtual TPM etc …

Formation Hyper-v 2016 alphorm.com™©

134
23/03/2016

Type de VMs sous Hyper-V 2016


GEN 1 GEN 2

Formation Hyper-v 2016 alphorm.com™©

135
23/03/2016

Type de VMs sous Hyper-V 2016


La VM de GEN 2 supporte les OS suivants:
Windows Server 2012 / R2
Windows Server 2016 TP
Windows 8 / 8.1 / Windows 10

Formation Hyper-v 2016 alphorm.com™©

136
23/03/2016

Création de VM
• Création des VMs : Juste pour information, vous avez la possibilité de créer
des VMs avec deux manières différentes, soit en PowerShell, soit en Interface
graphique.

Formation Hyper-v 2016 alphorm.com™©

137
23/03/2016

Présentation des paramètres d’une VM


Les paramètres d’une VM sous Hyper-V:

• Ajout Hardware
• Firmware
• Sécurité
• Mémoire
• Processeur
• SCSI
• Réseaux
• Management

Formation Hyper-v 2016 alphorm.com™©

138
23/03/2016

Fichier et emplacement de VM
Une VM contient :
• Un dossier pour les VHDx

• Un dossier pour les fichier de configuration de la VM en question

Formation Hyper-v 2016 alphorm.com™©

139
23/03/2016

Démo

Formation Hyper-v 2016 alphorm.com™©

140
23/03/2016

Ce qu’on a couvert
• Les VMs sur Hyper-V

• Le principe d’une VM

• Leur fichiers de configuration

• Leur paramètres

Formation Hyper-v 2016 alphorm.com™©

141
23/03/2016

Les machines virtuelles


Création des machines
virtuelles

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

142
23/03/2016

Plan
• Introduction

• Création des machines virtuelles


Simple en GUI
En PowerShell
Via un VHDx existant

• Installation d’un OS invité

Formation Hyper-v 2016 alphorm.com™©

143
23/03/2016

Introduction

Plan d’ensemble
Machine virtuelles

GEN 1 GEN 2

Paramètres des VMs

Formation Hyper-v 2016 alphorm.com™©

144
23/03/2016

Création des machines virtuelles


• Création d’une VM de manière classique via Hyper- V
Manager :

Formation Hyper-v 2016 alphorm.com™©

145
23/03/2016

Création des machines virtuelles


• Création d’une VM de manière classique via PowerShell

Formation Hyper-v 2016 alphorm.com™©

146
23/03/2016

Création des machines virtuelles


• Création d’une VM à partir d’un VHDx existant:
On va chercher un disque virtuel déjà existant
Lors de la création, on pointe sur ce dernier:

Formation Hyper-v 2016 alphorm.com™©

147
23/03/2016

Installation d’un OS invité


• Installation d’une VM sous Windows 10
Copier l’ISO de Windows 10 dans C:\Temp
Lancez l’installation de Windows 10

Formation Hyper-v 2016 alphorm.com™©

148
23/03/2016

Démo

Formation Hyper-v 2016 alphorm.com™©

149
23/03/2016

Ce qu’on a couvert
• Les VMs et leur plan d’ensemble

• La création de VM sous toutes les formes


GUI
Powershell

Formation Hyper-v 2016 alphorm.com™©

150
23/03/2016

Les machines virtuelles


Opération sur les
machines virtuelles

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

151
23/03/2016

Plan
• Introduction

• Fonction de base

• Exporter une VM

• Importer une VM

• Déplacer une VM

Formation Hyper-v 2016 alphorm.com™©

152
23/03/2016

Introduction
Hyper-V dans notre quotidien :
• Opérations de gestion & d’administration

• Opérations au quotidien par les IT :


Création
Suppression
Déplacement / Export / Import

Formation Hyper-v 2016 alphorm.com™©

153
23/03/2016

Fonction de base
• Les fonctions de base sur une VM après un clic droit:

Formation Hyper-v 2016 alphorm.com™©

154
23/03/2016

Exporter une VM
• L’export d’une VM se fait de la manière suivante :

Formation Hyper-v 2016 alphorm.com™©

155
23/03/2016

Importer une VM
• L’import d’une VM se fait de la manière suivante :

Formation Hyper-v 2016 alphorm.com™©

156
23/03/2016

Migration d’une VM
• Migration de VM :
Migration d’une VM d’un Hyper-V A vers un Hyper-V B non dans cette
formation
Migration d’une VM au sein d’un même hôte oui dans cette formation ☺
• Migration du dossier complet de la VM
• Migration de façon granulaire (fichiers et disques virtuels de la VM)
• Migration uniquement du disque virtuel de la machine virtuelle

Formation Hyper-v 2016 alphorm.com™©

157
23/03/2016

Migration d’une VM
• Migration de VM et possibilités (en image) :

Formation Hyper-v 2016 alphorm.com™©

158
23/03/2016

Démo

Formation Hyper-v 2016 alphorm.com™©

159
23/03/2016

Ce qu’on a couvert
• Opérations de base sur une VM

• Le déplacement de VM au niveau fichiers / disques

Formation Hyper-v 2016 alphorm.com™©

160
23/03/2016

Les machines virtuelles


Les Snapshots

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

161
23/03/2016

Plan
• Introduction

• Fonctionnement

• Snapshot dans Hyper-V 2016

• Démo ☺

Formation Hyper-v 2016 alphorm.com™©

162
23/03/2016

Introduction
• Un Snapshot, est un état capturé à « l’instant T » d’une VM, ce qui
permet de revenir à cet instant T capturé plus tard.
• Pourquoi faire ? : (exemple simple)
Je fais une mise à jour sur un serveur et je ne suis pas sûr du résultat
(compatibilité, et effets de bord, etc ) donc je fais un Snapshot à un instant T
où ma machine virtuelle est stable Je fais la mise à jour, et si ça se passe
mal, je reviens à mon état antérieur qui était stable.

• Dans quel environnement peut-on l’appliquer ?


Environnement de test / intégration
Environnement de LAB
Pas en PRODUCTION
Formation Hyper-v 2016 alphorm.com™©

163
23/03/2016

Introduction
• Dans un Snapshot on retrouve :
Une copie des données de la VM dans la RAM
Le fichier AVHD / AVHDx (un disque de différentiation)
La configuration de la VM

Formation Hyper-v 2016 alphorm.com™©

164
23/03/2016

Fonctionnement
• Ce qui se passe lors d’une création de Snapshot :

Formation Hyper-v 2016 alphorm.com™©

165
23/03/2016

Snapshot dans Hyper-V 2016


• Snapshot Standard

• Snapshot Production

Formation Hyper-v 2016 alphorm.com™©

166
23/03/2016

Démo
• Création de Snapshot standard
Voir ce qui se passe au niveau de la VM
ajout d’un périphérique

• Application de Snapshot
Vérification du retour en arrière à un instant T

• Suppression de Snapshot

Formation Hyper-v 2016 alphorm.com™©

167
23/03/2016

Démo

Formation Hyper-v 2016 alphorm.com™©

168
23/03/2016

Ce qu’on a couvert
• Les Snapshots sous Hyper-V 2016

• Leur fonctionnement

• Et les Snapshots Standard et Production

Formation Hyper-v 2016 alphorm.com™©

169
23/03/2016

Les machines virtuelles


Déployer une VM sur un
stockage réseau SMB 3

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

170
23/03/2016

Plan
• Introduction

• Hyper-V Over SMB 3

• Installation & configuration du serveur de stockage SRVSMB01

• Création du partage SMB « Application »

Formation Hyper-v 2016 alphorm.com™©

171
23/03/2016

Introduction
• Stockage en local

• Stockage en mode Bloc via SAN (FC, iSCSI)

• Stockage mode fichier Hyper-V Over SMB3

Formation Hyper-v 2016 alphorm.com™©

172
23/03/2016

Hyper-V Over SMB 3


• Plusieurs types d’architectures possibles :
• Architecture Hyper-V standalone
• Hyper-V standalone qui pointe sur un cluster SOFS
• All Clustered

Formation Hyper-v 2016 alphorm.com™©

173
23/03/2016

Hyper-V Over SMB


• Architecture Hyper-V standalone :

Formation Hyper-v 2016 alphorm.com™©

174
23/03/2016

Hyper-V Over SMB


• Hyper-V standalone qui pointe sur un cluster SOFS :

Formation Hyper-v 2016 alphorm.com™©

175
23/03/2016

Hyper-V Over SMB


• All Clustered :

Formation Hyper-v 2016 alphorm.com™©

176
23/03/2016

Installation & configuration du serveur de stockage SRVSMB01


• Installation de Windows Server 2016 SMB3 (si ce n’est pas déjà fait)

• Nommage du serveur « SRVSMB01 »

• Installation du serveur de fichier

• Création du partage en « Démo » ☺

Formation Hyper-v 2016 alphorm.com™©

177
23/03/2016

Démo

Formation Hyper-v 2016 alphorm.com™©

178
23/03/2016

Ce qu’on a couvert
• Le Stockage avec Hyper-V

• Hyper-V Over SMB

Formation Hyper-v 2016 alphorm.com™©

179
23/03/2016

Les Réseaux Virtuels


Comprendre
les réseaux virtuels

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

180
23/03/2016

Plan
• Introduction

• Réseau virtuel « Privé »

• Réseau virtuel « Interne »

• Réseau virtuel « Externe »

• Réseaux virtuel « NAT »

Formation Hyper-v 2016 alphorm.com™©

181
23/03/2016

Introduction
• Les réseaux virtuels dans Hyper-V permettent la connexion entre les
entités virtuelles (machine virtuelle) ainsi que l’environnement extérieur,
comme le serveur DNS, l’AD, connexion sur internet etc.
• Plusieurs types de Switchs virtuels :
Privé
Interne
Externe
NAT

Formation Hyper-v 2016 alphorm.com™©

182
23/03/2016

Réseau virtuel Privé


• Un Switch virtuel de type « Privé » peut faire communiquer uniquement
les VMs qui sont hébergées sur le même hôte de virtualisation.(il n’est
pas lié à la carte réseau physique)
• Cas d'utilisation:
Séparation des flux réseaux
entre les VMs et l’Hyperviseur
Test / LAB

Formation Hyper-v 2016 alphorm.com™©

183
23/03/2016

Réseau virtuel Interne


• Un Switch virtuel de type « Interne » Permet de faire communiquer les
VMs au sein d’un même hôte entre elles, de plus, ces VMs pourront
également communiquer avec l’hyperviseur. (il n’est pas non plus lié à
la carte réseau physique)
• Cas d'utilisation:
Test / LAB

Formation Hyper-v 2016 alphorm.com™©

184
23/03/2016

Réseau virtuel Externe


• Un switch virtuel de type « Externe » permet au VMs de communiquer
avec des éléments externe et l’hyperviseur, il permet également aux
VMs de communiquer entre elles. (Ce switch est lié à la carte physique
de l’hyperviseur)
• Cas d’utilisation:
Production

Formation Hyper-v 2016 alphorm.com™©

185
23/03/2016

Réseau virtuel Externe


• Un switch virtuel de type « NAT » pour les Windows Containers mais
aussi pour les machine virtuelles
• Il permet aux VMs d’avoir un adressage propre « interne »

• Utilise le NAT pour se connecter à l’éxterieur

• Création et configuration uniquement en PowerShell

• Cas d’utilisation:
LAB
Windows Containers

Formation Hyper-v 2016 alphorm.com™©

186
23/03/2016

Réseau virtuel Externe


• Création d’un Virtual Switch de type « NAT »:

New-Vmswitch –SwitchName SWNAT –SwitchType NAT –NatSubnet


192.168.4.0/24

Formation Hyper-v 2016 alphorm.com™©

187
23/03/2016

Démo

Formation Hyper-v 2016 alphorm.com™©

188
23/03/2016

Ce qu’on a couvert
• Les réseaux virtuels sous Hyper-V 2016
Privé
Interne
Externe
NAT

Formation Hyper-v 2016 alphorm.com™©

189
23/03/2016

Les Réseaux Virtuels


Switch Embdded
Teaming

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

190
23/03/2016

Plan
• Introduction

• Les services et protocoles gérés par les Switch SET

• Les services et protocoles qui ne sont pas gérés par les Switch SET

• Mode loadBalancing & administration

• La création & administration de Switch SET

Formation Hyper-v 2016 alphorm.com™©

191
23/03/2016

Introduction
• Une alternative par rapport au Nic Teaming classique

• Pour Hyper-V

• Stack SDN Win Server 2016

• Regroupement jusqu’à 8 cartes réseaux

• Pas de SET dans les VMs :

Alternative NIC Teaming VM

Formation Hyper-v 2016 alphorm.com™©

192
23/03/2016

Les services et protocoles gérés


• Compatible avec:

• DCB « DataCenterBridging »
• NV-GRE | VxLAN
• SDN QOS
• RDMA
• VMQ
• vRSS
• Set Live Migration « Windows Server 2016 TP4 »

Formation Hyper-v 2016 alphorm.com™©

193
23/03/2016

Les services et protocoles non gérés


• Ce qui prend pas en compte :

• 802.1X authentication
• IPSEC(TO)
• RSS
• SR/IOV
• VM QOS

Formation Hyper-v 2016 alphorm.com™©

194
23/03/2016

Mode loadBalancing & Administration


• Dans le loadBalancing mode vous avez :
Dynamic
Hyper-V Port

• Administration des Team Set :


SCVMM
Powershell

Formation Hyper-v 2016 alphorm.com™©

195
23/03/2016

Création de Switch SET


• Création d’un Switch SET TEAM :
New-VMSwitch -Name TEAMSET -NetAdapterName "NIC 1","NIC 2" -
EnableEmbeddedTeaming $true

• Changer le mode « en dynamic »:


Set-VMSwitch -Name TEAMSET -VMSwitchLoadBalancingAlgorithm Dynamic

• Suppression d’un SET TEAM:


Remove-VMSwitch " TEAMSET "

Formation Hyper-v 2016 alphorm.com™©

196
23/03/2016

Création de Switch SET


• Création d’un Switch SET TEAM: (exemple)

Formation Hyper-v 2016 alphorm.com™©

197
23/03/2016

Démo

Formation Hyper-v 2016 alphorm.com™©

198
23/03/2016

Ce qu’on a couvert
• Les Switch SET

Formation Hyper-v 2016 alphorm.com™©

199
23/03/2016

Les Réseaux Virtuels


Le Switch virtuel NAT

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

200
23/03/2016

Plan
• Rappel type de Switch Hyper-V 2016

• Présentation du Switch virtuel de type « NAT »

Formation Hyper-v 2016 alphorm.com™©

201
23/03/2016

Introduction
• Plusieurs types de Switchs virtuels :
Privé
Interne
Externe
NAT

Formation Hyper-v 2016 alphorm.com™©

202
23/03/2016

Réseau virtuel Externe


• Un switch virtuel de type « NAT » pour les Windows Containers mais
aussi pour les machine virtuelles
• Il permet aux VMs d’avoir un adressage propre « interne »

• Utilise le NAT pour se connecter à l’éxterieur

• Création et configuration uniquement en PowerShell

• Cas d’utilisation:
LAB
Windows Containers

Formation Hyper-v 2016 alphorm.com™©

203
23/03/2016

Réseau virtuel Externe


• Création d’un Virtual Switch de type « NAT »

New-Vmswitch –SwitchName SWNAT –SwitchType NAT –NatSubnet


192.168.4.0/24

New-NetNat -Name VMSwitchNat -InternalIPInterfaceAddressPrefix


"192.168.4.0/24"

Formation Hyper-v 2016 alphorm.com™©

204
23/03/2016

Réseau virtuel Externe


• Création d’un Virtual Switch de type « NAT »

New-Vmswitch –SwitchName SWNAT –SwitchType NAT –NatSubnet


192.168.4.0/24

New-NetNat -Name VMSwitchNat -InternalIPInterfaceAddressPrefix


"192.168.4.0/24"

Formation Hyper-v 2016 alphorm.com™©

205
23/03/2016

Démo

Formation Hyper-v 2016 alphorm.com™©

206
23/03/2016

Ce qu’on a couvert
• Les réseaux virtuels sous Hyper-V 2016

• Le Switch virtuel NAT

• La mise en place de Switch virtuel de type NAT

Formation Hyper-v 2016 alphorm.com™©

207
23/03/2016

Les disques dur virtuel


Comprendre
les disques virtuels

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

208
23/03/2016

Plan
• Introduction

• Types de disques

• Types de format

• Exemple d’emplacement

Formation Hyper-v 2016 alphorm.com™©

209
23/03/2016

Introduction
• Un disque virtuel sous Hyper-V 2016 est un fichier qui correspond au
disque dur d’une machine virtuelle.
• Depuis 2012 : Format (VHDX)

Formation Hyper-v 2016 alphorm.com™©

210
23/03/2016

Type de disques
• Deux technologies :
IDE (plus dispo en VM GEN 2)
SCSI

• Trois types :
Disque Dynamique
Disque Fixe
Différentiel

Formation Hyper-v 2016 alphorm.com™©

211
23/03/2016

Type de disques
• Les disques avec les contrôleurs IDE:
VM de génération 1
Obligatoirement IDE pour le disque du boot
Peut avoir un disque secondaire en SCSI

• Exemple VM de Génération 1 :

Formation Hyper-v 2016 alphorm.com™©

212
23/03/2016

Type de format
• Plusieurs formats:
VHD
VHDx
VHD Set

Formation Hyper-v 2016 alphorm.com™©

213
23/03/2016

Type de format
VHD SET :
• VHD partagé :
Fixe
Dynamique

• Besoins :
Cluster de VM dans un Hyper-V
pour du LAB et Test

Formation Hyper-v 2016 alphorm.com™©

214
23/03/2016

Exemple d’emplacement
• Exemple d’un emplacement d’un disque dur virtuel (VHDx):

Formation Hyper-v 2016 alphorm.com™©

215
23/03/2016

Pratique
• Ce que nous allons voir:
Création de disque virtuel en interface graphique
Création de disque virtuel en PowerShell
Conversion de VHD en VHDx en graphique & PowerShell

Formation Hyper-v 2016 alphorm.com™©

216
23/03/2016

Démo

Formation Hyper-v 2016 alphorm.com™©

217
23/03/2016

Ce qu’on a couvert
• Les disques dur virtuel

• Leur types

• Leur formats

• Leur emplacement

• Et une Démo:
Création / Conversion en interface graphique et PowerShell

Formation Hyper-v 2016 alphorm.com™©

218
23/03/2016

Backup et restauration
Sauvegarde des VMs
avec Azure Backup

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

219
23/03/2016

Plan
• Présentation d’Azure Backup

• Mise en place d’Azure Backup

• Démo

Formation Hyper-v 2016 alphorm.com™©

220
23/03/2016

Présentation d’Azure Backup


• Azure backup est un moyen qui permet de sauvegarder ses données,
dans le cloud Microsoft Azure.
• Avantages ☺
Faire des économies
Pas d’infrastructure de stockage à gérer en interne
Protection de vos applications critiques
Sauvegarde optimale et sécurisée des fichiers & VMs
Lors de la sauvegarde, Microsoft utilise des mécanisme de chiffrement

Formation Hyper-v 2016 alphorm.com™©

221
23/03/2016

Présentation d’Azure Backup


• En d’autres termes Azure Backup offre :
de la flexibilité
de la Sécurité
une sauvegarde optimale
et fiabilité

Formation Hyper-v 2016 alphorm.com™©

222
23/03/2016

Présentation d’Azure Backup

Formation Hyper-v 2016 alphorm.com™©

223
23/03/2016

Mise en place d’Azure Backup


• 3 grandes étapes :
1. Configuration du coffre de sauvegarde dans Azure
2. Configuration au niveau des ressources sauvegarder (installation de l’agent
Microsoft Azure Backup sur les machines qu’on souhaite sauvegarder)
3. Faire la restauration en cas de besoin

Formation Hyper-v 2016 alphorm.com™©

224
23/03/2016

Mise en place d’Azure Backup


• Prérequis de mise en place :
Avoir un compte Azure Backup
Une machine avec des données (ca sera notre Hyper-V) avec une connexion
internet

C’est partie .. On verra toutes les étapes lors de la démo qui va suivre ! ☺

• Une fois installé et configuré on fera :


• Une sauvegarde
• Et une restauration

Formation Hyper-v 2016 alphorm.com™©

225
23/03/2016

Démo

Formation Hyper-v 2016 alphorm.com™©

226
23/03/2016

Ce qu’on a couvert
• Le fonctionnement d’Azure Backup
Introduction
Mise en place
Sauvegarde de données (VMs)
Restauration de données (VMs)

Formation Hyper-v 2016 alphorm.com™©

227
23/03/2016

Conclusion
Fin de formation

Seyfallah TAGREROUT
Site : http://www.alphorm.com Consultant Infrastructure Sogeti &
Microsoft MVP Cloud and Datacenter
Blog : http://blog.alphorm.com Management
Formation Hyper-v 2016 alphorm.com™©

228
23/03/2016

Plan
• La formation

• Prochaine formation

• Conseil lecture

Formation Hyper-v 2016 alphorm.com™©

229
23/03/2016

La formation
Nous avons vu dans cette formation plusieurs chapitres:
• Chapitre1: Présentation de la formation et du LAB

• Chapitre2: Introduction à la virtualisation

• Chapitre3: Installation & configuration d’Hyper-V 2016

• Chapitre4: Les machines virtuelles

• Chapitre5: Les réseaux virtuels

• Chapitre6: Les disques dur virtuel

• Chapitre7: Backup & restauration avec Azure Backup

Formation Hyper-v 2016 alphorm.com™©

230
23/03/2016

Prochaines formations
Prochaine formation sur Hyper-V 2016 Avancée
• Haute disponibilité:
Clustering

• Stockage
Mode Bloc iSCSI
Hyper-V Over SMB

• Plan de reprise d’activité (PRA):


Hyper-V Replica

• Plan de continuité d’activité (PCA):


Storage Replica

Formation Hyper-v 2016 alphorm.com™©

231
23/03/2016

Conseil lecture
• Blog Microsoft:
http://blogs.technet.com/b/virtualization/
http://blogs.msdn.com/b/virtual_pc_guy/
http://blogs.technet.com/b/josebda/archive/tags/hyper_2d00_v/

• MVP Blog qui traitent Hyper-V:


http://www.guvirt.org/
http://danstoncloud.com/becloud/
http://seyfallah-it.blogspot.fr/

Formation Hyper-v 2016 alphorm.com™©

232
23/03/2016

Formation Hyper-v 2016 alphorm.com™©

233

S-ar putea să vă placă și