云计算与虚拟化技术 第10讲: Templates、 vApps 阮晓龙 13938213680/n@hactcm edu cn http://cloud.xg.hactcm.edu.cn http://www.51xueweb.cn 河南中医药大学信息管理与信息系统教研室 信息技术学院网络与信思系统科研工作室 2019.5
2 讨论提纲 口 Cloning vms Creating a Customization Specification Cloning a Virtual Machine Introducing vSphere Instant Cloning Instant Cloning Running VMs a Instant Cloning Frozen VMs a Creating Templates and Deploying Virtual Machines 口 Using ovf Templates a Using Content Libraries a Working with VApps 河南中医药大学/阮晓龙/13938213680/htp/cloudxg.hactcm.edu.cn/http:/www5ucwebcn
3 1.Cloning VMs 1.cReating a Customization Specification a VCenter Server's customization specification works hand in hand with the tools for customizing VM clones(Sysprep for VMs with a W indows-based guest OS; open source tools for a VM with a Linux based guest OS) a you have to provide v Center Server with the information necessary to give the cloned vm its own unique identity this includes the ip address, passwords, computer name, and licensing information With customization specification, you provide all the information only once and then apply it as needed when cloning a 河南中医药大学/阮晓龙/13938213680/htp/cloudxg.hactcm.edu.cn/http:/www5ucwebcn
4 1.Cloning VMs 1.cReating a Customization Specification a Create a customization specification in the following two ways By creating it during the process of cloning a VM a By using the Customization Specification Manager in vCenter Server 河南中医药大学/阮晓龙/13938213680/htp/cloudxg.hactcm.edu.cn/http:/www5ucwebcn
5 1.Cloning VMs 1.cReating a Customization Specification Demo on v Center Server vSphere Web Client Create a new customization specification for Windows 河南中医药大学/阮晓龙/13938213680/htp/cloudxg.hactcm.edu.cn/http:/www5ucwebcn
6 1.Cloning VMs 1.cLoning a Virtual Machine Demo with vSphere Web Client step by step to clone a VM Cloning Running VMs It's possible to clone even powered-on VMs 河南中医药大学/阮晓龙/13938213680/htp/cloudxg.hactcm.edu.cn/http:/www5ucwebcn
1.Cloning VMs 1.iNtroducing vSphere Instant Cloning o Creating a clone of a VM in a matter of minutes can be very helpful, but if you want to create a large number of identical VMs, the cloning process can take hours Let's say your job involves administering a pool of virtual desktops in a virtual desktop infrastructure(VDI) farm, or maybe you are spinning up a large number of vms for developers to work on an exact replica of the main production environment VMware has enhanced the traditional cloning capabilities to increase the speed and reduce the resource overhead when there's a need to create multiple versions of a source VM at the same time 河南中医药大学/阮晓龙/13938213680/htp/cloudxg.hactcm.edu.cn/http:/www5ucwebcn
8 1.Cloning VMs 1.iNtroducing vSphere Instant Cloning a It's easy to derive from its name that instant cloning is fast, but just how fast is it? a That depends on a few things, such as a the ESXi host speed, utilization, and the size of the source VM, but usually it is somewhere between one and a few seconds a Not only can it create VMs quickly, but it can do it in parallel too--up to eight VMs can be cloned simultaneously a In a best-case scenario, you could generate 100 brand new identical VMs in a 10- to 20-second time frame 河南中医药大学/阮晓龙/13938213680/htp/cloudxg.hactcm.edu.cn/http:/www5ucwebcn
9 1.Cloning VMs 1.iNtroducing vSphere Instant Cloning a The instant Clone feature will create vms that run in the exact state their source vm does by leveraging a few technologies: vMotion Transparent Page Sharing, and delta disks m With traditional VM cloning, a complete set of the source VM's virtual hardware is created You get a copy of the all virtual disk (. VMDk) files, a copy of the VMs configuration (VMX) files, and even a copy of the in-guest memory (if the cloned VM is currently running) 河南中医药大学/阮晓龙/13938213680/htp/cloudxg.hactcm.edu.cn/http:/www5ucwebcn
10 1.Cloning VMs 1.iNtroducing vSphere Instant Cloning a The instant Clone feature will create vms that run in the exact state their source vm does by leveraging a few technologies: vMotion Transparent Page Sharing, and delta disks The Instant Clone works is completely different o The result is more or less the same, in that you still get a new VM, but you don't get brand new copies of the virtual disks or in-guest memory for unning vms o Instant Clone uses a function known as copy-on-write to share both memory and disk data with the source VM, and only making a copy of the changes when the cloned VM needs to modify something o That way, it can keep a single copy of all data without needing to duplicate anything, and it can create new VMs based on the same original VM very quickly 河南中医药大学/阮晓龙/13938213680/htp/cloudxg.hactcm.edu.cn/http:/www5ucwebcn