containers are the future of cloud pavel odintsov cto, fastvps eesti ou [email protected]
TRANSCRIPT
![Page 2: Containers are the future of Cloud Pavel Odintsov CTO, FastVPS Eesti OU odintsov@fastvps.ee](https://reader036.vdocuments.us/reader036/viewer/2022062517/56649ef05503460f94c010a4/html5/thumbnails/2.jpg)
Open source virtualization platforms
![Page 3: Containers are the future of Cloud Pavel Odintsov CTO, FastVPS Eesti OU odintsov@fastvps.ee](https://reader036.vdocuments.us/reader036/viewer/2022062517/56649ef05503460f94c010a4/html5/thumbnails/3.jpg)
KVM
Main developer: RedHat
Kernel integration state: in kernel since 2007
Status: production ready
Hardware support: same as LinuxVirtualization type: full virtualizationSupported client OS: Linux, FreeBSD, Windows
![Page 4: Containers are the future of Cloud Pavel Odintsov CTO, FastVPS Eesti OU odintsov@fastvps.ee](https://reader036.vdocuments.us/reader036/viewer/2022062517/56649ef05503460f94c010a4/html5/thumbnails/4.jpg)
KVM architecture
![Page 5: Containers are the future of Cloud Pavel Odintsov CTO, FastVPS Eesti OU odintsov@fastvps.ee](https://reader036.vdocuments.us/reader036/viewer/2022062517/56649ef05503460f94c010a4/html5/thumbnails/5.jpg)
Xen
Main developer: Citrix, XenSource
Kernel integration state: partially in kernel since 2012 (client), no plans about the server
Status: production ready
Hardware support: only fixed number of hardware, see HCL Virtualization type: full virtualization, paravirtualizationSupported client OS: Linux, FreeBSD, Windows
![Page 6: Containers are the future of Cloud Pavel Odintsov CTO, FastVPS Eesti OU odintsov@fastvps.ee](https://reader036.vdocuments.us/reader036/viewer/2022062517/56649ef05503460f94c010a4/html5/thumbnails/6.jpg)
Xen architecture
![Page 7: Containers are the future of Cloud Pavel Odintsov CTO, FastVPS Eesti OU odintsov@fastvps.ee](https://reader036.vdocuments.us/reader036/viewer/2022062517/56649ef05503460f94c010a4/html5/thumbnails/7.jpg)
OpenVZ
Main developer: Parallels (ex. SwSoft)
Kernel integration state: partially in kernel and work in progress
Status: production ready
Hardware support: same as Linux Virtualization type: os level virtualization, containerizationSupported client OS: Linux
![Page 8: Containers are the future of Cloud Pavel Odintsov CTO, FastVPS Eesti OU odintsov@fastvps.ee](https://reader036.vdocuments.us/reader036/viewer/2022062517/56649ef05503460f94c010a4/html5/thumbnails/8.jpg)
OpenVZ architecture
![Page 9: Containers are the future of Cloud Pavel Odintsov CTO, FastVPS Eesti OU odintsov@fastvps.ee](https://reader036.vdocuments.us/reader036/viewer/2022062517/56649ef05503460f94c010a4/html5/thumbnails/9.jpg)
LinuX Containers, LXC
Main developer: same as kernel (Intel, IBM, Parallels)Kernel integration state: partially in kernel and work in progressStatus: not ready for production (issues in network, disk)Hardware support: same as Linux Virtualization type: os level virtualization, containerizationSupported client OS: Linux
![Page 10: Containers are the future of Cloud Pavel Odintsov CTO, FastVPS Eesti OU odintsov@fastvps.ee](https://reader036.vdocuments.us/reader036/viewer/2022062517/56649ef05503460f94c010a4/html5/thumbnails/10.jpg)
LinuX Containers, LXC architecture
![Page 11: Containers are the future of Cloud Pavel Odintsov CTO, FastVPS Eesti OU odintsov@fastvps.ee](https://reader036.vdocuments.us/reader036/viewer/2022062517/56649ef05503460f94c010a4/html5/thumbnails/11.jpg)
Why OpenVZ?
• Production ready since 2006
• Extremely low overhead (in compare with Xen/KVM is about 20%)
• Simple integration into Linux stack
• Many successful projects (LXC): Heorku, CloudLinux, Docker (dot.cloud)
![Page 12: Containers are the future of Cloud Pavel Odintsov CTO, FastVPS Eesti OU odintsov@fastvps.ee](https://reader036.vdocuments.us/reader036/viewer/2022062517/56649ef05503460f94c010a4/html5/thumbnails/12.jpg)
KVM vs OpenVZ vs Xen LAMP
![Page 13: Containers are the future of Cloud Pavel Odintsov CTO, FastVPS Eesti OU odintsov@fastvps.ee](https://reader036.vdocuments.us/reader036/viewer/2022062517/56649ef05503460f94c010a4/html5/thumbnails/13.jpg)
KVM vs OpenVZ vs Xen Web App
![Page 14: Containers are the future of Cloud Pavel Odintsov CTO, FastVPS Eesti OU odintsov@fastvps.ee](https://reader036.vdocuments.us/reader036/viewer/2022062517/56649ef05503460f94c010a4/html5/thumbnails/14.jpg)
OpenVZ customers
![Page 15: Containers are the future of Cloud Pavel Odintsov CTO, FastVPS Eesti OU odintsov@fastvps.ee](https://reader036.vdocuments.us/reader036/viewer/2022062517/56649ef05503460f94c010a4/html5/thumbnails/15.jpg)
OpenVZ requirements• Almost any physical server (yes, you can use old notebook)• Operation system: CentOS 6, RHEL 6 or Scientific Linux 6• One external or internal IP address• Internet connection (only for downloading packages and templates)• One hour of free time
![Page 16: Containers are the future of Cloud Pavel Odintsov CTO, FastVPS Eesti OU odintsov@fastvps.ee](https://reader036.vdocuments.us/reader036/viewer/2022062517/56649ef05503460f94c010a4/html5/thumbnails/16.jpg)
OpenVZ, server resources
Server resources:• RAM• HDD• CPU• Network
![Page 17: Containers are the future of Cloud Pavel Odintsov CTO, FastVPS Eesti OU odintsov@fastvps.ee](https://reader036.vdocuments.us/reader036/viewer/2022062517/56649ef05503460f94c010a4/html5/thumbnails/17.jpg)
OpenVZ deploymentecho "SELINUX=disabled" > /etc/sysconfig/selinuxwget -P /etc/yum.repos.d/ http://ftp.openvz.org/openvz.repoyum install -y vzkernelyum install -y vzctl vzquota ploopshutdown –r nowyum remove kernel -y
![Page 18: Containers are the future of Cloud Pavel Odintsov CTO, FastVPS Eesti OU odintsov@fastvps.ee](https://reader036.vdocuments.us/reader036/viewer/2022062517/56649ef05503460f94c010a4/html5/thumbnails/18.jpg)
OpenVZ – container creating
vzctl create 101 --ostemplate debian-6.0-x86_64 --layout ploop --ipadd 88.198.144.251 --hostname mytesthostname.ru --config vswap-2g --diskspace 10Gvzctl set 101 --onboot yes --ram 4G --swap 1G --diskspace 20G --savevzctl start 101vzctl set 101 --userpasswd root:openvz_2013
![Page 19: Containers are the future of Cloud Pavel Odintsov CTO, FastVPS Eesti OU odintsov@fastvps.ee](https://reader036.vdocuments.us/reader036/viewer/2022062517/56649ef05503460f94c010a4/html5/thumbnails/19.jpg)
OpenVZ – additional tools
• vzctl destroy – remove container with all data• vzctl stop – container stop• vzlist –a – list of all available containers on
host
![Page 20: Containers are the future of Cloud Pavel Odintsov CTO, FastVPS Eesti OU odintsov@fastvps.ee](https://reader036.vdocuments.us/reader036/viewer/2022062517/56649ef05503460f94c010a4/html5/thumbnails/20.jpg)
OpenVZ information
• http://openvz.org• http://twitter.com/_openvz_• http://bugzilla.openvz.org• http://openvz.livejournal.com• http://git.openvz.org