This topic describes the steps to install and start the TPVM using the deploy config command and persist other TPVM configurations in the SLX-OS running-config. These persisted configurations are useful during TPVM upgrade operation. Also, for any SLX switch RMA, the persisted configurations can be used to restore the TPVM to its previous configurations.
This section provides a large number of examples to illustrate the above actions.
The TPVM Debian image file (e.g. tpvm-4.2.5-1.amd64.deb ) can be found in the /tftpboot/SWBD2900 folder of the SLX device. To deploy, install this file.
Note
Only one image file can be stored in the above mentioned location.This example describes a simple TPVM deploy action with built-in defaults.
SLX # config terminal SLX (config)# tpvm TPVM SLX (config-tpvm-TPVM) # deploy SLX (config-tpvm-TPVM) # end
Note
This example shows a TPVM being deployed with a preconfigured password and Management Interface IP address.
SLX # config terminal SLX (config)# tpvm TPVM SLX (config-tpvm-TPVM) # password newpassword SLX (config-tpvm-TPVM) # interface management ip 10.25.24.21/24 SLX (config-tpvm-TPVM) # deploy
This example shows a TPVM being deployed with a preconfigured password and Management Interface IP address. These configurations are then changed post successful installation of the TPVM.
SLX # config terminal SLX (config)# tpvm TPVM SLX (config-tpvm-TPVM) # password newpassword SLX (config-tpvm-TPVM) # interface management ip 10.25.24.21/24 SLX (config-tpvm-TPVM) # deploy SLX (config-tpvm-TPVM) # end SLX # tpvm stop SLX # config terminal SLX (config)# tpvm TPVM SLX (config-tpvm-TPVM) # password newpasswordagain SLX (config-tpvm-TPVM) # interface management ip 10.25.24.221/24 SLX (config-tpvm-TPVM) # end SLX # tpvm start
In this example, a few TPVM configuration values are assigned. Since these configuration steps are performed before the TPVM is installed, these settings will be stored in the running configuration of the SLX device and will be applied to the TPVM instance once the TPVM is installed.
In instances where a TPVM is already running, these configurations will be stored (persisted) in the running configuration only if they are applied successfully.
SLX # config terminal SLX (config)# tpvm TPVM SLX (config-tpvm-TPVM) # password newpassword SLX (config-tpvm-TPVM) # interface management ip 10.25.24.21/24 SLX (config-tpvm-TPVM) # auto-boot SLX (config-tpvm-TPVM) # hostname newhostname SLX (config-tpvm-TPVM) # timezone Europe/Stockholm SLX (config-tpvm-TPVM) # end
Later, when the TPVM is installed, it is started with the above configuration when the deploy command is executed.
SLX # config terminal SLX (config)# tpvm TPVM SLX (config-tpvm-TPVM) # deploy
This example describes deploying a TPVM with various configuration. Once the TPVM is installed, additional settings are configured to the TPVM instance.
SLX # config terminal SLX (config)# tpvm TPVM SLX (config-tpvm-TPVM) # password newpassword SLX (config-tpvm-TPVM) # interface management ip 10.25.24.21/24 SLX (config-tpvm-TPVM) # auto-boot SLX (config-tpvm-TPVM) # hostname newhostname SLX (config-tpvm-TPVM) # timezone Europe/Stockholm SLX (config-tpvm-TPVM) # deploy SLX (config-tpvm-TPVM) # end SLX # config terminal SLX (config)# tpvm TPVM SLX (config-tpvm-TPVM) # hostname oldhostname SLX (config-tpvm-TPVM) # no timezone
This example describes the steps to configure a pasword for the root account for the TPVM instance. This example uses the password command and passes an encrypted string to it.
SLX (config-tpvm-TPVM) # password $6$M@T]Ip^<$.kavoRt.uINQo ghhcpDYd4elQg3BWWuJDdVSmGtZcM/Ry6IRUYKkKtJ80PgTXKFEVnzWx4oTSPvHPRtvqXtGf/
An installed TPVM can be uninstalled and its configurations retained for the future. This example explains the commands to achieve the above.
SLX # config terminal SLX (config)# tpvm TPVM SLX (config-tpvm-TPVM) # no deploy SLX (config-tpvm-TPVM) # end
An installed TPVM can be purged by using the no format of the tpvm TPVM command. This command stops, uninstals, and purges the stored TPVM configurations in one step.
SLX # config terminal SLX (config)# no tpvm TPVM SLX (config) # end
Persisted configurations can be reset by using the no format of their respective command. This example show the use of the no format of the hostname command to reset the hostname assigned to the TPVM.
SLX (config-tpvm-TPVM) # no hostname