SlideShare ist ein Scribd-Unternehmen logo
1 von 14
ẢO HÓA TRONG OPENSTACK
LÊ QUANG LONG
longlq@vdc.com.vn
02/02/2015
VietStack Summit 2
ẢO HÓA TRONG OPENSTACK
NỘI DUNG
1. KHÁI NIỆM VỀ ẢO HÓA
2. GIỚI THIỆU VỀ KVM
3. OPENSTACK COMPUTE
4. DEMO & TRAO ĐỔI
2
ẢO HÓA TRONG OPENSTACK
1.KHÁI NIỆM VỀ ẢO HÓA
• Type 1: VMWare ESXi, Microsoft Hyper-V, Xen Server
• Type 2: VMWare WorkStation, Oracle Virtual Box, Microsoft Virtual PC,…
Hardware
Bare-metal
Hypervisor
VM
OS/APP
VM
OS/APP
TYPE I
Hardware
Hypervisor
Operating
System
TYPE II
VM
OS/APP
VM
OS/APP
3
ẢO HÓA TRONG OPENSTACK
1.KHÁI NIỆM VỀ ẢO HÓA
Các dạng ảo hóa:
• Full virtualization
• Paravirtualization
• Hardware-assisted virtualization
Nguồn:
http://www.slideshare.net/Rishikese/seminar-on-virtualization-and-cloud-computing
4
FULL PARA- HARDWARE-ASSISTED
ẢO HÓA TRONG OPENSTACK
2.GIỚI THIỆU KVM
KVM là gì?
• Ra đời năm 2008 bởi công ty Qumranet tại Israel
• Red Hat đã mua lại Qumranet năm 2008
• Kernel-based Virtual Machine là giải pháp ảo hóa dạng full
virtualization
• Hỗ trợ native virtualization (Intel-VT hay AMD-V)
• Đã được tích hợp sẵn trong Linux kernel từ 2.6.20
5
Nguồn:
http://www.linux-kvm.org/page/Main_Page
ẢO HÓA TRONG OPENSTACK
2.GIỚI THIỆU KVM
Tại sao lại chọn KVM?
• KVM là OpenSource
• Cung cấp máy ảo mà không cần phải tinh chỉnh lại các images
của OS
• Hỗ trợ nhiều loại OS
• Tận dụng cơ chế quản lý vùng nhớ của Linux (KSM)
• Tận dụng các cơ chế bảo mật sẵn có của Linux (SELinux)
• Hỗ trợ nhiều loại phần cứng
6
ẢO HÓA TRONG OPENSTACK
2.GIỚI THIỆU KVM
Kiến trúc của KVM
• Linux Kernel
• QEMU
• KVM
LINUX KERNEL
User
Process
KVM Driver
User
Process
Guest
Mode
QEMU I/O
Guest
Mode
QEMU I/O
7
Tham khảo: http://www.innervoice.in/blogs/2014/03/10/kvm-and-qemu/
HARDWARE
ẢO HÓA TRONG OPENSTACK
2.GIỚI THIỆU KVM
8
Virtio-net Virtio-blk Virtio-pci Virtio-balloon Virtio-console
Virtio frontend
Transport
Virtio backend
VirtIO
ẢO HÓA TRONG OPENSTACK
2.GIỚI THIỆU KVM
9
VirtIO
LINUX KERNEL
Guest Mode
QEMU
pNIC
TAP
Virtio front-end
Virtio back-end
Bridge
LINUX KERNEL
Guest Mode
QEMU
pNIC
TAP
Virtio front-end
Bridge
Vhost_net
Vhost-NETVirtIO-NET
ẢO HÓA TRONG OPENSTACK
3.OPENSTACK COMPUTE
Chức năng chính:
• Làm việc với các Hypervisor (KVM, QEMU, Vmware, Hyper-V …).
• Quản lý các máy ảo (Instance <=>Virtual Machine).
• Tạo, sửa, xóa các máy ảo thông qua API.
Các thành phần bên trong:
• Nova-compute
• Nova-api (port 8773, 8744)
• Nova-scheduler
• Nova database
• Nova-console, nova-consoleauth
• Queue
• Nova-cert
• Nova-conductor
10
Nova
ẢO HÓA TRONG OPENSTACK
Nova
Nova-api
Nova
Database
Client
Nova-conductor
Nova-compute
GLANCE
NEUTRON
CINDER Hypervisor
3.OPENSTACK COMPUTE
Nova-scheduler
Queue
11
Tài liệu: http://docs.openstack.org/training-guides/content/
ẢO HÓA TRONG OPENSTACK
Định nghĩa
• Libvirt là một nhóm các công cụ cung cấp một cách thức quản lý các máy ảo và các tính năng ảo
hóa khác như network interface hay storage
• Mục đích của libvirt là đưa ra một phương thức đơn giản, quản lý tập trung các hypervisor
• Các Hypervisor hỗ trợ: KVM, Xen, VMWare ESX, Hyper-V,…
Libvirt
3.OPENSTACK COMPUTE
Các thành phần
• API: Phương thức để kết nối tới các hypervisor
• Libvritd: daemon chạy trên các host để quản lý các máy ảo của hypervisor
• Virsh: cung cấp một giao diện dòng lệnh cho người dùng
12
ẢO HÓA TRONG OPENSTACK
libvirt
(libvirt daemon)
(libvirt api)
virt-manager virsh virt-install OpenStack
User-space ManagementLibvirt
3.OPENSTACK COMPUTE
KVM VMWare Hyper-VXEN
13
Tham khảo: http://en.wikipedia.org/wiki/Libvirt
ẢO HÓA TRONG OPENSTACK
4.DEMO & TRAO ĐỔI
14

