官术网_书友最值得收藏!

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...

  1. Make sure the vApp that you want as a template is stopped.
  2. Right-click on the vApp and choose Copy to....
  3. Choose a new Name, OvCD, and a Storage Profile for the vApp:
  4. The vApp will now be copied.
  5. 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:

主站蜘蛛池模板: 清流县| 蒙自县| 鸡东县| 巴林左旗| 甘孜县| 玉树县| 德庆县| 安化县| 英吉沙县| 尚义县| 阿鲁科尔沁旗| 呼伦贝尔市| 比如县| 清流县| 开鲁县| 辽阳市| 汤原县| 高青县| 荣成市| 武夷山市| 吴川市| 琼海市| 修武县| 仲巴县| 万盛区| 远安县| 西贡区| 忻州市| 朝阳市| 蓬溪县| 惠安县| 辽中县| 神木县| 闵行区| 嘉祥县| 蕲春县| 墨竹工卡县| 天祝| 新余市| 科尔| 盘山县|