Presentation held during SFScon15 - Free Software Conference, 13.11.2015 @ TIS innovation park, Bolzano
--
Proxmox VE is a complete open source server virtualization management solution based on Debian. It supports both Linux containers (LXC) and KVM virtual machines and makes them available under an integrated web-based management GUI. With Proxmox VE companies can manage virtual machines, storage (such as Ceph, ZFS, NFS, GlusterFS, and iSCSI), virtualized networks, and highly available clusters. This talk will give attendees an overview of the new features of Proxmox VE 4.0 focusing on the new Proxmox VE HA Manager and the container technology Linux Containers (LXC). It will present how highly available virtual machines can be managed in a multi-node cluster. The talk will also share some insights on how it is to be a developer in open source projects and how to get into it as a student.
Driving Behavioral Change for Information Management through Data-Driven Gree...
SFScon15 - Thomas Lamprecht: "Proxmox Virtual Environment 4.0"
1. Proxmox Virtual Environment 4.0
An open source hypervisor
Thomas Lamprecht
SFScon
November 13th 2015
Thomas Lamprecht — Proxmox Virtual Environment 4.0 1/23
2. 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
3. Who Is Who
A Brief Introduction
Thomas Lamprecht
Studying Computer Engineering at Vienna’s Institute of
Technology
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
4. Who Is Who
A Brief Introduction
Thomas Lamprecht
Studying Computer Engineering at Vienna’s Institute of
Technology
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
5. What Proxmox VE Is
A Brief Introduction
Open source (AGPLv3) server virtualization solution
Multilingual GUI to manage VMs and CTs
Based on Debian
Using:
KVM/QEMU for full virtualization
LXC for container based systems
A wide variety of storage technologies
In house developed High Availability manager
corosync for fault tolerant cluster communication
Contributions from all over the world
Thomas Lamprecht — Proxmox Virtual Environment 4.0 4/23
6.
7. 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
8. KVM
Fast 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
9. LXC
Lightweight Linux Container
Performs like a standalone server
No emulation, runs as process on the host
Provide and secure system containers through:
Control groups (cgroups)
Namespaces
Mandatory access control
seccomp
AppArmor
Limited to Linux guests only
Thomas Lamprecht — Proxmox Virtual Environment 4.0 8/23
10.
11. 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
12. Proxmox VE 4.0
What 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
13. Proxmox VE 4.0
What 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
14. Proxmox VE 4.0
What 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
15. Proxmox VE 4.0
What 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
16. Proxmox VE 4.0
What 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
17. Proxmox VE 4.0
What 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
18. Proxmox VE 4.0
What 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
19. Proxmox VE 4.0
What 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
20. Proxmox VE 4.0
What 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
21. 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
23. Proxmox VE Cluster
Control 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
24. Proxmox VE Cluster
Create a Cluster
First create the cluster on one node:
[ uno]# pvecm c r e a t e sfs −c l u s t e r
Then add other nodes to it:
[ due]# pvecm add <ip−from−uno>
[ t r e ]# pvecm add <ip−from−uno−or−due>
A three node cluster, ready for High Availability, is now
configured.
Thomas Lamprecht — Proxmox Virtual Environment 4.0 15/23
25. High Availability
Securing 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
26. High Availability
Adding 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 s
quorum OK
master due ( active , F r i Nov 6 15:11:00)
lrm due ( active , F r i Nov 6 15:11:02)
lrm t r e ( active , F r i Nov 6 15:11:02)
lrm uno ( active , F r i Nov 6 15:11:02)
s e r v i c e vm:100 ( tre , s t a r t e d )
Thomas Lamprecht — Proxmox Virtual Environment 4.0 17/23
27. High Availability
Adding 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 s
quorum OK
master due ( active , F r i Nov 6 15:11:00)
lrm due ( active , F r i Nov 6 15:11:02)
lrm t r e ( active , F r i Nov 6 15:11:02)
lrm uno ( active , F r i Nov 6 15:11:02)
s e r v i c e vm:100 ( tre , s t a r t e d )
Thomas Lamprecht — Proxmox Virtual Environment 4.0 17/23
28. 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
30. Proxmox VE API
REST- 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
31. 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
32. Resources
In Depth Reading Material
Proxmox VE Source Code
https://git.proxmox.com/
Proxmox VE Wiki
https://pve.proxmox.com/
QEMU
http://qemu.org/
KVM
http://linux-kvm.org/
LXC
https://linuxcontainers.org/
Thomas Lamprecht — Proxmox Virtual Environment 4.0 22/23