Weitere ähnliche Inhalte

Andere mochten auch

[OSS Upstream Training] 8 workflow of an open stack contribution and tools
[OSS Upstream Training] 8 workflow of an open stack contribution and tools[OSS Upstream Training] 8 workflow of an open stack contribution and tools
[OSS Upstream Training] 8 workflow of an open stack contribution and toolsVietnam Open Infrastructure User Group
 
[Vietstack meetup 1st] VietStack and journey promoting openstack in vietnam
[Vietstack meetup 1st] VietStack and journey promoting openstack in vietnam[Vietstack meetup 1st] VietStack and journey promoting openstack in vietnam
[Vietstack meetup 1st] VietStack and journey promoting openstack in vietnamVietnam Open Infrastructure User Group
 

Andere mochten auch (20)

[OSS Upstream Training] 8 workflow of an open stack contribution and tools
[OSS Upstream Training] 8 workflow of an open stack contribution and tools[OSS Upstream Training] 8 workflow of an open stack contribution and tools
[OSS Upstream Training] 8 workflow of an open stack contribution and tools
 
VietOpenStack meetup 7th Auto-scaling
VietOpenStack meetup 7th  Auto-scalingVietOpenStack meetup 7th  Auto-scaling
VietOpenStack meetup 7th Auto-scaling
 
Viet stack 2nd meetup - Tong ket tinh hinh sau 1st meetup
Viet stack 2nd meetup - Tong ket tinh hinh sau 1st meetupViet stack 2nd meetup - Tong ket tinh hinh sau 1st meetup
Viet stack 2nd meetup - Tong ket tinh hinh sau 1st meetup
 
[OSS Upstream Training] 9 kirigami contribution_simulation
[OSS Upstream Training] 9 kirigami contribution_simulation[OSS Upstream Training] 9 kirigami contribution_simulation
[OSS Upstream Training] 9 kirigami contribution_simulation
 
PTG recap
PTG recapPTG recap
PTG recap
 
Neutron Extension API
Neutron Extension APINeutron Extension API
Neutron Extension API
 
[Vietstack meetup 1st] VietStack and journey promoting openstack in vietnam
[Vietstack meetup 1st] VietStack and journey promoting openstack in vietnam[Vietstack meetup 1st] VietStack and journey promoting openstack in vietnam
[Vietstack meetup 1st] VietStack and journey promoting openstack in vietnam
 
Applying OpenStack at iNET use case
Applying OpenStack at iNET use caseApplying OpenStack at iNET use case
Applying OpenStack at iNET use case
 
Hostvn ceph in production v1.1 dungtq
Hostvn   ceph in production v1.1 dungtqHostvn   ceph in production v1.1 dungtq
Hostvn ceph in production v1.1 dungtq
 
VietOpenStack meetup 7th Kilo overview
VietOpenStack meetup 7th Kilo overviewVietOpenStack meetup 7th Kilo overview
VietOpenStack meetup 7th Kilo overview
 
What's new in openstack ocata
What's new in openstack ocata What's new in openstack ocata
What's new in openstack ocata
 
Deploying IPv6 on OpenStack
Deploying IPv6 on OpenStackDeploying IPv6 on OpenStack
Deploying IPv6 on OpenStack
 
Openstack swift - VietOpenStack 6thmeeetup
Openstack swift - VietOpenStack 6thmeeetupOpenstack swift - VietOpenStack 6thmeeetup
Openstack swift - VietOpenStack 6thmeeetup
 
Freezer - Vietnam OpenStack Technical Meetup #12
Freezer - Vietnam OpenStack Technical Meetup #12Freezer - Vietnam OpenStack Technical Meetup #12
Freezer - Vietnam OpenStack Technical Meetup #12
 
Open stack nova reverse engineer
Open stack nova reverse engineerOpen stack nova reverse engineer
Open stack nova reverse engineer
 
