VMware: Deploy multiple VM’s from template with PowerCLI
2015-06-02 08:43
573 查看
转载自http://blog.vmpros.nl/2011/01/16/vmware-deploy-multiple-vms-from-template-with-powercli/
Last week I was working on a new project, they asked me to install 5 new fileservers based on Windows 2008R2, I installed a new VM and converted it to a template, next I configured a template in “Customization Specifications Manager” with the following details:
Customization template:
Registration information: name company
Computer name: Use the virtual machine name (important)
Product key: Didn’t need it because I’ve configured KMS
Password: Company default local administrator password, selected: Automatically login as the Administrator: 2
Timezone: GMT+0100 (Amsterdam)
Runonce: none
Network: Typical settings
Workgroup or Domain: selected to auto join the domain with domain administrator credentials + domain name (important)
Operation System Options: Selected: Generate New Security ID (SID)
VM template settings:
Hard disk: 40 GB with only OS configured with company standard policy
VMware tools: Latest, this must be installed for Specification Template and NIC
Network: VMXNET3 (needed VMware Tools for driver)
Script: (saved as: FileserverDeploy.ps1)
-vmhost = Target host;
-Name = Name of new VM;
-Template: From wich template you want to deploy the new VM;
-Datastore: Target datastore to place the new VM;
-OSCustomizationspec = Wich “prep” template you want to deploy the new VM;
?
PowerCLI:
Running the script:
Final result:
The 5 fileservers deployed from template and joined the domain.. great!
Last week I was working on a new project, they asked me to install 5 new fileservers based on Windows 2008R2, I installed a new VM and converted it to a template, next I configured a template in “Customization Specifications Manager” with the following details:
Customization template:
Registration information: name company
Computer name: Use the virtual machine name (important)
Product key: Didn’t need it because I’ve configured KMS
Password: Company default local administrator password, selected: Automatically login as the Administrator: 2
Timezone: GMT+0100 (Amsterdam)
Runonce: none
Network: Typical settings
Workgroup or Domain: selected to auto join the domain with domain administrator credentials + domain name (important)
Operation System Options: Selected: Generate New Security ID (SID)
VM template settings:
Hard disk: 40 GB with only OS configured with company standard policy
VMware tools: Latest, this must be installed for Specification Template and NIC
Network: VMXNET3 (needed VMware Tools for driver)
Script: (saved as: FileserverDeploy.ps1)
-vmhost = Target host;
-Name = Name of new VM;
-Template: From wich template you want to deploy the new VM;
-Datastore: Target datastore to place the new VM;
-OSCustomizationspec = Wich “prep” template you want to deploy the new VM;
?
Running the script:
Final result:
The 5 fileservers deployed from template and joined the domain.. great!
相关文章推荐
- 使用OS Watcher监控操作系统
- 把Chrome OS安装在VMWare下及Chrome OS的关键特性和一些截图
- 什么是Mac OS X?跟Linux有什么区别
- 企业云 2.0:VMware 眼中的企业 IT 的未来
- VMware Workstation 5.5.3 Build 34685 汉化补丁
- DOS命令全集(一)
- DOS下内存的配置
- 基于SQL Server OS的任务调度机制详解
- DOS下的必备工具
- DOS 下的批处理文件
- 在MAC OS X上安装MYSQL
- Vmware虚拟机的安装及配置方法
- python使用os模块的os.walk遍历文件夹示例
- nasm实现的用vmware运行自做的linux启动盘的引导代码
- Install ESX Server 3.5/3i onto ESX Server安装方法
- DOS命令全集(二)
- iOS、Mac OS X系统中编程实现汉字转拼音的方法(超级简单)
- Python os模块介绍
- Python os模块中的isfile()和isdir()函数均返回false问题解决方法
- 使用os包和flag包实现读取main命令入参