Linux 虛擬化 — 原理、方法和實戰(KVM+Docker+OpenStack)
吳光科,李建堯,柯宇霖
買這商品的人也買了...
-
$1,194$1,134 -
$250Linux KVM 虛擬化架構實戰指南
-
$505跟老男孩學 Linux 運維 : 核心系統命令實戰
-
$484深度實踐 KVM : 核心技術、管理運維、性能優化與項目實施
-
$534$507 -
$354$336 -
$834$792 -
$286虛擬化與網絡存儲技術
-
$414$393 -
$299$284 -
$403Linux 虛擬化數據中心實戰
-
$690$587 -
$1,200$792 -
$768$730 -
$648$616 -
$820$640 -
$534$507 -
$774$735 -
$654$621 -
$479$455 -
$414$393 -
$414$393 -
$414$393 -
$720$562 -
$650$507
相關主題
商品描述
《Linux虛擬化——原理、方法和實戰(KVM+Docker+OpenStack)》從實用的角度出發,詳細介紹了Linux虛擬化相關的理論與應用知識,包括企業級KVM虛擬化實戰、企業級Docker虛擬化實戰、Docker企業命令實戰、Docker網絡原理實戰、Dockerfile企業鏡像實戰、Docker倉庫案例實戰、Docker Compose容器編排實戰、Docker Swarm集群案例實戰、OpenStack+KVM構建企業級私有雲。 《Linux虛擬化——原理、方法和實戰(KVM+Docker+OpenStack)》免費提供與書中內容相關的視頻課程講解,以指導讀者深入地進行學習,詳見前言中的說明。 《Linux虛擬化——原理、方法和實戰(KVM+Docker+OpenStack)》既可作為高等學校電腦相關專業的教材,也可作為系統管理員、網絡管理員、Linux運維工程師及網站開發、測試、設計等人員的參考用書。
目錄大綱
第 1 章 企業級 KVM 虛擬化實戰.................................................................................................................1
1.1 虛擬化技術概述及簡介.........................................................................................................................................1
1.2 互聯網虛擬化技術種類.........................................................................................................................................2
1.3 KVM 虛擬化概念 ...................................................................................................................................................2
1.4 KVM 虛擬化安裝 ...................................................................................................................................................3
1.5 KVM 網橋配置實戰 ...............................................................................................................................................3
1.6 KVM 虛擬化硬盤擴容 ...........................................................................................................................................7
1.7 KVM 虛擬機批量克隆實戰 ...................................................................................................................................8
1.8 ESXI 虛擬化技術概念 .........................................................................................................................................10
1.9 XEN 虛擬化技術概念..........................................................................................................................................11
第 2 章 企業級 Docker 虛擬化實戰.......................................................................................................... 12
2.1 虛擬化技術實現方式...........................................................................................................................................14
2.2 Docker LXC 及 Cgroup 原理剖析.........................................................................................................................14
2.3 AUFS 簡介 ............................................................................................................................................................17
2.4 Device Mapper 文件系統簡介..............................................................................................................................18
2.5 OverlayFS 簡介......................................................................................................................................................19
2.6 為什麽使用 Docker...............................................................................................................................................21
2.7 Docker 鏡像、容器、倉庫 ..................................................................................................................................22
2.8 Docker 鏡像原理剖析 ..........................................................................................................................................22
2.9 CentOS 7.x(7.0+)Linux Docker 平臺實戰 .......................................................................................................25
2.10 CentOS 8.x(8.0+)Linux Docker 平臺實戰 .....................................................................................................27
2.11 Ubuntu(16.04+)Linux Docker 平臺實戰 .......................................................................................................29
2.12 Docker 倉庫源更新實戰 ....................................................................................................................................31
第 3 章 Docker 企業命令實戰................................................................................................................... 33
3.1 Docker search 命令實戰 .......................................................................................................................................33
3.2 Docker pull 命令實戰 ...........................................................................................................................................33
3.3 Docker images 命令實戰.......................................................................................................................................34
3.4 Docker run 命令實戰 ............................................................................................................................................34
3.5 Docker ps 命令實戰..............................................................................................................................................34
3.6 Docker inspect 命令實戰 ......................................................................................................................................34
VI Linux 虛擬化——原理、方法和實戰(KVM+Docker+OpenStack)
3.7 Docker exec 命令實戰 ..........................................................................................................................................35
3.8 Docker stop|start 命令實戰 ...................................................................................................................................35
3.9 Docker rm 命令實戰 .............................................................................................................................................35
3.10 Docker rmi 命令實戰 ..........................................................................................................................................36
3.11 Docker 虛擬化 30 多個命令實戰剖析 ..............................................................................................................36
第 4 章 Docker 網絡原理實戰................................................................................................................... 38
4.1 Host 模式剖析.......................................................................................................................................................38
4.2 Container 模式剖析...............................................................................................................................................39
4.3 None 模式剖析......................................................................................................................................................39
4.4 Bridge 模式剖析 ...................................................................................................................................................39
4.5 Bridge 模式原理剖析 ...........................................................................................................................................40
4.6 Bridge 模式實戰一 ...............................................................................................................................................41
4.7 Bridge 模式實戰二 ...............................................................................................................................................41
4.8 Bridge 模式實戰三 ...............................................................................................................................................42
4.9 Bridge 模式實戰四 ...............................................................................................................................................43
4.10 Docker 持久化固定容器 IP................................................................................................................................44
4.11 EFK 應用背景剖析 ............................................................................................................................................46
4.12 EFK 架構原理深入剖析 ....................................................................................................................................47
4.13 Docker 部署 EFK 日誌平臺 ...............................................................................................................................48
4.14 基於 Docker Web 管理 Docker 容器..................................................................................................................50
第 5 章 Dockerfile 企業鏡像實戰.............................................................................................................. 55
5.1 Dockerfile 語法命令詳解一 .................................................................................................................................55
5.2 Dockerfile 語法命令詳解二 .................................................................................................................................56
5.3 Dockerfile 製作規範及技巧 .................................................................................................................................61
5.4 Dockerfile 企業案例一 .........................................................................................................................................61
5.5 Dockerfile 企業案例二 .........................................................................................................................................62
5.6 Dockerfile 企業案例三 .........................................................................................................................................63
5.7 Dockerfile 企業案例四 .........................................................................................................................................64
第 6 章 Docker 倉庫案例實戰................................................................................................................... 65
6.1 Docker 國內源實戰...............................................................................................................................................65
6.2 Docker Registry 倉庫源實戰 ................................................................................................................................66
6.3 Docker Harbor 倉庫源實戰 ..................................................................................................................................68
6.4 Docker 磁盤、內存、CPU 資源實戰一..............................................................................................................73
6.5 Docker 磁盤、內存、CPU 資源實戰二..............................................................................................................76
6.6 Docker 資源監控方案和監控實戰 ......................................................................................................................81
6.7 Docker stats 監控工具 ..........................................................................................................................................81
目錄 VII
6.8 CAdvisor 監控工具 ...............................................................................................................................................83
6.9 CAdvisor 部署配置 ...............................................................................................................................................83
6.10 構建 CAdvisor+InfluxDB+Grafana 平臺.............................................................................................................85
第 7 章 Docker Compose 容器編排實戰................................................................................................. 89
7.1 Docker Compose 概念剖析 ...................................................................................................................................89
7.2 Docker Compose 部署安裝 ...................................................................................................................................90
7.3 Docker Compose 命令實戰 ...................................................................................................................................90
7.4 Docker Compose 常見概念 ...................................................................................................................................91
7.5 Docker Compose 語法詳解 ...................................................................................................................................91
7.6 Docker Compose Nginx 案例一.............................................................................................................................99
7.7 Docker Compose Redis 案例二 ...........................................................................................................................101
7.8 Docker Compose Tomcat 案例三.........................................................................................................................102
7.9 Docker Compose RocketMQ 案例四 ...................................................................................................................105
第 8 章 Docker Swarm 集群案例實戰 ................................................................................................... 110
8.1 Swarm 概念剖析 .................................................................................................................................................110
8.2 Docker Swarm 的優點 .........................................................................................................................................111
8.3 Swarm 負載均衡 .................................................................................................................................................112
8.4 Swarm 架構圖......................................................................................................................................................113
8.5 Swarm 節點及防火牆設置 .................................................................................................................................114
8.6 Docker 虛擬化案例實戰 ....................................................................................................................................115
8.7 Swarm 集群部署 .................................................................................................................................................116
8.8 Swarm 部署 Nginx 服務 ......................................................................................................................................117
8.9 Swarm 服務擴容和升級 .....................................................................................................................................118
8.10 Manager 和 Node 角色切換..............................................................................................................................120
8.11 Swarm 數據管理之 volume...............................................................................................................................121
8.12 Swarm 數據管理之 Bind...................................................................................................................................121
8.13 Swarm 數據管理之 NFS ...................................................................................................................................123
8.14 Docker Swarm 新增節點 ...................................................................................................................................124
8.15 Docker Swarm 刪除節點 ...................................................................................................................................127
8.16 Docker 自動化部署一 ......................................................................................................................................128
8.17 Docker 自動化部署二 ......................................................................................................................................132
第 9 章 OpenStack+KVM 構建企業級私有雲....................................................................................... 138
9.1 OpenStack 入門簡介...........................................................................................................................................138
9.2 OpenStack 核心組件...........................................................................................................................................139
9.3 OpenStack 準備環境...........................................................................................................................................141
9.4 Hosts 及防火牆設置...........................................................................................................................................141
VIII Linux 虛擬化——原理、方法和實戰(KVM+Docker+OpenStack)
9.5 OpenStack 服務安裝...........................................................................................................................................142
9.6 MQ(消息隊列)簡介.......................................................................................................................................143
9.7 MQ 應用場景 ......................................................................................................................................................144
9.8 安裝配置 RabbitMQ ...........................................................................................................................................146
9.9 RabbitMQ 消息測試 ...........................................................................................................................................148
9.10 配置 Keystone 驗證服務 ..................................................................................................................................149
9.11 配置 Glance 鏡像服務......................................................................................................................................155
9.12 Nova 控制節點配置..........................................................................................................................................158
9.13 Nova 計算節點配置..........................................................................................................................................161
9.14 OpenStack 節點測試.........................................................................................................................................165
9.15 Neutron 控制節點配置 .....................................................................................................................................166
9.16 Neutron 計算節點配置 .....................................................................................................................................171
9.17 OpenStack 控制節點網橋.................................................................................................................................173
9.18 控制節點配置 Dashboard.................................................................................................................................175
9.19 OpenStack GUI 配置 .........................................................................................................................................191
9.20 OpenStack 核心流程.........................................................................................................................................199