OpenStack Barcelona Summit Recap - Technical Meetup #12
OpenStack Barcelona Summit Recap - Technical Meetup #12OpenStack Barcelona Summit Recap - Technical Meetup #12
OpenStack Barcelona Summit Recap - Technical Meetup #12
 
VietOpenStack SFD2015
VietOpenStack SFD2015VietOpenStack SFD2015
VietOpenStack SFD2015
 
VietOpenStack Boston recap 2017
VietOpenStack Boston recap 2017VietOpenStack Boston recap 2017
VietOpenStack Boston recap 2017
 
Portgroups support in ironic
Portgroups support in ironic Portgroups support in ironic
Portgroups support in ironic
 
[Viet openstack] vnpt-zabbix-openstackv2.2.5.
[Viet openstack] vnpt-zabbix-openstackv2.2.5.[Viet openstack] vnpt-zabbix-openstackv2.2.5.
[Viet openstack] vnpt-zabbix-openstackv2.2.5.
 

Ähnlich wie Viet stack 2nd meetup - Virtualization & Nova in OpenStack

[DevDay2019] Develop a web application with Kubernetes - By Nguyen Xuan Phong...
[DevDay2019] Develop a web application with Kubernetes - By Nguyen Xuan Phong...[DevDay2019] Develop a web application with Kubernetes - By Nguyen Xuan Phong...
[DevDay2019] Develop a web application with Kubernetes - By Nguyen Xuan Phong...DevDay.org
 
Cloud computing and OpenStack
Cloud computing and OpenStackCloud computing and OpenStack
Cloud computing and OpenStackMinh Le
 
Cloud computing and OpenStack
Cloud computing and OpenStackCloud computing and OpenStack
Cloud computing and OpenStackMinh Le
 
ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute
ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute
ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute Lê Văn Duy
 
Giới thiệu docker và ứng dụng trong ci-cd
Giới thiệu docker và ứng dụng trong ci-cdGiới thiệu docker và ứng dụng trong ci-cd
Giới thiệu docker và ứng dụng trong ci-cdGMO-Z.com Vietnam Lab Center
 
Lab 23 ảo hóa hyper v .pdf
Lab 23 ảo hóa hyper v .pdfLab 23 ảo hóa hyper v .pdf
Lab 23 ảo hóa hyper v .pdfPham Viet Dung
 
Giải pháp xây dựng đám mây riêng cho doanh nghiệp vừa và nhỏ
Giải pháp xây dựng đám mây riêng cho doanh nghiệp vừa và nhỏGiải pháp xây dựng đám mây riêng cho doanh nghiệp vừa và nhỏ
Giải pháp xây dựng đám mây riêng cho doanh nghiệp vừa và nhỏAiTi Education
 

Ähnlich wie Viet stack 2nd meetup - Virtualization & Nova in OpenStack (9)

[DevDay2019] Develop a web application with Kubernetes - By Nguyen Xuan Phong...
[DevDay2019] Develop a web application with Kubernetes - By Nguyen Xuan Phong...[DevDay2019] Develop a web application with Kubernetes - By Nguyen Xuan Phong...
[DevDay2019] Develop a web application with Kubernetes - By Nguyen Xuan Phong...
 
Cloud computing and OpenStack
Cloud computing and OpenStackCloud computing and OpenStack
Cloud computing and OpenStack
 
Cloud computing and OpenStack
Cloud computing and OpenStackCloud computing and OpenStack
Cloud computing and OpenStack
 
ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute
ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute
ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute
 
Giới thiệu docker và ứng dụng trong ci-cd
Giới thiệu docker và ứng dụng trong ci-cdGiới thiệu docker và ứng dụng trong ci-cd
Giới thiệu docker và ứng dụng trong ci-cd
 
Phalcon căn bản
Phalcon căn bảnPhalcon căn bản
Phalcon căn bản
 
Lab 23 ảo hóa hyper v .pdf
Lab 23 ảo hóa hyper v .pdfLab 23 ảo hóa hyper v .pdf
Lab 23 ảo hóa hyper v .pdf
 
WinEoP Framework
WinEoP FrameworkWinEoP Framework
WinEoP Framework
 
Giải pháp xây dựng đám mây riêng cho doanh nghiệp vừa và nhỏ
Giải pháp xây dựng đám mây riêng cho doanh nghiệp vừa và nhỏGiải pháp xây dựng đám mây riêng cho doanh nghiệp vừa và nhỏ
Giải pháp xây dựng đám mây riêng cho doanh nghiệp vừa và nhỏ
 

Mehr von Vietnam Open Infrastructure User Group

