How it works – TPVM Persistence
When using the Legacy method, the TPVM installation as well its configuration were configured through the ‘Exec‘ mode commands. The TPVM/Ubuntu was an independent Guest OS with its own RootFS and it will a make a copy or a static entry of the above executed configuration files. For example, if the TPVM Management Interface ‘eth0‘ is configured, from SLX, the TPVM Rootfs /etc/network/interface file will be edited to maintain the static entry for its future use.
The above model is good for any kind of TPVM reboot or powercycle of the SLX device and is insufficient, if TPVM is upgraded with a new image or SLX switch. The RMA is also installed with the new SLX switch, but with the old SLX switch running-configurations.
Note
It can be either of the configuration modes, only one TPVM instance (named TPVM) is deployed or installed and its Debian image is expected to be available at the /tftpboot/SWBD2900 folder. The only major difference is being persistent at the SLX-OS, in the new Config mode.The TPVM configurations are listed below as 3 types:
auto-boot
hostname
timezone
dns
ntp
ldap host
ldap ca-cert
trusted-peer
disk (to be implemented in future release)
deploy
The install time configuration should be always configured before the deploy configuration, else they will fail. As they are applied to the TPVM Instance RootFS during the installation time. The settings before the deploy configuration persist, as these configurations are present in the SLX-OS running-configuration database. Whenever the deploy is configured, at that time, these configurations are applied during the TPVM installation stage.
The post deploy configuration, if required, will stop the TPVM, by the command tpvm stop. Then the tpvm config submode is set at the install time configuration, followed by the tpvm start command.
The Run time configurations may be configured any time. If configured before ‘deploy‘, they are just persisted at SLX-OS running-configuration Database. If configured after ‘deploy‘ configuration, it implies that the TPVM is running and the configuration is first applied to the TPVM run-time. If they succeed only, then it is persisted to the SLX-OS running-configuration database.
The Deploy configuration implies the following:
Across normal SLX-OS reboot, there is no change in the configuration especially in the deploy configuration. Post boot action is needed and the TPVM will reboot with its configurations and if auto-boot is set manually through the tpvm start command.
Note
The interface insight and the disk configurations, are currently not supported by the SLX-OS backend and it will report failure if tried configuring. By default for the first time the disk vdb is created and mounted to the /apps TPVM legacy. The subsequent deploy or install will reuse the existing disk vdb. Commands like “tpvm uninstall force” is needed to purge the vdb.How it works – across RMA
When the SLX switch is RMA and its replaced by another SLX switch, it's expected that the new switch will have the desired SLX-OS image as well as the TPVM Debian image file.
The default-config new switch will not have any TPVM related configurations. The corresponding cleanup will be needed, if any switch boots with the default-config.
The Admin user will have the backup of the running-configuration last switch, and it will copy the same to the new switch running-configuration through the command:
For example - SLX# copy flash://old.cfg running-config.
or
SLX# copy scp://<username>:<password>@hostname/<filepath> running-config
If copied, the running-configuration will have the tpvm configurations and they will be applied.
How it works – across upgrade
The new tpvm upgrade command can be explained as 2 main steps:
First download the new Debian image package file and then as explained above, re-deploy the TPVM.
Re-deploying means stop and uninstall running TPVM instances. Hence it's like fresh deploying.
As explained for deploying, if any TPVM configurations are found in the SLX-OS running-configuration Database, they are also applied to TPVM.