26
Diviser pour régner PRO XMO X Virtual Environment Geoffrey BERGERET IR3 — 2014/2015 Xposé — 18/11/2014

Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

  • Upload
    others

  • View
    15

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

Diviser pour régner

PROXMOX Virtual Environment

Geoffrey BERGERET IR3 — 2014/2015

Xposé — 18/11/2014

Page 2: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

❖ Qu’est ce qu’un gestionnaire d’environnements virtuels ?

❖ Système

❖ Gestion d'environnements

❖ Multi-instances

❖ Hôte / Invités

Introduction

2

VE2

ManageurVE1

Système

I1.2I2.1I1.1

Page 3: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

3

❖ Introduction

❖ Contexte

❖ Promox VE

❖ Autres Solutions

❖ Bilan

❖ Conclusion

Sommaire

Page 4: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

Contexte

Page 5: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

Contexte

❖ Hyperviseurs :

❖ Type 1 : natif❖ ProxmoxVE❖ VMWare ESXi❖ Citrix XenServer❖ Windows Hyper-V

❖ Type 2 :❖ VirtualBox❖ VMWare Workstation

5

AppsHyperviseur

Matériel

…SystèmeInvité

SystèmeInvité

Système Hôte

Hyperviseur

Matériel

…SystèmeInvité

SystèmeInvité

Page 6: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

Contexte

❖ Pourquoi utiliser un VE ?

❖ Machines de plus en plus puissantes

❖ Flexibilité matériel :❖ Panne❖ Croissance

6

Page 7: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

Contexte

❖ Pourquoi utiliser un VE ?

❖ Séparer les applications

❖ Sécurité en cas d'attaque

❖ Rationalisation des ressources

7

Hyperviseur

Matériel

VoIPWebDNS/eMail

Système

Matériel

VoIPWebDNS/eMail

Page 8: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

PROXMOX VE

Page 9: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

Proxmox VE

❖ Proxmox Server Solutions GmbH

❖ Version 1 (29/10/2008)

❖ Projet actif —> version 3.3 (15/09/2014)

❖ Basé sur Debian 7 x64

❖ Totalement Open-Source

9

Page 10: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

Interface

❖ Web

❖ Sécurisé

❖ Tableau de bord

10

Page 11: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

Kernel-based Virtual Machine

❖ Solution de virtualisation complète pour Linux

❖ Inclu dans le kernel (>= 2.6.20)

❖ Requiert CPU compatible

❖ Windows, FreeBSD, …

❖ Scalable à chaud (Mémoire, HDD, …)

11

Page 12: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

OpenVZ

❖ Virtualisation Linux par conteneur

❖ Création rapide (< 1min)

❖ Indépendant (root account, IP, Ram, …)

❖ Scalable à chaud (Mémoire, HDD, …)

12

Page 13: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

❖ Pont réseau / Agrégation de liens

❖ vSwitch

❖ Gestion des VLANs

❖ "iptables" du système hôte

Réseau

13

vmbr1

dummy0vmbr2

eth2

vmbr0 eth0

eth1bond0

Page 14: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

Cluster

❖ Gestion centralisée

❖ Multiples maitres

❖ Migration entre les hôtes

❖ High Availability Cluster

❖ 1 Cluster —> 1 LAN

14

hp1# pvecm nodes

Node Sts Inc Joined Name 1 M 156 2011-09-05 10:39:09 hp1 2 M 156 2011-09-05 10:39:09 hp2 3 M 168 2011-09-05 11:24:12 hp4 4 M 160 2011-09-05 10:40:27 hp3

Page 15: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

Backups / Snapshots

❖ Snapshot à chaud

❖ Réguliers (avec rapport)

❖ Multi-supports :❖ Gzip❖ Lzo

15

❖ NFS❖ LVM❖ iSCSI

Page 16: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

API

❖ REST / JSON

❖ API HTTP (/api2/json/)

❖ Shell avec pvesh (/) Ex : GET /api2/json/version

{"data":{"repoid":"e24a91c1","version":"3.2","release":"4","keyboard":"en-us"}}

16

Page 17: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

éco-système

❖ Abonnement

❖ Formation

❖ Support

17

Page 18: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

Autres Solutions

Page 19: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

VMWare vSphere

❖ Solution propriétaire/payante de VMWare

❖ vSphere 4 (21/05/2009)

❖ Projet actif —> vSphere 5.5 (11/03/2014)

❖ Requiert Windows (Cluster/WebUI)

❖ Version gratuite (fonctionnalités réduites)

❖ Leader en virtualisation de serveurs

19

Page 20: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

Citrix XenServer

20

❖ Basé sur XenServer

❖ Solution libre maintenue par XenSource, Inc.

❖ Projet actif —> Xen 4.4.1 (03/11/2014)

❖ Distribué par Citrix Systems

❖ Payant avec période d'essai

❖ XenDesktop

Page 21: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

Windows Hyper-V

❖ Solution propriétaire/payante de Microsoft

❖ Basé sur Windows Server 2008

❖ Requiert Windows Server 2012

❖ Fonctionnalité intégrée Windows serveur

❖ Virtualisation Linux limitée (3 distributions)

21

Page 22: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

Bilan

Page 23: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

Avantages / Inconvénients

❖ Libre & Gratuit

❖ Basé sur Debian 7

❖ Interface Web

❖ OpenVZ

23

❖ Installation silencieuse

❖ Requiert un reboot :❖ Changement du hostname❖ Création d’une interface réseau

❖ HA reboot les VMs

Page 24: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

Conclusion

❖ Important de Virtualiser :

❖ Tests

❖ Sauvegardes / Retours arrière

❖ Migrations d'installations

24

Page 25: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

Geoffrey BERGERET — [email protected]

Merci

Page 26: Diviser pour régner - IGMigm.univ-mlv.fr/~dr/XPOSE2014/PROXMOX/ProxmoxVE.pdfWindows, FreeBSD, ... Scalable à chaud (Mémoire, HDD, …) 12 Pont réseau / Agrégation de liens vSwitch

https://www.proxmox.com/fr/proxmox-ve/comparisonhttp://www.proxmox.com/fr/downloadshttp://pve.proxmox.com/pve2-api-doc/

https://pve.proxmox.com/wiki/Proxmox_VE_2.0_Cluster

Liens Utiles