Room 3 - 5 - Nguyễn Văn Hoàn - 101 Bugs, issues when I work with Ceph
Room 3 - 5 - Nguyễn Văn Hoàn - 101 Bugs, issues when I work with CephRoom 3 - 5 - Nguyễn Văn Hoàn - 101 Bugs, issues when I work with Ceph
Room 3 - 5 - Nguyễn Văn Hoàn - 101 Bugs, issues when I work with CephVietnam Open Infrastructure User Group
 
Room 2 - 3 - Nguyễn Hoài Nam & Nguyễn Việt Hùng - Terraform & Pulumi Comparin...
Room 2 - 3 - Nguyễn Hoài Nam & Nguyễn Việt Hùng - Terraform & Pulumi Comparin...Room 2 - 3 - Nguyễn Hoài Nam & Nguyễn Việt Hùng - Terraform & Pulumi Comparin...
Room 2 - 3 - Nguyễn Hoài Nam & Nguyễn Việt Hùng - Terraform & Pulumi Comparin...Vietnam Open Infrastructure User Group
 
Room 3 - 6 - Nguyễn Văn Thắng & Dzung Nguyen - Ứng dụng openzfs làm lưu trữ t...
Room 3 - 6 - Nguyễn Văn Thắng & Dzung Nguyen - Ứng dụng openzfs làm lưu trữ t...Room 3 - 6 - Nguyễn Văn Thắng & Dzung Nguyen - Ứng dụng openzfs làm lưu trữ t...
Room 3 - 6 - Nguyễn Văn Thắng & Dzung Nguyen - Ứng dụng openzfs làm lưu trữ t...Vietnam Open Infrastructure User Group
 
Room 3 - 4 - Lê Quang Hiếu - How to be a cool dad: Leverage DIY Home Automati...
Room 3 - 4 - Lê Quang Hiếu - How to be a cool dad: Leverage DIY Home Automati...Room 3 - 4 - Lê Quang Hiếu - How to be a cool dad: Leverage DIY Home Automati...
Room 3 - 4 - Lê Quang Hiếu - How to be a cool dad: Leverage DIY Home Automati...Vietnam Open Infrastructure User Group
 
Room 3 - 2 - Trần Tuấn Anh - Defending Software Supply Chain Security in Bank...
Room 3 - 2 - Trần Tuấn Anh - Defending Software Supply Chain Security in Bank...Room 3 - 2 - Trần Tuấn Anh - Defending Software Supply Chain Security in Bank...
Room 3 - 2 - Trần Tuấn Anh - Defending Software Supply Chain Security in Bank...Vietnam Open Infrastructure User Group
 
Room 3 - 7 - Nguyễn Như Phúc Huy - Vitastor: a fast and simple Ceph-like bloc...
Room 3 - 7 - Nguyễn Như Phúc Huy - Vitastor: a fast and simple Ceph-like bloc...Room 3 - 7 - Nguyễn Như Phúc Huy - Vitastor: a fast and simple Ceph-like bloc...
Room 3 - 7 - Nguyễn Như Phúc Huy - Vitastor: a fast and simple Ceph-like bloc...Vietnam Open Infrastructure User Group
 
Room 3 - 1 - Nguyễn Xuân Trường Lâm - Zero touch on-premise storage infrastru...
Room 3 - 1 - Nguyễn Xuân Trường Lâm - Zero touch on-premise storage infrastru...Room 3 - 1 - Nguyễn Xuân Trường Lâm - Zero touch on-premise storage infrastru...
Room 3 - 1 - Nguyễn Xuân Trường Lâm - Zero touch on-premise storage infrastru...Vietnam Open Infrastructure User Group
 
Room 2 - 2 - Giang Thiên Phú - Kinh nghiệm tối ưu mongodb với database hơn 10...
Room 2 - 2 - Giang Thiên Phú - Kinh nghiệm tối ưu mongodb với database hơn 10...Room 2 - 2 - Giang Thiên Phú - Kinh nghiệm tối ưu mongodb với database hơn 10...
Room 2 - 2 - Giang Thiên Phú - Kinh nghiệm tối ưu mongodb với database hơn 10...Vietnam Open Infrastructure User Group
 
Room 2 - 6 - Đinh Tuấn Phong - Migrate opensource database to Kubernetes easi...
Room 2 - 6 - Đinh Tuấn Phong - Migrate opensource database to Kubernetes easi...Room 2 - 6 - Đinh Tuấn Phong - Migrate opensource database to Kubernetes easi...
Room 2 - 6 - Đinh Tuấn Phong - Migrate opensource database to Kubernetes easi...Vietnam Open Infrastructure User Group
 
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...Vietnam Open Infrastructure User Group
 
