目录
前言
在上一篇 Openstack Nova 源码分析 — Create instances (nova-conductor阶段) 中,记录了 nova-api 接收到创建虚拟机的请求后,在 nova-conductor 中的执行流程。最终 nova-comductor 通过调用 nova-compute 的 RPC 接口函数 compute_rpcapi.build_and_run_instance()
将创建虚拟机的请求,通过 Queue 传递给 nova-compute 。本篇继续往下看看 Openstack 创建一个虚拟机时,程序流在 nova-compute 和 Virt Driver 阶段的执行过程。而且本篇使用 VCDirver 作为Virt Driver Type 。
NOTE:下面的代码块大多为节选。