Alphorm.com Support de la Formation Hyper-v 2016
-
Upload
alphormcom -
Category
Technology
-
view
6.113 -
download
14
Transcript of Alphorm.com Support de la Formation Hyper-v 2016
23/03/2016
1
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Formation Hyper-V 2016
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
2
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
3
Formation Hyper-v 2016 alphorm.com™©
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 : [email protected]
• Blog : http://seyfallah-it.blogspot.fr/
• LinkedIn : https://fr.linkedin.com/in/seyfallahtagrerout
23/03/2016
4
Formation Hyper-v 2016 alphorm.com™©
Cursus Hyper-V• Formation Hyper-V 2016 de Base
• Formation Hyper-V 2016 Avancés
23/03/2016
5
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
6
Formation Hyper-v 2016 alphorm.com™©
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 ….
23/03/2016
7
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
8
Formation Hyper-v 2016 alphorm.com™©
Prérequis• Connaissances TCP/IP
• Connaissances Windows Server 2008 / 2012 / R2
• Base sur les principes de virtualisation
• Base sur le stockage
23/03/2016
9
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
10
Formation Hyper-v 2016 alphorm.com™©
Ressources utiles • Les blogs:
� http://seyfallah-it.blogspot.fr/
� http://www.guvirt.org/
� http://danstoncloud.com/becloud/
� http://blogs.technet.com/b/virtualization/
• Livres:
23/03/2016
11
Formation Hyper-v 2016 alphorm.com™©
Ce qu’on a couvert
Are you ready !!
23/03/2016
12
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Présentation du Lab
Présentation de la formation
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
13
Formation Hyper-v 2016 alphorm.com™©
Plan• Introduction
• Présentation du bac à sable
• Ressources utiles
• Démo
23/03/2016
14
Formation Hyper-v 2016 alphorm.com™©
Présentation du bac à sable
23/03/2016
15
Formation Hyper-v 2016 alphorm.com™©
Présentation du bac à sable
23/03/2016
16
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
17
Formation Hyper-v 2016 alphorm.com™©
Ressources utiles • How TO
� http://seyfallah-it.blogspot.fr/2015/01/nested-virtualization-monter-un-lab.html
23/03/2016
18
Formation Hyper-v 2016 alphorm.com™©
Ce qu’on a couvert
• Lab sur le quel nous allons faire la formation
• Le principe du Nested Virtualization
23/03/2016
19
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Présentation de la virtualisation
Introduction à la virtualisation
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
20
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
21
Formation Hyper-v 2016 alphorm.com™©
Introduction • Omniprésence sur le marché
• Concept compliqué à comprendre
• Technologies qui avancent très vite
• Nouvelle forme (domaines) de virtualisation
23/03/2016
22
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
23
Formation Hyper-v 2016 alphorm.com™©
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 2012et 2012 R2
• Et maintenant 2016 …
23/03/2016
24
Formation Hyper-v 2016 alphorm.com™©
Avantages la virtualisation• Consolidation des serveurs: (équation un serveur = plusieurs applications)
23/03/2016
25
Formation Hyper-v 2016 alphorm.com™©
Avantages de la virtualisation• Gain d’énergie � « Si le cloud public était un pays, sa consommation
électrique le mettrait au cinquième rang mondial »
23/03/2016
26
Formation Hyper-v 2016 alphorm.com™©
Avantages de la virtualisation• Réduction du TCO :
23/03/2016
27
Formation Hyper-v 2016 alphorm.com™©
Avantages de la virtualisation
Flexibilité
Infra optimisée
ConsommationConsolidation
Productivité
Réduction du TCO
Facilité d’administration
Administration centralisée
Réduction du RTO
23/03/2016
28
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
29
Formation Hyper-v 2016 alphorm.com™©
Types d'hyperviseurs
23/03/2016
30
Formation Hyper-v 2016 alphorm.com™©
Différents briques de virtualisation• SDDC (SDN / SDS /….)
SI
Systèmes
Stockage Réseaux
Applications
23/03/2016
31
Formation Hyper-v 2016 alphorm.com™©
Différentes briques de virtualisation
40
25
10
5
20
Serveurs
Poste de travail
Stockage
Réseaux
Applications
0 5 10 15 20 25 30 35 40 45
Part dans les SI en 2015 - Virtualisation
23/03/2016
32
Formation Hyper-v 2016 alphorm.com™©
Microsoft et la virtualisation• Serveur :
� Virtual Server
� Hyper-v
• Client (poste de travail):
� Virtual PC
� Microsoft Entreprise Desktop Virtualization (MED-V)
• Application:
� App-V
23/03/2016
33
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
34
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Présentation de MAP
Introduction à la virtualisation
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
35
Formation Hyper-v 2016 alphorm.com™©
Plan• Introduction
• Découvert de MAP
• Démo
23/03/2016
36
Formation Hyper-v 2016 alphorm.com™©
Introduction • Etude de l’existant
• Virtualiser oui, mais quoi ? Et comment ?
• Comment faire le design de l’infrastructure de virtualisation
23/03/2016
37
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
38
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
39
Formation Hyper-v 2016 alphorm.com™©
Démo
23/03/2016
40
Formation Hyper-v 2016 alphorm.com™©
Ce qu’on a couvert• MAP
23/03/2016
41
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Présentation d’Hyper-V
Installation et Configuration d’Hyper-V
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
42
Formation Hyper-v 2016 alphorm.com™©
Plan• Introduction
• Le rôle Hyper-V
• Versions
• Prérequis matériels
• Mode d’installation
• Gestion d’Hyper-V
23/03/2016
43
Formation Hyper-v 2016 alphorm.com™©
Introduction • Marché de virtualisation
• Acteurs sur le marché (Vmware et Citrix)
• Hyper-V naissance en 2008
23/03/2016
44
Formation Hyper-v 2016 alphorm.com™©
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 ==>
23/03/2016
45
Formation Hyper-v 2016 alphorm.com™©
Le rôle Hyper-V• Rôle dans Windows Server • Get-WindowsFeature
23/03/2016
46
Formation Hyper-v 2016 alphorm.com™©
Versions• Les versions d’Hyper-V:
HYPER-V V1 (2008)
HYPER-V V2 (2008 R2)
HYPER-V V3 (2012 et 2012 R2
HYPER-V 2016
23/03/2016
47
Formation Hyper-v 2016 alphorm.com™©
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:
23/03/2016
48
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
49
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
50
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
51
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Présentation des nouveautés d’Hyper-V 2016
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
Installation et Configuration d’Hyper-V
23/03/2016
52
Formation Hyper-v 2016 alphorm.com™©
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 …. ☺
23/03/2016
53
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
54
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
55
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
56
Formation Hyper-v 2016 alphorm.com™©
Windows container et Hyper-V container• Serveur Windows classique:
23/03/2016
57
Formation Hyper-v 2016 alphorm.com™©
Windows container et Hyper-V container• Serveur Windows avec Hyper-V :
23/03/2016
58
Formation Hyper-v 2016 alphorm.com™©
Windows container et Hyper-V container• Windows Container:
23/03/2016
59
Formation Hyper-v 2016 alphorm.com™©
Windows container et Hyper-V container• Hyper-V Container:
23/03/2016
60
Formation Hyper-v 2016 alphorm.com™©
Nested Virtualization • Virtualization du même type d’OS
� Win Server 2016 TP4 / Windows 10Build 10565
� Intel VT
� 4 GB de RAM
23/03/2016
61
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
62
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
63
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
64
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
65
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
66
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
67
Formation Hyper-v 2016 alphorm.com™©
Os supportés• Suse
• Free BSD
• Ubuntu
• Debian
• Oracle Linux
• CentOS Red Hat entreprise Linux 5. / 6 /7 series
23/03/2016
68
Formation Hyper-v 2016 alphorm.com™©
Surprise
23/03/2016
69
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
70
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
71
Formation Hyper-v 2016 alphorm.com™©
Mise en œuvre des Windows Containers
Contain1
Contain2
Contain3
Win10
Vm02
23/03/2016
72
Formation Hyper-v 2016 alphorm.com™©
Ce qu’on a couvert
• Les nouveauté d’Hyper-V 2016
• Les Windows Containers / Hyper-V Containers
23/03/2016
73
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Prérequis et installation d’hyper-v version complète
Installation et Configuration d’Hyper-V
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
74
Formation Hyper-v 2016 alphorm.com™©
Plan• Introduction
• Rappel Prérequis Hyper-V 2016
• Installation de Windows Server 2016 TP3
• Installation d’Hyper-V
� Installation en GUI
� Installation en PowerShell
23/03/2016
75
Formation Hyper-v 2016 alphorm.com™©
Introduction• Windows Server 2016 TP1 – TP2 TP3 – TP4
23/03/2016
76
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
77
Formation Hyper-v 2016 alphorm.com™©
Installation de Windows Server 2016 TP4• Installation Graphique de Windows Server 2016 TP4
23/03/2016
78
Formation Hyper-v 2016 alphorm.com™©
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.
23/03/2016
79
Formation Hyper-v 2016 alphorm.com™©
Installation d’Hyper-V 2016• En Interface Graphique :
� Server Manager – Manage – Add role and Features – Choisir le rôle Hyper-V
23/03/2016
80
Formation Hyper-v 2016 alphorm.com™©
Installation d’Hyper-V 2016• En PowerShell:
Install-WindowsFeature -name Hyper-V
23/03/2016
81
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
82
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Installation d’Hyper-VMode « Core »
Installation et Configuration d’Hyper-V
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
83
Formation Hyper-v 2016 alphorm.com™©
Plan• Introduction Hyper-V mode core
• Installation de Windows Server 2016 Technical Preview 4
• Installation d’Hyper-V
23/03/2016
84
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
85
Formation Hyper-v 2016 alphorm.com™©
Introduction Server Core• Vue d’ensemble depuis 2008 jusqu’à 2016
23/03/2016
86
Formation Hyper-v 2016 alphorm.com™©
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)
23/03/2016
87
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
88
Formation Hyper-v 2016 alphorm.com™©
Installation d’Hyper-V � Ajout du rôle Hyper-V en PowerShell:
23/03/2016
89
Formation Hyper-v 2016 alphorm.com™©
Installation d’Hyper-V
� Vérification avec Get-WindowsFeature
� Possibilité de supprimer le rôle Hyper-V: Remove-WindowsFeature Hyper-V –restart
23/03/2016
90
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
91
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Nano Server
Installation et Configuration d’Hyper-V
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
92
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
93
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
94
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
95
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
96
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
97
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
98
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
99
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
100
Formation Hyper-v 2016 alphorm.com™©
Création d’un VHDx Nano Server
• Première connexion à Nano Server:
23/03/2016
101
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
102
Formation Hyper-v 2016 alphorm.com™©
Installation d’Hyper-V sur Nano Server • Les dossiers Packages:
23/03/2016
103
Formation Hyper-v 2016 alphorm.com™©
Installation d’Hyper-V sur Nano Server • Les packages au niveau de Nano Server
Role / Feature Package FileHyper-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ôleurstockage etc
Microsoft-NanoServer-OEM-Drivers-Package.cab
Package container Microsoft-NanoServer-Containers-Package.cab
Reverse Pour la comptabilité des applications (Node.Js, Net Framwork, etc)
Microsoft-NanoServer-ReverseForwardrs-Package.cab
Antimalware Windows Defender Microsoft-NanoServer-Defender-Package.cab
23/03/2016
104
Formation Hyper-v 2016 alphorm.com™©
Installation d’Hyper-V sur Nano Server • Les packages au niveau de Nano Server
Role / Feature Package FileDNS 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 agent
-Packages Microsoft-Windows-Server-SCVMM-Package-Package.cab
-Packages Microsoft-Windows-Server-SCVMM-Compute-Package-Package.cab
Data Center Bridging -Packages Microsoft-NanoServer-DCB-Package-Package.cab
Network Performance Diagnostics Service (NPDS)
-Packages Microsoft-NanoServer-NPDS-Package-Package.cab
23/03/2016
105
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
106
Formation Hyper-v 2016 alphorm.com™©
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 …
23/03/2016
107
Formation Hyper-v 2016 alphorm.com™©
Démo
23/03/2016
108
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
109
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Hyper-V sur Windows 10
Installation et Configuration d’Hyper-V
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
110
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
111
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
112
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
113
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
114
Formation Hyper-v 2016 alphorm.com™©
Vérification des prérequis hardwareVérification hardware du PC :
systeminfo.exe
23/03/2016
115
Formation Hyper-v 2016 alphorm.com™©
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)
23/03/2016
116
Formation Hyper-v 2016 alphorm.com™©
Démo
23/03/2016
117
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
118
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Gestion d’Hyper-V 2016
Installation et Configuration d’Hyper-V
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
119
Formation Hyper-v 2016 alphorm.com™©
Plan• Introduction
• Hyper-V Manager
• Administration en remote
23/03/2016
120
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
121
Formation Hyper-v 2016 alphorm.com™©
Démo
23/03/2016
122
Formation Hyper-v 2016 alphorm.com™©
Ce qu’on a couvert• La gestion d’Hyper-V 2016 sous différentes façons
23/03/2016
123
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Configuration de base d’Hyper-V 2016
Installation et Configuration d’Hyper-V
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
124
Formation Hyper-v 2016 alphorm.com™©
Plan• Introduction
• Configuration de base d’Hyper-V
• Démo
23/03/2016
125
Formation Hyper-v 2016 alphorm.com™©
Introduction• Configuration de base Hyper-V « Server »:
• Stockage
• Physical GPUs
• Numa Spanning
• Live Migration / Storage Migration
• Réplication
• Configuration de base Hyper-V « User »
23/03/2016
126
Formation Hyper-v 2016 alphorm.com™©
Démo
23/03/2016
127
Formation Hyper-v 2016 alphorm.com™©
Ce qu’on a couvert• Le paramétrage de base d’Hyper-V
23/03/2016
128
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Les machines virtuelles
Présentation d’une machine virtuelle
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
129
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
130
Formation Hyper-v 2016 alphorm.com™©
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.
23/03/2016
131
Formation Hyper-v 2016 alphorm.com™©
Vue d’ensemble d’une VM sous Hyper-V 2016
23/03/2016
132
Formation Hyper-v 2016 alphorm.com™©
Vue d’ensemble d’une VM sous Hyper-V 2016
• Autre façon de représenter des VMs dans vos schémas de design ☺
23/03/2016
133
Formation Hyper-v 2016 alphorm.com™©
Vue d’ensemble d’une VM sous Hyper-V 2016Et voici la visualisation des VM sur un serveur Hyper-V, via la console « Hyper-V Manager »:
23/03/2016
134
Formation Hyper-v 2016 alphorm.com™©
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 …
23/03/2016
135
Formation Hyper-v 2016 alphorm.com™©
Type de VMs sous Hyper-V 2016 GEN 1 GEN 2
23/03/2016
136
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
137
Formation Hyper-v 2016 alphorm.com™©
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.
23/03/2016
138
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
139
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
140
Formation Hyper-v 2016 alphorm.com™©
Démo
23/03/2016
141
Formation Hyper-v 2016 alphorm.com™©
Ce qu’on a couvert• Les VMs sur Hyper-V
• Le principe d’une VM
• Leur fichiers de configuration
• Leur paramètres
23/03/2016
142
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Création des machines virtuelles
Les machines virtuelles
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
143
Formation Hyper-v 2016 alphorm.com™©
Plan• Introduction
• Création des machines virtuelles
� Simple en GUI
� En PowerShell
� Via un VHDx existant
• Installation d’un OS invité
23/03/2016
144
Formation Hyper-v 2016 alphorm.com™©
Introduction
Machine virtuelles
GEN 1 GEN 2
Paramètres des VMs
Plan d’ensem
ble
23/03/2016
145
Formation Hyper-v 2016 alphorm.com™©
Création des machines virtuelles
• Création d’une VM de manière classique via Hyper- V Manager :
23/03/2016
146
Formation Hyper-v 2016 alphorm.com™©
Création des machines virtuelles
• Création d’une VM de manière classique via PowerShell
23/03/2016
147
Formation Hyper-v 2016 alphorm.com™©
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:
23/03/2016
148
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
149
Formation Hyper-v 2016 alphorm.com™©
Démo
23/03/2016
150
Formation Hyper-v 2016 alphorm.com™©
Ce qu’on a couvert
• Les VMs et leur plan d’ensemble
• La création de VM sous toutes les formes
� GUI
� Powershell
23/03/2016
151
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Opération sur les machines virtuelles
Les machines virtuelles
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
152
Formation Hyper-v 2016 alphorm.com™©
Plan
• Introduction
• Fonction de base
• Exporter une VM
• Importer une VM
• Déplacer une VM
23/03/2016
153
Formation Hyper-v 2016 alphorm.com™©
IntroductionHyper-V dans notre quotidien :
• Opérations de gestion & d’administration
• Opérations au quotidien par les IT :
� Création
� Suppression
� Déplacement / Export / Import
23/03/2016
154
Formation Hyper-v 2016 alphorm.com™©
Fonction de base
• Les fonctions de base sur une VM après un clic droit:
23/03/2016
155
Formation Hyper-v 2016 alphorm.com™©
Exporter une VM
• L’export d’une VM se fait de la manière suivante :
23/03/2016
156
Formation Hyper-v 2016 alphorm.com™©
Importer une VM
• L’import d’une VM se fait de la manière suivante :
23/03/2016
157
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
158
Formation Hyper-v 2016 alphorm.com™©
Migration d’une VM
• Migration de VM et possibilités (en image) :
23/03/2016
159
Formation Hyper-v 2016 alphorm.com™©
Démo
23/03/2016
160
Formation Hyper-v 2016 alphorm.com™©
Ce qu’on a couvert• Opérations de base sur une VM
• Le déplacement de VM au niveau fichiers / disques
23/03/2016
161
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Les Snapshots
Les machines virtuelles
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
162
Formation Hyper-v 2016 alphorm.com™©
Plan
• Introduction
• Fonctionnement
• Snapshot dans Hyper-V 2016
• Démo ☺
23/03/2016
163
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
164
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
165
Formation Hyper-v 2016 alphorm.com™©
Fonctionnement
• Ce qui se passe lors d’une création de Snapshot :
23/03/2016
166
Formation Hyper-v 2016 alphorm.com™©
Snapshot dans Hyper-V 2016
• Snapshot Standard
• Snapshot Production
23/03/2016
167
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
168
Formation Hyper-v 2016 alphorm.com™©
Démo
23/03/2016
169
Formation Hyper-v 2016 alphorm.com™©
Ce qu’on a couvert• Les Snapshots sous Hyper-V 2016
• Leur fonctionnement
• Et les Snapshots Standard et Production
23/03/2016
170
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Déployer une VM sur un stockage réseau SMB 3
Les machines virtuelles
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
171
Formation Hyper-v 2016 alphorm.com™©
Plan• Introduction
• Hyper-V Over SMB 3
• Installation & configuration du serveur de stockage SRVSMB01
• Création du partage SMB « Application »
23/03/2016
172
Formation Hyper-v 2016 alphorm.com™©
Introduction• Stockage en local
• Stockage en mode Bloc via SAN (FC, iSCSI)
• Stockage mode fichier � Hyper-V Over SMB3
23/03/2016
173
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
174
Formation Hyper-v 2016 alphorm.com™©
Hyper-V Over SMB• Architecture Hyper-V standalone :
23/03/2016
175
Formation Hyper-v 2016 alphorm.com™©
Hyper-V Over SMB• Hyper-V standalone qui pointe sur un cluster SOFS :
23/03/2016
176
Formation Hyper-v 2016 alphorm.com™©
Hyper-V Over SMB• All Clustered :
23/03/2016
177
Formation Hyper-v 2016 alphorm.com™©
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 » ☺
23/03/2016
178
Formation Hyper-v 2016 alphorm.com™©
Démo
23/03/2016
179
Formation Hyper-v 2016 alphorm.com™©
Ce qu’on a couvert• Le Stockage avec Hyper-V
• Hyper-V Over SMB
23/03/2016
180
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Comprendre les réseaux virtuels
Les Réseaux Virtuels
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
181
Formation Hyper-v 2016 alphorm.com™©
Plan• Introduction
• Réseau virtuel « Privé »
• Réseau virtuel « Interne »
• Réseau virtuel « Externe »
• Réseaux virtuel « NAT »
23/03/2016
182
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
183
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
184
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
185
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
186
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
187
Formation Hyper-v 2016 alphorm.com™©
Réseau virtuel Externe
• Création d’un Virtual Switch de type « NAT »:
New-Vmswitch –SwitchName SWNAT –SwitchType NAT –NatSubnet192.168.4.0/24
23/03/2016
188
Formation Hyper-v 2016 alphorm.com™©
Démo
23/03/2016
189
Formation Hyper-v 2016 alphorm.com™©
Ce qu’on a couvert• Les réseaux virtuels sous Hyper-V 2016
� Privé
� Interne
� Externe
� NAT
23/03/2016
190
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Switch EmbddedTeaming
Les Réseaux Virtuels
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
191
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
192
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
193
Formation Hyper-v 2016 alphorm.com™©
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 »
23/03/2016
194
Formation Hyper-v 2016 alphorm.com™©
Les services et protocoles non gérés
• Ce qui prend pas en compte :
• 802.1X authentication
• IPSEC(TO)
• RSS
• SR/IOV
• VM QOS
23/03/2016
195
Formation Hyper-v 2016 alphorm.com™©
Mode loadBalancing & Administration
• Dans le loadBalancing mode vous avez :
� Dynamic
� Hyper-V Port
• Administration des Team Set :
� SCVMM
� Powershell
23/03/2016
196
Formation Hyper-v 2016 alphorm.com™©
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 "
23/03/2016
197
Formation Hyper-v 2016 alphorm.com™©
Création de Switch SET • Création d’un Switch SET TEAM: (exemple)
23/03/2016
198
Formation Hyper-v 2016 alphorm.com™©
Démo
23/03/2016
199
Formation Hyper-v 2016 alphorm.com™©
Ce qu’on a couvert• Les Switch SET
23/03/2016
200
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Le Switch virtuel NAT
Les Réseaux Virtuels
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
201
Formation Hyper-v 2016 alphorm.com™©
Plan• Rappel type de Switch Hyper-V 2016
• Présentation du Switch virtuel de type « NAT »
23/03/2016
202
Formation Hyper-v 2016 alphorm.com™©
Introduction
• Plusieurs types de Switchs virtuels :
� Privé
� Interne
� Externe
� NAT
23/03/2016
203
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
204
Formation Hyper-v 2016 alphorm.com™©
Réseau virtuel Externe
• Création d’un Virtual Switch de type « NAT »
New-Vmswitch –SwitchName SWNAT –SwitchType NAT –NatSubnet192.168.4.0/24
New-NetNat -Name VMSwitchNat -InternalIPInterfaceAddressPrefix"192.168.4.0/24"
23/03/2016
205
Formation Hyper-v 2016 alphorm.com™©
Réseau virtuel Externe
• Création d’un Virtual Switch de type « NAT »
New-Vmswitch –SwitchName SWNAT –SwitchType NAT –NatSubnet192.168.4.0/24
New-NetNat -Name VMSwitchNat -InternalIPInterfaceAddressPrefix"192.168.4.0/24"
23/03/2016
206
Formation Hyper-v 2016 alphorm.com™©
Démo
23/03/2016
207
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
208
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Comprendre les disques virtuels
Les disques dur virtuel
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
209
Formation Hyper-v 2016 alphorm.com™©
Plan• Introduction
• Types de disques
• Types de format
• Exemple d’emplacement
23/03/2016
210
Formation Hyper-v 2016 alphorm.com™©
Introduction• Un disque virtuel sous Hyper-V 2016 est un fichier qui correspond au
disque dur d’une machine virtuelle.
• Depuis 2012 : Format (VHDX)
23/03/2016
211
Formation Hyper-v 2016 alphorm.com™©
Type de disques• Deux technologies :
� IDE (plus dispo en VM GEN 2)
� SCSI
• Trois types :
� Disque Dynamique
� Disque Fixe
� Différentiel
23/03/2016
212
Formation Hyper-v 2016 alphorm.com™©
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 :
23/03/2016
213
Formation Hyper-v 2016 alphorm.com™©
Type de format• Plusieurs formats:
� VHD
� VHDx
� VHD Set
23/03/2016
214
Formation Hyper-v 2016 alphorm.com™©
Type de formatVHD SET :
• VHD partagé :
� Fixe
� Dynamique
• Besoins :
� Cluster de VM dans un Hyper-V pour du LAB et Test
23/03/2016
215
Formation Hyper-v 2016 alphorm.com™©
Exemple d’emplacement• Exemple d’un emplacement d’un disque dur virtuel (VHDx):
23/03/2016
216
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
217
Formation Hyper-v 2016 alphorm.com™©
Démo
23/03/2016
218
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
219
Formation Hyper-v 2016 alphorm.com™©
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
Sauvegarde des VMs avec Azure Backup
Backup et restauration
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
23/03/2016
220
Formation Hyper-v 2016 alphorm.com™©
Plan• Présentation d’Azure Backup
• Mise en place d’Azure Backup
• Démo
23/03/2016
221
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
222
Formation Hyper-v 2016 alphorm.com™©
Présentation d’Azure Backup• En d’autres termes Azure Backup offre :
� de la flexibilité
� de la Sécurité
� une sauvegarde optimale
� et fiabilité
23/03/2016
223
Formation Hyper-v 2016 alphorm.com™©
Présentation d’Azure Backup
23/03/2016
224
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
225
Formation Hyper-v 2016 alphorm.com™©
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
23/03/2016
226
Formation Hyper-v 2016 alphorm.com™©
Démo
23/03/2016
227
Formation Hyper-v 2016 alphorm.com™©
Ce qu’on a couvert• Le fonctionnement d’Azure Backup
� Introduction
� Mise en place
� Sauvegarde de données (VMs)
� Restauration de données (VMs)
23/03/2016
228
Formation Hyper-v 2016 alphorm.com™©
Fin de formation
Conclusion
Seyfallah TAGREROUTConsultant Infrastructure Sogeti & Microsoft MVP Cloud and DatacenterManagement
Site : http://www.alphorm.comBlog : http://blog.alphorm.com
23/03/2016
229
Formation Hyper-v 2016 alphorm.com™©
Plan
• La formation
• Prochaine formation
• Conseil lecture
23/03/2016
230
Formation Hyper-v 2016 alphorm.com™©
La formationNous 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
23/03/2016
231
Formation Hyper-v 2016 alphorm.com™©
Prochaines formationsProchaine 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
23/03/2016
232
Formation Hyper-v 2016 alphorm.com™©
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/
23/03/2016
233
Formation Hyper-v 2016 alphorm.com™©