Room 2 - 5 - Seong Soo - NHN Cloud - Upstream contribution mentoring program ...
Room 2 - 5 - Seong Soo - NHN Cloud - Upstream contribution mentoring program ...Room 2 - 5 - Seong Soo - NHN Cloud - Upstream contribution mentoring program ...
Room 2 - 5 - Seong Soo - NHN Cloud - Upstream contribution mentoring program ...Vietnam Open Infrastructure User Group
 
Room 1 - 2 - Nguyễn Văn Thắng & Dzung Nguyen - Proxmox VE và ZFS over iscsi
Room 1 - 2 - Nguyễn Văn Thắng & Dzung Nguyen - Proxmox VE và ZFS over iscsiRoom 1 - 2 - Nguyễn Văn Thắng & Dzung Nguyen - Proxmox VE và ZFS over iscsi
Room 1 - 2 - Nguyễn Văn Thắng & Dzung Nguyen - Proxmox VE và ZFS over iscsiVietnam Open Infrastructure User Group
 
Room 1 - 6 - Trần Quốc Sang - Autoscaling for multi cloud platform based on S...
Room 1 - 6 - Trần Quốc Sang - Autoscaling for multi cloud platform based on S...Room 1 - 6 - Trần Quốc Sang - Autoscaling for multi cloud platform based on S...
Room 1 - 6 - Trần Quốc Sang - Autoscaling for multi cloud platform based on S...Vietnam Open Infrastructure User Group
 
Room 1 - 3 - Lê Anh Tuấn - Build a High Performance Identification at GHTK wi...
Room 1 - 3 - Lê Anh Tuấn - Build a High Performance Identification at GHTK wi...Room 1 - 3 - Lê Anh Tuấn - Build a High Performance Identification at GHTK wi...
Room 1 - 3 - Lê Anh Tuấn - Build a High Performance Identification at GHTK wi...Vietnam Open Infrastructure User Group
 
Room 1 - 7 - Lê Quốc Đạt - Upgrading network of Openstack to SDN with Tungste...
Room 1 - 7 - Lê Quốc Đạt - Upgrading network of Openstack to SDN with Tungste...Room 1 - 7 - Lê Quốc Đạt - Upgrading network of Openstack to SDN with Tungste...
Room 1 - 7 - Lê Quốc Đạt - Upgrading network of Openstack to SDN with Tungste...Vietnam Open Infrastructure User Group
 
Room 1 - 5 - Thủy Đặng - Load balancing k8s services on baremetal with Cilium...
Room 1 - 5 - Thủy Đặng - Load balancing k8s services on baremetal with Cilium...Room 1 - 5 - Thủy Đặng - Load balancing k8s services on baremetal with Cilium...
Room 1 - 5 - Thủy Đặng - Load balancing k8s services on baremetal with Cilium...Vietnam Open Infrastructure User Group
 
Room 1 - 4 - Phạm Tường Chiến & Trần Văn Thắng - Deliver managed Kubernetes C...
Room 1 - 4 - Phạm Tường Chiến & Trần Văn Thắng - Deliver managed Kubernetes C...Room 1 - 4 - Phạm Tường Chiến & Trần Văn Thắng - Deliver managed Kubernetes C...
Room 1 - 4 - Phạm Tường Chiến & Trần Văn Thắng - Deliver managed Kubernetes C...Vietnam Open Infrastructure User Group
 
Room 1 - 1 - Benoit TELLIER - On premise email inbound service with Apache James
Room 1 - 1 - Benoit TELLIER - On premise email inbound service with Apache JamesRoom 1 - 1 - Benoit TELLIER - On premise email inbound service with Apache James
Room 1 - 1 - Benoit TELLIER - On premise email inbound service with Apache JamesVietnam Open Infrastructure User Group
 

Mehr von Vietnam Open Infrastructure User Group (20)

Room 3 - 5 - Nguyễn Văn Hoàn - 101 Bugs, issues when I work with Ceph
Room 3 - 5 - Nguyễn Văn Hoàn - 101 Bugs, issues when I work with CephRoom 3 - 5 - Nguyễn Văn Hoàn - 101 Bugs, issues when I work with Ceph
Room 3 - 5 - Nguyễn Văn Hoàn - 101 Bugs, issues when I work with Ceph
 
Room 2 - 3 - Nguyễn Hoài Nam & Nguyễn Việt Hùng - Terraform & Pulumi Comparin...
Room 2 - 3 - Nguyễn Hoài Nam & Nguyễn Việt Hùng - Terraform & Pulumi Comparin...Room 2 - 3 - Nguyễn Hoài Nam & Nguyễn Việt Hùng - Terraform & Pulumi Comparin...
Room 2 - 3 - Nguyễn Hoài Nam & Nguyễn Việt Hùng - Terraform & Pulumi Comparin...
 
