cot inject-config
Use the
cot inject-config
command if you have a large set of configuration commands to pre-apply to the
OVA; for example, if you want to add a complete running configuration. This is efficient in terms of file size
and loading time as it uses plain text for the configuration commands (instead of XML). For further details
about the
cot inject-config
command, see
http://cot.readthedocs.io/en/latest/usage_inject_config.html
Synopsis and Description
cot inject-config ova-filename
-o output
Specifies the name or path to a new OVA package, if you are creating a new OVA instead of updating the
existing OVA.
-c config-file
Specifies the name of a text file, such as iosxe_config.txt , to be embedded in the OVA.
Example
In this example, the
cot inject-config
command adds Cisco IOS XE commands in text file iosxe_config.txt
to the OVA.
$ cat iosxe_config.txt
interface GigabitEthernet1
no shutdown
ip address 192.168.100.10 255.255.255.0
!
ip route 0.0.0.0 0.0.0.0 GigabitEthernet1 192.168.100.1
$ cot inject-config csr1000v-universalk9.ova \
-o csr1000v-universalk9-customized.ova \
-c iosxe_config.txt
$
cot info csr1000v-universalk9-customized.ova
<.. other output snipped for brevity ..>
Files and Disks:
File Size
Capacity Device
--------- --------- --------------------
csr1000v_harddisk.vmdk
71.50 kB
8.00 GB harddisk @ SCSI 0:0
bdeo.sh
52.42 kB
README-OVF.txt
8.53 kB
README-BDEO.txt
6.75 kB
cot.tgz
116.78 kB
csr1000v-universalk9.iso
484.80 MB
cdrom @ IDE 1:0
config.iso
350.00 kB
cdrom @ IDE 1:1
Cisco CSR 1000v Series Cloud Services Router Software Configuration Guide
88
Installing the Cisco CSR 1000v in VMware ESXi Environments
Deploying the Cisco CSR 1000v to the VM using COT