sfscon15 - thomas lamprecht: "proxmox virtual environment 4.0"
TRANSCRIPT
Proxmox Virtual Environment 4.0An open source hypervisor
Thomas Lamprecht
SFScon
November 13th 2015
Thomas Lamprecht — Proxmox Virtual Environment 4.0 1/23
Outline
1 Introduction
2 Virtualization Technologies
3 Proxmox VE 4.0
4 Clustering and High Availability
5 Unique Designs
6 Resources
Thomas Lamprecht — Proxmox Virtual Environment 4.0 2/23
Who Is WhoA Brief Introduction
Thomas Lamprecht
Studying Computer Engineering at Vienna’s Institute ofTechnology
Interested in Linux and open source since a young age
Started working on Proxmox VE at beginning of summer
Proxmox
Self-funded open source start-up based in Vienna/Austria
Proxmox Mail Gateway
Proxmox Virtual Environment release
Very active and helpful Community
World Wide partner Network
Thomas Lamprecht — Proxmox Virtual Environment 4.0 3/23
Who Is WhoA Brief Introduction
Thomas Lamprecht
Studying Computer Engineering at Vienna’s Institute ofTechnology
Interested in Linux and open source since a young age
Started working on Proxmox VE at beginning of summer
Proxmox
Self-funded open source start-up based in Vienna/Austria
Proxmox Mail Gateway
Proxmox Virtual Environment release
Very active and helpful Community
World Wide partner Network
Thomas Lamprecht — Proxmox Virtual Environment 4.0 3/23
What Proxmox VE IsA Brief Introduction
Open source (AGPLv3) server virtualization solution
Multilingual GUI to manage VMs and CTs
Based on Debian
Using:
KVM/QEMU for full virtualizationLXC for container based systemsA wide variety of storage technologiesIn house developed High Availability managercorosync for fault tolerant cluster communication
Contributions from all over the world
Thomas Lamprecht — Proxmox Virtual Environment 4.0 4/23
Outline
1 Introduction
2 Virtualization Technologies
3 Proxmox VE 4.0
4 Clustering and High Availability
5 Unique Designs
6 Resources
Thomas Lamprecht — Proxmox Virtual Environment 4.0 6/23
KVMFast Full Virtualization
Leading virtualization technology for Linux
In mainline kernel since 2.6.20
Arbitrary guest support (Linux, Windows, BSD, . . . )
Paravirtualization (VirtIO)
Live migration to other hosts
Thomas Lamprecht — Proxmox Virtual Environment 4.0 7/23
LXCLightweight Linux Container
Performs like a standalone serverNo emulation, runs as process on the hostProvide and secure system containers through:
Control groups (cgroups)NamespacesMandatory access controlseccompAppArmor
Limited to Linux guests only
Thomas Lamprecht — Proxmox Virtual Environment 4.0 8/23
Outline
1 Introduction
2 Virtualization Technologies
3 Proxmox VE 4.0
4 Clustering and High Availability
5 Unique Designs
6 Resources
Thomas Lamprecht — Proxmox Virtual Environment 4.0 10/23
Proxmox VE 4.0What Is New
Replacing OpenVZ with LXC
Linux Kernel 4.2
New High Availability manager
QEMU 2.4
IPv6 support
AppArmor
Integrated Ceph server
DRBD9 support
Advanced bash auto completion
Thomas Lamprecht — Proxmox Virtual Environment 4.0 11/23
Proxmox VE 4.0What Is New
Replacing OpenVZ with LXC
Linux Kernel 4.2
New High Availability manager
QEMU 2.4
IPv6 support
AppArmor
Integrated Ceph server
DRBD9 support
Advanced bash auto completion
Thomas Lamprecht — Proxmox Virtual Environment 4.0 11/23
Proxmox VE 4.0What Is New
Replacing OpenVZ with LXC
Linux Kernel 4.2
New High Availability manager
QEMU 2.4
IPv6 support
AppArmor
Integrated Ceph server
DRBD9 support
Advanced bash auto completion
Thomas Lamprecht — Proxmox Virtual Environment 4.0 11/23
Proxmox VE 4.0What Is New
Replacing OpenVZ with LXC
Linux Kernel 4.2
New High Availability manager
QEMU 2.4
IPv6 support
AppArmor
Integrated Ceph server
DRBD9 support
Advanced bash auto completion
Thomas Lamprecht — Proxmox Virtual Environment 4.0 11/23
Proxmox VE 4.0What Is New
Replacing OpenVZ with LXC
Linux Kernel 4.2
New High Availability manager
QEMU 2.4
IPv6 support
AppArmor
Integrated Ceph server
DRBD9 support
Advanced bash auto completion
Thomas Lamprecht — Proxmox Virtual Environment 4.0 11/23
Proxmox VE 4.0What Is New
Replacing OpenVZ with LXC
Linux Kernel 4.2
New High Availability manager
QEMU 2.4
IPv6 support
AppArmor
Integrated Ceph server
DRBD9 support
Advanced bash auto completion
Thomas Lamprecht — Proxmox Virtual Environment 4.0 11/23
Proxmox VE 4.0What Is New
Replacing OpenVZ with LXC
Linux Kernel 4.2
New High Availability manager
QEMU 2.4
IPv6 support
AppArmor
Integrated Ceph server
DRBD9 support
Advanced bash auto completion
Thomas Lamprecht — Proxmox Virtual Environment 4.0 11/23
Proxmox VE 4.0What Is New
Replacing OpenVZ with LXC
Linux Kernel 4.2
New High Availability manager
QEMU 2.4
IPv6 support
AppArmor
Integrated Ceph server
DRBD9 support
Advanced bash auto completion
Thomas Lamprecht — Proxmox Virtual Environment 4.0 11/23
Proxmox VE 4.0What Is New
Replacing OpenVZ with LXC
Linux Kernel 4.2
New High Availability manager
QEMU 2.4
IPv6 support
AppArmor
Integrated Ceph server
DRBD9 support
Advanced bash auto completion
Thomas Lamprecht — Proxmox Virtual Environment 4.0 11/23
Outline
1 Introduction
2 Virtualization Technologies
3 Proxmox VE 4.0
4 Clustering and High Availability
5 Unique Designs
6 Resources
Thomas Lamprecht — Proxmox Virtual Environment 4.0 12/23
Proxmox VE ClusterControl the Cluster
Use the Web GUI and the CLI tools
Access the whole cluster on every node
Unique multi-master design
No single point of failure
Thomas Lamprecht — Proxmox Virtual Environment 4.0 14/23
Proxmox VE ClusterCreate a Cluster
First create the cluster on one node:
[ uno]# pvecm c r e a t e s f s −c l u s t e r
Then add other nodes to it:
[ due]# pvecm add <i p−from−uno>[ t r e ]# pvecm add <i p−from−uno−or−due>
A three node cluster, ready for High Availability, is nowconfigured.
Thomas Lamprecht — Proxmox Virtual Environment 4.0 15/23
High AvailabilitySecuring the Cluster Service
What is HA?
Watchdog based self-fencing
Monitor Virtual Machines and Container
Focused on simplicity and stability
Thomas Lamprecht — Proxmox Virtual Environment 4.0 16/23
High AvailabilityAdding Services
Add a CT or a VM to the Proxmox VE HA manager
[ uno]# ha−manager add 100
Now the services are HA monitored.
[ uno]# ha−manager s t a t u squorum OKmaster due ( a c t i v e , F r i Nov 6 1 5 : 1 1 : 0 0 )l rm due ( a c t i v e , F r i Nov 6 1 5 : 1 1 : 0 2 )l rm t r e ( a c t i v e , F r i Nov 6 1 5 : 1 1 : 0 2 )l rm uno ( a c t i v e , F r i Nov 6 1 5 : 1 1 : 0 2 )s e r v i c e vm: 1 0 0 ( t r e , s t a r t e d )
Thomas Lamprecht — Proxmox Virtual Environment 4.0 17/23
High AvailabilityAdding Services
Add a CT or a VM to the Proxmox VE HA manager
[ uno]# ha−manager add 100
Now the services are HA monitored.
[ uno]# ha−manager s t a t u squorum OKmaster due ( a c t i v e , F r i Nov 6 1 5 : 1 1 : 0 0 )l rm due ( a c t i v e , F r i Nov 6 1 5 : 1 1 : 0 2 )l rm t r e ( a c t i v e , F r i Nov 6 1 5 : 1 1 : 0 2 )l rm uno ( a c t i v e , F r i Nov 6 1 5 : 1 1 : 0 2 )s e r v i c e vm: 1 0 0 ( t r e , s t a r t e d )
Thomas Lamprecht — Proxmox Virtual Environment 4.0 17/23
Outline
1 Introduction
2 Virtualization Technologies
3 Proxmox VE 4.0
4 Clustering and High Availability
5 Unique Designs
6 Resources
Thomas Lamprecht — Proxmox Virtual Environment 4.0 18/23
pmxcfsThe Proxmox Cluster Filesystem
Realtime replicated
Database-driven
Simple configuration files
Strong consistency checks
Fault tolerant
Thomas Lamprecht — Proxmox Virtual Environment 4.0 19/23
Proxmox VE APIREST- and powerful
Formally defined with JSON schema
Automatic parameter verification
Automatic generation of API documentation
Provides easy CLI tools generation
Thomas Lamprecht — Proxmox Virtual Environment 4.0 20/23
Outline
1 Introduction
2 Virtualization Technologies
3 Proxmox VE 4.0
4 Clustering and High Availability
5 Unique Designs
6 Resources
Thomas Lamprecht — Proxmox Virtual Environment 4.0 21/23
ResourcesIn Depth Reading Material
Proxmox VE Source Codehttps://git.proxmox.com/
Proxmox VE Wikihttps://pve.proxmox.com/
QEMUhttp://qemu.org/
KVMhttp://linux-kvm.org/
LXChttps://linuxcontainers.org/
Thomas Lamprecht — Proxmox Virtual Environment 4.0 22/23