Room 3 - 6 - Nguyễn Văn Thắng & Dzung Nguyen - Ứng dụng openzfs làm lưu trữ t...
Room 3 - 6 - Nguyễn Văn Thắng & Dzung Nguyen - Ứng dụng openzfs làm lưu trữ t...Room 3 - 6 - Nguyễn Văn Thắng & Dzung Nguyen - Ứng dụng openzfs làm lưu trữ t...
Room 3 - 6 - Nguyễn Văn Thắng & Dzung Nguyen - Ứng dụng openzfs làm lưu trữ t...
 
Room 3 - 4 - Lê Quang Hiếu - How to be a cool dad: Leverage DIY Home Automati...
Room 3 - 4 - Lê Quang Hiếu - How to be a cool dad: Leverage DIY Home Automati...Room 3 - 4 - Lê Quang Hiếu - How to be a cool dad: Leverage DIY Home Automati...
Room 3 - 4 - Lê Quang Hiếu - How to be a cool dad: Leverage DIY Home Automati...
 
Room 3 - 2 - Trần Tuấn Anh - Defending Software Supply Chain Security in Bank...
Room 3 - 2 - Trần Tuấn Anh - Defending Software Supply Chain Security in Bank...Room 3 - 2 - Trần Tuấn Anh - Defending Software Supply Chain Security in Bank...
Room 3 - 2 - Trần Tuấn Anh - Defending Software Supply Chain Security in Bank...
 
Room 3 - 7 - Nguyễn Như Phúc Huy - Vitastor: a fast and simple Ceph-like bloc...
Room 3 - 7 - Nguyễn Như Phúc Huy - Vitastor: a fast and simple Ceph-like bloc...Room 3 - 7 - Nguyễn Như Phúc Huy - Vitastor: a fast and simple Ceph-like bloc...
Room 3 - 7 - Nguyễn Như Phúc Huy - Vitastor: a fast and simple Ceph-like bloc...
 
Room 3 - 1 - Nguyễn Xuân Trường Lâm - Zero touch on-premise storage infrastru...
Room 3 - 1 - Nguyễn Xuân Trường Lâm - Zero touch on-premise storage infrastru...Room 3 - 1 - Nguyễn Xuân Trường Lâm - Zero touch on-premise storage infrastru...
Room 3 - 1 - Nguyễn Xuân Trường Lâm - Zero touch on-premise storage infrastru...
 
Room 2 - 2 - Giang Thiên Phú - Kinh nghiệm tối ưu mongodb với database hơn 10...
Room 2 - 2 - Giang Thiên Phú - Kinh nghiệm tối ưu mongodb với database hơn 10...Room 2 - 2 - Giang Thiên Phú - Kinh nghiệm tối ưu mongodb với database hơn 10...
Room 2 - 2 - Giang Thiên Phú - Kinh nghiệm tối ưu mongodb với database hơn 10...
 
Room 2 - 6 - Đinh Tuấn Phong - Migrate opensource database to Kubernetes easi...
Room 2 - 6 - Đinh Tuấn Phong - Migrate opensource database to Kubernetes easi...Room 2 - 6 - Đinh Tuấn Phong - Migrate opensource database to Kubernetes easi...
Room 2 - 6 - Đinh Tuấn Phong - Migrate opensource database to Kubernetes easi...
 
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
 
Room 2 - 7 - Lã Mạnh Hà - Agile + DevOps = A great combination
Room 2 - 7 - Lã Mạnh Hà - Agile + DevOps = A great combinationRoom 2 - 7 - Lã Mạnh Hà - Agile + DevOps = A great combination
Room 2 - 7 - Lã Mạnh Hà - Agile + DevOps = A great combination
 
Room 2 - 1 - Phạm Quang Minh - A real DevOps culture in practice
Room 2 - 1 - Phạm Quang Minh - A real DevOps culture in practiceRoom 2 - 1 - Phạm Quang Minh - A real DevOps culture in practice
Room 2 - 1 - Phạm Quang Minh - A real DevOps culture in practice
 
Room 2 - 5 - Seong Soo - NHN Cloud - Upstream contribution mentoring program ...
Room 2 - 5 - Seong Soo - NHN Cloud - Upstream contribution mentoring program ...Room 2 - 5 - Seong Soo - NHN Cloud - Upstream contribution mentoring program ...
Room 2 - 5 - Seong Soo - NHN Cloud - Upstream contribution mentoring program ...
 
Room 1 - 2 - Nguyễn Văn Thắng & Dzung Nguyen - Proxmox VE và ZFS over iscsi
Room 1 - 2 - Nguyễn Văn Thắng & Dzung Nguyen - Proxmox VE và ZFS over iscsiRoom 1 - 2 - Nguyễn Văn Thắng & Dzung Nguyen - Proxmox VE và ZFS over iscsi
Room 1 - 2 - Nguyễn Văn Thắng & Dzung Nguyen - Proxmox VE và ZFS over iscsi
 
