- VMware vCloud Director Cookbook
- Daniel Langenhan
- 289字
- 2021-07-23 15:45:10
Using templates with firewall and NAT settings
One of the major problems is that vApp templates do not keep their vApp router settings when they are templated and redeployed. Using templates with firewall and NAT settings is a way around it.
Getting ready
We need a vApp that has been configured with a vApp router and contains some firewall and NAT rules. You can use the vApp you created in the Forwarding an RDP (or SSH) session into an isolated vApp recipe in this chapter.
How to do it...
- Make sure the vApp that you want as a template is stopped.
- Right-click on the vApp and choose Copy to....
- Choose a new Name, OvCD, and a Storage Profile for the vApp:
- The vApp will now be copied.
- After the vApp is copied, you can deploy it. It is now a full copy, including the vApp router rules of the original vApp.
How it works...
It is not the most ideal way to do this, but it works. There are several downsides of this solution. One is that you will need these templates in each organization; you cannot use them centrally. The other one is that users would be able to delete, alter, or otherwise use these templates' VMs. You can use sharing to resolve this problem, but then you lose the user's ability to self provision.
For sharing, see the Sharing a vApp recipe in Chapter 3, Better vApps.
There's more...
Another solution for this problem is to use vCenter Orchestrator to deploy vApp router rules on demand. There are a lot of scripts out there, and I would recommend googling for them. In the following screenshot you can see the existing scripts in the vCenter Orchestrator (vCO) library:

- Microsoft Dynamics GP 2016 Cookbook
- 汪博士詳解PMP?模擬題(第4版)
- 自愿審計動機與質(zhì)量研究:基于我國中期財務(wù)報告審計的經(jīng)驗證據(jù)
- Mastering System Center Configuration Manager
- 中國特色社會主義國家審計制度研究
- 會計信息化基礎(chǔ)(金蝶版)
- 陜西文物年鑒·2015
- 大數(shù)據(jù)搜索與挖掘及可視化管理方案 :Elastic Stack 5:Elasticsearch、Logstash、Kibana、X-Pack、Beats (第3版)
- 非線性經(jīng)濟關(guān)系的建模
- 財務(wù)建模與綜合估值:數(shù)據(jù)研磨、模型校準(zhǔn)、動態(tài)估值
- 振蕩指標(biāo)MACD:波段操作精解(升級版)
- Tableau:Creating Interactive Data Visualizations
- 中國審計市場:制度變遷與競爭行為
- 傳習(xí)集2
- 多項目管理方法及其應(yīng)用研究(國家社科基金后期資助項目)