Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 244528

Deploy vApp from template while giving the deployed vApp a name, the VMs inside their own name and their hostnames

$
0
0

Hello,

 

I am trying to deploy a vApp from a template in the catalog, I have been successful creating the vApp using (http://velemental.com/2012/03/24/deploying-a-vapp-in-vcd-from-a-catalog-using-powercli/) , but the VMs inside get the names of the VMs in the template and also the hostnames for the OS from the template.

 

Example:

vAppTemplate = rhel_template

vAppTemplate->VM1 = rhel_vm

vAppTemplate -> VM1 -> hostname = rhelos

 

When I deploy the new vApp(johntest) using powerCLI I am getting:

vApp = johntest

vApp->VM1 = rhel_vm                            <-- This does not change (I want it to be johntest)

vApp -> VM1 -> hostname = rhelos          <-- This does not change (I want it to be johntest)

 

 

Does anyone have an example of how to do this and can share?

 

 

Thanks,

John


Viewing all articles
Browse latest Browse all 244528

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>