Room 1 - 6 - Trần Quốc Sang - Autoscaling for multi cloud platform based on S...
Room 1 - 6 - Trần Quốc Sang - Autoscaling for multi cloud platform based on S...Room 1 - 6 - Trần Quốc Sang - Autoscaling for multi cloud platform based on S...
Room 1 - 6 - Trần Quốc Sang - Autoscaling for multi cloud platform based on S...
 
Room 1 - 3 - Lê Anh Tuấn - Build a High Performance Identification at GHTK wi...
Room 1 - 3 - Lê Anh Tuấn - Build a High Performance Identification at GHTK wi...Room 1 - 3 - Lê Anh Tuấn - Build a High Performance Identification at GHTK wi...
Room 1 - 3 - Lê Anh Tuấn - Build a High Performance Identification at GHTK wi...
 
Room 1 - 7 - Lê Quốc Đạt - Upgrading network of Openstack to SDN with Tungste...
Room 1 - 7 - Lê Quốc Đạt - Upgrading network of Openstack to SDN with Tungste...Room 1 - 7 - Lê Quốc Đạt - Upgrading network of Openstack to SDN with Tungste...
Room 1 - 7 - Lê Quốc Đạt - Upgrading network of Openstack to SDN with Tungste...
 
Room 1 - 5 - Thủy Đặng - Load balancing k8s services on baremetal with Cilium...
Room 1 - 5 - Thủy Đặng - Load balancing k8s services on baremetal with Cilium...Room 1 - 5 - Thủy Đặng - Load balancing k8s services on baremetal with Cilium...
Room 1 - 5 - Thủy Đặng - Load balancing k8s services on baremetal with Cilium...
 
Room 1 - 4 - Phạm Tường Chiến & Trần Văn Thắng - Deliver managed Kubernetes C...
Room 1 - 4 - Phạm Tường Chiến & Trần Văn Thắng - Deliver managed Kubernetes C...Room 1 - 4 - Phạm Tường Chiến & Trần Văn Thắng - Deliver managed Kubernetes C...
Room 1 - 4 - Phạm Tường Chiến & Trần Văn Thắng - Deliver managed Kubernetes C...
 
Room 1 - 1 - Benoit TELLIER - On premise email inbound service with Apache James
Room 1 - 1 - Benoit TELLIER - On premise email inbound service with Apache JamesRoom 1 - 1 - Benoit TELLIER - On premise email inbound service with Apache James
Room 1 - 1 - Benoit TELLIER - On premise email inbound service with Apache James
 

