VMware vApp

From securityrouter.org, an OpenBSD-based firewall
Jump to: navigation, search

VMware's vApp and OVF technologies can be used to communicate information between the system and the VMware platform. For example, a system can be automatically deployed using the OVF tool command

ovftool \
   --powerOn \
   --name="Halon SR LAB" \
   --net:"WAN"="VM Network" \
   --prop:halon.ip0=192.168.61.61 \
   --prop:halon.netmask0=255.255.0.0 \
   --prop:halon.gateway=192.168.0.1 \
   --prop:halon.DNS=8.8.8.8 \
   --prop:halon.hostname=ovf-lab.halon.se \
   http://dl.halon.se/vsr/halon-vsr-vmware-amd64-3.1p3.ova \
   vi://192.168.10.10/Halon/host/192.168.10.11/

by using vApp's OVF environment properties. They can also be configured when doing an OVF template deployment in for example vSphere Client on a vCenter server. You can also manually fetch properties using the vmware-vapp-settings command if logged in using the root access. Various settings such as

configure -- set system { authentication { user '"admin"' { password '"'`vmware-vapp-settings halon.password`'"' -- commit

or entire configurations

vmware-vapp-settings halon.boot-config | configure -- import -- commit

can be committed.