Viet stack 2nd meetup - Virtualization & Nova in OpenStack

  • 1. ẢO HÓA TRONG OPENSTACK LÊ QUANG LONG longlq@vdc.com.vn 02/02/2015 VietStack Summit 2
  • 2. ẢO HÓA TRONG OPENSTACK NỘI DUNG 1. KHÁI NIỆM VỀ ẢO HÓA 2. GIỚI THIỆU VỀ KVM 3. OPENSTACK COMPUTE 4. DEMO & TRAO ĐỔI 2
  • 3. ẢO HÓA TRONG OPENSTACK 1.KHÁI NIỆM VỀ ẢO HÓA • Type 1: VMWare ESXi, Microsoft Hyper-V, Xen Server • Type 2: VMWare WorkStation, Oracle Virtual Box, Microsoft Virtual PC,… Hardware Bare-metal Hypervisor VM OS/APP VM OS/APP TYPE I Hardware Hypervisor Operating System TYPE II VM OS/APP VM OS/APP 3
  • 4. ẢO HÓA TRONG OPENSTACK 1.KHÁI NIỆM VỀ ẢO HÓA Các dạng ảo hóa: • Full virtualization • Paravirtualization • Hardware-assisted virtualization Nguồn: http://www.slideshare.net/Rishikese/seminar-on-virtualization-and-cloud-computing 4 FULL PARA- HARDWARE-ASSISTED
  • 5. ẢO HÓA TRONG OPENSTACK 2.GIỚI THIỆU KVM KVM là gì? • Ra đời năm 2008 bởi công ty Qumranet tại Israel • Red Hat đã mua lại Qumranet năm 2008 • Kernel-based Virtual Machine là giải pháp ảo hóa dạng full virtualization • Hỗ trợ native virtualization (Intel-VT hay AMD-V) • Đã được tích hợp sẵn trong Linux kernel từ 2.6.20 5 Nguồn: http://www.linux-kvm.org/page/Main_Page
  • 6. ẢO HÓA TRONG OPENSTACK 2.GIỚI THIỆU KVM Tại sao lại chọn KVM? • KVM là OpenSource • Cung cấp máy ảo mà không cần phải tinh chỉnh lại các images của OS • Hỗ trợ nhiều loại OS • Tận dụng cơ chế quản lý vùng nhớ của Linux (KSM) • Tận dụng các cơ chế bảo mật sẵn có của Linux (SELinux) • Hỗ trợ nhiều loại phần cứng 6
  • 7. ẢO HÓA TRONG OPENSTACK 2.GIỚI THIỆU KVM Kiến trúc của KVM • Linux Kernel • QEMU • KVM LINUX KERNEL User Process KVM Driver User Process Guest Mode QEMU I/O Guest Mode QEMU I/O 7 Tham khảo: http://www.innervoice.in/blogs/2014/03/10/kvm-and-qemu/ HARDWARE
  • 8. ẢO HÓA TRONG OPENSTACK 2.GIỚI THIỆU KVM 8 Virtio-net Virtio-blk Virtio-pci Virtio-balloon Virtio-console Virtio frontend Transport Virtio backend VirtIO
  • 9. ẢO HÓA TRONG OPENSTACK 2.GIỚI THIỆU KVM 9 VirtIO LINUX KERNEL Guest Mode QEMU pNIC TAP Virtio front-end Virtio back-end Bridge LINUX KERNEL Guest Mode QEMU pNIC TAP Virtio front-end Bridge Vhost_net Vhost-NETVirtIO-NET
  • 10. ẢO HÓA TRONG OPENSTACK 3.OPENSTACK COMPUTE Chức năng chính: • Làm việc với các Hypervisor (KVM, QEMU, Vmware, Hyper-V …). • Quản lý các máy ảo (Instance <=>Virtual Machine). • Tạo, sửa, xóa các máy ảo thông qua API. Các thành phần bên trong: • Nova-compute • Nova-api (port 8773, 8744) • Nova-scheduler • Nova database • Nova-console, nova-consoleauth • Queue • Nova-cert • Nova-conductor 10 Nova
  • 11. ẢO HÓA TRONG OPENSTACK Nova Nova-api Nova Database Client Nova-conductor Nova-compute GLANCE NEUTRON CINDER Hypervisor 3.OPENSTACK COMPUTE Nova-scheduler Queue 11 Tài liệu: http://docs.openstack.org/training-guides/content/
  • 12. ẢO HÓA TRONG OPENSTACK Định nghĩa • Libvirt là một nhóm các công cụ cung cấp một cách thức quản lý các máy ảo và các tính năng ảo hóa khác như network interface hay storage • Mục đích của libvirt là đưa ra một phương thức đơn giản, quản lý tập trung các hypervisor • Các Hypervisor hỗ trợ: KVM, Xen, VMWare ESX, Hyper-V,… Libvirt 3.OPENSTACK COMPUTE Các thành phần • API: Phương thức để kết nối tới các hypervisor • Libvritd: daemon chạy trên các host để quản lý các máy ảo của hypervisor • Virsh: cung cấp một giao diện dòng lệnh cho người dùng 12
  • 13. ẢO HÓA TRONG OPENSTACK libvirt (libvirt daemon) (libvirt api) virt-manager virsh virt-install OpenStack User-space ManagementLibvirt 3.OPENSTACK COMPUTE KVM VMWare Hyper-VXEN 13 Tham khảo: http://en.wikipedia.org/wiki/Libvirt
  • 14. ẢO HÓA TRONG OPENSTACK 4.DEMO & TRAO ĐỔI 14

Hinweis der Redaktion

  1. Trình bày qua về 2 loại Hypervisor Nêu bật ưu điểm của Type 1 so với Type 2
  2. Trình bày sơ lược về các dạng ảo hóa Sự khác nhau giữa chúng Tương lai của ảo hóa
  3. Định nghĩa về KVM Nói về lịch sử ra đời
  4. Nói về các ưu điểm của KVM Nhấn mạnh việc tích hợp vào kernel của KVM KVM sử dụng các cơ chế quản lý thiết bị của Linux, CPU scheduling, Memory page sharing
  5. Trình bày về kiến trúc của KVM Phân biệt QEMU và KVM, làm rõ được sự liên hệ giữa QEMU và KVM
  6. Mục đích của Virtio Các thành phần drive của VirtIO
  7. Nêu ra 2 option khi dử dụng virtio, điều kiện Mô tả 2 option này
  8. Nêu lên chức năng của nova Nói lên được chức năng của các thành phần trong Nova
  9. Trình bày về luồng khởi tạo 1 máy ảo
  10. Nói được định nghĩa về libvirt và các hypervisor hỗ trợ Giới thiệu các thành phần trong kibvirt
  11. Cách kiểm tra CPU có hỗ trợ ảo hóa hay ko? Demo sử dung KVM để tạo máy ảo